/* speakmora.com: one stylesheet for every page.
   Colours are the app's (src/constants/theme.ts): purple #7047EB, blue #3489F5, lilac #A99AEF for soft accents. */

:root {
  --purple: #7047EB; --purple-dark: #4F2BC4; --blue: #3489F5; --indigo: #5A63F0; --lilac: #A99AEF;
  --lavender: #EDE6FF; --lavender-soft: #F3EFFF; --bg: #FBFAFF; --white: #FFFFFF;
  --ink: #17142F; --text: #1B1640; --muted: #4A4766; --faint: #6E6A88; --line: #EEE9FB;
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.kicker { display: inline-block; font-weight: 700; font-size: 14px; color: var(--purple); background: var(--lavender); padding: 7px 14px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 620px; }
section { padding: 96px 0; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.left { text-align: left; }
.skip { position: absolute; left: -9999px; top: 0; } .skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }

/* ---------- Nav ---------- */
nav.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(112, 71, 235, .08); }
nav.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.brand .mora { color: var(--purple); }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a { text-decoration: none; } .nav-links a:hover { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; padding: 14px 24px; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--indigo)); box-shadow: 0 10px 24px -10px rgba(112, 71, 235, .7); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(112, 71, 235, .8); }
.btn.small { padding: 10px 18px; font-size: 15px; }
.btn.light { background: #fff; color: var(--purple); box-shadow: none; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Waitlist form ---------- */
.waitlist { display: flex; gap: 8px; background: #fff; border: 1px solid #E3DDF5; padding: 6px; border-radius: 999px; max-width: 500px; margin-top: 30px; box-shadow: 0 18px 40px -24px rgba(23, 20, 47, .35); }
.waitlist input[type=email] { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 0 18px; background: transparent; color: var(--ink); }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist.done { justify-content: center; padding: 16px 20px; font-weight: 700; color: var(--purple-dark); text-align: center; }
.form-error { color: #B3261E; font-weight: 600; font-size: 14px; margin-top: 10px; }
.fine { font-size: 14px; color: var(--faint); margin-top: 12px; }
.fine a { color: var(--purple); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - 72px); display: grid; align-items: center; overflow: hidden; isolation: isolate; --mx: 0; --my: 0; --sy: 0; }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 56px 0 150px; }
.hero-content .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-text { position: relative; }
.hero-text::before { content: ""; position: absolute; inset: -12% -10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(251, 250, 255, .92), rgba(251, 250, 255, .6) 65%, rgba(251, 250, 255, 0)); }
.hero h1 { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.0; letter-spacing: -0.035em; margin: 6px 0 22px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--purple), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--purple-dark); background: #fff; border: 1px solid #E3DDF5; padding: 7px 14px 7px 8px; border-radius: 999px; }
.soon .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--lavender); display: grid; place-items: center; }
.soon .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
.stores { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 14px; background: #fff; border: 1px solid #E3DDF5; color: var(--faint); font-size: 12px; line-height: 1.2; }
.store b { display: block; font-size: 15px; color: var(--muted); }
.store svg { width: 22px; height: 22px; fill: var(--faint); }

.hero-art { position: relative; }
.hero-art .photo { border-radius: 36px; overflow: hidden; aspect-ratio: 896 / 900; background: #EFEAFB; box-shadow: 0 40px 80px -40px rgba(79, 43, 196, .45); }
.hero-art .photo img { width: 100%; height: auto; }
.bubble { position: absolute; background: #fff; color: var(--ink); font-weight: 800; font-size: 20px; padding: 12px 18px; border-radius: 22px; box-shadow: 0 14px 30px -14px rgba(23, 20, 47, .4); animation: float 5s ease-in-out infinite; white-space: nowrap; }
.bubble::after { content: ""; position: absolute; bottom: -7px; left: 22px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.bubble.purple { background: var(--purple); color: #fff; } .bubble.purple::after { background: var(--purple); }
.bubble.blue { background: var(--blue); color: #fff; } .bubble.blue::after { background: var(--blue); }
.b1 { top: 6%; left: -22px; } .b2 { top: 2%; right: 8%; animation-delay: -1.4s; } .b3 { top: 34%; right: -18px; animation-delay: -2.6s; } .b4 { top: 44%; left: -30px; animation-delay: -3.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chat-card { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); width: min(380px, 92%); background: #fff; border-radius: 24px; padding: 16px 18px; box-shadow: 0 24px 50px -24px rgba(23, 20, 47, .45); display: grid; gap: 10px; }
.chat-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.chat-row img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.chat-row .you { margin-left: auto; background: var(--lavender); padding: 8px 12px; border-radius: 16px 16px 4px 16px; color: var(--ink); }
.better { font-size: 14px; color: #0F7A4B; background: #E8F8EF; padding: 8px 12px; border-radius: 12px; }
.better b { color: #0B5E3A; }
.wave { display: inline-flex; gap: 3px; align-items: center; height: 16px; margin-left: 6px; vertical-align: middle; }
.wave i { width: 3px; border-radius: 2px; background: var(--purple); animation: bar 1s ease-in-out infinite; }
.wave i:nth-child(1) { height: 6px } .wave i:nth-child(2) { height: 12px; animation-delay: -.2s } .wave i:nth-child(3) { height: 16px; animation-delay: -.4s } .wave i:nth-child(4) { height: 10px; animation-delay: -.6s } .wave i:nth-child(5) { height: 6px; animation-delay: -.8s }
@keyframes bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }

/* ---------- Hero background (animated, decorative) ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.glow.g1 { width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; left: 50%; top: 46%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(169, 154, 239, .38), rgba(169, 154, 239, 0) 62%); animation: breathe 9s ease-in-out infinite; }
.glow.g2 { width: 46vw; height: 46vw; right: -12vw; top: -14vw; background: radial-gradient(circle, rgba(112, 71, 235, .16), transparent 65%); animation: breathe 11s ease-in-out infinite -3s; }
.glow.g3 { width: 40vw; height: 40vw; left: -12vw; bottom: -14vw; background: radial-gradient(circle, rgba(169, 154, 239, .30), transparent 65%); animation: breathe 12s ease-in-out infinite -6s; }
@keyframes breathe { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
.px { position: absolute; inset: 0; transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc((var(--my) * var(--d) - var(--sy) * var(--d) * .06) * 1px), 0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-line { fill: none; stroke: var(--lilac); stroke-width: 1.2; stroke-dasharray: 3 9; opacity: .55; animation: flow 6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -120; } }
.net-dot { fill: var(--lilac); opacity: .7; }
.net-dot.big { fill: var(--purple); opacity: .35; transform-box: fill-box; transform-origin: center; animation: ping 4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.net-spark { fill: var(--purple); }
.path-base { fill: none; stroke: rgba(169, 154, 239, .45); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; }
.path-done { fill: none; stroke: url(#pathGrad); stroke-width: 3.5; stroke-linecap: round; }
.cp circle.ring { fill: var(--white); stroke: var(--lilac); stroke-width: 2; transition: stroke .5s, fill .5s; }
.cp circle.core { fill: var(--lilac); transition: fill .5s; }
.cp text { font: 700 13px -apple-system, system-ui, sans-serif; fill: #8C84B8; text-anchor: middle; transition: fill .5s; }
.cp.done circle.ring { stroke: var(--purple); fill: #EFEAFD; }
.cp.done circle.core { fill: var(--purple); }
.cp.done text { fill: var(--purple); }
.cp.hit circle.ring { animation: hit .8s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes hit { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
.walker { fill: var(--purple); filter: url(#glowF); }
.ambient-wave { position: absolute; left: 0; right: 0; top: 50%; height: 240px; transform: translateY(-10%); opacity: .5; }
.ambient-wave path { fill: none; stroke-width: 1.5; }
.word { position: absolute; left: var(--x); top: var(--y); }
.word span { display: block; font-weight: 800; letter-spacing: -.02em; color: var(--purple); font-size: var(--s); opacity: var(--o); filter: blur(var(--b, 0px)); animation: drift var(--t, 14s) ease-in-out infinite var(--dl, 0s); white-space: nowrap; }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(-2deg); }
  25% { transform: translate(14px, -18px) rotate(1deg); }
  50% { transform: translate(-6px, -30px) rotate(2deg); }
  75% { transform: translate(-16px, -12px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(-2deg); }
}
/* Pause the background when the hero is off screen or the tab is hidden (saves battery) */
.hero.paused .hero-bg *, .hero.paused .hero-bg *::before, .hero.paused .hero-bg *::after { animation-play-state: paused !important; }

/* ---------- Numbers ---------- */
.numbers { padding: 56px 0 0; }

/* ---------- Tutors ---------- */
.tutor-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 44px; }
.tutor { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 18px 10px 16px; text-align: center; cursor: pointer; transition: transform .2s, box-shadow .2s; font: inherit; color: inherit; }
.tutor:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(79, 43, 196, .5); }
.tutor .face { position: relative; width: 96px; height: 96px; margin: 0 auto 10px; }
.tutor .face img.p { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--lavender); }
.tutor .face img.f { position: absolute; right: -2px; bottom: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; }
.tutor b { display: block; font-size: 16px; color: var(--ink); }
.tutor .hi { font-size: 15px; color: var(--purple); font-weight: 700; margin-top: 2px; }
.tutor .play { position: absolute; top: 12px; left: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--lavender); display: grid; place-items: center; }
.tutor .play svg { width: 12px; height: 12px; fill: var(--purple); }
.tutor.playing { box-shadow: 0 0 0 3px var(--purple); }
.tutor.playing .play { background: var(--purple); } .tutor.playing .play svg { fill: #fff; }

/* ---------- Steps, topics, features ---------- */
.how { background: linear-gradient(180deg, #fff, var(--lavender-soft)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.step { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); text-align: left; }
.step .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue)); margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); line-height: 1.55; margin: 0; }
.topics { display: flex; gap: 16px; overflow-x: auto; padding: 40px 24px 12px; margin: 0 -24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.topic { flex: 0 0 220px; scroll-snap-align: start; border-radius: 26px; overflow: hidden; position: relative; aspect-ratio: 3 / 4; background: #ddd; }
.topic img { width: 100%; height: 100%; object-fit: cover; }
.topic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(23, 20, 47, .75)); }
.topic span { position: absolute; left: 16px; bottom: 16px; right: 16px; color: #fff; font-weight: 800; font-size: 19px; z-index: 1; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: left; }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Languages ---------- */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.lang { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 8px 14px 8px 8px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.lang img { width: 24px; height: 24px; border-radius: 50%; }
.lang small { color: var(--faint); font-weight: 500; }

/* ---------- Trial, FAQ, CTA ---------- */
.trial { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid #D9D9E0; border-radius: 40px; padding: 48px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-size: 17px; color: var(--text); }
.ticks li::before { content: "✓"; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--lavender); color: var(--purple); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.trial-card { border-radius: 32px; padding: 34px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue)); text-align: center; }
.trial-card .big { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.trial-card p { opacity: .92; line-height: 1.5; }
.faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 12px; text-align: left; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); line-height: 1.6; margin: 12px 0 0; }
.cta { position: relative; overflow: hidden; border-radius: 40px; padding: 64px 32px; text-align: center; color: #fff; background: linear-gradient(120deg, var(--purple-dark), var(--purple) 45%, var(--blue)); }
.cta h2 { color: #fff; }
.cta p { opacity: .92; font-size: 18px; }
.cta .waitlist { margin: 28px auto 0; }
.cta .fine { color: rgba(255, 255, 255, .85); } .cta .fine a { color: #fff; }
.cta .form-error { color: #FFE1DE; }
.cta .hello-float { position: absolute; font-weight: 800; opacity: .16; font-size: 40px; }

/* ---------- Footer ---------- */
footer { padding: 56px 0 40px; color: var(--faint); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: var(--purple); }
footer .brand { font-size: 18px; } footer .brand img { width: 30px; height: 30px; }

/* ---------- Text pages (privacy, terms, support, delete account) ---------- */
.page-head { padding: 64px 0 36px; background: radial-gradient(ellipse at 80% 0%, rgba(169, 154, 239, .28), transparent 60%), radial-gradient(ellipse at 0% 100%, rgba(52, 137, 245, .10), transparent 55%); }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 14px; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.page-head .meta span { font-size: 14px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.prose { max-width: 780px; padding: 24px 24px 80px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--text); }
.prose h2 { font-size: 26px; margin: 44px 0 10px; }
.prose h3 { font-size: 19px; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose a { color: var(--purple); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .short { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 16px; padding: 16px 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--lavender-soft); color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.steps-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; counter-reset: s; }
.steps-list li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 0; }
.steps-list li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.note { background: var(--lavender-soft); border-radius: 16px; padding: 14px 18px; color: var(--text); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-col > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px 10px; }
.contact-box { margin-top: 48px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.contact-box h2 { margin: 0 0 6px; font-size: 24px; }
.contact-box p { margin: 0 0 18px; }
.contact-box .btn { color: #fff; }

/* Email confirmed */
.confirm { min-height: calc(100svh - 72px - 140px); display: grid; place-items: center; padding: 48px 24px; text-align: center; }
.confirm .icon { width: 96px; height: 96px; border-radius: 30px; margin: 0 auto 26px; display: grid; place-items: center; font-size: 46px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue)); box-shadow: 0 24px 50px -20px rgba(112, 71, 235, .7); animation: pop .7s cubic-bezier(.2, .8, .2, 1.3) both; }
.confirm .icon.bad { background: linear-gradient(135deg, #E9A23B, #E0603A); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.confirm h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; }
.confirm p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 520px; margin: 0 auto; }
[hidden] { display: none !important; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-content .wrap, .trial { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin: 0 auto 30px; }
  .tutor-grid { grid-template-columns: repeat(3, 1fr); }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  nav.top .btn { margin-left: auto; }
  .word.far { display: none; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .tutor-grid { grid-template-columns: repeat(2, 1fr); }
  .features, .steps, .two-col { grid-template-columns: 1fr; }
  .trial { padding: 28px; }
  .waitlist { flex-direction: column; border-radius: 24px; }
  .waitlist input[type=email] { padding: 14px 12px; }
  nav.top .btn { display: none; }
  .b4 { left: -6px; } .b1 { left: -6px; } .b3 { right: -6px; }
  .word span { font-size: calc(var(--s) * .7); }
  .hero-content { padding-bottom: 110px; }
}

/* ---------- Reduced motion: keep the look, stop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .px { transform: none !important; }
}

/* Support page questions */
.prose details { margin: 10px 0; }
.prose details summary { font-size: 17px; }
.prose details p { margin-top: 10px; }

/* Footer social icons (TikTok, Instagram, Facebook: the same three as the app's Follow us) */
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender); color: var(--purple); transition: background .2s, color .2s, transform .2s; }
.social a:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* Emoji tiles on the number cards and the How it works steps (4 Dec) */
.step-ic { display: grid; place-items: center; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 12px 24px -16px rgba(79, 43, 196, .45); animation: bob 4s ease-in-out infinite var(--dl, 0s); }
.step-ic { position: relative; width: 72px; height: 72px; border-radius: 22px; font-size: 36px; margin-bottom: 20px; }
.step-ic .n { position: absolute; right: -8px; top: -8px; width: 28px; height: 28px; border-radius: 50%; margin: 0; font-size: 14px; border: 3px solid #fff; box-sizing: content-box; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-3deg); } }
.step { transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(79, 43, 196, .45); }
.step:hover .step-ic { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-10deg) scale(1.12); } 60% { transform: rotate(8deg) scale(1.08); } }

/* Number cards, redesigned (4 Dec): each shows what the number means */
.numbers .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 26px 22px 22px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--purple), var(--blue)); }
.stat:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(79, 43, 196, .5); }
.stat b { display: block; font-size: 44px; line-height: 1; letter-spacing: -0.04em; color: var(--purple); margin-top: 18px; }
.stat .label { display: block; font-weight: 700; font-size: 17px; color: var(--ink); margin-top: 6px; }
.stat p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--faint); }
.stat-vis { display: flex; align-items: center; height: 56px; }
.stat-vis img { display: block; flex: none; }
.stat-vis .more { display: grid; place-items: center; flex: none; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; background: var(--lavender); color: var(--purple); font-weight: 800; font-size: 13px; border: 3px solid #fff; margin-left: -10px; position: relative; }
.stack img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 10px -4px rgba(23, 20, 47, .3); margin-left: -10px; transition: transform .25s; position: relative; }
.stack img:first-child { margin-left: 0; }
.stack.faces img { width: 44px; height: 44px; object-fit: cover; }
.stat:hover .stack img { transform: translateY(-3px); }
.stat:hover .stack img:nth-child(2) { transition-delay: .04s; } .stat:hover .stack img:nth-child(3) { transition-delay: .08s; } .stat:hover .stack img:nth-child(4) { transition-delay: .12s; } .stat:hover .stack img:nth-child(5) { transition-delay: .16s; } .stat:hover .stack img:nth-child(6) { transition-delay: .2s; }
.thumbs img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 12px -4px rgba(23, 20, 47, .35); margin-left: -12px; transition: transform .25s; }
.thumbs img:first-child { margin-left: 0; transform: rotate(-6deg); } .thumbs img:nth-child(2) { transform: rotate(3deg); } .thumbs img:nth-child(3) { transform: rotate(-2deg); }
.stat:hover .thumbs img { transform: rotate(0) translateY(-3px); }
.week { gap: 5px; }
.week .day { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--faint); }
.week .day i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue)); animation: tick 3.5s ease-in-out infinite; }
.week .day:nth-child(2) i { animation-delay: .15s; } .week .day:nth-child(3) i { animation-delay: .3s; } .week .day:nth-child(4) i { animation-delay: .45s; } .week .day:nth-child(5) i { animation-delay: .6s; } .week .day:nth-child(6) i { animation-delay: .75s; } .week .day:nth-child(7) i { animation-delay: .9s; }
@keyframes tick { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } }
@media (max-width: 1100px) { .numbers .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .numbers .wrap { grid-template-columns: 1fr; } }

/* "Made for speaking" cards, redesigned (4 Dec): each shows a small live piece of the app */
.feat { background: #fff; border: 1px solid #D9D9E0; border-radius: 30px; padding: 14px 14px 26px; text-align: left; transition: transform .3s, box-shadow .3s; }
.feat:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -32px rgba(79, 43, 196, .5); }
.feat h3 { font-size: 20px; margin: 22px 14px 8px; }
.feat p { color: var(--muted); line-height: 1.55; margin: 0 14px; }
.feat-vis { height: 176px; border-radius: 22px; background: radial-gradient(ellipse at 30% 0%, rgba(169, 154, 239, .35), transparent 60%), linear-gradient(160deg, #F6F2FF, #EEF3FF); display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; position: relative; padding: 16px; }
/* speak */
.vis-speak { gap: 18px; }
.vis-speak .mic { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--blue)); box-shadow: 0 12px 26px -10px rgba(112, 71, 235, .8); flex: none; }
.vis-speak .mic svg { width: 26px; height: 26px; fill: #fff; }
.vis-speak .mic::before, .vis-speak .mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lilac); animation: ripple 2.4s ease-out infinite; }
.vis-speak .mic::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.vis-speak .bars { display: flex; align-items: center; gap: 4px; height: 44px; }
.vis-speak .bars i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(var(--purple), var(--lilac)); transform: scaleY(var(--h)); animation: eq 1.2s ease-in-out infinite var(--d); }
@keyframes eq { 0%, 100% { transform: scaleY(calc(var(--h) * .35)); } 50% { transform: scaleY(var(--h)); } }
/* corrections */
.vis-fix { flex-direction: column; align-items: stretch; gap: 10px; padding: 18px 22px; }
.vis-fix span { font-size: 15px; padding: 10px 14px; border-radius: 16px; }
.vis-fix .said { align-self: flex-end; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; }
.vis-fix .said s { color: #C0392B; text-decoration-thickness: 2px; }
.vis-fix .fix { align-self: flex-start; background: #E8F8EF; color: #0F7A4B; font-weight: 600; animation: fixin 4s ease-in-out infinite; }
.vis-fix .fix b { color: #0B5E3A; }
@keyframes fixin { 0%, 15% { opacity: 0; transform: translateY(8px) scale(.96); } 30%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* plan */
.vis-plan { flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; padding: 14px 30px; }
.vis-plan .row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 13px; padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: 0 6px 14px -12px rgba(23, 20, 47, .5); }
.vis-plan .row i { font-style: normal; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue)); flex: none; }
.vis-plan .row.next { border: 2px dashed var(--lilac); background: rgba(255, 255, 255, .7); }
.vis-plan .row.next i { background: var(--lavender); color: var(--purple); animation: pulse 1.6s infinite; }
/* words */
.vis-words { flex-wrap: wrap; align-content: center; gap: 8px; padding: 18px 20px; }
.vis-words span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: 0 6px 14px -12px rgba(23, 20, 47, .5); }
.vis-words .saved { border-color: #F5C451; background: #FFF8E6; color: #8A5A00; }
.vis-words .used { border-color: #9BDDB9; background: #E8F8EF; color: #0F7A4B; animation: pop2 3.2s ease-in-out infinite; }
@keyframes pop2 { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.08); } }
/* language */
.vis-lang { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 12px 44px; }
.vis-lang span { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .7); border-radius: 12px; padding: 4px 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.vis-lang img { width: 22px; height: 22px; border-radius: 50%; }
.vis-lang .on { background: #fff; color: var(--purple); box-shadow: 0 0 0 2px var(--purple); }
.vis-lang .on b { margin-left: auto; }
/* goal */
.vis-goal { gap: 18px; }
.vis-goal .ring { position: relative; width: 92px; height: 92px; flex: none; }
.vis-goal .ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.vis-goal circle { fill: none; stroke-width: 7; }
.vis-goal .tr { stroke: #fff; }
.vis-goal .val { stroke: var(--purple); stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; animation: goal 5s ease-in-out infinite; }
@keyframes goal { 0%, 10% { stroke-dashoffset: 170; } 50%, 90% { stroke-dashoffset: 57; } 100% { stroke-dashoffset: 170; } }
.vis-goal .ring b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 22px; color: var(--ink); line-height: 1; }
.vis-goal .ring small { display: block; font-size: 10px; color: var(--faint); font-weight: 600; margin-top: 3px; }
.vis-goal .bell { background: #fff; border-radius: 16px; padding: 10px 14px; font-size: 15px; font-weight: 700; color: var(--ink); box-shadow: 0 10px 22px -16px rgba(23, 20, 47, .6); animation: ring 4s ease-in-out infinite; transform-origin: 50% 0; }
.vis-goal .bell small { display: block; font-size: 12px; font-weight: 500; color: var(--faint); margin-top: 2px; }
@keyframes ring { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-4deg); } 88% { transform: rotate(4deg); } 92% { transform: rotate(-2deg); } }
.vis-lang span span { background: none; padding: 0; box-shadow: none; }

/* Languages: chips ripple in one after another when the section scrolls into view (4 Dec) */
.js .langs .lang { opacity: 0; transform: translateY(22px) scale(.92); filter: blur(4px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1.15), filter .6s ease, box-shadow .25s, border-color .25s; transition-delay: calc(var(--i, 0) * 38ms); }
.js .langs .lang img { transform: rotate(-120deg) scale(.4); transition: transform .8s cubic-bezier(.2, .8, .2, 1.2); transition-delay: calc(var(--i, 0) * 38ms + 120ms); }
.js .langs.in .lang { opacity: 1; transform: none; filter: none; }
.js .langs.in .lang img { transform: none; }
.js .langs.in .lang:hover { transform: translateY(-4px); border-color: #DCD2FB; box-shadow: 0 14px 28px -18px rgba(79, 43, 196, .55); transition-delay: 0s; }
.js .langs.in .lang:hover img { transform: rotate(-12deg) scale(1.12); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .js .langs .lang, .js .langs .lang img { opacity: 1; transform: none; filter: none; }
}

/* Trial: title above, then the card comes alive when it scrolls into view (4 Dec) */
.trial-head { margin-bottom: 40px; }
.trial-head .lead { margin-top: 14px; }
.trial-card { position: relative; overflow: hidden; background-size: 200% 200%; animation: trialDrift 12s ease-in-out infinite alternate; }
.trial-card > * { position: relative; }
.trial-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.trial-card .count { display: inline-block; min-width: .62em; }
.trial-card .btn.light { position: relative; }
.trial-card .btn.light::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid rgba(255,255,255,.7); opacity: 0; pointer-events: none; }
@keyframes trialDrift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes trialSheen { to { transform: translateX(120%); } }
@keyframes trialRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes trialPop { 0% { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.2) rotate(8deg); } 100% { transform: none; } }

.js .trial .ticks li { opacity: 0; transform: translateX(-18px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(.35s + var(--i, 0) * .14s); }
.js .trial .ticks li::before { transform: scale(0); }
.js .trial .trial-card { opacity: 0; transform: translateX(40px) scale(.94); transition: opacity .8s ease .15s, transform .9s cubic-bezier(.2, .8, .2, 1) .15s; }
.js .trial.go .ticks li { opacity: 1; transform: none; }
.js .trial.go .ticks li::before { animation: trialPop .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.5s + var(--i, 0) * .14s); }
.js .trial.go .trial-card { opacity: 1; transform: none; }
.js .trial.go .trial-card::after { animation: trialSheen 1.4s ease 1.1s; }
.js .trial.go .trial-card .btn.light::after { animation: trialRing 2.4s ease-out 1.8s infinite; }
@media (prefers-reduced-motion: reduce) {
  .trial-card, .js .trial.go .trial-card::after, .js .trial.go .trial-card .btn.light::after, .js .trial.go .ticks li::before { animation: none; }
  .js .trial .ticks li, .js .trial .ticks li::before, .js .trial .trial-card { opacity: 1; transform: none; }
}

/* Lower page (trial → FAQ → join): soft drifting light and a faint dot grid behind the content (4 Dec) */
.lower { position: relative; overflow: hidden; isolation: isolate; }
.lower > section { position: relative; z-index: 1; }
.lower-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lower-bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(112, 71, 235, .16) 1.2px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 70%, transparent); }
.lower-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.lower-bg .g1 { width: 520px; height: 520px; left: -160px; top: 6%; background: #C9B8FF; animation: lowerFloat 22s ease-in-out infinite alternate; }
.lower-bg .g2 { width: 460px; height: 460px; right: -140px; top: 34%; background: #B9D6FF; animation: lowerFloat 26s ease-in-out -8s infinite alternate-reverse; }
.lower-bg .g3 { width: 420px; height: 420px; left: 30%; bottom: 4%; background: #DCCFFF; animation: lowerFloat 30s ease-in-out -14s infinite alternate; }
@keyframes lowerFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, -60px) scale(1.15); } }
@media (max-width: 760px) { .lower-bg i { width: 300px; height: 300px; filter: blur(60px); } }
@media (prefers-reduced-motion: reduce) { .lower-bg i { animation: none; } }
/* Hellos in many languages floating up and fading at the sides */
.lower-bg .hw { position: absolute; transform: translateX(-50%); font-weight: 800; color: var(--purple); opacity: 0; white-space: nowrap; animation: helloRise 16s ease-in-out infinite; }
@keyframes helloRise { 0% { opacity: 0; transform: translate(-50%, 40px) scale(.9); } 25%, 65% { opacity: .2; } 100% { opacity: 0; transform: translate(-50%, -140px) scale(1.05); } }
@media (max-width: 1100px) { .lower-bg .hw { display: none; } }
@media (prefers-reduced-motion: reduce) { .lower-bg .hw { animation: none; opacity: .12; transform: translateX(-50%); } }
.lower-bg .hw { display: inline-flex; align-items: center; gap: 10px; }
.lower-bg .hw img { width: .9em; height: .9em; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }

/* Language menu in the top bar (4 Dec) */
.langsw { position: relative; margin-left: -8px; }
.langsw summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.langsw summary::-webkit-details-marker { display: none; }
.langsw summary:hover, .langsw[open] summary { background: #fff; border-color: #D9D9E0; color: var(--purple); }
.langsw summary svg { width: 18px; height: 18px; }
.langsw summary .chev { width: 12px; height: 12px; transition: transform .2s; }
.langsw[open] .chev { transform: rotate(180deg); }
.langsw-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 200px; background: #fff; border: 1px solid #D9D9E0; border-radius: 18px; padding: 8px; box-shadow: 0 24px 48px -24px rgba(39, 35, 59, .35); display: grid; gap: 2px; animation: langswIn .18s ease; }
.langsw-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.langsw-menu a img { width: 22px; height: 22px; border-radius: 50%; }
.langsw-menu a:hover { background: var(--lavender); }
.langsw-menu a[aria-current] { color: var(--purple); background: #F6F2FF; }
.langsw-menu a[aria-current]::after { content: "✓"; margin-inline-start: auto; font-weight: 800; }
@keyframes langswIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 960px) { .langsw { margin-left: auto; } nav.top .langsw + .btn { margin-left: 0; } }
@media (max-width: 600px) { .langsw { margin-left: auto; } }

/* Arabic page (right to left): keep the Latin-script examples, hellos and bubbles reading left to right */
html[dir=rtl] [lang="es"], html[dir=rtl] .bubble:not([dir]), html[dir=rtl] .tutor .hi:not([dir]), html[dir=rtl] .word span, html[dir=rtl] .hello-float { direction: ltr; unicode-bidi: isolate; }
.langsw summary .flag { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #D9D9E0; }
/* …but the language menu itself follows the page, so every row lines up (Español was flipping) */
html[dir=rtl] .langsw-menu a[lang] { direction: rtl; unicode-bidi: normal; }

/* Footer: logo with © under it | links | social, on one row in every language (4 Dec) */
footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
footer .foot-id { display: grid; gap: 6px; }
footer .copy { font-size: 13px; }
footer .links { justify-content: center; gap: 10px 22px; }
@media (max-width: 760px) {
  footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  footer .foot-id { justify-items: center; }
}
@media (max-width: 1100px) { .lower-bg .hw { display: none; } }

/* Footer card: soft lavender-to-blue colour (4 Dec) */
footer { padding: 40px 0 32px; }
footer .wrap { background: radial-gradient(ellipse at 0% 0%, rgba(169, 154, 239, .35), transparent 55%), linear-gradient(120deg, #F1ECFF, #E9F1FF); border: 1px solid #D9D9E0; border-radius: 28px; padding: 28px 32px; }
footer .links a { color: var(--text); }
footer .social a { background: #fff; }
@media (max-width: 760px) { footer .wrap { padding: 26px 20px; margin: 0 16px; width: auto; } }
footer .wrap { max-width: 1112px; margin: 0 auto; }
@media (max-width: 1160px) { footer .wrap { margin: 0 24px; } }
@media (max-width: 760px) { footer .wrap { margin: 0 16px; } }

/* Top menu: same lavender-to-blue as the footer card, slightly see-through so the blur still shows (4 Dec) */
nav.top { background: radial-gradient(ellipse at 0% 0%, rgba(169, 154, 239, .3), transparent 50%), linear-gradient(120deg, rgba(241, 236, 255, .92), rgba(233, 241, 255, .92)); border-bottom: 1px solid #D9D9E0; }
nav.top .nav-links { color: var(--text); }
