/* Sheaf — marketing/product page.
   Adfinium house bar (cf. the Clearfolio + Traverse sites): SF Pro Rounded display with a system-serif
   italic accent, an asymmetric editorial hero, a subtle full-page wash, layered shadows, custom line
   icons, scroll-reveal motion. Tinted to Sheaf's GREEN identity (its split-squares app icon) the same way
   Clearfolio is tinted to its steel-blue. System fonts only — NO web fonts, NO third-party requests, NO
   trackers (consistent with the app's own offline, collects-nothing posture). Honours
   prefers-reduced-motion + prefers-color-scheme; tokens target WCAG AA. */

:root {
  color-scheme: light dark;

  --ink:        #0E211C;
  --ink-dim:    rgba(14, 33, 28, 0.64);
  --ink-faint:  rgba(14, 33, 28, 0.64); /* AA on the wash + surfaces (>= 4.8:1 at 13-14px) */
  --brand:      #0B7355;   /* deep emerald (AA on light wash + surfaces) */
  --brand-deep: #06513C;
  --on-brand:   #FFFFFF;

  /* Split-squares palette (icon chips, accents) */
  --teal: #3E9B86;
  --lime: #A6D85F;
  --sky:  #57C98E;   /* bright green used in icon gradients + status dots */

  --bg-grad-top:    #F5FAF7;
  --bg-grad-bottom: #EAF3EE;
  --bg-grad-deep:   #E0ECE5;
  --surface:        #FFFFFF;
  --surface-soft:   rgba(255, 255, 255, 0.72);
  --surface-sunk:   #F0F6F2;
  --hairline:       rgba(14, 33, 28, 0.10);
  --hairline-soft:  rgba(14, 33, 28, 0.06);

  --shadow-card: 0 1px 3px rgba(14, 33, 28, 0.06), 0 14px 40px rgba(14, 33, 28, 0.10);
  --shadow-soft: 0 1px 3px rgba(14, 33, 28, 0.04), 0 6px 18px rgba(14, 33, 28, 0.06);
  --shadow-art:  0 30px 80px rgba(10, 40, 30, 0.26);

  --radius-card: 21px;
  --radius-pill: 999px;
  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --display: -apple-system, "SF Pro Rounded", "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --text: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #E7F2EC;
    --ink-dim:    rgba(231, 242, 236, 0.66);
    --ink-faint:  rgba(231, 242, 236, 0.60);
    --brand:      #5FD3A8;
    --brand-deep: #86E3C4;
    --bg-grad-top:    #12302A;
    --bg-grad-bottom: #0B1F1A;
    --bg-grad-deep:   #061310;
    --surface:        #132220;
    --surface-soft:   rgba(19, 34, 32, 0.62);
    --surface-sunk:   #0E1C19;
    --hairline:       rgba(255, 255, 255, 0.10);
    --hairline-soft:  rgba(255, 255, 255, 0.06);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 16px 44px rgba(0, 0, 0, 0.36);
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.22);
    --shadow-art:  0 30px 80px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  --ink: #E7F2EC; --ink-dim: rgba(231,242,236,0.66); --ink-faint: rgba(231,242,236,0.60);
  --brand: #5FD3A8; --brand-deep: #86E3C4;
  --bg-grad-top: #12302A; --bg-grad-bottom: #0B1F1A; --bg-grad-deep: #061310;
  --surface: #132220; --surface-soft: rgba(19,34,32,0.62); --surface-sunk: #0E1C19;
  --hairline: rgba(255,255,255,0.10); --hairline-soft: rgba(255,255,255,0.06);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 16px 44px rgba(0,0,0,0.36);
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.3), 0 6px 18px rgba(0,0,0,0.22);
  --shadow-art: 0 30px 80px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.55;
  background: linear-gradient(to bottom, var(--bg-grad-top) 0%, var(--bg-grad-bottom) 58%, var(--bg-grad-deep) 100%);
  background-attachment: fixed; min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
}

h1, h2, h3, h4 { margin: 0; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.03; }
.h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.018em; line-height: 1.1; color: var(--ink);
  font-size: clamp(30px, 4vw, 50px); max-width: 20ch; }
.accent { font-family: var(--serif); font-weight: 300; font-style: italic; letter-spacing: -0.01em; color: var(--brand); }
.eyebrow { font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-dim); line-height: 1.5; max-width: 56ch; }
p { color: var(--ink-dim); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 5px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius-card); z-index: 100; box-shadow: var(--shadow-soft); }
.skip-link:focus { left: 14px; top: 14px; }

.container { max-width: var(--max-w); margin: 0 auto; }
section { padding: clamp(60px, 8.5vw, 124px) var(--gutter); }
.section-head .lede { margin-top: 14px; }
.section-head .eyebrow + .h2 { margin-top: 13px; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50;
  background: var(--bg-grad-top); /* fallback if color-mix unsupported */
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg-grad-top) 78%, transparent), transparent);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid var(--hairline-soft); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 13px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--display);
  font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14px; color: var(--ink-dim); margin-left: auto; }
.nav-links a { color: inherit; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-side { display: flex; align-items: center; gap: 10px; }
.theme-toggle { appearance: none; border: 1px solid var(--hairline); background: var(--surface-soft);
  color: var(--ink-dim); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; transition: color .2s ease, background .2s ease; }
.theme-toggle:hover { color: var(--ink); }
.pill-soon { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--surface); font-size: 13.5px; font-weight: 600; }
.pill-soon .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── Brand badge (the real app icon, small) ── */
.brand-badge { flex: none; width: 34px; height: 34px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(10,40,30,0.22), 0 0 0 1px var(--hairline-soft); }
.brand-badge img { width: 34px; height: 34px; display: block; }

/* ── Hero ── */
.hero { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.04fr 1fr;
  gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; gap: 8px; text-align: center; } }
.hero h1 { font-size: clamp(40px, 6vw, 76px); color: var(--ink); margin-top: 18px; }
.hero .lede { margin-top: clamp(18px, 2vw, 26px); }
@media (max-width: 960px) { .hero .lede { margin-inline: auto; } }
.hero-cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
@media (max-width: 960px) { .hero-cta-row { justify-content: center; } }
.cta-soon { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--surface); font-weight: 600; font-size: 15px; cursor: default; }
.cta-soon:hover { text-decoration: none; }
.cta-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.hero-note { color: var(--ink-faint); font-size: 14px; }
.hero-note b { color: var(--ink-dim); font-weight: 600; }

/* Hero art = the real app icon, floating over a soft halo. */
.hero-stage { position: relative; display: grid; place-items: center; }
.hero-stage::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(87, 201, 142, 0.42), transparent);
  filter: blur(40px); opacity: 0.5; z-index: 0; }
.hero-art { position: relative; z-index: 1; width: min(82%, 360px); border-radius: 23%;
  box-shadow: var(--shadow-art); }
.hero-art img { width: 100%; height: auto; display: block; border-radius: 23%; }
@media (max-width: 960px) { .hero-stage { margin-top: 40px; } .hero-art { width: min(60%, 260px); } }

/* ── Cards / grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 28px); margin-top: clamp(36px, 4vw, 60px); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius-card); padding: clamp(24px, 2.4vw, 32px);
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.card p { margin: 0; color: var(--ink-dim); font-size: 15.5px; line-height: 1.5; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--sky), var(--brand)); box-shadow: 0 4px 12px rgba(11,115,85,0.30); }

/* ── Privacy panel ── */
.panel { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: clamp(28px, 3.4vw, 52px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 15px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink); font-size: 16px; }
.checks li svg { margin-top: 3px; color: var(--brand); }
.checks small { display: block; color: var(--ink-faint); font-size: 14px; margin-top: 2px; }
.privacy-aside { text-align: center; }
.label-chip { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; padding: 26px 30px;
  background: var(--surface-sunk); border: 1px solid var(--hairline-soft); border-radius: var(--radius-card); }
.label-chip .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.label-chip .v { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.label-chip .note { font-size: 13px; color: var(--ink-faint); max-width: 22ch; }

/* ── Steps (how it works) ── */
.steps { list-style: none; padding: 0; margin: clamp(32px,4vw,52px) 0 0; display: grid; gap: 26px; max-width: 70ch; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 18px; align-items: start; }
.step .dot { width: 11px; height: 11px; margin-top: 7px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 5px rgba(11, 115, 85, 0.18);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); }
.step h3 { font-size: 18px; color: var(--ink); font-weight: 600; letter-spacing: -0.005em; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }

/* ── Preview (framed Mac windows) ── */
.shots { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 38px); justify-content: center; margin-top: clamp(36px, 4vw, 60px); align-items: flex-start; }
.macwin { flex: 0 0 auto; width: clamp(260px, 40vw, 340px); border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-card), 0 0 0 1px var(--hairline); }
.macwin .bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px;
  background: var(--surface-sunk); border-bottom: 1px solid var(--hairline-soft); }
.macwin .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--hairline); display: block; }
.macwin .bar i:nth-child(1) { background: #FF5F57; }
.macwin .bar i:nth-child(2) { background: #FEBC2E; }
.macwin .bar i:nth-child(3) { background: #28C840; }
.macwin .screen { aspect-ratio: 68 / 82; display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px;
  background: radial-gradient(130% 70% at 50% 0%, var(--surface-sunk), var(--surface)); }
.macwin img { display: block; width: 100%; height: auto; }
.macwin .label { font-size: 13px; color: var(--ink-faint); }
.macwin .label strong { display: block; color: var(--ink-dim); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.shot-note { text-align: center; font-size: 13.5px; color: var(--ink-faint); margin-top: 22px; }

/* ── Price ── */
.price-card { max-width: 540px; margin: clamp(32px,4vw,52px) auto 0; text-align: center; color: #fff;
  background: linear-gradient(155deg, var(--brand-deep), #0C3B2C); border-radius: var(--radius-card);
  padding: clamp(32px, 4.4vw, 52px); box-shadow: var(--shadow-card); }
.price-card .k { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.70); font-weight: 600; }
.price-card .amount { font-family: var(--display); font-size: clamp(46px, 7vw, 64px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1; margin: 10px 0 14px; font-variant-numeric: tabular-nums; }
.price-card p { color: rgba(255,255,255,0.84); margin: 0; }

/* ── Support + FAQ ── */
.support-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(32px,4vw,52px); align-items: start; }
@media (max-width: 880px) { .support-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: clamp(26px,3vw,36px); }
.contact-card .big { font-family: var(--display); font-size: 20px; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 16px; font-size: 15.5px; color: var(--ink-dim); }

/* ── Footer ── */
footer { border-top: 1px solid var(--hairline); padding: 52px var(--gutter) 60px; color: var(--ink-faint); font-size: 13.5px; }
.foot-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
.foot-brand { max-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.foot-brand p { color: var(--ink-faint); font-size: 14px; line-height: 1.55; margin: 0; }
.foot-col .foot-h { display: block; margin: 0 0 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.foot-col a { display: block; padding: 4px 0; color: var(--ink-dim); }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { max-width: var(--max-w); margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--hairline-soft);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot-bottom .legal { max-width: 70ch; line-height: 1.5; }

/* ── Prose (privacy policy) ── */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); margin: 34px 0 8px; }
.prose p { color: var(--ink-dim); font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-dim); font-size: 16px; line-height: 1.6; }
.prose li { margin: 0 0 6px; }
.prose .updated { color: var(--ink-faint); font-size: 14px; margin-top: 30px; }

/* ── Reveal on scroll (progressive enhancement) ──
   Hidden ONLY when JS is present (the `js` class is set by the head script). Without JS the content is
   visible by default, so a no-JS / blocked-JS visitor still sees everything — they just don't animate. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
