/* ============================================================
   CiaoSpeak marketing site — design tokens
   Palette: teal brand band (hero + CTA) bookending a warm paper
   body, mirroring the app icon's own teal-ground / cream-figure
   composition. Neumorphic card texture matches the app itself.
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/karla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/karla-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/notosanstc.woff2") format("woff2");
  unicode-range: U+3f, U+3001, U+4e86, U+4ec0, U+4f60, U+52a0, U+53eb, U+540d, U+5462, U+592a, U+597d, U+5b57, U+5b78, U+5e2b, U+68d2, U+6cb9, U+7df4, U+8001, U+8d77, U+97f3, U+9ebc, U+ff01, U+ff0c, U+ff1f;
}
@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/notosanstc.woff2") format("woff2");
  unicode-range: U+3f, U+3001, U+4e86, U+4ec0, U+4f60, U+52a0, U+53eb, U+540d, U+5462, U+592a, U+597d, U+5b57, U+5b78, U+5e2b, U+68d2, U+6cb9, U+7df4, U+8001, U+8d77, U+97f3, U+9ebc, U+ff01, U+ff0c, U+ff1f;
}

:root {
  /* --- brand constants (same family in both themes) --- */
  --teal: #2a9d8f;
  --teal-deep: #1b665c;
  --gold: #e2a63a;
  --ember: #e76f51;

  /* --- light theme --- */
  --ground: #f6f1e4;
  --surface: #fffdf8;
  --surface-sunken: #efe8d6;
  --ink: #1b2b28;
  --ink-muted: #5c6b63;
  --border: rgba(27, 43, 40, 0.1);
  --hero-from: #123832;
  --hero-to: #2a9d8f;
  --hero-ink: #fbf6ea;
  --hero-ink-muted: rgba(251, 246, 234, 0.78);
  --shadow-a: rgba(43, 36, 26, 0.12);
  --shadow-b: rgba(255, 255, 255, 0.9);
  --shadow-a-strong: rgba(43, 36, 26, 0.18);

  /* --- type scale --- */
  --font-display: "Bricolage Grotesque", "Noto Sans TC", system-ui, sans-serif;
  --font-body: "Karla", "Noto Sans TC", system-ui, sans-serif;
  --font-cjk: "Noto Sans TC", "Karla", system-ui, sans-serif;

  /* --- spacing scale --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;
  --space-9: 7.5rem;

  /* Vertical rhythm between stacked <section>s specifically — kept apart
     from --space-8 since that token is also used for one-off padding
     (hero, cta-band) that shouldn't move in lockstep with this. */
  --space-section: 3.25rem;

  /* --- shape --- */
  --radius-card: 24px;
  --radius-button: 18px;
  --radius-chip: 999px;
  --radius-bubble: 22px;

  --content-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1c2320;
    --surface: #252e2a;
    --surface-sunken: #171e1b;
    --ink: #f2ede0;
    --ink-muted: #b8c3bd;
    --border: rgba(242, 237, 224, 0.1);
    --hero-from: #0e2622;
    --hero-to: #1f7c6e;
    --hero-ink: #f7f2e6;
    --hero-ink-muted: rgba(247, 242, 230, 0.75);
    --shadow-a: rgba(0, 0, 0, 0.5);
    --shadow-b: rgba(255, 255, 255, 0.045);
    --shadow-a-strong: rgba(0, 0, 0, 0.65);
  }
}

:root[data-theme="dark"] {
  --ground: #1c2320;
  --surface: #252e2a;
  --surface-sunken: #171e1b;
  --ink: #f2ede0;
  --ink-muted: #b8c3bd;
  --border: rgba(242, 237, 224, 0.1);
  --hero-from: #0e2622;
  --hero-to: #1f7c6e;
  --hero-ink: #f7f2e6;
  --hero-ink-muted: rgba(247, 242, 230, 0.75);
  --shadow-a: rgba(0, 0, 0, 0.5);
  --shadow-b: rgba(255, 255, 255, 0.045);
  --shadow-a-strong: rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.hanzi {
  font-family: var(--font-cjk);
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: var(--space-4);
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ---------------- nav ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--teal);
  padding: 4px;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--teal);
}

a.nav-cta {
  display: none;
}

@media (min-width: 720px) {
  a.nav-cta {
    display: inline-flex;
  }
}

/* ---------------- buttons ---------------- */

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-button);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--teal);
  color: #fbf6ea;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--teal) 70%, transparent);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost-on-teal {
  background: color-mix(in srgb, var(--hero-ink) 14%, transparent);
  color: var(--hero-ink);
  border: 1px solid color-mix(in srgb, var(--hero-ink) 35%, transparent);
}

.btn-ghost-on-teal:hover {
  background: color-mix(in srgb, var(--hero-ink) 22%, transparent);
}

.btn-soft {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 6px 6px 14px var(--shadow-a), -6px -6px 14px var(--shadow-b);
}

.btn-soft:hover {
  filter: brightness(1.02);
}

/* ---------------- hero ---------------- */

.hero {
  background: linear-gradient(160deg, var(--hero-from), var(--hero-to) 75%);
  color: var(--hero-ink);
  padding-top: var(--space-8);
  padding-bottom: calc(var(--space-9) + 3rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.hero-eyebrow {
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem);
  margin-top: var(--space-4);
  color: var(--hero-ink);
}

.hero-sub {
  margin-top: var(--space-5);
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
  color: var(--hero-ink-muted);
  max-width: 42ch;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-note {
  margin-top: var(--space-5);
  font-size: 0.85rem;
  color: var(--hero-ink-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---- phone / chat mockup ---- */

.phone {
  background: var(--surface);
  border-radius: 28px;
  padding: var(--space-5);
  box-shadow: 22px 26px 60px -18px rgba(6, 20, 17, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transform: rotate(2.5deg);
  max-width: 380px;
  margin-inline: auto;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.phone-head img {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--teal);
  padding: 3px;
}

.phone-head strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
}

.phone-head small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.bubble-row {
  display: flex;
  margin-bottom: var(--space-3);
}

.bubble-row.from-ai {
  justify-content: flex-start;
}

.bubble-row.from-user {
  justify-content: flex-end;
}

.bubble {
  max-width: 82%;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-bubble);
  font-size: 0.92rem;
}

.from-ai .bubble {
  background: var(--surface-sunken);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.from-user .bubble {
  background: var(--teal);
  color: #fbf6ea;
  border-bottom-right-radius: 6px;
}

.bubble .zh {
  font-family: var(--font-cjk);
  font-weight: 500;
  font-size: 1.05rem;
}

.bubble .py {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.bubble .en {
  display: block;
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 0.3rem;
}

.correct-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--gold);
  color: #2b2109;
  font-size: 0.65rem;
  font-weight: 800;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.chip-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.reply-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-chip);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ---- stat strip ---- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 720px) {
  .stat-strip {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: center;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (max-width: 720px) {
  .stat-item {
    align-items: center;
  }
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  color: var(--teal);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--ink-muted);
  max-width: 32ch;
}

/* ---------------- sections ---------------- */

section {
  padding-block: var(--space-section);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.section-head .eyebrow {
  color: var(--teal-deep);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-head .eyebrow {
    color: color-mix(in srgb, var(--teal) 70%, white);
  }
}

:root[data-theme="dark"] .section-head .eyebrow {
  color: color-mix(in srgb, var(--teal) 70%, white);
}

.section-head h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  margin-top: var(--space-3);
  color: var(--ink);
}

.section-intro {
  margin-top: var(--space-3);
  color: var(--ink-muted);
  font-size: 1rem;
}

/* ---- feature grid ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-5);
  box-shadow: 10px 10px 24px var(--shadow-a), -10px -10px 24px var(--shadow-b);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
}

.feature-icon.tint-teal {
  background: color-mix(in srgb, var(--teal) 16%, var(--surface));
}

.feature-icon.tint-gold {
  background: color-mix(in srgb, var(--gold) 22%, var(--surface));
}

.feature-icon.tint-ember {
  background: color-mix(in srgb, var(--ember) 18%, var(--surface));
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- how it works ---- */

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 720px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-5) var(--space-6);
  box-shadow: 10px 10px 24px var(--shadow-a), -10px -10px 24px var(--shadow-b);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
  min-width: 2.2rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ---- niche / sticker aside ---- */

.aside {
  background: var(--surface-sunken);
  border-radius: 32px;
  padding: var(--space-7);
  position: relative;
  overflow: visible;
}

.aside-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 720px) {
  .aside-grid {
    grid-template-columns: 1fr;
  }
}

.aside blockquote {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink);
}

.aside p.support {
  margin-top: var(--space-4);
  color: var(--ink-muted);
  max-width: 56ch;
}

.sticker {
  background: var(--gold);
  color: #2b2109;
  border-radius: 20px;
  padding: var(--space-4) var(--space-5);
  transform: rotate(-6deg);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.08);
  text-align: center;
  justify-self: center;
}

.sticker .zh {
  font-family: var(--font-cjk);
  font-weight: 700;
  font-size: 1.6rem;
  display: block;
}

.sticker .py {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* ---- FAQ ---- */

.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.faq-item {
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

.faq-a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---- closing CTA ---- */

.cta-band {
  background: linear-gradient(155deg, var(--hero-from), var(--hero-to) 80%);
  color: var(--hero-ink);
  border-radius: 32px;
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.cta-band .eyebrow {
  color: var(--gold);
  justify-content: center;
}

.cta-band h2 {
  color: var(--hero-ink);
  margin-top: var(--space-3);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
}

.cta-band p {
  color: var(--hero-ink-muted);
  max-width: 46ch;
  margin: var(--space-4) auto 0;
}

.cta-form {
  margin-top: var(--space-6);
  max-width: 440px;
  margin-inline: auto;
}

.cta-form-row {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cta-input {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: 0.85rem 1.1rem;
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.12), inset -3px -3px 8px rgba(255, 255, 255, 0.06);
}

.cta-input::placeholder {
  color: var(--ink-muted);
}

.cta-input:focus {
  outline: none;
  border-color: var(--gold);
}

.formkit-alert {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  font-size: 0.85rem;
  text-align: center;
}

.formkit-alert:empty {
  display: none;
}

.cta-band .formkit-alert-error {
  color: #ffd9cc;
}

.cta-band .formkit-alert-success {
  color: var(--hero-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.mid-cta .formkit-alert-error {
  color: var(--ember);
}

.mid-cta .formkit-alert-success {
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ---- mid-page CTA card ---- */

.mid-cta {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-7);
  box-shadow: 10px 10px 24px var(--shadow-a), -10px -10px 24px var(--shadow-b);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 720px) {
  .mid-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.mid-cta h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
}

.mid-cta p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.mid-cta-form {
  margin-top: 0;
  max-width: 420px;
}

.mid-cta .cta-input {
  background: var(--surface-sunken);
  box-shadow: inset 3px 3px 8px var(--shadow-a), inset -3px -3px 8px var(--shadow-b);
}

@media (max-width: 720px) {
  .mid-cta-form {
    margin-inline: auto;
  }
}

.cta-fineprint {
  margin-top: var(--space-4);
  font-size: 0.82rem;
  color: var(--hero-ink-muted);
}

.cta-fineprint a {
  color: var(--hero-ink);
  text-decoration: underline;
}

/* ---------------- footer ---------------- */

footer {
  padding-block: var(--space-7);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  margin-bottom: var(--space-3);
}

.footer-brand p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0 0 var(--space-3);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------------- reveal-on-scroll ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .js-reveal-ready .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .js-reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- mobile nav ---------------- */

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: var(--space-2);
}

@media (min-width: 720px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
  }
}

.nav-links {
  display: none;
}

@media (max-width: 719px) {
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
    gap: var(--space-4);
  }
}
