/* =========================================================================
   Kitab landing — "The Reading Room, Lit"
   Daylight, warm-paper marketing surface. The product (the dim reading room)
   appears as crisp dark objects sitting in the light. Green is the one
   rationed signal, carried over from the app where it means "live / indexed".
   ========================================================================= */

:root {
  /* --- Paper ground (warm, faintly green-tinted off-white) --- */
  --paper: oklch(0.965 0.012 95);
  --paper-2: oklch(0.94 0.014 96);   /* alternating / inset sections */
  --paper-3: oklch(0.985 0.008 95);  /* lifted surfaces on paper */

  /* --- Ink ladder (warm near-black, never #000) --- */
  --ink: oklch(0.255 0.014 78);
  --ink-2: oklch(0.40 0.013 80);
  --ink-3: oklch(0.52 0.012 84);
  --ink-faint: oklch(0.62 0.010 88);

  /* --- Hairlines on paper --- */
  --line: oklch(0.88 0.012 92);
  --line-strong: oklch(0.80 0.013 92);

  /* --- The one saturated signal --- */
  --green: oklch(0.74 0.142 159);
  --green-deep: oklch(0.55 0.10 162);
  --sage: oklch(0.74 0.045 142);

  /* --- Dark reading-room palette (for product mockups + drenched fold) --- */
  --rr-shell: #1e1e1e;
  --rr-panel: #282828;
  --rr-toolbar: #3b3b3b;
  --rr-stage: #3c3c3c;
  --rr-raised: #323232;
  --rr-overlay: #262626;
  --rr-seam: #1a1a1a;
  --rr-border: #3a3a3a;
  --rr-border-strong: #505050;
  --rr-text: #e8e8e8;
  --rr-text-2: #c8c8c8;
  --rr-text-3: #909090;
  --rr-label: #888888;
  --rr-parchment: #d0d8cc;
  --rr-parchment-ink: #1a1c18;
  --rr-cite: #9aa7c0;
  --rr-green: #35c186;

  /* The deep green-black for the privacy fold (the room at night) */
  --night: oklch(0.205 0.018 168);
  --night-2: oklch(0.255 0.022 168);
  --night-line: oklch(0.34 0.022 168);
  --night-text: oklch(0.90 0.012 120);
  --night-text-2: oklch(0.74 0.018 130);

  /* --- Type --- */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* fluid display scale, perfect-fourth-ish, bounded max <= ~2.5x min */
  --step-hero: clamp(2.85rem, 1.6rem + 5.4vw, 5.1rem);
  --step-h2: clamp(2rem, 1.35rem + 2.7vw, 3.25rem);
  --step-h3: 1.3rem;
  --step-lead: clamp(1.1rem, 1.02rem + 0.4vw, 1.32rem);
  --step-body: 1.0625rem;
  --step-sm: 0.875rem;
  --step-xs: 0.78rem;

  /* --- Space scale (4pt base) --- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-32: 128px;

  /* --- Motion --- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --shell-max: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
}

/* ========================= Reset & base ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.62;
  font-weight: 400;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.18s var(--ease-out-quart);
}
.skip-link:focus {
  top: 16px;
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ========================= Shared type bits ========================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin: 0 0 var(--s-4);
}
.kicker--light {
  color: var(--night-text-2);
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.section-title {
  font-size: var(--step-h2);
  font-weight: 700;
  line-height: 1.04;
  max-width: 18ch;
}
.section-title--light {
  color: var(--night-text);
}

/* status dot — the app's quiet heartbeat, reused as the "local" signal */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex: none;
  display: inline-block;
}
.status-dot--live {
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--green) 22%, transparent);
}

/* ========================= Buttons ========================= */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--step-sm);
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.12s var(--ease-out-quart),
    background-color 0.18s var(--ease-out-quart),
    border-color 0.18s var(--ease-out-quart);
}
.btn--lg {
  padding: 15px 26px;
  font-size: 1rem;
}
.btn--primary:hover {
  --bg: oklch(0.32 0.016 78);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: color-mix(in oklch, var(--ink) 5%, transparent);
}

/* ========================= Header / nav ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease-out-quart),
    background-color 0.25s var(--ease-out-quart);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark__mark {
  --mark-green: var(--green);
  display: inline-flex;
  width: 1.45em;
  height: 1.45em;
  color: var(--ink);
}
.wordmark__mark svg {
  width: 100%;
  height: 100%;
}
.nav__links {
  display: flex;
  gap: var(--s-6);
  margin-left: auto;
  font-size: var(--step-sm);
  font-weight: 500;
  color: var(--ink-2);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.16s var(--ease-out-quart);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__cta {
  padding: 9px 16px;
}

/* ========================= Hero ========================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.hero__title {
  font-size: var(--step-hero);
  font-weight: 700;
  line-height: 0.98;
  margin: var(--s-3) 0 var(--s-6);
  max-width: 14ch;
}
.hero__lead {
  margin-bottom: var(--s-8);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step-sm);
  color: var(--ink-3);
}

/* ---- The product window (reading room, lit) ---- */
.hero__stage {
  perspective: 1600px;
}
.app-window {
  background: var(--rr-shell);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rr-seam);
  box-shadow: 0 2px 4px rgba(40, 35, 20, 0.06),
    0 28px 64px -24px rgba(40, 35, 20, 0.42),
    0 60px 120px -60px rgba(40, 35, 20, 0.3);
  font-family: var(--font-body);
  color: var(--rr-text-2);
  transform: rotateY(-1.2deg) rotateX(1deg);
  transform-origin: center;
}
.app-titlebar {
  position: relative;
  height: 38px;
  background: var(--rr-toolbar);
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--rr-seam);
}
.traffic {
  display: inline-flex;
  gap: 7px;
}
.traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #5c5c5c;
}
.app-titlebar__name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--rr-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
.app-toolbar {
  height: 42px;
  background: var(--rr-toolbar);
  border-bottom: 1px solid var(--rr-seam);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.app-toolbar__group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tbtn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--rr-text-3);
  font-size: 14px;
}
.tbtn--active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.app-toolbar__page {
  font-size: 11px;
  color: var(--rr-text-3);
  margin-left: 4px;
}
.sidecar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--rr-text-2);
  background: var(--rr-raised);
  border: 1px solid var(--rr-border);
  padding: 4px 9px;
  border-radius: 6px;
}
.app-body {
  display: grid;
  grid-template-columns: 78px 1fr 232px;
  min-height: 372px;
}
.app-pane {
  background: var(--rr-panel);
  padding: 12px 12px;
}
.app-pane--left {
  border-right: 1px solid var(--rr-seam);
}
.app-pane--right {
  border-left: 1px solid var(--rr-seam);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.app-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-label);
  margin: 2px 0 10px;
}
.thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thumb {
  height: 64px;
  border-radius: 4px;
  background: var(--rr-stage);
  border: 1px solid var(--rr-border);
}
.thumb--active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

/* the lit center of the room */
.app-stage {
  background: var(--rr-stage);
  display: flex;
  justify-content: center;
  padding: 22px 18px;
}
.page {
  background: #f3f0e9;
  color: #2a2722;
  border-radius: 3px;
  padding: 22px 22px 26px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  font-size: 11.5px;
  line-height: 1.62;
}
.page__h {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: #1c1a16;
}
.page p + p {
  margin-top: 10px;
}
.page__selected {
  background: var(--rr-parchment);
  color: var(--rr-parchment-ink);
  border-radius: 3px;
  padding: 6px 8px;
  margin-inline: -8px;
  box-decoration-break: clone;
}

/* chat panel */
.msg {
  font-size: 11.5px;
  line-height: 1.5;
  border-radius: 9px;
  padding: 9px 11px;
}
.msg--user {
  background: var(--rr-raised);
  color: var(--rr-text);
  align-self: flex-end;
  max-width: 90%;
}
.msg--ai {
  background: transparent;
  color: var(--rr-text-2);
  padding-inline: 2px;
}
.msg--ai em {
  color: var(--rr-text);
  font-style: italic;
}
.cite {
  font-family: var(--font-mono);
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
  color: var(--rr-cite);
  background: #2a2a2a;
  border: 1px solid var(--rr-border);
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 2px;
}
.ctx-badge {
  margin-top: auto;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 600;
  color: #7fca8a;
  background: #314235;
  border-radius: 999px;
  padding: 4px 10px;
}

/* ========================= How it works ========================= */
.how {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 128px);
}
.how__body {
  margin-top: var(--s-6);
}

.reader-closeup {
  background: var(--rr-stage);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--rr-seam);
  box-shadow: 0 28px 64px -30px rgba(40, 35, 20, 0.4);
}
.page--closeup {
  max-width: none;
  font-size: 14px;
  position: relative;
  padding-bottom: 30px;
}
.page__selected--lift {
  font-size: 14px;
}
.action-menu {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  background: var(--rr-overlay);
  border: 1px solid var(--rr-border);
  border-radius: 9px;
  padding: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.action {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--rr-text-2);
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 7px 11px;
  cursor: default;
}
.action--primary {
  background: var(--rr-parchment);
  color: var(--rr-parchment-ink);
  font-weight: 600;
}
.answer-strip {
  margin-top: 30px;
  background: var(--rr-overlay);
  border: 1px solid var(--rr-border);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--rr-text-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.answer-strip__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-label);
  margin-bottom: 8px;
}
.answer-strip__cite {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--rr-cite);
  font-family: var(--font-mono);
}
.cite--soft {
  background: transparent;
  border-color: transparent;
  color: var(--rr-cite);
  padding-left: 1px;
}

/* ========================= Capabilities ========================= */
.caps {
  padding-block: clamp(40px, 6vw, 88px);
}
.caps__head {
  max-width: 30ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.caps__head .section-title {
  max-width: 22ch;
}
.caps__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap {
  background: var(--paper);
  padding: clamp(24px, 3vw, 38px);
}
.cap--wide {
  grid-column: span 2;
}
.cap__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.cap h3 {
  font-size: var(--step-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.cap p {
  color: var(--ink-2);
  max-width: 52ch;
}
.cap__inline {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: var(--step-sm);
  color: var(--ink);
}
.cap__inline .cite--soft {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.72em;
  vertical-align: super;
}
.cap--cards {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0.85fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}
.flashcard {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  font: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  perspective: 1100px;
  transition: transform 0.2s var(--ease-out-quart);
}
.flashcard:hover {
  transform: translateY(-2px);
}
.flashcard:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 4px;
}
.flashcard__inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.62s var(--ease-out-expo);
}
.flashcard.is-flipped .flashcard__inner {
  transform: rotateY(180deg);
}
.flashcard__face {
  grid-area: 1 / 1;
  position: relative;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 156px;
  background: var(--rr-overlay);
  border: 1px solid var(--rr-border);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px -24px rgba(40, 35, 20, 0.5);
  transition: border-color 0.18s var(--ease-out-quart);
}
.flashcard__face--back {
  transform: rotateY(180deg);
}
.flashcard:hover .flashcard__face {
  border-color: var(--rr-border-strong);
}
.flashcard .flashcard__q {
  font-family: var(--font-display);
  color: var(--rr-text);
  font-weight: 600;
  font-size: 15px;
  padding-right: 40px;
}
.flashcard .flashcard__a {
  color: var(--rr-text-2);
  font-size: 13px;
  line-height: 1.5;
  padding-right: 40px;
}
.flashcard__src {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--rr-cite);
}
.flashcard__hint {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--rr-text-3);
  transition: color 0.18s var(--ease-out-quart);
}
.flashcard:hover .flashcard__hint {
  color: var(--rr-text-2);
}
.flashcard__hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rr-green);
  flex: none;
}

/* ========================= Privacy (drenched dark fold) ========================= */
.privacy {
  background: var(--night);
  color: var(--night-text);
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 80px);
}
.privacy::before {
  /* a soft lamp over the room */
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    closest-side,
    color-mix(in oklch, var(--green) 16%, transparent),
    transparent 70%
  );
  pointer-events: none;
}
.privacy__inner {
  position: relative;
  padding-block: clamp(64px, 9vw, 128px);
}
.privacy__head {
  max-width: 60ch;
}
.privacy__lead {
  margin-top: var(--s-6);
  font-size: var(--step-lead);
  line-height: 1.6;
  color: var(--night-text-2);
  max-width: 58ch;
}
.privacy__points {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
  border-top: 1px solid var(--night-line);
  padding-top: clamp(28px, 3vw, 44px);
}
.privacy__points li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.privacy__k {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--night-text);
}
.privacy__points p {
  color: var(--night-text-2);
  font-size: var(--step-sm);
  line-height: 1.6;
}
.index-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(36px, 4vw, 56px);
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: var(--step-sm);
  color: var(--night-text);
}
.index-chip__bar {
  width: 80px;
  height: 5px;
  border-radius: 999px;
  background: var(--night-line);
  overflow: hidden;
}
.index-chip__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
}

/* ========================= Audience ========================= */
.audience {
  padding-block: clamp(72px, 10vw, 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.audience__lead-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.audience__statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1rem + 3vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: var(--s-4) 0 var(--s-8);
}
.audience__note {
  max-width: 54ch;
}

/* ========================= Closing / download ========================= */
.closing {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.closing__inner {
  padding-block: clamp(64px, 9vw, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing__title {
  font-size: var(--step-h2);
  font-weight: 700;
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: var(--s-8);
}
.closing__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
.closing__meta {
  font-size: var(--step-sm);
  color: var(--ink-3);
}

/* ========================= Footer ========================= */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  padding-block: var(--s-8);
}
.wordmark--footer {
  font-size: 1.05rem;
}
.footer__line {
  font-size: var(--step-sm);
  color: var(--ink-3);
}
.footer__links {
  display: flex;
  gap: var(--s-6);
  margin-left: auto;
  font-size: var(--step-sm);
  color: var(--ink-2);
}
.footer__links a:hover {
  color: var(--ink);
}

/* ========================= Reveal on scroll ========================= */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.72s var(--ease-out-expo),
    transform 0.72s var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}
.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========================= Responsive ========================= */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__title {
    max-width: 16ch;
  }
  .how {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .privacy__points {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
  .caps__grid {
    grid-template-columns: 1fr;
  }
  .cap--wide {
    grid-column: span 1;
  }
  .cap--cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .app-body {
    grid-template-columns: 1fr 200px;
  }
  .app-pane--left {
    display: none;
  }
}

@media (max-width: 480px) {
  .app-body {
    grid-template-columns: 1fr;
  }
  .app-pane--right {
    display: none;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

/* ========================= Reduced motion ========================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .app-window {
    transform: none;
  }
  /* Flashcard: crossfade instead of a 3D flip */
  .flashcard__inner {
    transform: none !important;
  }
  .flashcard__face {
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    transition: opacity 0.12s linear;
  }
  .flashcard__face--back {
    transform: none;
    opacity: 0;
  }
  .flashcard.is-flipped .flashcard__face--front {
    opacity: 0;
  }
  .flashcard.is-flipped .flashcard__face--back {
    opacity: 1;
  }
  .flashcard:hover {
    transform: none;
  }
}
