/* JustSpeak — brand tokens from the "Organic" design system, retuned to the JustSpeak palette. */
:root {
  --color-bg: #f3efff;
  --color-surface: #e6defd;
  --color-text: #12123a;
  --color-divider: rgba(18, 18, 58, .22);
  --color-accent: #3b3bff;
  --color-accent-100: #e4e6ff;
  --color-accent-200: #c6caff;
  --color-accent-300: #9da3ff;
  --color-accent-600: #2f2ee0;
  --color-accent-700: #2421b5;
  --color-accent-800: #1a1788;
  --color-accent-2: #d6246e;
  --color-accent-2-100: #ffe1ee;
  --color-accent-2-200: #ffbcd8;
  --color-accent-2-800: #780c39;
  --color-neutral-700: #4e4775;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --gutter: 36px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -.015em;
  margin: 0;
}

a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--color-accent-2); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 400; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 999px;
  min-height: 64px; padding: 0 32px; font-size: 21px;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 52px; padding: 0 24px; font-size: 18px; }
.btn-light { background: var(--color-bg); color: var(--color-accent-800); }
.btn-light:hover { background: #fff; color: var(--color-accent-800); }
.btn-outline { border-color: var(--color-text); color: var(--color-text); }
.btn-outline:hover { background: color-mix(in srgb, var(--color-text) 8%, transparent); color: var(--color-text); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: color-mix(in srgb, #fff 14%, transparent); color: #fff; }
.btn-white { background: #fff; color: var(--color-accent-2-800); }
.btn-white:hover { color: var(--color-accent-2-800); background: var(--color-accent-2-100); }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn svg { flex: none; }

/* — hero: pink like the footer, so the page opens and closes on the same note — */
.hero {
  background: var(--color-accent-2);
  color: #fff;
  border-radius: 0 0 72px 72px;
  position: relative;
}
.site-header {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-block: 24px;
}
.brand {
  font-family: var(--font-heading); font-size: 28px; margin-right: auto;
  color: inherit; text-decoration: none;
}
.brand:hover { color: inherit; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: #fff; text-decoration: none; font-size: 18px; font-weight: 600; }
.site-header nav a:hover { text-decoration: underline; color: #fff; }

.hero-body { position: relative; padding-top: 40px; padding-bottom: 150px; }
.hero h1 {
  font-size: clamp(64px, 12vw, 196px);
  line-height: .88; letter-spacing: -.03em;
  color: #fff; max-width: 9ch;
}
.just-speak {
  display: inline-block; margin-top: 28px; transform: rotate(-3deg);
  background: var(--color-accent); color: #fff;
  font-family: var(--font-heading); font-size: clamp(44px, 8vw, 128px); line-height: 1;
  padding: .17em .375em .23em;
  border-radius: 90px 90px 90px 14px;
  box-shadow: 0 18px 0 var(--color-accent-2-800);
}
.hero-row { display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap; margin-top: 64px; }
.hero-row p { margin: 0; font-size: 24px; max-width: 28ch; color: var(--color-accent-2-100); text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; gap: 14px; }
.hero-actions .row { display: flex; gap: 14px; flex-wrap: wrap; }
.fine { font-size: 16px; color: var(--color-accent-100); margin: 0; }
.hero-row .fine { font-size: 18px; font-weight: 600; max-width: none; color: var(--color-accent-2-100); }
.fine a { color: #fff; }

.mic-badge {
  position: absolute; right: 48px; top: 30px;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--color-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transform: rotate(6deg);
  box-shadow: 0 14px 0 var(--color-accent-2-800);
}
.wave { display: flex; align-items: center; gap: 5px; height: 44px; }
.wave span {
  width: 8px; border-radius: 999px; background: var(--color-accent);
  transform-origin: center;
  animation: jsWave var(--d, 1s) ease-in-out var(--delay, 0s) infinite;
}
.wave span:nth-child(3n+2) { background: var(--color-accent-2); }

@keyframes jsWave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes jsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* — marquee: blue, so it stands off the pink hero — */
.marquee {
  margin-top: -46px; position: relative; transform: rotate(-1.5deg);
  background: var(--color-accent); color: #fff;
  padding: 22px 0; overflow: hidden;
  box-shadow: 0 10px 0 var(--color-text);
}
.marquee-track { display: flex; width: max-content; animation: jsMarquee 38s linear infinite; }
.marquee-run {
  display: flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: var(--font-heading); font-size: 44px; white-space: nowrap;
}
.marquee-run i { width: 18px; height: 18px; border-radius: 50%; background: #fff; flex: none; }

/* — you say / we type — */
.say { padding-top: 120px; padding-bottom: 100px; display: flex; flex-direction: column; gap: 36px; }
.kicker { font-size: 18px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kicker-2 { color: var(--color-accent-2); }
.kicker-1 { color: var(--color-accent); margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; max-width: 1000px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 28px; padding: 10px 22px; border-radius: 999px; background: var(--color-surface); }
.chips li.drop { background: var(--color-accent-2-100); color: var(--color-accent-2-800); text-decoration: line-through; }
.typed {
  margin: 0; font-family: var(--font-heading);
  font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -.02em; max-width: 14ch;
}

/* — how it works — */
.how {
  background: var(--color-text); color: var(--color-bg);
  border-radius: 72px; margin: 0 16px; scroll-margin-top: 24px;
}
.how-inner { max-width: 1100px; margin: 0 auto; padding: 100px var(--gutter); display: flex; flex-direction: column; gap: 26px; }
.how h2 { margin-bottom: 30px; font-size: clamp(44px, 6vw, 84px); line-height: .95; color: var(--color-bg); }
.bubble { font-size: 26px; padding: 22px 30px; margin: 0; }
.bubble.q {
  align-self: flex-end; max-width: 560px;
  background: var(--color-accent-2); color: #fff;
  border-radius: 44px 44px 10px 44px;
}
.bubble.a {
  align-self: flex-start; max-width: 640px;
  background: var(--color-bg); color: var(--color-text);
  border-radius: 44px 44px 44px 10px;
}
.bubble.a strong { font-family: var(--font-heading); font-weight: 400; color: var(--color-accent); }

/* — modes — */
.modes {
  padding-top: 120px; padding-bottom: 120px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px;
}
.mode {
  border-radius: 56px; padding: 44px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 14px 0 var(--color-text);
}
.mode h3 { font-size: 60px; line-height: 1.1; }
.mode p { margin: 0; font-size: 22px; }
.mode-clean { transform: rotate(-2deg); background: var(--color-accent); color: var(--color-bg); }
.mode-clean h3 { color: var(--color-bg); }
.mode-verbatim { transform: rotate(2deg); background: var(--color-accent-2-200); color: var(--color-text); margin-top: 36px; }
.pill {
  align-self: flex-start; background: var(--color-bg); color: var(--color-accent-800);
  font-size: 16px; font-weight: 800; padding: 6px 16px; border-radius: 999px;
}

/* — privacy — */
.privacy { padding-bottom: 120px; display: flex; flex-direction: column; gap: 20px; }
.privacy h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1; max-width: 16ch; }
.privacy h2 span { color: var(--color-accent-2); }
.privacy p { margin: 0; font-size: 22px; max-width: 46ch; color: var(--color-neutral-700); }

/* — pricing — */
.pricing { padding-bottom: 140px; display: flex; flex-direction: column; gap: 56px; scroll-margin-top: 24px; }
.pricing h2 { font-size: clamp(44px, 6vw, 84px); line-height: .95; }
.tags { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.tag {
  --rot: 0deg;
  width: 250px; height: 250px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px; position: relative;
  color: var(--color-text); text-decoration: none;
  transform: rotate(var(--rot));
  transition: transform .2s ease;
}
.tag:hover { color: inherit; transform: rotate(var(--rot)) translateY(-6px) scale(1.03); }
.tag .name { font-size: 18px; font-weight: 700; }
.tag .price { font-family: var(--font-heading); font-size: 68px; line-height: 1; }
.tag .per { font-size: 17px; }
.tag .cta { font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }
.tag-free { --rot: -5deg; background: var(--color-surface); }
.tag-monthly { --rot: 4deg; background: var(--color-accent-2-200); }
.tag-annual {
  --rot: -3deg; width: 290px; height: 290px;
  background: var(--color-accent); color: var(--color-bg);
  box-shadow: 0 14px 0 var(--color-text);
}
.tag-annual:hover { color: var(--color-bg); }
.tag-annual .price { font-size: 80px; }
.tag-lifetime { --rot: 6deg; background: var(--color-text); color: var(--color-bg); }
.tag-lifetime:hover { color: var(--color-bg); }
.best {
  position: absolute; top: -8px; right: -10px;
  background: var(--color-accent-2); color: #fff;
  font-size: 16px; font-weight: 800; padding: 8px 16px; border-radius: 999px;
  transform: rotate(12deg);
}
.sticker {
  position: absolute; top: -6px; left: -12px;
  background: var(--color-text); color: var(--color-bg);
  font-size: 15px; font-weight: 800; padding: 7px 14px; border-radius: 999px;
  transform: rotate(-10deg); white-space: nowrap;
}
.pricing-note strong { color: var(--color-text); }
.pricing-note { margin: 0; font-size: 18px; color: var(--color-neutral-700); max-width: 60ch; }

/* — footer — */
.site-footer { background: var(--color-accent-2); color: #fff; border-radius: 72px 72px 0 0; }
.footer-inner { padding-top: 100px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 48px; }
.site-footer h2 { font-size: clamp(52px, 11vw, 180px); line-height: .88; letter-spacing: -.03em; color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-right: auto; }
.footer-fine { font-size: 17px; font-weight: 600; color: #fff; }
.footer-row a:not(.btn) { color: #fff; font-size: 17px; }
.footer-row a:not(.btn):hover { color: var(--color-accent-2-100); }
.copyright { margin: 0; font-size: 15px; color: var(--color-accent-2-100); }

/* — simple inner pages (thanks, privacy, terms) — */
.page-hero { background: var(--color-accent); color: var(--color-bg); border-radius: 0 0 56px 56px; }
.page-hero .wrap { padding-bottom: 80px; }
.page-hero h1 { font-size: clamp(48px, 8vw, 104px); line-height: .95; color: var(--color-bg); margin-top: 24px; max-width: 14ch; }
.prose { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 120px; font-size: 19px; }
.prose h2 { font-size: 34px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--color-text); }
.prose li { margin-bottom: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li {
  counter-increment: s; background: var(--color-surface); border-radius: 32px;
  padding: 20px 24px 20px 76px; position: relative; margin: 0;
}
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-bg);
  display: grid; place-items: center; font-family: var(--font-heading); font-size: 20px;
}

/* — motion preference — */
@media (prefers-reduced-motion: reduce) {
  .wave span, .marquee-track { animation: none; }
  .btn, .tag { transition: none; }
}

/* — responsive — */
@media (max-width: 1240px) {
  .tags { justify-content: center; }
}
@media (max-width: 1100px) {
  .mic-badge { width: 200px; height: 200px; right: 24px; top: 0; }
  .mic-badge svg { width: 48px; height: 48px; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 18px; }
  .hero { border-radius: 0 0 44px 44px; }
  .site-header { gap: 12px; flex-wrap: nowrap; }
  .site-header nav { display: none; }
  .brand { font-size: 24px; }
  .site-header .btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
  .hero-body { padding-top: 24px; padding-bottom: 110px; }
  .mic-badge { position: relative; right: auto; top: auto; width: 150px; height: 150px; gap: 8px; margin: 0 0 28px auto; box-shadow: 0 10px 0 var(--color-accent-800); }
  .mic-badge svg { width: 40px; height: 40px; }
  .mic-badge .wave { height: 30px; gap: 4px; }
  .mic-badge .wave span { width: 6px; }
  .just-speak { box-shadow: 0 12px 0 var(--color-accent-800); border-radius: 60px 60px 60px 12px; }
  .hero-row { margin-top: 44px; gap: 28px; }
  .hero-row p { font-size: 21px; }
  .hero-actions .btn { width: 100%; }
  .marquee-run { font-size: 30px; gap: 24px; padding-right: 24px; }
  .marquee-run i { width: 12px; height: 12px; }
  .say { padding-top: 88px; padding-bottom: 72px; gap: 24px; }
  .chips li { font-size: 22px; padding: 8px 18px; }
  .how { border-radius: 44px; margin: 0 8px; }
  .how-inner { padding-block: 72px; gap: 18px; }
  .bubble { font-size: 20px; padding: 18px 22px; }
  .modes { padding-block: 88px; gap: 28px; }
  .mode { border-radius: 40px; padding: 32px 28px; }
  .mode h3 { font-size: 44px; }
  .mode p { font-size: 19px; }
  .mode-verbatim { margin-top: 0; }
  .privacy { padding-bottom: 88px; }
  .privacy p { font-size: 19px; }
  .pricing { padding-bottom: 100px; gap: 40px; }
  .tags { justify-content: center; gap: 14px 10px; }
  .tag { width: 160px; height: 160px; gap: 2px; }
  .tag .name { font-size: 14px; }
  .tag .price { font-size: 44px; }
  .tag .per, .tag .cta { font-size: 13px; }
  .tag-annual { width: 172px; height: 172px; box-shadow: 0 8px 0 var(--color-text); }
  .tag-annual .price { font-size: 50px; }
  .best { font-size: 12px; padding: 5px 10px; top: -6px; right: -6px; }
  .sticker { font-size: 12px; padding: 5px 10px; top: -6px; left: -6px; }
  .site-footer { border-radius: 44px 44px 0 0; }
  .footer-inner { padding-top: 72px; }
  .footer-cta { width: 100%; margin-right: 0; }
  .footer-cta .btn { width: 100%; }
  .footer-fine { font-size: 15px; }
  .page-hero { border-radius: 0 0 40px 40px; }
  .prose { padding-top: 48px; font-size: 18px; }
}

/* — logo — */
.brand img { display: block; height: 53px; width: auto; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { height: 48px; width: auto; }
@media (max-width: 860px) {
  .brand img { height: 44px; }
}

/* — landing pages (rendered by the server from src/pages.ts) — */
.hero-page .hero-body { padding-top: 32px; padding-bottom: 96px; }
.hero-page h1 { font-size: clamp(44px, 7vw, 104px); line-height: .92; max-width: 15ch; }
.hero-page .hero-row { margin-top: 40px; }
.lp h2 { margin-top: 56px; }
.lp ul { padding-left: 22px; }
.lp li strong { color: var(--color-accent-700); }
.lp .steps li strong { color: inherit; }
.compare { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 17px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.compare th { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); }
.compare td:first-child { font-weight: 600; width: 32%; }
.compare td:nth-child(2) { background: var(--color-accent-100); }
.fine-print { font-size: 15px; color: var(--color-neutral-700); }
.faq { margin: 0; display: flex; flex-direction: column; }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--color-neutral-700); }
.pricing-notes { display: flex; flex-direction: column; gap: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .35); }
.footer-links .ft { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-2-100); }
.footer-links a { display: block; color: #fff; font-size: 17px; text-decoration: none; margin-bottom: 8px; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 860px) {
  .hero-page h1 { font-size: clamp(38px, 10vw, 60px); }
  .hero-page .hero-body { padding-bottom: 72px; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .compare { font-size: 15px; }
  .compare th, .compare td { padding: 10px 8px; }
}

/* — demo video — */
.watch { padding-top: 110px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; scroll-margin-top: -84px; }
.watch h2 { font-size: clamp(44px, 6vw, 84px); line-height: .95; }
.watch-sub { margin: 0; font-size: 20px; color: var(--color-neutral-700); }
.video-card { width: 100%; max-width: 1100px; margin-top: 20px; border-radius: 40px; overflow: hidden; background: var(--color-text); box-shadow: 0 14px 0 var(--color-text); aspect-ratio: 16 / 9; }
.video-card video { display: block; width: 100%; height: 100%; }
@media (max-width: 860px) {
  .watch { padding-top: 72px; }
  .watch-sub { font-size: 17px; }
  .video-card { border-radius: 24px; box-shadow: 0 8px 0 var(--color-text); }
}
