/* ===== Paperstead landing — paper, ink and teal (tokens mirror app/src/theme/variables.scss) ===== */
:root {
  --paper: #f6f1e7;
  --surface: #fffdf8;
  --sunken: #eee7d9;
  --ink: #221e19;
  --ink-soft: #5c554a;
  --ink-faint: #6f6759;
  --line: rgba(34, 30, 25, 0.12);
  --line-strong: rgba(34, 30, 25, 0.24);
  --accent: #0b7a6b;
  --accent-strong: #095e53;
  --accent-soft: rgba(11, 122, 107, 0.12);
  --accent-contrast: #fffdf8;
  --marigold: #e9a13b;
  --marigold-soft: rgba(233, 161, 59, 0.26);
  --tile: #0b7a6b;
  --glyph: #fffdf8;
  --shadow: 0 1px 2px rgba(34, 30, 25, 0.06), 0 10px 30px rgba(34, 30, 25, 0.09);
  --shadow-lg: 0 2px 6px rgba(34, 30, 25, 0.08), 0 30px 70px rgba(34, 30, 25, 0.18);
  --band: #13302b;
  --band-ink: #f6f1e7;
  --band-soft: rgba(246, 241, 231, 0.78);
  --nav-bg: rgba(246, 241, 231, 0.82);
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: 'Newsreader', 'Iowan Old Style', Palatino, Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171410;
    --surface: #211d18;
    --sunken: #110f0c;
    --ink: #ede6da;
    --ink-soft: #b3a998;
    --ink-faint: #958b7b;
    --line: rgba(237, 230, 218, 0.13);
    --line-strong: rgba(237, 230, 218, 0.26);
    --accent: #2fb39f;
    --accent-strong: #4cc4b1;
    --accent-soft: rgba(47, 179, 159, 0.16);
    --accent-contrast: #12100d;
    --marigold-soft: rgba(233, 161, 59, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.55);
    --band: #0d2521;
    --nav-bg: rgba(23, 20, 16, 0.82);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a, .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.container { width: min(1140px, 92%); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-contrast); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap; padding: 11px 22px; font-size: 16px;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 8px 22px rgba(11, 122, 107, .28); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 12px 28px rgba(11, 122, 107, .34); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { box-shadow: var(--shadow); }
.btn-light { background: var(--band-ink); color: #0b3b34; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.btn svg { width: 18px; height: 18px; }

/* ----- Logo ----- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; }
.mark-tile { fill: var(--tile); }
.mark-glyph { fill: var(--glyph); }

/* ----- Nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent); }
.nav .btn { margin-left: 8px; }

/* ----- Hero ----- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 56px; }
.hero-copy { max-width: 940px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-soft);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); }
.hero h1 em {
  font-style: italic; color: var(--accent);
  background: linear-gradient(transparent 62%, var(--marigold-soft) 62%, var(--marigold-soft) 92%, transparent 92%);
  padding: 0 .06em;
}
.lead { margin: 22px auto 30px; text-wrap: pretty; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 620px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-faint); }

/* Product visual: desktop window + overlapping phone */
.showcase { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 0 48px; }
.window {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden; margin-right: 12%;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.window-bar span:nth-child(1) { background: #e0685c; }
.window-bar span:nth-child(2) { background: #e9b04a; }
.window-bar span:nth-child(3) { background: #5fb96a; }
.window-bar .title { margin-left: 10px; width: auto; height: auto; border-radius: 0; background: none; font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.window img, .phone img { width: 100%; height: auto; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 25%; min-width: 150px;
  padding: 7px; border-radius: 34px; background: #1c1915; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .1);
}
.phone picture { border-radius: 27px; overflow: hidden; }

/* ----- Sections ----- */
section { padding: 88px 0; }
.section-kicker { text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-title { text-align: center; font-size: clamp(30px, 4vw, 46px); }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 14px auto 0; font-size: 18px; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.f-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.f-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 16px 0 8px; font-size: 21px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; }

/* Screens strip */
.strip { padding-top: 0; }
.strip-grid { display: grid; grid-template-columns: 2.6fr 1fr; gap: 20px; align-items: end; }
.strip figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.strip figure img { border-radius: 10px; width: 100%; height: auto; }
.strip figcaption { font-size: 14px; color: var(--ink-faint); padding: 10px 6px 2px; }

/* Privacy band */
.privacy-band { background: var(--band); color: var(--band-ink); position: relative; }
.privacy-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.privacy-band .section-kicker { text-align: left; color: #8fd8cb; }
.privacy-band h2 { font-size: clamp(30px, 4vw, 46px); }
.privacy-band .intro { margin-top: 16px; color: var(--band-soft); font-size: 18px; }
.privacy-band .intro a { color: #bfeee5; }
.p-list { list-style: none; display: grid; gap: 14px; }
.p-list li {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 18px;
}
.p-list svg { width: 26px; height: 26px; color: #8fd8cb; margin-top: 2px; }
.p-list h3 { font-size: 20px; margin-bottom: 4px; }
.p-list p { color: var(--band-soft); font-size: 15.5px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 22px; margin-top: 48px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { font-size: 28px; }
.plan .price { margin: 8px 0 4px; font-family: var(--font-display); font-size: 40px; font-weight: 600; }
.plan .price small { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.plan .price-alt { color: var(--ink-soft); font-size: 15px; }
.plan .plan-sub { color: var(--ink-soft); margin: 10px 0 18px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15.5px; }
.plan li svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Download */
.download { background: var(--sunken); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.dl-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.dl-card.is-recommended { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.rec-tag {
  align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 10px;
}
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-head svg { width: 30px; height: 30px; color: var(--ink); flex: none; }
.dl-card h3 { font-size: 22px; }
.dl-card p { color: var(--ink-soft); font-size: 15px; }
.dl-card .actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.soon { font-size: 13px; font-weight: 700; color: var(--ink-faint); }
[data-store].is-live .soon { display: none; }

/* Store badges — drawn in CSS, never hotlinked */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 10px; padding: 6px 16px 6px 12px;
  transition: transform .15s ease;
}
a.store-badge[href]:hover { transform: translateY(-2px); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge .b-txt { display: flex; flex-direction: column; line-height: 1.1; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge .b-txt small { font-size: 10.5px; font-weight: 500; letter-spacing: .01em; }
.store-badge.is-soon { opacity: .55; cursor: default; }
@media (prefers-color-scheme: dark) { .store-badge { border-color: #6b6b6b; } }

/* FAQ */
.faq-list { max-width: 780px; margin: 44px auto 0; display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--accent); line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 18px; color: var(--ink-soft); }

/* CTA band */
.cta-band { text-align: center; }
.cta-card {
  background: var(--accent); color: var(--accent-contrast); border-radius: 28px; padding: 64px 28px;
  background-image: radial-gradient(600px 240px at 85% 0%, rgba(233, 161, 59, .28), transparent 70%);
}
.cta-card h2 { font-size: clamp(30px, 4.4vw, 48px); }
.cta-card p { margin: 12px auto 28px; font-size: 18px; opacity: .92; max-width: 560px; }
.cta-card .cta-row .btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
@media (prefers-color-scheme: dark) {
  .cta-card { background-color: #0f5e53; color: #fffdf8; }
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.foot-links a:hover { color: var(--accent); }
.copyright { color: var(--ink-faint); font-size: 14px; }
.copyright a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ----- Legal / support pages ----- */
.page-head { padding: 64px 0 90px; text-align: center; background: var(--sunken); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); }
.page-head p { margin-top: 10px; color: var(--ink-soft); }
.draft-banner {
  max-width: 820px; margin: 18px auto 0; background: var(--marigold-soft); border: 1px solid var(--marigold);
  color: var(--ink); border-radius: 12px; padding: 10px 16px; font-size: 15px; font-weight: 600;
}
.prose {
  width: min(820px, 92%); margin: -54px auto 72px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 44px 44px;
}
.prose h2 { font-size: 26px; margin: 38px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 24px 0 6px; }
.prose p, .prose li, .prose dd { color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose .muted { color: var(--ink-faint); font-size: 15px; }
.prose .toc { background: var(--paper); border-radius: 12px; padding: 16px 20px; margin-bottom: 8px; }
.prose .toc ol { padding-left: 20px; columns: 2; column-gap: 28px; }
.prose .toc li { margin: 3px 0; break-inside: avoid; }
.contact-card { margin-top: 28px; background: var(--accent-soft); border-radius: 14px; padding: 20px 22px; }
.contact-card p { color: var(--ink); }

/* ----- Responsive ----- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 24px; }
  .hero-inner { gap: 40px; }
  .window { margin-right: 18%; border-radius: 10px; }
  .window-bar { padding: 7px 10px; }
  .window-bar span { width: 8px; height: 8px; }
  .window-bar .title { display: none; }
  .phone { width: 34%; min-width: 0; padding: 4px; border-radius: 22px; }
  .phone picture { border-radius: 18px; }
  .showcase { padding-bottom: 24px; }
  .plans { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip figure.strip-phone { max-width: 300px; margin: 0 auto; }
  .prose { padding: 28px 22px; }
  .prose .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  .grid, .dl-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; }
  .cta-card { padding: 48px 20px; border-radius: 22px; }
  .brand { font-size: 21px; }
  .brand svg { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .feature:hover, a.store-badge[href]:hover { transform: none; }
}
