/* Clanda product page. Palette and type follow the app's brand guide
   (docs/brand/DESIGN.md in the Clanda repo): navy ink on warm paper, with no
   accent color. Emphasis is a navy fill or weight, never a new hue. Fraunces
   sets SOFT to 100 and is loaded upright only, at 600. No italics anywhere. */

:root {
  --paper: #ECE5D6;
  --surface: #F6F1E7;
  --sunken: #E3DAC7;
  --ink: #1E2A46;
  --ink-2: #33405A;
  --ink-muted: #4A5468;
  --line: #D6CCB6;
  --rule: rgba(30, 42, 70, .06);

  --night: #121A2C;
  --night-surface: #1E2A46;
  --night-line: #2E3A57;
  --night-ink-2: #C9CFDB;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
* { font-style: normal; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
h1, h2, h3 {
  font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0;
  font-variation-settings: 'SOFT' 100;
}
p { margin: 0; }
strong { font-weight: 600; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 8px; }

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

/* ── Header ─────────────────────────────────────────── */

.cl-header { border-bottom: 1px solid var(--line); }
.cl-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px;
}
.cl-crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--ink-muted); text-decoration: none;
}
.cl-crumb:hover { color: var(--ink); }
.cl-crumb-current { color: var(--ink); font-weight: 600; }
.cl-header-cta {
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  border: 1px solid #8A8170; border-radius: 12px; padding: 6px 14px;
}
.cl-header-cta:hover { background: var(--surface); }

/* ── Shared bits ────────────────────────────────────── */

.eyebrow {
  font-size: 12px; font-weight: 600; line-height: 16px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 14px;
}
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(30px, 6vw, 40px); max-width: 20ch; letter-spacing: -0.02em; }
.section-lede { margin-top: 14px; max-width: 60ch; color: var(--ink-2); }

.play-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  padding: 12px 22px 12px 18px; border-radius: 12px; text-decoration: none;
  transition: background .15s ease;
}
.play-btn:hover { background: #0F1729; color: var(--paper); }
.play-btn svg { flex: none; }
.play-btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-btn-small { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: .85; }
.play-btn-name { font-size: 19px; font-weight: 600; }

/* ── Hero ───────────────────────────────────────────── */

/* Ruled paper, as on the store art: an address book's page. */
.hero {
  padding: 44px 0 56px; overflow: hidden;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
}
.hero-grid { display: grid; gap: 44px; }
.hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-brand img { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line); }
.hero-brand-name { font-family: var(--display); font-size: 26px; font-weight: 600; font-variation-settings: 'SOFT' 100; }

.hero h1 { font-size: clamp(42px, 11vw, 60px); line-height: 1.04; letter-spacing: -0.03em; max-width: 13ch; }
.hero-sub { margin-top: 20px; font-size: 19px; line-height: 30px; color: var(--ink-2); max-width: 36ch; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-cta-note { font-size: 14px; color: var(--ink-muted); }
.hero-facts {
  margin: 34px 0 0; padding: 18px 0 0; list-style: none;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--ink-muted);
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* A fixed-proportion stage: contacts in front, the PIN screen tilted behind,
   and a slip naming the two PINs pinned bottom-left. */
.hero-visual { position: relative; width: 100%; max-width: 440px; margin: 0 auto; padding: 0 0 28px; }
.phone { border-radius: 28px; overflow: hidden; background: var(--surface); border: 7px solid var(--ink); }
.phone img { width: 100%; }
.phone--front { position: relative; z-index: 1; width: 62%; margin-left: auto; }
.phone--back { position: absolute; z-index: 0; left: 2%; top: 9%; width: 50%; transform: rotate(-7deg); }
.hero-card {
  position: absolute; z-index: 2; left: 0; bottom: 4px;
  background: var(--ink); color: var(--paper); border-radius: 14px;
  padding: 12px 16px; width: min(240px, 64%);
}
.hero-card-row { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; padding: 4px 0; }
.hero-card-row svg { flex: none; }

/* ── Steps ──────────────────────────────────────────── */

.steps { display: grid; gap: 16px; margin-top: 36px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--sunken); font-size: 15px; font-weight: 600;
}
.step h3 { font-size: 23px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* ── Store screens ──────────────────────────────────── */

/* Six store mockups carry their own headlines, so they stay a scrolling rail
   at every width: in one row at desktop they would be too small to read. */
.shelf {
  margin-top: 36px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 70%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px var(--gutter) 18px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
  scrollbar-width: thin; scrollbar-color: var(--ink-muted) transparent;
}
.shelf figure { margin: 0; scroll-snap-align: center; }
.shelf img { border-radius: var(--radius); border: 1px solid var(--line); }
.shelf-hint { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }

/* ── The vault ──────────────────────────────────────── */

.vault { background: var(--night); color: var(--paper); }
.section + .vault, .vault + .section { border-top: 0; }
.vault .eyebrow { color: #9CA6BA; }
.vault .section-lede { color: var(--night-ink-2); }
.pins { display: grid; gap: 16px; margin-top: 36px; }
.pin { border-radius: var(--radius); padding: 24px; background: var(--night-surface); }
.pin--vault { background: var(--paper); color: var(--ink); }
.pin-head { display: flex; align-items: center; gap: 12px; }
.pin-head svg { flex: none; }
.pin h3 { font-size: 24px; }
.pin-dots { display: flex; gap: 8px; margin-top: 16px; }
.pin-dots span { width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.pin-list { list-style: none; padding: 0; margin: 14px 0 0; }
.pin-list li { padding: 10px 0; border-top: 1px solid var(--night-line); font-size: 16px; color: var(--night-ink-2); }
.pin--vault .pin-list li { border-top-color: var(--line); color: var(--ink-2); }
.vault-foot { margin-top: 22px; font-size: 15px; color: var(--night-ink-2); max-width: 70ch; }
.vault-foot a, .vault-foot a:hover { color: var(--paper); }

/* ── Features ───────────────────────────────────────── */

.features { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-icon {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 12px;
  background: var(--sunken); color: var(--ink);
  display: grid; place-items: center;
}
.feature h3 { font-size: 21px; }
.feature p { color: var(--ink-2); font-size: 16px; }

/* ── Who it's for ───────────────────────────────────── */

.people { display: grid; gap: 14px; margin-top: 36px; }
.person { padding: 22px; border-radius: var(--radius); background: var(--surface); }
.person h3 { font-size: 21px; }
.person p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ── Pricing ────────────────────────────────────────── */

.plans { display: grid; gap: 14px; margin-top: 36px; }
.plan {
  position: relative;
  border-radius: var(--radius); padding: 22px 24px; background: var(--surface);
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px;
}
.plan--feature { background: var(--ink); color: var(--paper); }
.plan-name { font-family: var(--display); font-size: 22px; font-weight: 600; font-variation-settings: 'SOFT' 100; }
.plan-price { font-family: var(--display); font-size: 30px; font-weight: 600; font-variation-settings: 'SOFT' 100; }
.plan-price span { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-muted); }
.plan-note { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); }
.plan--feature .plan-price span, .plan--feature .plan-note { color: var(--night-ink-2); }
.plan-tag {
  grid-column: 1 / -1; order: -1; justify-self: start;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); border-radius: 999px; padding: 3px 10px; margin-bottom: 6px;
}
.pricing-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }

/* ── Privacy ────────────────────────────────────────── */

.privacy { background: var(--surface); }
.section + .privacy { border-top: 0; }
.privacy + .section { border-top: 0; }
.privacy-grid { display: grid; gap: 30px; }
.privacy p + p { margin-top: 14px; }
.privacy-body { color: var(--ink-2); max-width: 62ch; margin-top: 18px; }
.ledger { background: var(--paper); border-radius: var(--radius); padding: 8px 20px; align-self: start; }
.ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-key { color: var(--ink-muted); }
.ledger-val { font-weight: 600; color: var(--ink); text-align: right; }

/* ── FAQ ────────────────────────────────────────────── */

.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }

/* ── Closing CTA ────────────────────────────────────── */

.closing { text-align: center; }
.closing img { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 20px; border: 1px solid var(--line); }
.closing .section-title { margin: 0 auto; }
.closing .section-lede { margin: 14px auto 0; }
.closing .play-btn { margin-top: 28px; }
.closing-legal { margin-top: 22px; font-size: 14px; color: var(--ink-muted); }

/* ── Footer ─────────────────────────────────────────── */

.cl-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--ink-muted); }
.cl-footer-inner { display: grid; gap: 14px; }
.cl-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cl-footer a { color: var(--ink-muted); }
.cl-footer a:hover { color: var(--ink); }

/* ── Wider screens ──────────────────────────────────── */

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .shelf { grid-auto-columns: 38%; }
  .pins { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .people { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan { grid-template-columns: 1fr; align-content: start; }
  .cl-footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .hero-visual { margin-right: 0; }
  .shelf { grid-auto-columns: 23.5%; margin-left: 0; margin-right: 0; padding: 4px 0 18px; }
  .people { grid-template-columns: repeat(4, 1fr); }
  .privacy-grid { grid-template-columns: 1.2fr 0.8fr; gap: 60px; }
}

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