/* MyVocab's public front end (app/index.php). Colours are the logo's: indigo, mint and coral (coral follows
Global settings' link colour, set in the page head) */
:root {
	--ink: #1b1586;
	--ink-soft: #3a35a0;
	--mint: #52ba9a;
	--coral: #ff694e;
	--text: #2a2b45;
	--muted: #62657e;
	--line: #e6e5f2;
	--rule: #e7e7ec;
	--lavender: #efeefa;
	--paper: #ffffff;
	--wash: #f6f5fc;
	--mint-wash: #eaf7f2;
	--radius: 18px;
	--shadow: 0 18px 40px -18px rgba(27, 21, 134, .28);
	--font-head: "Quicksand", "Nunito", "Noto Sans Thai", system-ui, sans-serif;
	--font-body: "Nunito", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
[lang="th"] { font-family: "Noto Sans Thai", var(--font-body); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
/* two white sections in a row get a soft line between them, so they don't run together */
.plain + .plain { border-top: 1px solid var(--rule); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.kicker {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--coral);
	margin-bottom: 12px;
}
.accent { color: var(--mint); }
.soon {
	display: inline-block;
	vertical-align: middle;
	font-family: var(--font-body);
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--coral);
	background: rgba(255, 105, 78, .12);
	border-radius: 99px;
	padding: 3px 10px;
	margin-left: 6px;
}

/* buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--coral);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	padding: 14px 26px;
	border-radius: 99px;
	border: 2px solid var(--coral);
	box-shadow: 0 10px 24px -10px rgba(255, 105, 78, .7);
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(255, 105, 78, .8); color: #fff; }
.btn .bx { font-size: 1.3em; }
.btn-small { padding: 8px 18px; font-size: .95rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); box-shadow: none; }

/* header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { display: block; width: auto; height: 40px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-weight: 700; color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 30px; color: var(--ink); padding: 4px; cursor: pointer; }

/* hero */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(600px 400px at 90% 10%, rgba(82, 186, 154, .18), transparent 70%),
		radial-gradient(500px 360px at 0% 100%, rgba(255, 105, 78, .12), transparent 70%),
		var(--wash);
	padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.lead em { color: var(--ink); font-style: normal; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero-note { color: var(--muted); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.hero-note .bx { color: var(--mint); font-size: 1.3em; }
.hero-cards { position: relative; display: grid; gap: 14px; max-width: 420px; justify-self: center; width: 100%; }
.hero-cards .vcard:nth-child(2) { transform: rotate(-2deg); }
.hero-cards .vcard:nth-child(3) { transform: rotate(1.5deg) translateX(18px); }
.hero-cards .vcard:nth-child(4) { transform: rotate(-1deg) translateX(-8px); }
.list-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	font-size: .9rem;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 99px;
	padding: 6px 14px;
	justify-self: start;
}
.list-label .bx { color: #a855f7; }
.rec-pill {
	position: absolute;
	right: -10px;
	bottom: -22px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	font-size: .9rem;
	padding: 10px 16px;
	border-radius: 99px;
	box-shadow: var(--shadow);
}
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); animation: pulse 1.4s ease-in-out infinite; }
.rec-time { opacity: .7; font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.8); } }

/* example vocab cards, like the app's */
.vcard {
	position: relative;
	display: flex;
	flex-direction: column;
	background: color-mix(in srgb, var(--c) 7%, #fff);
	border: 1px solid color-mix(in srgb, var(--c) 30%, #fff);
	border-top: 5px solid var(--c);
	border-radius: 12px;
	padding: 14px 18px 16px;
	box-shadow: 0 12px 28px -18px rgba(27, 21, 134, .35);
	text-align: left;
}
.vcard-native { font-weight: 800; font-size: 1.15rem; color: var(--text); padding-right: 64px; }
.vcard-target { font-size: 1.6rem; line-height: 1.35; margin-top: 4px; color: color-mix(in srgb, var(--c) 80%, #000); }
.vcard-phonetic { font-style: italic; color: var(--muted); font-size: .95rem; }
.vcard-note { font-size: .88rem; color: var(--muted); border-top: 1px dashed color-mix(in srgb, var(--c) 40%, #fff); margin-top: 10px; padding-top: 8px; }
.vcard-audio, .vcard-star {
	position: absolute;
	top: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 18px;
}
.vcard-audio { right: 10px; background: color-mix(in srgb, var(--c) 18%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); }
.vcard-star { right: 44px; color: #f1b44c; }

/* story */
.story { background: var(--paper); }
.story-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.story-quote p {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(1.5rem, 2.8vw, 2.1rem);
	line-height: 1.3;
	color: var(--ink);
	border-left: 6px solid var(--mint);
	padding-left: 24px;
	margin: 0;
}
.story-text p { color: var(--muted); font-size: 1.08rem; }

/* how it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--wash); border-radius: var(--radius); padding: 32px 28px; }
.step p { color: var(--muted); margin: 0; }
.step-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; font-size: 28px; color: #fff; margin-bottom: 18px; }
.step-1 { background: var(--ink); }
.step-2 { background: var(--coral); }
.step-3 { background: var(--mint); }
.step-num { color: var(--coral); margin-right: 4px; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy p { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 28px; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; font-weight: 600; }
.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* voices and tones */
.voice { background: var(--mint-wash); }
.tone-demo { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.tone-pair { display: flex; align-items: center; justify-content: center; gap: 18px; }
.tone-word { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--wash); border-radius: 16px; padding: 20px 12px; }
.tone-thai { font-size: 2.6rem; line-height: 1.3; color: var(--ink); }
.tone-roman { font-style: italic; color: var(--muted); }
.tone-mean { font-weight: 800; color: var(--coral); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-top: 2px; }
.tone-vs { font-family: var(--font-head); font-weight: 700; color: var(--muted); }
.tone-caption { text-align: center; color: var(--muted); margin: 18px 0 20px; font-size: .95rem; }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 12px; }
.wave i { display: block; width: 5px; border-radius: 3px; background: var(--mint); animation: wave 1.6s ease-in-out infinite; }
.wave-fall i:nth-child(1) { height: 30%; } .wave-fall i:nth-child(2) { height: 70%; } .wave-fall i:nth-child(3) { height: 100%; } .wave-fall i:nth-child(4) { height: 95%; } .wave-fall i:nth-child(5) { height: 80%; }
.wave-fall i:nth-child(6) { height: 62%; } .wave-fall i:nth-child(7) { height: 46%; } .wave-fall i:nth-child(8) { height: 32%; } .wave-fall i:nth-child(9) { height: 20%; } .wave-fall i:nth-child(10) { height: 12%; }
.wave-flat i { height: 50%; } .wave-flat i:nth-child(1), .wave-flat i:nth-child(10) { height: 26%; } .wave-flat i:nth-child(2), .wave-flat i:nth-child(9) { height: 40%; }
.wave i:nth-child(2n) { animation-delay: .2s; } .wave i:nth-child(3n) { animation-delay: .4s; }
@keyframes wave { 50% { transform: scaleY(.82); } }
.wave i { transform-origin: bottom; }
.voice-list { display: grid; gap: 8px; }
.voice-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 8px; }
.voice-play { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 20px; flex: none; }
.voice-name { font-weight: 800; }
.voice-tag { font-size: .78rem; font-weight: 700; color: var(--ink-soft); background: var(--wash); border-radius: 99px; padding: 2px 10px; }
.voice-len { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.voice-add { border-style: dashed; color: var(--coral); }
.voice-add .voice-play { background: var(--coral); }

/* revise demo */
.revise-demo { max-width: 1000px; margin: 0 auto; }
.revise-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.chip {
	font: inherit;
	font-weight: 800;
	font-size: .95rem;
	color: var(--ink);
	background: #fff;
	border: 2px solid var(--line);
	border-radius: 99px;
	padding: 8px 18px;
	cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.revise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.revise-demo [data-side] { transition: filter .2s ease; }
.revise-demo.hide-target [data-side="target"]:not(.is-shown),
.revise-demo.hide-native [data-side="native"]:not(.is-shown) { filter: blur(9px); cursor: pointer; user-select: none; }

/* uses */
.uses { background: var(--wash); }
.use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.use { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 0 var(--line); }
.use p { color: var(--muted); margin: 0; }
.use-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; font-size: 26px; margin-bottom: 16px; }
.use-learn { background: rgba(27, 21, 134, .1); color: var(--ink); }
.use-travel { background: rgba(82, 186, 154, .16); color: #2f8f71; }
.use-memory { background: rgba(255, 105, 78, .14); color: var(--coral); }
.use-school { background: rgba(168, 85, 247, .14); color: #8b3fd9; }

/* travel phone */
.phone {
	max-width: 360px;
	width: 100%;
	justify-self: center;
	display: grid;
	gap: 12px;
	background: var(--wash);
	border: 10px solid var(--ink);
	border-radius: 40px;
	padding: 22px 18px 28px;
	box-shadow: var(--shadow);
}
.phone-top { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.phone-flag { font-size: .72rem; font-weight: 800; color: #fff; background: #da251d; border-radius: 4px; padding: 1px 5px; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.feature .bx { font-size: 30px; color: var(--coral); margin-bottom: 10px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .3em; }
.feature p { color: var(--muted); font-size: .98rem; margin: 0; }

/* compare */
.compare { background: var(--wash); }
.compare-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); }
.compare-row > span { padding: 16px 20px; }
.compare-row > span:not(:first-child) { text-align: center; }
.compare-head { border-top: 0; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; }
.compare-row .yes .bx { font-size: 26px; color: var(--mint); }
.compare-row .no .bx { font-size: 26px; color: #c3c4d4; }
.compare-row .maybe { color: var(--muted); font-size: .92rem; }
.compare-row:not(.compare-head) > span:first-child { font-weight: 700; }

/* coming soon */
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.next-card { border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px; }
.next-card .bx { font-size: 32px; color: var(--ink); margin-bottom: 12px; }
.next-card p { color: var(--muted); margin: 0; }

/* schools */
.schools {
	background:
		radial-gradient(520px 360px at 100% 0%, rgba(82, 186, 154, .16), transparent 70%),
		var(--lavender);
}
.browser { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); color: var(--text); }
.browser-bar { display: flex; align-items: center; gap: 6px; background: #eeeef6; padding: 12px 14px; }
.browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #d4d4e2; }
.browser-url { flex: 1; margin-left: 10px; background: #fff; border-radius: 8px; padding: 5px 12px; font-size: .88rem; color: var(--muted); }
.browser-url .bx { color: var(--mint); }
.browser-body { padding: 22px; display: grid; gap: 10px; }
.school-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.school-head strong { display: block; color: var(--ink); font-size: 1.1rem; }
.school-head small { color: var(--muted); }
.school-logo { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--mint); color: #fff; font-size: 24px; }
.school-row { display: flex; align-items: center; gap: 10px; background: var(--wash); border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.school-row .bx { color: var(--coral); }
.school-row span { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .9rem; }
.school-share { background: var(--mint-wash); color: #2f8f71; }
.school-share .bx { color: #2f8f71; }

/* call to action */
.cta { text-align: center; }
.cta-inner { max-width: 720px; }
.cta p { color: var(--muted); font-size: 1.15rem; margin-bottom: 28px; }

/* contact page (renderContactPage() markup) */
.contact-section { background: var(--wash); }
.front-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.front-page-text { color: var(--muted); font-size: 1.1rem; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin-top: 24px; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.contact-form .required { color: var(--coral); }
.contact-form .form-control { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
.contact-form .form-control:focus { outline: none; border-color: var(--ink); }
.contact-form .btn { cursor: pointer; }
.contact-problem { background: rgba(255, 105, 78, .12); color: #b3361f; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; }
.contact-sent { background: var(--mint-wash); color: #23735a; border-radius: 12px; padding: 18px 20px; margin-top: 24px; }
.g-recaptcha { margin-bottom: 18px; }

/* footer */
.site-footer { background: var(--wash); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-logo { display: block; width: auto; height: 34px; margin-bottom: 10px; }
.footer-inner p { color: var(--muted); margin: 0; max-width: 340px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; max-width: 520px; }
.footer-nav a { color: var(--text); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-small { margin-top: 32px; color: var(--muted); font-size: .9rem; }

/* packages */
.packages-hero {
	background:
		radial-gradient(600px 400px at 90% 0%, rgba(82, 186, 154, .16), transparent 70%),
		var(--wash);
}
.packages-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.billing-switch { display: flex; justify-content: center; gap: 10px; margin: -12px 0 36px; }
.billing-switch .save { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--coral); margin-left: 4px; }
.billing-switch .chip.is-on .save { color: #ffd3ca; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 34px 30px; }
.plan h2 { font-size: 1.6rem; margin-bottom: .2em; }
.plan-for { color: var(--muted); min-height: 3.3em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.plan-price strong { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--ink); }
.plan-price span { color: var(--muted); font-weight: 700; }
.plan-price[hidden] { display: none; }
.plan .ticks { margin: 26px 0 0; }
.plan-pro { border-color: var(--coral); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -14px; right: 26px; background: var(--coral); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 5px 14px; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn.is-current { cursor: default; color: var(--muted); }
.btn.is-current:hover { transform: none; border-color: var(--line); color: var(--muted); }
.plans-note { text-align: center; color: var(--muted); margin: 32px 0 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; background: #fff; }
.faq-list summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--coral); font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--muted); margin: 0 0 16px; }

/* cart, laid out like SecurePress's: the order on the left, the summary beside it */
.cart-page { background: var(--wash); padding-top: clamp(40px, 6vw, 72px); }
.cart-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 28px; }
.cart-note { display: flex; gap: 10px; align-items: flex-start; max-width: 880px; margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: var(--mint-wash); border-left: 4px solid var(--mint); color: #23735a; font-weight: 600; }
.cart-note .bx { font-size: 1.3em; margin-top: 2px; }
.cart-note-problem { background: rgba(255, 105, 78, .1); border-left-color: var(--coral); color: #b3361f; }
.cart-empty { max-width: 640px; padding: 40px; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; }
.cart-empty p { color: var(--muted); }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-billing { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.cart-billing legend { margin-bottom: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.cart-billing-option { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.cart-billing-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--coral); }
.cart-billing-option input { margin-top: 6px; accent-color: var(--ink); }
.cart-billing-option strong { display: block; color: var(--ink); }
.cart-billing-option small { display: block; color: var(--muted); font-size: .88rem; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cart-line-head { display: flex; justify-content: space-between; gap: 20px; }
.cart-line-title { display: flex; gap: 14px; align-items: flex-start; }
.cart-line-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 105, 78, .14); color: var(--coral); font-size: 24px; }
.cart-line h2 { font-size: 1.25rem; margin: 0 0 4px; }
.cart-line-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.cart-line-price { text-align: right; white-space: nowrap; }
.cart-line-price strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--ink); }
.cart-line-price small { display: block; color: var(--muted); font-size: .85rem; }
.cart-remove { margin: 14px 0 0 60px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.cart-remove:hover { color: #c62828; }
.cart-add { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.cart-summary { position: sticky; top: 96px; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--coral); box-shadow: var(--shadow); }
.cart-summary h2 { font-size: 1.25rem; margin-bottom: 12px; }
.cart-summary dl { margin: 0 0 22px; }
.cart-summary dl div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; color: var(--ink); font-weight: 800; }
.cart-summary .cart-today { font-family: var(--font-head); font-size: 2rem; }
.cart-summary .btn + .btn { margin-top: 10px; }
.cart-summary .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.cart-signin { color: var(--muted); font-size: .95rem; }
.cart-small { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.cart-secure { display: flex; gap: 6px; align-items: flex-start; }
.cart-secure .bx { color: var(--mint); margin-top: 3px; }

/* order complete: the big letters */
.order-done { position: relative; overflow: hidden; text-align: center; background: radial-gradient(700px 420px at 50% 0%, rgba(82, 186, 154, .2), transparent 70%), var(--wash); min-height: 70vh; }
.order-done .wrap { position: relative; max-width: 880px; }
.done-tick { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--mint); color: #fff; font-size: 54px; margin: 0 0 18px; box-shadow: 0 16px 34px -14px rgba(82, 186, 154, .9); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.done-big { font-size: clamp(4rem, 15vw, 9.5rem); line-height: .95; letter-spacing: -.04em; margin: 0 0 .25em; color: var(--ink); animation: rise .6s .1s ease-out both; }
.done-wait { font-size: clamp(3rem, 11vw, 7rem); }
.done-lead { font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.done-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 22px; }
.done-details div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 22px; min-width: 150px; }
.done-details dt { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.done-details dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.done-small { color: var(--muted); font-size: .95rem; max-width: 560px; margin: 0 auto 28px; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 24px; }
.done-shapes span { position: absolute; border-radius: 50%; opacity: .9; animation: float 6s ease-in-out infinite; }
.done-shapes span:nth-child(1) { width: 26px; height: 26px; background: var(--coral); top: 4%; left: 6%; }
.done-shapes span:nth-child(2) { width: 14px; height: 14px; background: var(--mint); top: 22%; right: 8%; animation-delay: -1s; }
.done-shapes span:nth-child(3) { width: 40px; height: 40px; border: 6px solid var(--ink); top: 52%; left: 2%; opacity: .15; animation-delay: -2s; }
.done-shapes span:nth-child(4) { width: 18px; height: 18px; background: var(--ink); top: 68%; right: 4%; opacity: .5; animation-delay: -3s; }
.done-shapes span:nth-child(5) { width: 12px; height: 12px; background: var(--coral); top: 12%; right: 30%; animation-delay: -4s; }
.done-shapes span:nth-child(6) { width: 22px; height: 22px; background: var(--mint); top: 80%; left: 22%; animation-delay: -5s; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-14px); } }

/* tablets */
@media (max-width: 960px) {
	.hero-inner, .story-inner, .split { grid-template-columns: 1fr; gap: 48px; }
	.split-reverse .split-copy { order: 0; }
	.hero-copy { text-align: center; }
	.lead { margin-left: auto; margin-right: auto; }
	.hero-actions, .hero-note { justify-content: center; }
	.steps, .next-grid { grid-template-columns: 1fr; }
	.revise-grid { grid-template-columns: repeat(2, 1fr); }
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.cart-grid, .plans { grid-template-columns: 1fr; }
	.cart-summary { position: static; }
	.plans { max-width: 480px; }
}

/* the menu folds into the button before it runs out of room */
@media (max-width: 1100px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		padding: 8px 20px 20px;
		box-shadow: 0 18px 30px -20px rgba(27, 21, 134, .3);
	}
	.site-nav.is-open { display: flex; }
	.site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-nav .btn { justify-content: center; margin-top: 14px; border-bottom: 0; padding: 12px; }
}

/* phones */
@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.brand img { height: 34px; }
	.use-grid, .revise-grid, .feature-grid { grid-template-columns: 1fr; }
	.use, .step, .tone-demo, .contact-form { padding: 24px 20px; }
	.hero-cards .vcard:nth-child(3), .hero-cards .vcard:nth-child(4) { transform: none; }
	.rec-pill { right: 0; }
	.tone-thai { font-size: 2.1rem; }
	.compare-row { grid-template-columns: 1.3fr .8fr 1fr; font-size: .92rem; }
	.compare-row > span { padding: 12px 10px; }
	.section-head { margin-bottom: 36px; }
	.cart-billing { grid-template-columns: 1fr; }
	.cart-line-head { flex-direction: column; gap: 10px; }
	.cart-line-price { text-align: left; padding-left: 60px; }
	.cart-empty, .plan { padding: 28px 22px; }
	.plan-for { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
