/* InstaBrief site — shared stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400;1,9..144,500&family=Inter:wght@400;450;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:        #f4f0e6;
  --bg-sunk:   #ece7d8;
  --surface:   #fbf9f1;
  --ink:       #1a1a17;
  --ink-2:     #55514a;
  --ink-3:     #8e8879;
  --rule:      #d6cfbc;
  --rule-soft: #e5dfcd;
  --accent:    #b4462e;
  --accent-dk: #8c331e;
  --accent-bg: #f5ede9;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ── Typography ──
   Fraunces is reserved for top-level headlines only — no italic, no accent color.
   Body, UI labels, stats, badges → Inter.
   The only exception is content INSIDE phone mockups that depicts the rendered letter
   itself (the printed page is in serif). UI chrome inside mockups stays Inter. */
.serif { font-family: 'Fraunces', serif; font-optical-sizing: auto; }
.mono  { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  height: 60px;
  background: rgba(244,240,230,0.88);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
}
.nav-logo-name {
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 13.5px; color: var(--ink-2); text-decoration: none;
  transition: color 140ms;
}
.nav-links a:hover { color: var(--ink); }
.nav-lang {
  font-family: 'JetBrains Mono', monospace; font-size: 11px !important;
  letter-spacing: 0.1em; border: 1px solid var(--rule); border-radius: 4px;
  padding: 3px 7px; color: var(--ink-3) !important;
}
.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 8px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  border: none; cursor: pointer;
  transition: background 140ms, transform 100ms;
}
.btn-primary:hover { background: #2e2e28; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink-2);
  padding: 8px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--rule); cursor: pointer;
  transition: border-color 140ms, color 140ms;
}
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }

/* ── Sections ── */
section { padding: clamp(64px, 10vw, 120px) clamp(24px, 5vw, 72px); }
.container { max-width: 1120px; margin: 0 auto; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(64px, 10vw, 120px) clamp(24px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
}
.hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-kicker::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--accent);
}
.hero-headline {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 72;
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 28px;
}
.hero-headline em {
  font-style: normal; color: inherit;
}
.hero-body {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65; color: var(--ink-2);
  max-width: 480px; margin: 0 0 36px;
}
.store-badges {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 10px;
  text-decoration: none; transition: background 140ms, transform 120ms;
}
.store-badge:hover { background: #2e2e28; transform: translateY(-2px); }
.store-badge-text-wrap { line-height: 1.15; }
.store-badge-sub  { font-size: 9.5px; letter-spacing: 0.02em; opacity: 0.7; }
.store-badge-name { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ── Phone mockup ── */
.phone-mock {
  width: 260px; flex-shrink: 0;
  filter: drop-shadow(0 40px 60px rgba(26,26,23,0.16)) drop-shadow(0 8px 16px rgba(26,26,23,0.08));
}
.phone-frame {
  background: #111; border-radius: 38px; padding: 8px;
  position: relative;
}
.phone-island {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 26px; border-radius: 14px; background: #000; z-index: 10;
}
.phone-screen {
  border-radius: 30px; overflow: hidden; background: #f4f0e6;
  aspect-ratio: 9/19.5; position: relative;
}
.phone-screen-inner {
  width: 100%; height: 100%; overflow: hidden;
}
.phone-home {
  width: 88px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.5);
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  z-index: 10;
}

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface); border: 1px solid var(--rule-soft);
  border-radius: 6px; padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 240ms cubic-bezier(.22,1,.36,1), box-shadow 240ms;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(26,26,23,0.06); }
.feature-visual {
  background: var(--bg);
  border-bottom: 1px solid var(--rule-soft);
  height: 168px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; position: relative; overflow: hidden;
}

/* Scaled app-screen snippet inside a feature-visual */
.fv-app-snippet {
  position: absolute;
  top: 0; left: 0;
  width: 434px;
  transform-origin: top left;
  transform: scale(0.70);
  padding: 14px 16px;
  background: var(--bg);
  min-height: 241px; /* 168px / 0.70 */
}
.feature-content {
  padding: 22px 26px 28px;
}
.feature-title {
  font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500;
  letter-spacing: -0.01em; margin-bottom: 6px; color: var(--ink);
  font-style: normal;
}
.feature-body { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* Mini letter sheet */
.fv-letter {
  width: 124px; background: #fbf8f0; border: 1px solid #d6cfbc;
  border-radius: 2px; padding: 12px 11px; aspect-ratio: 1/1.3;
  box-shadow: 0 8px 16px rgba(26,26,23,0.05);
  font-family: 'Fraunces', serif;
  position: relative;
  transform: rotate(-2deg);
}
.fv-letter-rule { height: 1px; background: var(--rule-soft); margin: 4px 0; }
.fv-letter-line { height: 4px; background: rgba(26,26,23,0.55); border-radius: 1px; margin-bottom: 4px; }
.fv-letter-line.short { width: 50%; }
.fv-letter-line.med   { width: 75%; }
.fv-letter-line.faint { background: rgba(26,26,23,0.22); height: 3px; }
.fv-letter-stamp {
  position: absolute; top: -8px; right: -8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 8px;
  letter-spacing: 0.06em; transform: rotate(8deg);
  border: 2px dashed rgba(255,255,255,0.4); padding: 2px;
  box-shadow: 0 4px 8px rgba(180,70,46,0.3);
}
.fv-letter-stamp span { transform: rotate(-2deg); text-align: center; line-height: 1; }

/* Postage radio cards */
.fv-postage { width: 80%; max-width: 240px; }
.fv-postage-row {
  background: #fbf8f0; border: 1px solid var(--rule); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.fv-postage-row.active { border-color: var(--ink); background: #fdfaf1; }
.fv-postage-radio {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.4px solid var(--rule); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.fv-postage-row.active .fv-postage-radio {
  border-color: var(--accent);
}
.fv-postage-row.active .fv-postage-radio::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.fv-postage-label {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 500;
  color: var(--ink); flex: 1;
}
.fv-postage-sub {
  font-family: 'Inter', sans-serif; font-size: 8.5px; color: var(--ink-2);
  margin-top: 1px; font-weight: 400;
}
.fv-postage-price {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: var(--ink-2); letter-spacing: 0.04em;
}

/* PDF download button */
.fv-pdf-btn {
  background: var(--ink); color: var(--bg);
  border-radius: 12px; padding: 14px 22px;
  display: flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 16px rgba(26,26,23,0.18);
  position: relative;
}
.fv-pdf-btn::after {
  content: 'FREE'; position: absolute;
  top: -8px; right: -10px;
  background: var(--accent); color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; letter-spacing: 0.1em;
  padding: 3px 7px; border-radius: 100px;
  box-shadow: 0 4px 8px rgba(180,70,46,0.3);
}

/* Reply timeline */
.fv-timeline { width: 80%; max-width: 230px; }
.fv-timeline-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding-bottom: 10px; position: relative;
}
.fv-timeline-item:not(:last-child)::before {
  content: ''; position: absolute;
  left: 5px; top: 14px; bottom: -2px; width: 1px;
  background: var(--rule);
}
.fv-timeline-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-sunk); border: 1.5px solid var(--rule);
  flex-shrink: 0; margin-top: 2px; position: relative; z-index: 1;
}
.fv-timeline-dot.done { background: var(--accent); border-color: var(--accent); }
.fv-timeline-dot.pulse {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(180,70,46,0.5);
  animation: fv-pulse 1.6s ease-out infinite;
}
@keyframes fv-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(180,70,46,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(180,70,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(180,70,46,0); }
}
.fv-timeline-label {
  font-family: 'Inter', sans-serif; font-size: 10.5px;
  color: var(--ink); font-weight: 500; line-height: 1.2;
}
.fv-timeline-time {
  font-family: 'JetBrains Mono', monospace; font-size: 8px;
  color: var(--ink-3); letter-spacing: 0.06em;
  text-transform: uppercase; margin-top: 2px;
}

/* First draft in seconds */
.fv-draft { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 80%; max-width: 240px; }
.fv-draft-brief {
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--ink-2);
  background: var(--bg-sunk); border: 1px solid var(--rule); border-radius: 6px;
  padding: 8px 10px; line-height: 1.4; width: 100%; text-align: left;
}
.fv-draft-arrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent);
  letter-spacing: 0.06em;
}
.fv-draft-output {
  background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 6px;
  padding: 10px 12px; width: 100%; display: flex; flex-direction: column; gap: 5px;
}
.fv-draft-line { height: 3px; background: rgba(26,26,23,0.35); border-radius: 1px; }
.fv-draft-line.long  { width: 60%; }
.fv-draft-line.med   { width: 80%; }
.fv-draft-line.full  { width: 100%; }
.fv-draft-line.short { width: 40%; }
.fv-draft-cursor {
  width: 2px; height: 10px; background: var(--accent); border-radius: 1px; margin-top: 1px;
  animation: fv-blink 1s steps(1) infinite;
}
@keyframes fv-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Refine chips */
.fv-refine { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fv-refine-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 240px; }
.fv-refine-chip {
  background: #fbf8f0; border: 1px solid var(--rule);
  padding: 6px 12px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.fv-refine-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fv-refine-arrow {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Anonymous lock */
.fv-lock {
  width: 60px; height: 76px;
  background: var(--surface); border: 1.5px solid var(--ink-2);
  border-radius: 8px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.fv-lock::before {
  content: ''; position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 32px; border: 3px solid var(--ink-2);
  border-bottom: none; border-radius: 18px 18px 0 0;
}
.fv-lock-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.fv-anon-tags { display: flex; gap: 8px; margin-top: 14px; }
.fv-anon-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 8.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.fv-anon-tag.on { color: var(--accent); }

/* ── Scroll-driven "How it works" ── */
.scroll-story {
  position: relative;
  padding: 0;
}
.story-intro {
  padding: clamp(64px, 10vw, 120px) clamp(24px, 5vw, 72px) 40px;
}
.story-stage {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(40px, 6vw, 96px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px) 40px;
  align-items: start;
}
.story-text-col { display: flex; flex-direction: column; }
.story-step {
  min-height: 80vh;
  padding: 14vh 0 8vh;
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; justify-content: center;
  transition: opacity 500ms ease;
  opacity: 0.32;
}
.story-step.is-active { opacity: 1; }
.story-step:first-child { border-top: none; padding-top: 6vh; }
.story-step-num {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px;
  color: var(--accent); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.story-step-num::after {
  content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.4; max-width: 60px;
}
.story-step-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 60;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 16px; color: var(--ink);
}
.story-step-title em { font-style: normal; color: inherit; }
.story-step-body {
  font-size: 15.5px; line-height: 1.7; color: var(--ink-2);
  max-width: 460px; margin: 0 0 22px;
}
.story-step-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 18px; max-width: 460px;
}
.story-step-meta-item { min-width: 0; }
.story-step-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.story-step-meta-value {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}

/* Sticky phone column */
.story-phone-col {
  position: sticky;
  top: calc(50vh - 290px);
  height: 580px;
  display: flex; flex-direction: column; align-items: center;
}
.story-phone-progress {
  margin-top: 22px; display: flex; gap: 6px;
}
.story-phone-progress-pip {
  width: 26px; height: 3px; border-radius: 2px;
  background: var(--rule); transition: background 300ms;
}
.story-phone-progress-pip.is-active { background: var(--accent); }

/* The phone in the story has its layers stacked + cross-faded */
.story-phone-mock { width: 280px; flex-shrink: 0; position: relative; }
.story-phone-mock .phone-frame { background: #111; border-radius: 38px; padding: 8px; }
.story-phone-mock .phone-island {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; border-radius: 14px; background: #000; z-index: 10;
}
.story-phone-mock .phone-screen {
  border-radius: 30px; overflow: hidden; background: #f4f0e6;
  aspect-ratio: 9/19.5; position: relative;
}
.story-phone-mock .phone-home {
  width: 88px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.5);
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); z-index: 10;
}
.story-screen-layer {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 500ms ease, transform 600ms cubic-bezier(.22,1,.36,1);
  transform: translateY(8px);
  pointer-events: none;
}
.story-screen-layer.is-active {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}

/* Decorative frame shadow */
.story-phone-mock {
  filter: drop-shadow(0 40px 60px rgba(26,26,23,0.16)) drop-shadow(0 8px 16px rgba(26,26,23,0.08));
}

@media (max-width: 860px) {
  .story-stage { grid-template-columns: 1fr; }
  .story-phone-col {
    position: relative; top: auto;
    height: auto; order: -1; margin-bottom: 24px;
  }
  .story-phone-mock { width: 240px; }
  .story-step { min-height: auto; padding: 36px 0; opacity: 1; }
}

/* ── CTA strip ── */
.cta-strip {
  background: var(--ink); color: var(--bg);
  padding: clamp(64px, 9vw, 100px) clamp(24px, 5vw, 72px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: -40%;
  background: radial-gradient(circle at 50% 60%, rgba(180,70,46,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-headline {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 72;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.cta-headline em { font-style: normal; color: inherit; }
.cta-sub {
  font-size: 16px; color: rgba(244,240,230,0.65);
  margin-bottom: 36px; position: relative; z-index: 1;
}
.store-badge-light {
  background: rgba(244,240,230,0.12);
  border: 1px solid rgba(244,240,230,0.2);
  color: var(--bg);
}
.store-badge-light:hover { background: rgba(244,240,230,0.2); transform: translateY(-2px); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--rule-soft);
  padding: 32px clamp(24px, 5vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  font-weight: 600; color: var(--ink-2); text-decoration: none;
  letter-spacing: -0.01em;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
.footer-links a {
  font-size: 13px; color: var(--ink-3); text-decoration: none;
  transition: color 140ms;
}
.footer-links a:hover { color: var(--ink-2); }
.footer-copy {
  font-size: 12px; color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Legal pages ── */
.legal-hero {
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 72px) 40px;
  border-bottom: 1px solid var(--rule-soft);
}
.legal-body {
  max-width: 720px; padding: 48px clamp(24px, 5vw, 72px) 80px;
}
.legal-body h2 {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; margin: 40px 0 10px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li {
  font-size: 15px; line-height: 1.75; color: var(--ink-2); margin: 0 0 12px;
}
.legal-body ul { padding-left: 20px; }
.legal-body a { color: var(--accent); }

/* ── Animations ──
   .fade-up was reserved for entrance animations but caused render-context issues
   in some preview environments. Removed — content is visible immediately.
   For prefers-reduced-motion-respecting motion later, gate behind IntersectionObserver. */
.fade-up { opacity: 1; transform: none; }
.fade-up.animated { opacity: 1; transform: none; }
.delay-1.animated, .delay-2.animated, .delay-3.animated, .delay-4.animated, .delay-5.animated {
  transition-delay: 0s;
}
.delay-2.animated, .delay-3.animated, .delay-4.animated, .delay-5.animated {
  /* delays no longer used, kept selector for stability */
}

/* ── Section label ── */
.section-kicker {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px;
  color: var(--ink-3); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-kicker::after {
  content: ''; flex: 1; height: 1px; background: var(--rule-soft);
}
.section-headline {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 60;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.08; margin: 0 0 14px;
}
.section-sub {
  font-size: 15px; line-height: 1.65; color: var(--ink-2);
  max-width: 540px; margin: 0 0 48px;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .phone-mock { display: none; }
  .nav-links  { display: none; }
}

/* ── App screen variables (from App Store Visuals) ── */
:root {
  --bg-low:       #ebe6d8;
  --surface-high: #e5dfcd;
  --surface-hst:  #d6cfbc;
  --success:      #3f7a4d;
  --success-bg:   #e5eadf;
}

/* ── App screen scaler ── */
.app-screen-content {
  position: absolute; top: 0; left: 0;
  transform-origin: top left;
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* Story phone: 280px outer → 264px inner; App Store inner = 434px → 264/434 = 0.6083 */
.story-phone-mock .app-screen-content {
  width: 164.4%; height: 164.4%;
  transform: scale(0.6083);
}
/* Hero phone: 260px outer → 244px inner; 244/434 = 0.5622 */
.phone-mock .app-screen-content {
  width: 177.8%; height: 177.8%;
  transform: scale(0.5622);
}

/* ── Status bar ── */
.phone-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 52px 26px 0;
  font-size: 13px; font-weight: 600; color: var(--ink);
  font-family: -apple-system, system-ui; flex-shrink: 0;
}

/* ── App top bar ── */
.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border-bottom: 1px solid var(--surface-high);
  padding: 11px 16px 10px; flex-shrink: 0;
}
.app-logo-group { display: flex; align-items: center; gap: 8px; }
.app-icon {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  background: var(--ink); object-fit: cover;
}
.app-logo-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.76px;
  text-transform: uppercase; color: var(--ink-3); line-height: 1;
}
.app-logo-title {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12.5px;
  color: var(--ink); margin-top: 1px; letter-spacing: -0.1px;
}
.app-menu-btn {
  width: 32px; height: 32px; border: 1px solid var(--surface-high);
  border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.menu-line { width: 14px; height: 1.5px; background: var(--ink); border-radius: 1px; }

/* ── Chat empty state ── */
.chat-scroll { flex: 1; overflow: hidden; }
.chat-empty { padding: 16px; padding-top: 22px; }
.chat-heading {
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 30px;
  letter-spacing: -0.8px; line-height: 34px; color: var(--ink);
  margin-bottom: 10px; margin-top: 6px; white-space: pre-line;
}
.chat-body-text {
  font-family: 'Inter', sans-serif; font-size: 13px; line-height: 20px;
  color: var(--ink-2);
}
.suggestion-section { margin-top: 28px; }
.suggestion-section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px;
}
.suggestion-list { display: flex; flex-direction: column; gap: 7px; }
.suggestion-card {
  background: var(--surface); border: 1px solid var(--surface-high);
  border-radius: 4px; padding: 11px;
}
.suggestion-card-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 5px;
}
.suggestion-card-body {
  font-family: 'Inter', sans-serif; font-size: 13px; line-height: 19px; color: var(--ink);
}

/* ── Composer ── */
.composer-outer {
  background: var(--bg); padding: 7px 11px 14px; flex-shrink: 0;
  border-top: 1px solid var(--surface-high);
}
.composer-container {
  background: var(--surface); border: 1px solid var(--surface-hst);
  border-radius: 15px; padding: 9px 11px 9px 13px;
  display: flex; align-items: flex-end; gap: 8px; min-height: 40px;
}
.composer-input {
  flex: 1; font-family: 'Inter', sans-serif; font-size: 13px;
  line-height: 1.45; color: var(--ink-3);
}
.composer-send {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-hst);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Modal header ── */
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); padding: 11px 15px 9px; flex-shrink: 0;
}
.modal-back { display: flex; align-items: center; gap: 3px; min-width: 54px; }
.modal-back-arrow { font-size: 15px; color: var(--ink-2); line-height: 1; }
.modal-back-text {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--ink-2);
}
.modal-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; }
.saved-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.saved-text {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--ink-3);
}
.modal-close {
  width: 28px; height: 28px; border-radius: 14px; background: var(--bg-low);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-2);
}

/* ── Step rail ── */
.step-rail {
  display: flex; align-items: center; justify-content: center;
  padding: 0 15px 8px; gap: 4px; flex-shrink: 0;
}
.step-item { display: flex; align-items: center; gap: 4px; }
.step-connector { height: 1px; width: 30px; background: var(--surface-hst); }
.step-connector.done { background: var(--ink); }
.step-circle {
  width: 18px; height: 18px; border-radius: 9px; border: 1.5px solid var(--surface-hst);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-circle.done { background: var(--ink); border-color: var(--ink); }
.step-circle.active { background: var(--accent); border-color: var(--accent); }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; color: var(--ink-3); }
.step-circle.done .step-num, .step-circle.active .step-num { color: #f4f0e6; }
.step-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.76px;
  text-transform: uppercase; color: var(--ink-3);
}
.step-label.active { color: var(--ink); }

/* ── Canvas step content ── */
.canvas-scroll { flex: 1; overflow: hidden; padding: 0 15px 12px; }
.step-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; padding-top: 13px;
}
.step-heading {
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 24px;
  letter-spacing: -0.8px; line-height: 30px; color: var(--ink); margin-bottom: 5px;
}
.step-description {
  font-family: 'Inter', sans-serif; font-size: 12.5px; line-height: 19px;
  color: var(--ink-2); margin-bottom: 14px;
}

/* ── Letter card ── */
.letter-card {
  background: #fdfaf1; border: 1px solid var(--surface-hst);
  border-radius: 6px; margin-bottom: 13px;
  box-shadow: 0 2px 8px rgba(26,26,23,0.06); overflow: hidden;
}
.letter-masthead {
  border-bottom: 1px solid var(--surface-high); padding: 10px 17px;
  display: flex; justify-content: space-between;
}
.masthead-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--ink-3);
}
.letter-field { padding: 12px 17px 8px; }
.letter-field + .letter-field { border-top: 1px solid var(--surface-high); }
.field-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.field-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--ink-3);
}
.field-edit { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--accent); }
.field-subject {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px;
  color: var(--ink); line-height: 1.3; padding: 3px 0;
}
.field-body {
  font-family: 'Inter', sans-serif; font-size: 13.5px; line-height: 24px;
  color: var(--ink); white-space: pre-line;
}
.field-footer {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--surface-high); padding: 8px 17px 10px; margin-top: 8px;
}
.field-footer-text {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px; color: var(--ink-3);
}

/* ── Refine bar ── */
.refine-bar {
  background: var(--surface); border: 1px solid var(--surface-hst);
  border-radius: 15px; padding: 11px 13px 9px; margin-bottom: 13px;
}
.refine-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.refine-bar-left { display: flex; align-items: center; gap: 5px; }
.refine-star { color: var(--accent); font-size: 11px; }
.refine-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--accent);
}
.refine-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--ink-3);
}
.refine-input {
  font-family: 'Inter', sans-serif; font-size: 13px; line-height: 19px;
  color: var(--ink-3); min-height: 30px; padding: 3px 0; margin-bottom: 7px;
}
.refine-footer { display: flex; align-items: center; justify-content: space-between; }
.chips-row { display: flex; gap: 5px; flex: 1; }
.chip {
  background: var(--bg-low); border-radius: 100px; padding: 4px 9px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.76px;
  text-transform: uppercase; color: var(--ink-2);
}
.refine-send {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-hst);
  display: flex; align-items: center; justify-content: center;
}

/* ── Sticky CTA ── */
.sticky-cta {
  border-top: 1px solid var(--surface-high);
  background: var(--bg); padding: 11px 15px 10px; flex-shrink: 0;
}
.primary-btn {
  background: var(--ink); border-radius: 12px; padding: 14px 18px;
  text-align: center; font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 14px; color: #fbf8f0; letter-spacing: -0.1px;
}
.primary-btn.accent { background: var(--accent); }

/* ── A4 paper preview ── */
.paper-preview {
  background: #fffef9; border: 1px solid var(--surface-hst); border-radius: 7px;
  margin-bottom: 5px; box-shadow: 0 2px 8px rgba(26,26,23,0.06);
  position: relative; overflow: hidden; aspect-ratio: 210/297;
}
.fold-mark { position: absolute; left: 4px; width: 12px; height: 1px; background: #bbb; }
.addr-window { position: absolute; left: 12%; top: 15%; width: 40%; height: 15%; }
.addr-sender {
  font-family: 'Inter', sans-serif; font-size: 7.5px; color: var(--ink-3);
  border-bottom: 0.5px solid #5a5a5a; padding-bottom: 2px; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden;
}
.addr-recipient { margin-top: 6px; }
.addr-recipient-line {
  font-family: 'Inter', sans-serif; font-size: 10px; color: var(--ink); line-height: 14px; display: block;
}
.paper-main { position: absolute; left: 12%; right: 9%; top: 32%; bottom: 7%; }
.paper-date {
  text-align: right; font-family: 'Inter', sans-serif; font-size: 8.5px;
  color: var(--ink-3); margin-bottom: 14px;
}
.paper-subject {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 11.5px;
  color: var(--ink); line-height: 15px; margin-bottom: 16px;
}
.paper-para {
  font-family: 'Inter', sans-serif; font-size: 9.5px; line-height: 14px;
  color: var(--ink); margin-bottom: 8px; white-space: pre-line;
}
.preview-disclaimer {
  font-family: 'Inter', sans-serif; font-size: 10.5px; line-height: 15px;
  color: var(--ink-3); text-align: center; margin-bottom: 12px;
}

/* ── Signature row ── */
.signature-row {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--surface-hst);
  border-radius: 12px; padding: 11px 15px; margin-bottom: 12px;
}
.signature-prompt { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--ink-2); }

/* ── Self-handle row ── */
.self-handle-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--surface-hst);
  border-radius: 12px; padding: 11px 15px; margin-bottom: 12px;
}
.self-handle-text { flex: 1; }
.self-handle-title { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13.5px; color: var(--ink); line-height: 19px; }
.self-handle-sub { font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--ink-3); line-height: 16px; margin-top: 1px; }
.self-handle-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-low); border: 1px solid var(--surface-hst);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-2);
}

/* ── Postage card ── */
.postage-card {
  background: var(--surface); border: 1px solid var(--surface-hst);
  border-radius: 12px; padding: 14px 15px; margin-bottom: 10px;
}
.postage-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.84px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 11px;
}
.postage-row { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.postage-row + .postage-row { border-top: 1px solid var(--surface-high); }
.radio {
  width: 18px; height: 18px; border-radius: 9px; border: 1.5px solid var(--surface-hst);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.radio.active { border-color: var(--accent); }
.radio-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.postage-row-text { flex: 1; }
.postage-row-title { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px; color: var(--ink); line-height: 19px; }
.postage-row-sub { font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--ink-3); line-height: 17px; }
.postage-price { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.5px; color: var(--ink); }

/* ── Price total ── */
.price-total {
  background: var(--surface); border: 1px solid var(--surface-hst);
  border-radius: 12px; padding: 12px 15px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.price-total-label { font-family: 'Fraunces', serif; font-weight: 500; font-size: 14px; color: var(--ink); }
.price-total-value { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: 0.5px; color: var(--ink); font-weight: 600; }
