/* Hallmark · genre: playful · macrostructure: Narrative Workflow · H5 stage-spine: stages=4, numeral=warm-ordinal, image=alternating
 * theme: custom · vibe: "warm, human, calm, trustworthy" · paper: oklch(97% 0.010 80) · accent: oklch(50% 0.14 248)
 * display: Fraunces · body: SF Rounded · axes: light / roman-serif / cool-blue
 * nav: N1-warm · footer: Ft5 · enrichment: none · studied: no · context: redesign (warm & human + evolved palette)
 * pre-emit critique: P5 H4 E4 S5 R4 V5 · contrast: pass (46–50) · slop: pass (51–55) · mobile: pass (36, 59, 61–68)
 * v1.0.0 */

@import "tokens.css";

*{ margin:0; padding:0; box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  overflow-x:clip;
}

body{
  font-family:var(--font-body);
  color:var(--color-ink);
  background:var(--color-paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  line-height:var(--lh-body);
  overflow-x:clip;
  padding-inline:max(0px, env(safe-area-inset-left));
}

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:clamp(1.25rem, 4vw, 2rem); }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:500;
  letter-spacing:var(--track-display);
  line-height:var(--lh-tight);
  overflow-wrap:anywhere;
  min-width:0;
}
:focus-visible{ outline:2px solid var(--color-focus); outline-offset:3px; border-radius:4px; }

/* ───────────────────────── buttons ───────────────────────── */
.btn{
  display:inline-flex; align-items:center; gap:var(--space-2xs);
  font-family:var(--font-body); font-weight:700; font-size:var(--text-md);
  line-height:1; padding:var(--space-xs) var(--space-md); border-radius:var(--radius-pill);
  cursor:pointer; border:0; white-space:nowrap;
  transition:transform var(--dur-short) var(--ease-out),
             box-shadow var(--dur-short) var(--ease-out),
             background-color var(--dur-short) var(--ease-out),
             border-color var(--dur-short) var(--ease-out);
}
.btn-primary{ color:var(--color-accent-ink); background:var(--color-accent); box-shadow:var(--shadow-sm); }
.btn-ghost{
  color:var(--color-ink); background:var(--color-paper);
  box-shadow:inset 0 0 0 1px var(--color-rule);
}
.btn svg{ width:18px; height:18px; flex:none; }
@media (hover:hover) and (pointer:fine){
  .btn-primary:hover{ background:var(--color-accent-deep); transform:translateY(-2px); }
  .btn-ghost:hover{ background:var(--color-paper-2); box-shadow:inset 0 0 0 1px var(--color-accent); }
}
.btn:active{ transform:translateY(0); }
.btn[disabled],.btn[aria-disabled="true"]{ opacity:0.55; cursor:not-allowed; box-shadow:none; }
@media (pointer:coarse){ .btn{ min-height:48px; } }

/* official App Store badge */
.badge-link{ display:inline-flex; border-radius:12px; transition:transform var(--dur-short) var(--ease-out), filter var(--dur-short) var(--ease-out); }
@media (hover:hover) and (pointer:fine){
  .badge-link:hover{ transform:translateY(-2px); filter:drop-shadow(0 8px 16px var(--color-badge-glow)); }
}
.badge-link img{ height:54px; width:auto; }
.nav-badge img{ height:40px; }

/* ───────────────────────── app icon ───────────────────────── */
.app-icon{
  display:inline-block; flex:none; position:relative;
  border-radius:23%; overflow:hidden;
  background:linear-gradient(155deg, var(--color-accent) 0%, var(--color-accent-deep) 100%);
  box-shadow:var(--shadow-sm);
}
.app-icon .swirl{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; mix-blend-mode:darken; opacity:0.9; }
.app-icon .glyph{ position:absolute; inset:0; margin:auto; width:54%; height:54%; fill:var(--color-accent-ink); }

/* ───────────────────────── nav (N1-warm) ───────────────────────── */
.nav{
  position:sticky; top:0; z-index:var(--z-sticky-nav);
  background:var(--color-nav-bg);
  backdrop-filter:saturate(140%) blur(14px);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid var(--color-rule);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; min-height:68px; gap:var(--space-md); }
.brand{ display:flex; align-items:center; gap:var(--space-2xs); font-family:var(--font-display); font-weight:600; font-size:1.4rem; letter-spacing:-0.01em; line-height:1; }
.brand .mark{ width:36px; height:36px; border-radius:11px; }
.nav-links{ display:flex; align-items:center; gap:clamp(1rem, 2vw, 1.9rem); }
.nav-links a{ font-weight:600; font-size:var(--text-sm); color:var(--color-muted); white-space:nowrap; transition:color var(--dur-short) var(--ease-out); }
@media (hover:hover){ .nav-links a:not(.nav-badge):hover{ color:var(--color-ink); } }
@media (max-width:48rem){ .nav-links a:not(.nav-badge){ display:none; } }

/* ───────────────────────── hero ───────────────────────── */
.hero{ padding-block:clamp(3.5rem, 6vw, 5.5rem) clamp(4.5rem, 8vw, 8rem); }
.hero .wrap{ display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,0.88fr); gap:clamp(2rem, 5vw, 4rem); align-items:center; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:var(--space-2xs);
  font-size:var(--text-xs); font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--color-muted); margin-bottom:var(--space-md);
}
.hero-eyebrow svg{ width:15px; height:15px; stroke:var(--color-accent); stroke-width:2.2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.hero h1{ font-size:var(--text-display); font-weight:500; max-width:14ch; }
.hero h1 em{ font-style:italic; font-weight:400; }
.hero .lead{ font-size:var(--text-lg); color:var(--color-ink-2); font-weight:500; line-height:var(--lh-snug); margin-block:var(--space-md) var(--space-lg); max-width:34ch; }
.hero-actions{ display:flex; gap:var(--space-sm); flex-wrap:wrap; align-items:center; }

/* powered-by pills */
.powered{ margin-top:var(--space-md); display:flex; align-items:center; flex-wrap:wrap; gap:var(--space-2xs); }
.powered-label{ font-size:var(--text-xs); font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--color-muted); margin-right:var(--space-3xs); }
.model-pill{
  display:inline-flex; align-items:center; gap:6px; font-size:var(--text-xs); font-weight:600; color:var(--color-ink);
  background:var(--color-paper); padding:var(--space-3xs) var(--space-xs) var(--space-3xs) var(--space-2xs); border-radius:var(--radius-pill);
  box-shadow:inset 0 0 0 1px var(--color-rule);
}
.model-pill img{ width:16px; height:16px; object-fit:contain; }

/* phone frame */
.screen{
  position:relative; width:100%; max-width:320px; margin-inline:auto;
  padding:var(--device-bezel); border-radius:var(--radius-device);
  background:linear-gradient(152deg, var(--color-device-1) 0%, var(--color-device-2) 42%, var(--color-device-3) 100%);
  box-shadow:var(--shadow-lg);
}
.screen::before{
  content:""; position:absolute; inset:0; border-radius:var(--radius-device);
  pointer-events:none; box-shadow:var(--shadow-device-rim);
}
.screen img{ width:100%; display:block; border-radius:var(--radius-screen); position:relative; z-index:var(--z-base); }
.hero-figure{ position:relative; }

/* ───────────────────────── trust strip ───────────────────────── */
.trust{ padding-bottom:clamp(2.5rem, 5vw, 4rem); }
.trust .wrap{ display:flex; flex-wrap:wrap; justify-content:center; gap:var(--space-2xs) var(--space-sm); }
.chip{
  display:inline-flex; align-items:center; gap:var(--space-2xs); font-size:var(--text-sm); font-weight:600; color:var(--color-ink);
  background:var(--color-paper-2); padding:var(--space-2xs) var(--space-sm); border-radius:var(--radius-pill);
  box-shadow:inset 0 0 0 1px var(--color-rule);
}
.chip svg{ width:18px; height:18px; stroke:var(--color-accent); stroke-width:2.1; fill:none; stroke-linecap:round; stroke-linejoin:round; }

/* ───────────────────────── section scaffolding ───────────────────────── */
.sec{ padding-block:clamp(3.5rem, 7vw, 6.5rem); }
.sec-head{ max-width:32ch; margin-bottom:var(--space-2xl); }
.sec-head.center{ margin-inline:auto; text-align:center; }
.sec-head h2{ font-size:var(--text-2xl); font-weight:500; }
.sec-head h2 em{ font-style:italic; font-weight:400; color:var(--color-accent); }
.sec-head p{ font-size:var(--text-md); color:var(--color-ink-2); font-weight:500; margin-top:var(--space-sm); line-height:var(--lh-snug); max-width:var(--maxw-prose); }
.sec-head.center p{ margin-inline:auto; }

/* ───────────────────────── the journey (Narrative Workflow spine) ───────────────────────── */
.journey{ display:flex; flex-direction:column; }
.stage{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,0.92fr); gap:clamp(2rem,5vw,4rem); align-items:center; padding-block:clamp(2.5rem,5vw,4rem); border-top:1px solid var(--color-rule); }
.stage:first-child{ border-top:0; padding-top:0; }
.stage:nth-child(even) .stage-figure{ order:-1; }
.stage-num{
  width:var(--space-xl); height:var(--space-xl); display:grid; place-items:center;
  font-family:var(--font-display); font-weight:500; font-size:1.25rem;
  color:var(--color-accent-ink); background:var(--color-accent);
  border-radius:var(--radius-pill); box-shadow:var(--shadow-sm);
  font-variant-numeric:tabular-nums; margin-bottom:var(--space-md);
}
.stage-body h3{ font-size:var(--text-xl); font-weight:500; }
.stage-body h3 em{ font-style:italic; font-weight:400; color:var(--color-accent); }
.stage-body p{ font-size:var(--text-md); color:var(--color-ink-2); font-weight:500; margin-top:var(--space-sm); line-height:var(--lh-body); max-width:46ch; }
.stage-figure .screen{ max-width:280px; }
.journey-foot{ margin-top:clamp(2.5rem,5vw,3.5rem); }

/* ───────────────────────── what's inside (warm list, not a grid) ───────────────────────── */
.inside-list{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 clamp(2.5rem,5vw,4.5rem); }
.inside-item{ display:flex; gap:var(--space-md); padding-block:var(--space-lg); border-top:1px solid var(--color-rule); }
.inside-item .ic{ flex:none; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--color-accent-soft); color:var(--color-accent); }
.inside-item .ic svg{ width:22px; height:22px; stroke:currentColor; stroke-width:2.1; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.inside-item h3{ font-size:var(--text-lg); font-weight:500; }
.inside-item p{ font-size:var(--text-sm); color:var(--color-ink-2); font-weight:500; margin-top:var(--space-3xs); line-height:var(--lh-snug); }

/* ───────────────────────── moments (reset + models) ───────────────────────── */
.moments{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--space-lg); }
.moment{
  display:flex; flex-direction:column; gap:var(--space-md);
  background:var(--color-paper-2); border-radius:var(--radius-panel);
  padding:clamp(1.75rem,3vw,2.5rem); box-shadow:inset 0 0 0 1px var(--color-rule);
  transition:transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
@media (hover:hover) and (pointer:fine){
  .moment:hover{ transform:translateY(-4px); box-shadow:inset 0 0 0 1px var(--color-accent), var(--shadow-md); }
}
.moment h3{ font-size:var(--text-xl); font-weight:500; }
.moment p{ font-size:var(--text-md); color:var(--color-ink-2); font-weight:500; line-height:var(--lh-snug); }
.moment .screen{ max-width:240px; margin-top:auto; }
.moment-logos{ display:flex; gap:var(--space-2xs); margin-top:auto; }
.moment-logos img{ width:32px; height:32px; object-fit:contain; padding:var(--space-3xs); background:var(--color-paper); border-radius:10px; box-shadow:inset 0 0 0 1px var(--color-rule); }

/* ───────────────────────── privacy (warm-dark panel) ───────────────────────── */
.privacy{
  background:linear-gradient(155deg, var(--color-ink-block) 0%, var(--color-ink-block-2) 100%);
  color:var(--color-on-block);
  border-radius:var(--radius-panel); padding:clamp(2.25rem,4vw,4rem);
  box-shadow:var(--shadow-lg);
}
.privacy-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:clamp(2rem,5vw,4rem); align-items:center; }
.privacy h2{ font-size:var(--text-2xl); font-weight:500; color:var(--color-on-block); }
.privacy h2 em{ font-style:italic; font-weight:400; color:var(--color-accent-on-block); }
.privacy .lead{ font-size:var(--text-md); color:var(--color-on-block-2); font-weight:500; margin-top:var(--space-md); line-height:var(--lh-body); max-width:42ch; }
.privacy ul{ list-style:none; display:flex; flex-direction:column; gap:var(--space-md); }
.privacy li{ display:flex; gap:var(--space-sm); align-items:flex-start; font-size:var(--text-md); font-weight:500; color:var(--color-on-block); }
.privacy li svg{ width:22px; height:22px; flex:none; stroke:var(--color-accent-on-block); stroke-width:2.2; fill:none; stroke-linecap:round; stroke-linejoin:round; margin-top:2px; }

/* ───────────────────────── FAQ ───────────────────────── */
.faq{ max-width:var(--maxw-prose); margin-inline:auto; display:flex; flex-direction:column; }
.faq details{ border-top:1px solid var(--color-rule); }
.faq details:last-child{ border-bottom:1px solid var(--color-rule); }
.faq summary{
  list-style:none; cursor:pointer; font-family:var(--font-display); font-size:var(--text-lg); font-weight:500;
  padding-block:var(--space-md); display:flex; align-items:center; justify-content:space-between; gap:var(--space-md);
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:""; width:12px; height:12px; flex:none;
  border-right:2.5px solid var(--color-accent); border-bottom:2.5px solid var(--color-accent);
  transform:rotate(45deg); transition:transform var(--dur-med) var(--ease-out);
}
.faq details[open] summary::after{ transform:rotate(-135deg); }
.faq p{ font-size:var(--text-md); color:var(--color-ink-2); font-weight:500; line-height:var(--lh-body); padding-bottom:var(--space-lg); max-width:64ch; }

/* ───────────────────────── final CTA ───────────────────────── */
.cta{ text-align:center; padding-block:clamp(4rem,8vw,7rem) clamp(3rem,6vw,5rem); }
.cta .app-icon{ width:84px; height:84px; margin-inline:auto; margin-bottom:var(--space-lg); }
.cta h2{ font-size:var(--text-display-s); font-weight:500; max-width:16ch; margin-inline:auto; }
.cta p{ font-size:var(--text-md); color:var(--color-ink-2); font-weight:500; margin:var(--space-md) auto var(--space-lg); max-width:46ch; }
.cta .hero-actions{ justify-content:center; }

/* ───────────────────────── footer (Ft5 statement) ───────────────────────── */
footer{ border-top:1px solid var(--color-rule); padding-block:clamp(2.5rem,5vw,4rem); }
.foot-top{ display:flex; flex-wrap:wrap; gap:var(--space-md); align-items:center; justify-content:space-between; }
footer .brand{ font-size:1.2rem; }
footer .brand .mark{ width:30px; height:30px; border-radius:9px; }
.foot-links{ display:flex; flex-wrap:wrap; gap:var(--space-md); }
.foot-links a{ font-size:var(--text-sm); font-weight:600; color:var(--color-muted); white-space:nowrap; transition:color var(--dur-short) var(--ease-out); }
@media (hover:hover){ .foot-links a:hover{ color:var(--color-accent); } }
.disclaimer{ margin-top:var(--space-lg); padding-top:var(--space-lg); border-top:1px solid var(--color-rule-2); font-size:var(--text-xs); color:var(--color-muted); line-height:var(--lh-snug); max-width:78ch; }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width:60rem){
  .privacy-grid{ grid-template-columns:1fr; }
}
@media (max-width:52rem){
  .hero .wrap{ grid-template-columns:1fr; gap:var(--space-2xl); }
  .hero h1{ max-width:none; }
  .stage{ grid-template-columns:1fr; gap:var(--space-lg); }
  .stage:nth-child(even) .stage-figure{ order:0; }
  .stage-figure .screen{ max-width:260px; }
  .inside-list{ grid-template-columns:1fr; }
  .moments{ grid-template-columns:1fr; }
}
/* keep hero CTAs horizontal (side by side) on narrow phones */
@media (max-width:25rem){
  .hero-actions{ flex-wrap:nowrap; gap:var(--space-2xs); }
  .hero-actions .badge-link img{ height:44px; }
  .hero-actions .btn-ghost{ padding:var(--space-2xs) var(--space-sm); font-size:var(--text-sm); }
}

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