/* ═══════════════════════════════════════════════════════
   YARNTRAIL — same structure as PiClimbWeb and HairDiaryWeb, in the app's Heather style
   (docs/DECISIONS.md, ticket 01). Serif headings and numerals use the system serif, which is
   New York on Apple devices, as in the app; text uses the system sans (SF Pro). No web fonts.
   ═══════════════════════════════════════════════════════ */

/* 1. VARIABLES — the Heather tokens
   ─────────────────────────────────────────────────────── */
:root {
  --bg:        #f6f3f6;
  --bg-2:      #eee7ef;
  --bg-3:      #e6dbe8;
  --surface:   #ffffff;
  --header-bg: rgba(246, 243, 246, 0.86);

  --accent:      #7b4f86;   /* heather */
  --accent-dk:   #643f6e;
  --accent-2:    #a585b0;
  --accent-soft: #eadfec;   /* soft fill */
  --accent-line: rgba(123, 79, 134, 0.22);
  --trail:       #d9c7dd;
  --warn:        #8a3b5c;   /* instructions */
  --link:        #7b4f86;
  --on-accent:   #ffffff;

  --text:      #241b26;     /* ink */
  --text-2:    #4f4352;
  --text-3:    #6f6372;     /* muted */
  --border:    rgba(36, 27, 38, 0.09);
  --error:     #a8323e;

  --serif: ui-serif, 'New York', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', 'Hiragino Sans', 'Apple SD Gothic Neo', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --pad:   clamp(16px, 5vw, 80px);
  --max-w: 1200px;

  --r1: 12px;
  --r2: 16px;
  --r3: 22px;               /* the app's large-surface radius */

  --sh1: 0 1px 3px rgba(36,27,38,.06), 0 2px 8px rgba(36,27,38,.04);
  --sh3: 0 12px 48px rgba(36,27,38,.12), 0 4px 16px rgba(36,27,38,.06);

  --gradient: linear-gradient(135deg, #8d619a 0%, #6e4a7a 100%);
  --cover:    repeating-linear-gradient(60deg, transparent 0 6px, rgba(255,255,255,.18) 6px 7px),
              repeating-linear-gradient(-60deg, transparent 0 6px, rgba(0,0,0,.08) 6px 7px),
              linear-gradient(160deg, #a585b0, #6e4a7a);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #17121a;
    --bg-2:      #1d1720;
    --bg-3:      #261e2a;
    --surface:   #221b25;
    --header-bg: rgba(23, 18, 26, 0.84);

    --accent:      #c59bd0;
    --accent-dk:   #b386bf;
    --accent-2:    #8d619a;
    --accent-soft: #33283a;
    --accent-line: rgba(197, 155, 208, 0.26);
    --trail:       #3d2f42;
    --warn:        #e79ab8;
    --link:        #c59bd0;
    --on-accent:   #1c1420;

    --text:      #f1eaf2;
    --text-2:    #cbbfce;
    --text-3:    #a898ac;
    --border:    rgba(255, 255, 255, 0.10);
    --error:     #ff8f9a;

    --sh1: 0 1px 3px rgba(0,0,0,.3);
    --sh3: 0 12px 48px rgba(0,0,0,.45);

    --gradient: linear-gradient(135deg, #d2abdc 0%, #a97cb6 100%);
  }
}

/* 2. RESET & BASE
   ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
textarea { resize: vertical; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.visually-hidden-focusable {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.visually-hidden-focusable:focus {
  position: static; width: auto; height: auto;
  overflow: visible; clip: auto; white-space: normal;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 16px; border-radius: 4px; z-index: 9999;
}

/* 3. HEADER
   ─────────────────────────────────────────────────────── */
body > header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad);
  height: 64px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-brand {
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0;
}
.brand-logo {
  border-radius: 8px;
  box-shadow: var(--sh1);
}
.brand-name {
  font-family: var(--serif);
  font-size: 21px; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1;
}
.nav-link {
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover      { color: var(--link); background: var(--accent-soft); }
.nav-link--active    { color: var(--link); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  padding: 8px; border-radius: var(--r1);
  color: var(--text);
  margin-left: auto;
  transition: background .15s;
}
.nav-toggle:hover { background: var(--accent-soft); }

/* Language Picker */
.lang-picker { position: relative; flex-shrink: 0; }
.lang-trigger {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  cursor: pointer; background: none; border: none;
  list-style: none;
  transition: color .15s, background .15s;
  user-select: none;
}
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger:hover { color: var(--link); background: var(--accent-soft); }
.lang-code { font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.lang-chevron { transition: transform .2s; }
details[open] .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh3);
  padding: 8px; min-width: 300px; z-index: 200;
}
.lang-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  list-style: none;
}
.lang-option {
  display: block;
  padding: 8px 10px; border-radius: var(--r1);
  font-size: 13px; color: var(--text-2);
  transition: color .15s, background .15s; white-space: nowrap;
}
.lang-option:hover          { color: var(--link); background: var(--accent-soft); }
.lang-option--active        { color: var(--link); font-weight: 600; background: var(--accent-soft); }


/* 5. STATS BAR
   ─────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--gradient);
  padding: 18px var(--pad);
}
.stats-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 16px 56px; flex-wrap: wrap;
  list-style: none;
}
.stat-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.92);
}
.stat-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.14);
  border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon--pi { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 14px; font-weight: 500; }

/* 6. FEATURES
   ─────────────────────────────────────────────────────── */
.features {
  padding: 100px var(--pad);
  max-width: var(--max-w); margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--link); margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600; line-height: 1.1;
  color: var(--text); letter-spacing: -.02em;
}
.section-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.65;
  margin-top: 12px; max-width: 540px;
  margin-left: auto; margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh3);
  border-color: var(--accent-line);
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft); color: var(--link);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--serif);
  font-size: 23px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
  line-height: 1.2;
}
.feature-text {
  font-size: 15px; line-height: 1.65; color: var(--text-2);
}


/* 8. DOWNLOAD CTA
   ─────────────────────────────────────────────────────── */
.download-cta {
  padding: 100px var(--pad);
  text-align: center;
  background: var(--bg-2);
}
.download-cta-inner {
  max-width: 560px; margin: 0 auto;
}
.download-cta-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text); margin-bottom: 16px;
}
.download-cta-sub {
  font-size: 17px; color: var(--text-2);
  margin-bottom: 40px; line-height: 1.65;
}

.appstore-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: #1c1420; color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(36,27,38,.22);
}
.appstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(36,27,38,.30);
}
.appstore-badge-text { text-align: left; }
.appstore-badge-line1 {
  display: block; font-size: 11px; font-weight: 400;
  opacity: .7; letter-spacing: .02em;
}
.appstore-badge-line2 {
  display: block; font-size: 20px; font-weight: 600;
  letter-spacing: -.01em;
}
.download-note {
  margin-top: 16px; font-size: 14px; color: var(--text-3);
}

/* 9. PROSE (Support, Privacy)
   ─────────────────────────────────────────────────────── */
.prose-page {
  max-width: 760px; margin: 0 auto;
  padding: 60px var(--pad) 100px;
}
.prose-header { margin-bottom: 40px; }
.prose-header h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text); margin-bottom: 12px;
}
.prose-meta { font-size: 14px; color: var(--text-3); }
.prose-meta a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

.support-intro { font-size: 17px; color: var(--text-2); line-height: 1.65; }
.support-grid  { display: flex; flex-direction: column; gap: 24px; }

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 36px;
  scroll-margin-top: 80px;
}
.support-card h2 {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600;
  color: var(--text); margin-bottom: 20px;
}
.contact-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 15px; align-items: center;
}
.contact-label { color: var(--text-3); font-weight: 500; }
.contact-row a { color: var(--link); transition: opacity .15s; overflow-wrap: anywhere; }
.contact-row a:hover { opacity: .7; }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0;
  font-size: 16px; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; font-weight: 400; line-height: 1;
  color: var(--link); flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 18px;
  font-size: 15px; line-height: 1.7; color: var(--text-2);
}

/* 10. FORMS
   ─────────────────────────────────────────────────────── */
.form-field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 20px;
}
.form-field label {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.form-field input,
.form-field textarea {
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r1);
  font-family: var(--sans); font-size: 16px; color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { min-height: 140px; }
.form-field--trap {
  position: absolute; left: -10000px;
  width: 1px; height: 1px; overflow: hidden;
}
.form-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--gradient); color: var(--on-accent);
  border-radius: 100px; font-size: 15px; font-weight: 600;
  border: none;
  transition: transform .15s, filter .2s;
  box-shadow: 0 2px 12px rgba(123,79,134,.28);
}
.form-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.field-error { color: var(--error); font-size: 12px; font-weight: 500; }
.alert-success {
  padding: 12px 16px;
  background: rgba(46,160,90,.10);
  border: 1px solid rgba(46,160,90,.28);
  border-radius: var(--r1); font-size: 14px; color: var(--text);
  margin-bottom: 20px;
}
.alert-error {
  padding: 12px 16px;
  background: rgba(176,58,46,.08);
  border: 1px solid rgba(176,58,46,.24);
  border-radius: var(--r1); font-size: 14px; color: var(--error);
  margin-bottom: 20px;
}
.alert-error ul { padding-left: 18px; }

/* 11. PRIVACY
   ─────────────────────────────────────────────────────── */
.privacy-content { line-height: 1.75; }
.privacy-content > p:first-child { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.privacy-content h2 {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600;
  margin-top: 44px; margin-bottom: 12px; color: var(--text);
}
.privacy-content p  { margin-bottom: 16px; font-size: 16px; color: var(--text-2); }
.privacy-content ul { padding-left: 20px; margin-bottom: 16px; font-size: 16px; color: var(--text-2); }
.privacy-content li { margin-bottom: 6px; }
.privacy-content a  { color: var(--link); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.privacy-content strong { color: var(--text); }

/* 12. ERROR PAGES
   ─────────────────────────────────────────────────────── */
.error-page {
  min-height: calc(100dvh - 64px - 90px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px var(--pad);
}
.error-code {
  font-family: var(--mono);
  font-size: 96px; font-weight: 700;
  color: var(--accent-line); line-height: 1; margin-bottom: 16px;
}
.error-title {
  font-family: var(--serif);
  font-size: 32px; font-weight: 600;
  color: var(--text); margin-bottom: 12px;
}
.error-sub { font-size: 16px; color: var(--text-2); margin-bottom: 32px; }

/* 13. FOOTER
   ─────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--pad);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-size: 17px; font-weight: 600; color: var(--text);
}
.footer-brand img { border-radius: 6px; }
.footer-copy { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color .15s; }
.footer-links a:hover { color: var(--link); }

/* 14. SCROLL ANIMATIONS
   ─────────────────────────────────────────────────────── */
[data-animate] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-animate].is-visible { opacity: 1; transform: none; }
[data-animate][data-delay="1"] { transition-delay: .08s; }
[data-animate][data-delay="2"] { transition-delay: .16s; }
[data-animate][data-delay="3"] { transition-delay: .24s; }
[data-animate][data-delay="4"] { transition-delay: .32s; }
[data-animate][data-delay="5"] { transition-delay: .40s; }
[data-animate][data-delay="6"] { transition-delay: .48s; }

/* ═══════════════════════════ YARNTRAIL ═══════════════════════════ */

/* The stats bar's gradient is light in dark mode, so its text follows the accent ink. */
.stat-item { color: var(--on-accent); }
@media (prefers-color-scheme: dark) {
  .stat-icon { background: rgba(28,20,32,.10); }
}

/* HERO
   ─────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 72px;
  align-items: center;
  min-height: calc(100dvh - 64px);
  padding: 60px var(--pad) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge-icon { border-radius: 7px; }
.hero-badge-text { font-size: 13px; font-weight: 600; color: var(--link); letter-spacing: .02em; }
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 18px;
  overflow-wrap: break-word;
}
.hero-promise {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 100px;
  font-size: 15px; font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s;
  box-shadow: 0 2px 14px rgba(123,79,134,.30);
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(123,79,134,.36); }
.btn-primary:active { transform: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 22px;
  color: var(--link);
  border-radius: 100px; font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--accent-line);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--link); background: var(--accent-soft); }

/* PHONE MOCKUPS (drawn, not screenshots)
   ─────────────────────────────────────────────────────── */
.phone {
  width: 300px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 46px;
  box-shadow: var(--sh3);
}
.phone-screen {
  background: var(--bg);
  border-radius: 36px;
  padding: 26px 20px 22px;
  display: grid; gap: 16px;
  min-height: 520px;
  align-content: start;
}
.phone--small { width: 250px; border-radius: 40px; padding: 10px; }
.phone--small .phone-screen { min-height: 430px; border-radius: 31px; padding: 22px 16px; gap: 12px; }

.mock-proj { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock-proj-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.chip {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.mock-counter { display: grid; justify-items: center; gap: 2px; padding-block: 8px; }
.mock-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.mock-num {
  font-family: var(--serif);
  font-size: 104px; font-weight: 400; line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
}
.mock-of { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.yarn { width: 100%; height: 44px; display: block; }
.yarn-base { stroke: var(--trail); }
.yarn-prog { stroke: var(--accent); }
.mock-secondary {
  display: flex; justify-content: space-between; gap: 10px;
  background: var(--surface); border-radius: 13px;
  padding: 10px 14px; font-size: 14px;
}
.mock-secondary b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mock-instr { font-size: 14px; display: flex; gap: 8px; align-items: center; color: var(--warn); font-weight: 600; }
.mock-instr .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.mock-controls { display: grid; grid-template-columns: 56px 1fr 56px; gap: 12px; align-items: center; margin-top: 4px; }
.mock-ctl {
  height: 56px; border-radius: 50%;
  background: var(--surface); color: var(--text);
  font-size: 22px; display: grid; place-items: center;
}
.mock-plus {
  height: 72px; border-radius: var(--r3);
  background: var(--accent); color: var(--on-accent);
  font-size: 28px; font-weight: 600;
  display: grid; place-items: center;
}

.mock-title { font-family: var(--serif); font-size: 26px; }
.mock-card {
  display: grid; grid-template-columns: 64px 1fr;
  background: var(--surface); border-radius: 16px; overflow: hidden;
}
.mock-cover { background: var(--cover); min-height: 78px; }
.mock-cover--b { filter: hue-rotate(-28deg) saturate(.8); }
.mock-cover--c { filter: hue-rotate(24deg) brightness(.9); }
.mock-card-body { padding: 10px 12px; display: grid; gap: 4px; min-width: 0; font-size: 14px; }
.mock-card-body b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-meta { font-size: 12px; color: var(--text-3); }
.mini { height: 5px; border-radius: 3px; background: var(--trail); overflow: hidden; }
.mini span { display: block; height: 100%; background: var(--accent); }

.mock-pdf {
  background: #ffffff; border-radius: 12px;
  padding: 16px 14px; display: grid; gap: 9px;
  box-shadow: var(--sh1);
}
.mock-pdf i { display: block; height: 6px; border-radius: 3px; background: #ddd5de; }
.mock-pdf i.mock-pdf-marker { background: #ddd5de; outline: 7px solid rgba(123,79,134,.22); outline-offset: 0; }
.mock-pdf i.mock-pdf-highlight { background: #f0d48a; }

.phone-screen--card { place-content: center; }
.share-card {
  background: var(--surface); border-radius: 18px; overflow: hidden;
  display: grid; gap: 6px; padding-bottom: 14px;
  box-shadow: var(--sh1);
}
.share-photo { background: var(--cover); aspect-ratio: 4 / 3.4; margin-bottom: 8px; }
.share-kicker { padding-inline: 16px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.share-title { padding-inline: 16px; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; }
.share-stats { padding-inline: 16px; display: flex; gap: 22px; margin-top: 4px; }
.share-stats dt { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.share-stats dd { font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; }
.share-footer { padding-inline: 16px; font-size: 10px; color: var(--text-3); margin-top: 6px; }

/* SCREENS
   ─────────────────────────────────────────────────────── */
.screens { padding: 100px var(--pad); background: var(--bg-2); }
.screens-row {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
}
.screen { display: grid; justify-items: center; gap: 18px; }
.screen figcaption { font-size: 15px; color: var(--text-2); text-align: center; max-width: 250px; }

/* WATCH + LIVE ACTIVITY
   ─────────────────────────────────────────────────────── */
.duo {
  max-width: var(--max-w); margin: 0 auto;
  padding: 100px var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.duo-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 40px 36px;
}
.duo-title { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 400; line-height: 1.15; margin-bottom: 12px; }
.duo-text { font-size: 16px; color: var(--text-2); line-height: 1.65; }

.watch {
  width: 150px; height: 182px; margin: 0 auto 32px;
  background: #1c1420; border-radius: 42px; padding: 10px;
  box-shadow: var(--sh3);
}
.watch-screen {
  height: 100%; border-radius: 33px; background: #000;
  color: #f1eaf2; display: grid; justify-items: center; align-content: center; gap: 2px;
}
.watch-proj { font-size: 11px; color: #a898ac; text-align: center; line-height: 1.25; padding-inline: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.watch-num { font-family: var(--serif); font-size: 56px; line-height: 1; }
.watch-plus {
  margin-top: 6px; width: 96px; padding: 7px 0; text-align: center;
  background: #c59bd0; color: #1c1420; border-radius: 999px; font-weight: 600; font-size: 15px;
}

.live { display: grid; gap: 12px; justify-items: center; margin: 0 auto 32px; max-width: 340px; }
.live-island {
  display: flex; justify-content: space-between; align-items: center;
  width: 170px; padding: 8px 16px;
  background: #000; color: #f1eaf2; border-radius: 999px;
  font-family: var(--serif); font-size: 17px; font-variant-numeric: tabular-nums;
}
.live-dot { width: 18px; height: 18px; border-radius: 50%; background: #c59bd0; }
.live-card {
  width: 100%; background: rgba(36,27,38,.86); color: #f1eaf2;
  border-radius: 24px; padding: 16px 18px 10px;
  display: grid; gap: 6px;
  --trail: #3d2f42; --accent: #c59bd0;
}
.live-top { display: flex; justify-content: space-between; align-items: center; }
.live-plus { background: #c59bd0; color: #1c1420; border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 14px; }
.live-row { font-size: 13px; color: #cbbfce; }

/* FINISH
   ─────────────────────────────────────────────────────── */
.finish { padding: 40px var(--pad) 100px; }
.finish-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.formats {
  list-style: none; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin-top: 36px; color: var(--text-2); font-size: 14px;
}
.formats li { display: grid; justify-items: center; gap: 10px; align-content: end; }
.format { display: block; background: var(--cover); border-radius: 8px; width: 54px; }
.format--story    { aspect-ratio: 9 / 16; }
.format--portrait { aspect-ratio: 4 / 5; }
.format--square   { aspect-ratio: 1; }

/* FREE AND PRO
   ─────────────────────────────────────────────────────── */
.pricing { padding: 100px var(--pad); background: var(--bg-2); }
.pricing-grid {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 36px 32px;
}
.plan--pro { border: 1.5px solid var(--accent-line); box-shadow: var(--sh3); }
.plan-name { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.plan-price { font-size: 14px; font-weight: 600; color: var(--accent); margin: 4px 0 18px; text-transform: uppercase; letter-spacing: .08em; }
.plan-lead { font-family: var(--serif); font-size: 20px; margin-bottom: 14px; }
.plan-points { list-style: none; display: grid; gap: 11px; }
.plan-points li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.check {
  width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.plan-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3); line-height: 1.6; }
.pricing-always {
  max-width: 640px; margin: 36px auto 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--text-2);
}

/* PRIVACY BAND
   ─────────────────────────────────────────────────────── */
.privacy-band { padding: 100px var(--pad); }
.privacy-band-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.privacy-band .btn-ghost { margin-top: 28px; }

.download-cta .yarn { max-width: 320px; margin: 0 auto 28px; }

/* RESPONSIVE
   ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center; justify-items: center;
    padding-top: 40px; min-height: auto; gap: 48px;
  }
  .hero-content { max-width: 100%; }
  .hero-sub     { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 600px) {
  body > header { gap: 8px; }
  .header-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; align-items: stretch;
    padding: 8px 0 16px; gap: 0; z-index: 50;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(36,27,38,.10);
  }
  .header-nav.nav-open { display: flex; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-link { padding: 13px var(--pad); font-size: 16px; width: 100%; border-radius: 0; }
  .lang-dropdown { position: fixed; top: 64px; left: 16px; right: 16px; min-width: 0; }

  .phone { width: min(300px, 100%); }
  .mock-num { font-size: 88px; }
  .features, .screens, .duo, .pricing, .privacy-band, .download-cta { padding-top: 72px; padding-bottom: 72px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card  { padding: 24px 20px; }
  .duo-item, .plan { padding: 28px 22px; }
  .support-card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 14px; flex-wrap: wrap; }
}

/* REDUCED MOTION
   ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
