/* ============================================================================
   LittleLabel — "Linen & Ink" (matches the iOS app's Theme.swift, approved
   2026-10-26). Linen ground, paper cards, ink text, terracotta eyebrows and
   links, sage for "good". Fraunces for headlines and numbers, Manrope for body.
   1 px hairlines, radii 14–18, no shadows.
   ========================================================================== */
:root {
  --linen: #F4EFE6;
  --paper: #FBF8F2;
  --sunken: #ECE5D9;
  --ink: #2E2233;
  --ink-deep: #1F1624;
  --muted: #6E6270;
  --faint: #8C8290;
  --hair: rgba(46, 34, 51, 0.12);
  --terracotta: #C8775B;
  --terracotta-tint: #F0D9CF;
  --sage: #6F9A7B;
  --sage-tint: #E1EBE3;
  --gold: #C9A24A;
  --red: #B85C47;
  --blush: #E8C4B8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-card: 16px;
  --r-btn: 14px;
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ---- Type ---------------------------------------------------------------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.lede { font-size: 1.125rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--hair); }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.main-nav a[aria-current="page"] { color: var(--terracotta); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: var(--paper); border: 1px solid var(--hair); color: var(--ink);
  width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; cursor: pointer;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-btn);
  font-family: var(--sans); font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-deep); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--hair); }
.btn-paper:hover { background: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* ---- Sections & cards ---------------------------------------------------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--hair); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 26px;
}
.card h3 { margin-top: 2px; }
.card p:last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--ink); margin-bottom: 14px; display: block; }
.num.sage { color: var(--sage); }
.num.terracotta { color: var(--terracotta); }

/* Ledger list: rows split by hairlines */
.ledger { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-card); }
.ledger li { display: flex; gap: 16px; align-items: baseline; padding: 16px 22px; border-top: 1px solid var(--hair); }
.ledger li:first-child { border-top: 0; }
.ledger .k { font-weight: 700; min-width: 9.5em; flex: none; }
.ledger .v { color: var(--muted); }
.ledger .pts { margin-left: auto; font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
.pts.plus { color: var(--sage); }
.pts.minus { color: var(--red); }

.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--hair); border-radius: 8px; padding: 5px 9px; color: var(--muted); background: var(--paper); margin: 0 6px 6px 0; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero .lede { margin-bottom: 28px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-art { width: 78%; max-width: 380px; border-radius: 18px; border: 1px solid var(--hair); }
.hero-visual .phone { position: absolute; right: 0; bottom: -28px; width: 46%; max-width: 230px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 0.9rem; color: var(--muted); }
.facts span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); margin-right: 8px; vertical-align: middle; }

/* ---- Phone frame --------------------------------------------------------- */
.phone {
  background: var(--ink);
  border-radius: 40px;
  padding: 9px;
  border: 1px solid var(--ink-deep);
}
.phone img { border-radius: 32px; width: 100%; background: var(--linen); }
.phone-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.phone-row figure { margin: 0; }
.phone-row figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 14px; text-align: center; }
.phone-row figcaption b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }

/* ---- Split rows ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split .phone { max-width: 290px; margin: 0 auto; }
.split.flip .split-media { order: 2; }

/* ---- Notice / disclaimer boxes ------------------------------------------- */
.notice {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--terracotta);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 28px;
}
.notice h2, .notice h3 { font-size: 1.15rem; margin-bottom: 8px; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notice li { margin-bottom: 6px; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

/* ---- CTA band ------------------------------------------------------------ */
.cta { background: var(--paper); border: 1px solid var(--hair); border-radius: 18px; padding: 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.cta img { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--hair); }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; color: var(--muted); }

/* ---- Pricing ------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan .price { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.plan .per { color: var(--muted); font-size: 0.9rem; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { max-width: 780px; }
.faq details { background: var(--paper); border: 1px solid var(--hair); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-family: var(--serif); font-size: 1.5rem; color: var(--terracotta); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq h2 { margin-top: 44px; font-size: 1.5rem; }

/* ---- Prose (legal, support) --------------------------------------------- */
.prose { max-width: 800px; padding-top: 56px; padding-bottom: 88px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hair); }
.prose h3 { font-size: 1.1rem; margin-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }
.prose .caps { text-transform: uppercase; font-size: 0.92rem; letter-spacing: 0.01em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 0.93rem; background: var(--paper); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--hair); }
.prose th { background: var(--sunken); border-top: 0; font-weight: 700; }
.toc { columns: 2; column-gap: 32px; font-size: 0.92rem; padding: 18px 22px 18px 40px !important; background: var(--paper); border: 1px solid var(--hair); border-radius: 14px; }
.toc li { break-inside: avoid; margin-bottom: 4px; }
.placeholder { background: var(--terracotta-tint); padding: 0 4px; border-radius: 4px; font-weight: 700; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 16px 20px 16px 64px; background: var(--paper); border: 1px solid var(--hair); border-radius: 14px; margin-bottom: 10px; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 13px; font-family: var(--serif); font-size: 1.5rem; color: var(--terracotta); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--hair); padding: 48px 0 40px; font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--ink); }
.footer-disclaimer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hair); color: var(--ink); }
.footer-legal { margin-top: 10px; font-size: 0.82rem; }

/* ---- 404 ----------------------------------------------------------------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--terracotta); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .split-media { order: 0; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .grid-3, .plans { grid-template-columns: 1fr 1fr; }
  .phone-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; text-align: left; padding: 32px; }
}
@media (max-width: 760px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--linen); border-bottom: 1px solid var(--hair); padding: 8px 24px 16px; }
  .header-inner.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; border-top: 1px solid var(--hair); }
  .main-nav a:first-child { border-top: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 64px; }
  .grid-2, .grid-3, .plans { grid-template-columns: 1fr; }
  .phone-row { gap: 14px; }
  .phone { border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .ledger li { flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px; }
  .ledger .k { min-width: 0; }
  .toc { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .header-actions .btn-sm { display: none; }
  .card { padding: 22px; }
  .btn-row .btn { width: 100%; }
}
