/* Giftli landing — one stylesheet for every page.
   Palette and type follow docs/app-store/PLAN.md §3. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --dark: #000000;
  --dark-2: #1d1d1f;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #a1a1a6;
  --accent: #ff5a1f;
  --accent-ink: #c2410c; /* accent as small text on white: 5.2:1 */
  --accent-soft: #fff1ea;
  --accent-btn: #cc4819; /* button fill under white text: 4.7:1 */
  --accent-btn-hover: #b93c0b;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --text: 720px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 13vw, 176px);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  /* Soft spring for drop-ins and selection: small overshoot, settles fast. */
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%,
    1.067, 1.099 24.3%, 1.108 26%, 1.103, 1.085 30.9%, 1.023 37.5%, 0.998 43.4%, 0.991 48.6%, 1);

  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.06), 0 2px 8px rgb(0 0 0 / 0.04);
  --shadow-2: 0 2px 4px rgb(0 0 0 / 0.04), 0 12px 32px rgb(0 0 0 / 0.08), 0 32px 64px rgb(0 0 0 / 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), var(--text)); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: inherit; text-wrap: balance; }
.display {
  font-size: clamp(48px, 9.2vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.h2 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.h3 { font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
.lead {
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 20px 0 0;
}
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  transition-property: scale, background-color, color;
  transition-duration: 150ms; transition-timing-function: ease-out;
}
.btn:not(:disabled):active { scale: 0.96; }
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-ghost { color: var(--accent-ink); background: transparent; padding-inline: 12px; }
.on-dark .btn-ghost { color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
@media (hover: hover) {
  .btn-ghost:hover { text-decoration: underline; }
  .btn-primary:hover { background: var(--accent-btn-hover); }
  .btn-dark:hover { background: #000; }
}
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 8px; align-items: center; margin-top: 32px; }
.center .actions, .hero .actions, .final .actions { justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 56px;
  transition-property: background-color, box-shadow, color;
  transition-duration: 300ms; transition-timing-function: var(--ease-out);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav.is-scrolled {
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.08);
}
.nav.is-dark { color: var(--dark-ink); }
.nav.is-dark.is-scrolled { background: rgb(22 22 23 / 0.72); box-shadow: 0 1px 0 rgb(255 255 255 / 0.08); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 14px; }
.nav-links a { color: inherit; text-decoration: none; opacity: 0.8; transition: opacity 150ms ease-out; }
@media (hover: hover) { .nav-links a:hover { opacity: 1; } }
.nav .btn { margin-left: 8px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .lead, .section-dark .muted { color: var(--dark-ink-2); }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }

/* ---------- Reveal (IntersectionObserver adds .is-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; translate: 0 24px; filter: blur(4px);
    transition-property: opacity, translate, filter;
    transition-duration: 700ms; transition-timing-function: var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 0; transition: opacity 400ms ease-out; }
  .js [data-reveal].is-in { opacity: 1; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(56px + clamp(56px, 10vw, 128px)); padding-bottom: clamp(64px, 8vw, 112px); text-align: center; overflow: clip; }
.hero .lead { max-width: 640px; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero-enter > * { animation: enter 300ms ease-out both; }
  .hero-enter > :nth-child(2) { animation-delay: 100ms; }
  .hero-enter > :nth-child(3) { animation-delay: 200ms; }
  .hero-enter > :nth-child(4) { animation-delay: 300ms; }
  .hero-stage { animation: enter-stage 900ms var(--ease-out) 350ms both; }
}
@keyframes enter { from { opacity: 0; translate: 0 12px; filter: blur(4px); } }
@keyframes enter-stage { from { opacity: 0; translate: 0 48px; } }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

.hero-stage { margin-top: clamp(56px, 8vw, 96px); perspective: 1600px; }
.browser {
  max-width: 1040px; margin-inline: auto;
  background: var(--bg); border-radius: 16px;
  box-shadow: var(--shadow-2), 0 0 0 1px rgb(0 0 0 / 0.06);
  border: 1px solid transparent;
  overflow: hidden; text-align: left;
  transform-origin: 50% 0;
}
/* Scroll-driven: the page tilts flat and grows as it comes into view. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .browser {
      animation: browser-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}
@keyframes browser-in {
  from { transform: rotateX(8deg) scale(0.94); }
  to { transform: rotateX(0deg) scale(1); }
}
.browser-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--bg-alt); border-bottom: 1px solid #e8e8ed; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #dcdce1; }
.browser-bar span { margin-inline: auto; font-size: 12px; color: var(--ink-2); background: #fff; padding: 4px 48px; border-radius: 8px; }

@media (max-width: 640px) {
  .browser-bar span { padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
}


/* ---------- Story: sticky cart that builds itself ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-steps { padding-block: 20vh 30vh; }
.story-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.story-step p.h3 { color: var(--ink); opacity: 0.25; transition: opacity 400ms var(--ease-out); }
.story-step p.muted { margin-top: 12px; max-width: 400px; opacity: 0; transition: opacity 400ms var(--ease-out); }
.story-step.is-active p.h3, .story-step.is-active p.muted { opacity: 1; }
.no-js .story-step p { opacity: 1; }
.story-stage { position: sticky; top: calc(50vh - 280px); height: 560px; display: grid; place-items: center; }

.cart {
  width: min(100%, 400px);
  background: #fff; border-radius: 24px; padding: 24px;
  box-shadow: var(--shadow-2); border: 1px solid transparent;
  font-size: 15px;
}
.cart-title { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.cart-title span { font-weight: 400; font-size: 14px; color: var(--ink-2); }
.cart-goal { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg-alt); }
.cart-goal-text { position: relative; height: 20px; font-size: 14px; font-weight: 600; }
.cart-goal-text span { position: absolute; inset: 0; transition: opacity 300ms var(--ease-out); }
.cart-goal-text span + span { opacity: 0; color: var(--accent-ink); }
.bar { margin-top: 10px; height: 6px; border-radius: 99px; background: #e3e3e8; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0.85); transition: transform 700ms var(--ease-out); }
.lines { margin-top: 8px; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ececf0; }
.line:last-child { border-bottom: 0; }
.thumb { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.t-shirt { background: #d9cfbf; }
.t-socks { background: #3e4a5c; }
.t-tote { background: #ece5d6; position: relative; }
.t-tote::after { content: ""; position: absolute; left: 30%; right: 30%; top: 14%; height: 30%; border: 3px solid var(--accent); border-bottom: 0; border-radius: 12px 12px 0 0; }
.line-name { flex: 1; min-width: 0; line-height: 1.3; }
.line-name small { display: block; color: var(--ink-2); font-size: 13px; }
.line-price { text-align: right; line-height: 1.3; }
.line-price s { display: block; color: var(--ink-2); font-size: 13px; }
.free { color: var(--accent-ink); font-weight: 700; }
.badge { display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.cart-sum { margin-top: 8px; padding-top: 12px; border-top: 1px solid #ececf0; font-size: 14px; }
.cart-sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.cart-sum .total { font-size: 17px; font-weight: 700; padding-top: 8px; }
.cart-sum .disc { color: var(--accent-ink); }
.cart-cta { margin-top: 16px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; }

/* Story states, set on .story-stage[data-step] */
.line-socks, .disc-row { transition-property: opacity, translate, scale; transition-duration: 500ms, 700ms, 700ms; transition-timing-function: var(--ease-out), var(--spring), var(--spring); }
.story-stage[data-step="1"] .line-socks { opacity: 0; translate: 0 -16px; }
.line-gift { border-radius: 14px; margin-inline: -8px; padding-inline: 8px; transition-property: opacity, scale, background-color; transition-duration: 500ms, 700ms, 500ms; transition-timing-function: var(--ease-out), var(--spring), var(--ease-out); }
.story-stage[data-step="1"] .line-gift, .story-stage[data-step="2"] .line-gift { opacity: 0.4; scale: 0.94; filter: grayscale(1); }
.story-stage[data-step="3"] .line-gift, .story-stage[data-step="4"] .line-gift { background: var(--accent-soft); }
.lock, .unlocked { transition: opacity 300ms var(--ease-out); }
.line-gift .lock-wrap { display: grid; justify-items: start; }
.line-gift .lock-wrap > * { grid-area: 1 / 1; }
.story-stage[data-step="1"] .unlocked, .story-stage[data-step="2"] .unlocked { opacity: 0; }
.story-stage:not([data-step="1"]):not([data-step="2"]) .lock { opacity: 0; }
.story-stage[data-step="1"] .disc-row, .story-stage[data-step="2"] .disc-row { opacity: 0; }
.story-stage:not([data-step="1"]) .bar i { transform: scaleX(1); }
.story-stage:not([data-step="1"]) .cart-goal-text span:first-child { opacity: 0; }
.story-stage:not([data-step="1"]) .cart-goal-text span + span { opacity: 1; }
.v { display: inline-grid; }
.v > * { grid-area: 1 / 1; text-align: right; transition: opacity 300ms var(--ease-out); }
.story-stage[data-step="1"] .v > :not(.s1),
.story-stage[data-step="2"] .v > :not(.s2),
.story-stage[data-step="3"] .v > :not(.s3),
.story-stage[data-step="4"] .v > :not(.s3) { opacity: 0; }
.cart-cta { transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out); }
.cart-cta .c4 { display: none; }
.story-stage[data-step="4"] .cart-cta { background: var(--accent-btn); color: #fff; }
.story-stage[data-step="4"] .cart-cta .c1 { display: none; }
.story-stage[data-step="4"] .cart-cta .c4 { display: inline; }
@media (prefers-reduced-motion: reduce) {
  .line-socks, .line-gift { translate: none !important; scale: none !important; }
}

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-stage { order: -1; position: sticky; top: 56px; height: auto; z-index: 4; padding: 8px 0 16px; background: var(--bg-alt); box-shadow: 0 12px 16px -12px rgb(0 0 0 / 0.08); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .story-stage .cart { width: 100%; max-width: 400px; padding: 16px; font-size: 14px; border-radius: 20px; }
  .story-stage .thumb { width: 40px; height: 40px; border-radius: 10px; }
  .story-stage .line { padding: 8px 0; }
  .story-stage .cart-cta, .story-stage .cart-title, .story-stage .line-name small:not(.lock-wrap) { display: none; }
  .story-stage .cart-goal { margin-top: 0; }
  .story-steps { padding-block: 0 20vh; }
  .story-step { min-height: 55vh; justify-content: flex-start; padding-top: 8vh; }
}

/* ---------- Offer tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  grid-column: span 3;
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg);
  background: var(--bg-alt); overflow: hidden;
  transform-style: preserve-3d;
  transition-property: transform, box-shadow; transition-duration: 500ms; transition-timing-function: var(--ease-out);
}
.tile.wide { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tile.third { grid-column: span 2; }
.tile.two-thirds { grid-column: span 4; }
.tile .h3 { margin-bottom: 10px; }
.tile .demo { padding-top: 32px; }
.tile.wide .demo { padding-top: 0; }
.tile.is-dark { background: var(--dark-2); color: var(--dark-ink); }
.tile.is-dark .muted { color: var(--dark-ink-2); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); box-shadow: 0 24px 48px rgb(0 0 0 / 0.10); }
}
@media (max-width: 900px) {
  .tile, .tile.third, .tile.two-thirds { grid-column: span 6; }
  .tile.wide { grid-template-columns: 1fr; gap: 24px; }
}


/* ---------- Checkout (dark) section: words light up on scroll ---------- */
.words { font-size: clamp(32px, 5vw, 60px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.words span { opacity: 0.2; transition: opacity 250ms linear; }
.words span.lit { opacity: 1; }
@supports (animation-timeline: view()) {
  .words.css-driven span { transition: none; animation: lit linear both; animation-timeline: view(); animation-range: cover 20% cover 45%; }
}
@keyframes lit { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .words span { opacity: 1 !important; animation: none !important; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(64px, 9vw, 112px); }
.facts h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 8px; }
.facts p { color: var(--dark-ink-2); font-size: 15px; }
.facts svg { width: 28px; height: 28px; margin-bottom: 16px; color: var(--accent); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Looks showcase ---------- */
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.looks-stage {
  border-radius: var(--r-lg); background: var(--bg-alt);
  padding: clamp(20px, 5vw, 56px);
  display: grid; justify-items: center; align-items: start;
}
/* Real captures of the same volume widget, one per style, all the same width in one white card. */
.looks-card {
  position: relative; width: min(100%, 360px); padding: 12px;
  border-radius: 20px; background: #fff; box-shadow: var(--shadow-1), 0 0 0 1px rgb(0 0 0 / 0.04);
}
.looks-card img {
  display: block; width: 100%; height: auto; border-radius: 8px;
  position: absolute; top: 12px; left: 12px; width: calc(100% - 24px);
  opacity: 0; scale: 0.98;
  transition: opacity 350ms var(--ease-out), scale 500ms var(--spring);
}
.looks-card img.is-on { position: relative; top: 0; left: 0; width: 100%; opacity: 1; scale: 1; }
.looks-more { margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 10px;
  border-radius: 99px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 500;
  transition-property: border-color, background-color, scale;
  transition-duration: 150ms, 150ms, 400ms; transition-timing-function: ease-out, ease-out, var(--spring);
}
.chip i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip:active { scale: 0.96; }
@media (hover: hover) { .chip:hover { background: var(--bg-alt); } }
.looks-count { font-size: clamp(64px, 10vw, 128px); line-height: 1; letter-spacing: -0.05em; font-weight: 700; }
@media (max-width: 900px) { .looks { grid-template-columns: 1fr; } }


/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 32px; border-radius: var(--r-lg); background: #fff; }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 40px; }
.step .h3 { margin-bottom: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step-n { margin-bottom: 20px; } }

/* ---------- Analytics ---------- */
.dash { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-2); border: 1px solid transparent; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 36px 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid transparent; }
.plan.featured { box-shadow: inset 0 0 0 2px var(--ink); }
.plan-name { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.plan-tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.plan-desc { margin-top: 6px; color: var(--ink-2); font-size: 15px; min-height: 45px; }
.plan-price { margin-top: 28px; font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan-price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: 32px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .plan-desc { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -0.015em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--ink-2); transition: rotate 300ms var(--ease-out); }
.faq details[open] summary svg { rotate: 45deg; }
.faq details p { padding: 0 48px 28px 0; color: var(--ink-2); max-width: 640px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final .display { font-size: clamp(44px, 8vw, 96px); }
.gift-mark { width: 72px; height: 72px; margin: 0 auto 32px; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .gift-mark .lid { transform-box: fill-box; transform-origin: 0% 100%; transition: rotate 700ms var(--spring), translate 700ms var(--spring); }
  .final.is-in .gift-mark .lid { rotate: -18deg; translate: -2px -6px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--ink-2); font-size: 13px; padding-block: 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer a { color: var(--ink); text-decoration: none; }
.footer-brand { display: inline-flex; }
.footer-brand img { display: block; height: 28px; width: auto; }
@media (hover: hover) { .footer a:hover { text-decoration: underline; } }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc { padding-top: calc(56px + clamp(48px, 8vw, 96px)); padding-bottom: var(--section); }
.doc h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.035em; line-height: 1.05; }
.doc .updated { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.doc p, .doc li { color: #424245; font-size: 17px; line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.placeholder { margin-top: 32px; padding: 16px 20px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.contact-grid > div { padding: 28px; border-radius: var(--r-md); background: var(--bg-alt); }
.contact-grid h2 { margin-top: 0; font-size: 21px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Real UI captures ---------- */
img { max-width: 100%; }
.ui { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: #fff; }
.tile .demo .ui { max-width: 460px; margin-inline: auto; background: none; border-radius: 0; filter: drop-shadow(0 12px 28px rgb(0 0 0 / 0.08)); }
.tile.is-dark .demo .ui { filter: none; }
/* Widgets without a card of their own (volume) sit in one white card, like the others. */
.ui-frame { max-width: 460px; margin-inline: auto; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; filter: drop-shadow(0 12px 28px rgb(0 0 0 / 0.08)); }
.tile .demo .ui-frame .ui { filter: none; }
.hero-frame { position: relative; max-width: 1040px; margin-inline: auto; }
.browser .shot { display: block; width: 100%; height: auto; }
.hero-float {
  position: absolute; left: -40px; bottom: -36px; width: min(360px, 36%); height: auto;
  border-radius: 20px; box-shadow: var(--shadow-2), 0 0 0 1px rgb(0 0 0 / 0.06);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-float { animation: float-in 800ms var(--spring) 900ms both; }
}
@keyframes float-in { from { opacity: 0; translate: 0 32px; scale: 0.96; } }
@media (max-width: 1140px) { .hero-float { left: 12px; } }
@media (max-width: 640px) { .hero-float { display: none; } }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.shots figure { margin: 0; padding: 16px; border-radius: var(--r-lg); background: #fff; }
.shots .ui { border-radius: 12px; box-shadow: 0 0 0 1px #ececf0; }
.shots figcaption { padding: 16px 8px 4px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }
.dash { display: grid; gap: 16px; }
.dash .ui { border-radius: 14px; box-shadow: 0 0 0 1px #ececf0; }
.film { max-width: 1040px; margin-inline: auto; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #111; }
.faq-more { margin-top: 32px; font-size: 17px; }
.faq-more a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
@media (hover: hover) { .faq-more a:hover { text-decoration: underline; } }

/* ---------- Policy and support pages ---------- */
.doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent-ink); }
.doc code { font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--bg-alt); }
.doc .faq { margin-top: 8px; }
.doc .faq summary { font-size: 19px; padding: 20px 0; }
.doc .faq details p { padding-bottom: 20px; }
/* Values the owner still fills in (TODO): visible but quiet. */
.todo { padding: 0 4px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
