/* Speakzy — Lime Theme
   Tokens and components per design_files/SPEAKZY_DESIGN_SYSTEM.md */

:root {
  /* surfaces */
  --bg:            #FFFFFF;
  --surface:       #FFFFFF;
  --surface-muted: #F7F7F8;
  --fill:          #F4F4F5;
  --fill-hover:    #E8E8EB;

  /* ink */
  --ink:           #111113;
  --ink-muted:     #6B6B70;
  --ink-subtle:    #8E8E94;

  /* accent */
  --lime:          #D2E85B;
  --lime-hover:    #C5DE41;
  --lime-soft:     #EDF4C4;
  --periwinkle:    #8B85F5;
  --periwinkle-ink:#6C63F0;

  /* lines */
  --border:        #E6E6E9;
  --border-soft:   #ECECEF;
  --track:         #F0F0F2;
  --input-border:  #E2E2E6;

  /* radii */
  --r-card:   20px;
  --r-panel:  16px;
  --r-btn:    14px;
  --r-btn-sm: 13px;
  --r-pill:   999px;

  /* layout */
  --page:     1120px;
  --gutter:   24px;

  --ease: 140ms ease;

  /* fixed (do not flip with the theme) */
  --ink-solid:     #111113;
  --on-lime:       #111113;

  /* theme-aware helpers */
  --track-strong:  #E4E4E8;
  --track-soft:    #EDEDF0;
  --shimmer:       rgba(255, 255, 255, 0.65);
  --player-btn-bg: #111113;
  --player-btn-fg: var(--lime);
  --footer-bg:     #111113;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:            #1A1A1D;
  --surface:       #232327;
  --surface-muted: #2A2A2F;
  --fill:          #2E2E33;
  --fill-hover:    #3A3A40;

  --ink:           #F4F4F5;
  --ink-muted:     #A1A1A8;
  --ink-subtle:    #8E8E94;

  --lime-soft:     #434C1D;
  --periwinkle-ink:#A9A4FF;

  --border:        #38383E;
  --border-soft:   #303036;
  --track:         #38383E;
  --input-border:  #44444B;

  --track-strong:  #46464D;
  --track-soft:    #38383E;
  --shimmer:       rgba(255, 255, 255, 0.10);
  --player-btn-bg: var(--lime);
  --player-btn-fg: #111113;
  --footer-bg:     #121214;

  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--periwinkle-ink); }

:focus-visible {
  outline: 2px solid var(--periwinkle);
  outline-offset: 2px;
}

.shell {
  max-width: var(--page);
  margin: 0 auto;
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Type ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--periwinkle);
}
.eyebrow--neutral { color: var(--ink-subtle); }
.eyebrow--hero {
  font-size: 12px;
  letter-spacing: 0.22em;
}
.eyebrow--step {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-wrap: pretty;
}
.h2--sm { font-size: clamp(24px, 3.2vw, 34px); }

/* ---------- Buttons ---------- */

.btn {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-pill);
  padding: 17px 34px;
  min-height: 56px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn--primary { background: var(--lime); color: var(--on-lime); }
.btn--primary:hover { background: var(--lime-hover); color: var(--on-lime); }

.btn--invert { background: var(--ink-solid); color: var(--lime); padding: 17px 32px; }
.btn--invert:hover { background: #2A2A2E; color: var(--lime); }

.btn--outline {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--input-border);
  font-weight: 600;
  padding: 17px 28px;
}
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

.btn--nav {
  font-size: 14px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--r-pill);
  gap: 0;
}

.arrow { font-size: 18px; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
}
.header__inner {
  min-height: 64px;
  padding-top: 32px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}

/* Wordmark-only identity (LOGO_KIT.md). Stacked on desktop, horizontal on mobile and in footers.
   Plus Jakarta Sans 800. Tracking: -0.04em at 18-39px. Never add a symbol beside it. */
.logo { display: flex; align-items: center; }
.logo:hover { color: var(--ink); }
.logo__stacked {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.logo__horizontal { display: none; }
.logo__tld { color: var(--periwinkle); }

/* Landing: wordmark only, no rule, scrolls away with the page */
.header--plain { position: static; background: transparent; }

.header__right { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.theme-toggle:hover { background: var(--fill); color: var(--ink); }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 10px 12px;
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); }

.header__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 10px 12px;
  white-space: nowrap;
  transition: color var(--ease);
}
.tab-link:hover { color: var(--ink); }
.tab-link.is-active { color: var(--ink); font-weight: 700; }
.tab-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--lime);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
}
.hero__title {
  margin: 0;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: pretty;
  max-width: 15ch;
}
.hero__sub {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 46ch;
  padding: 0 clamp(16px, 4vw, 40px);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
}

/* ---------- Sections ---------- */

.section { padding-bottom: clamp(48px, 7vw, 88px); }
.section--stack {
  padding-top: clamp(48px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- How it works ---------- */

.band { background: transparent; }
.band__inner {
  position: relative;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}
.band__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--border-soft);
}
.step { display: flex; flex-direction: column; gap: 12px; }
.step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ---------- Section head ---------- */

.section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 46ch;
}
.section__head--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  max-width: none;
}
.section__aside { font-size: 14px; color: var(--ink-muted); }

/* ---------- Metric cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.grid--prompts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.metric__value {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.metric__number {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.metric__unit { font-size: 14px; color: var(--ink-muted); }
.metric__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.bar {
  width: 100%;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--track);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--ink);
}
.bar__fill--lime { background: var(--lime); }

/* ---------- Prompt examples ---------- */

.section--prompts {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 132px;
}
.example p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  text-wrap: pretty;
}

/* ---------- Commitment ---------- */

.commit {
  background: var(--lime);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.commit__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 52ch;
}
.commit__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--on-lime);
}
.commit__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-lime);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal__title {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.legal__meta { margin: 0 0 8px; font-size: 14px; color: var(--ink-subtle); }
.legal .legal__lead {
  margin: 0 0 8px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--ink);
}
.legal h2 {
  margin: 28px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.legal p,
.legal li { font-size: 16px; line-height: 1.7; color: var(--ink-muted); }
.legal p { margin: 0; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--periwinkle); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--periwinkle-ink); font-weight: 600; }
.legal a:hover { color: var(--ink); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border-soft); }
.footer__inner {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 28ch;
}
.footer__link { font-size: 15px; color: var(--ink-muted); }
.footer__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.subscribe {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.input {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: var(--r-btn-sm);
  padding: 14px 16px;
  min-height: 50px;
  outline: none;
  flex: 1 1 180px;
  min-width: 0;
  transition: border-color var(--ease);
}
.input::placeholder { color: var(--ink-subtle); }
.input:focus { border-color: var(--periwinkle); }

.btn--subscribe {
  font-size: 15px;
  padding: 14px 26px;
  min-height: 50px;
  border-radius: var(--r-pill);
  flex: none;
  gap: 0;
}

/* Honeypot: off-screen, not display:none, so simple bots still fill it in */
.subscribe__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.subscribe__ack {
  margin: -4px 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.subscribe__ack[hidden] { display: none; }

.divider { height: 1px; background: var(--border-soft); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer__legal span,
.footer__legal a { font-size: 13px; color: var(--ink-subtle); }
.footer__legal-links { display: flex; gap: 20px; }

/* Footer on ink: the kit's primary ground for the wordmark */
.footer {
  background: var(--footer-bg);
  color: #fff;
  border-top: none;
}
.footer__inner {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: 24px;
  gap: 24px;
}
.footer__cols { margin-bottom: 24px; }
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 64px;
}
.footer__col:first-child { flex: 1 1 260px; }
.footer__col:last-child { flex: 1 1 340px; max-width: 460px; }
.footer .wordmark { font-size: 28px; color: #fff; }
.footer__blurb { color: #A1A1A8; font-size: 15px; max-width: 30ch; }
.footer__text { color: #D4D4D8; }
/* Email field and button read as one connected pill */
.footer .subscribe {
  flex-wrap: nowrap;
  gap: 0;
  padding: 5px;
  background: #1C1C1F;
  border: 1px solid #2E2E33;
  border-radius: var(--r-pill);
  transition: border-color var(--ease);
}
.footer .subscribe:focus-within { border-color: var(--periwinkle); }
.footer .input {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  padding: 0 16px 0 20px;
  min-height: 46px;
}
.footer .input::placeholder { color: #8E8E94; }
.footer .btn--subscribe { min-height: 46px; padding: 0 26px; }
.footer .btn--subscribe:disabled { opacity: 0.6; cursor: progress; }
.footer .subscribe__ack { color: #A1A1A8; }
.footer .divider { background: #2A2A2E; }
.footer__legal span,
.footer__legal a { color: #8E8E94; }
.footer__legal a:hover { color: #fff; }

@media (max-width: 560px) {
  .header__inner { min-height: 56px; padding: 24px 20px 14px; }
  .logo__stacked { display: none; }
  .logo__horizontal { display: block; }
  .nav { width: 100%; justify-content: flex-start; gap: 4px 8px; }
  .nav__link { padding: 8px 0; }
  .btn--nav { width: 100%; margin-top: 4px; }
  .header__meta { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
