/* ============================================================================
   site.css · layout and components for the marketing site.
   Language lifted from the product design prototype: warm paper, one gold
   accent, editorial serif + humanist sans, generous whitespace, one column.
   ========================================================================== */

/* ---- Layout primitives ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.stack > * + * { margin-top: var(--flow, 1.1rem); }
.center { text-align: center; }

/* Small gold all-caps label, the rhythm device from the prototype. */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: var(--measure); }
.muted { color: var(--muted); }
.measure { max-width: var(--measure); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.wordmark {
  font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.wordmark em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
.site-nav a { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--accent-ink); }
.site-nav .nav-hide-sm { display: none; }
@media (min-width: 620px) { .site-nav .nav-hide-sm { display: inline; } }

/* ---- Hero ---- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-top: 1rem; }
.hero .lede { margin-top: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__note { margin-top: 1.1rem; font-size: var(--step--1); color: var(--faint); }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.chip {
  font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
  background: rgba(255,255,255,0.6); border: 1px solid var(--line);
  padding: 0.5rem 0.85rem; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}
.chip b { color: var(--accent); }

/* ---- Phone mock (reused from the prototype, scaled for the site) ---- */
.phone-stage { display: flex; justify-content: center; }
.phone {
  width: min(312px, 82vw);
  aspect-ratio: 312 / 652;
  background: #1A1714; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow); position: relative;
}
.phone__screen {
  width: 100%; height: 100%; background: var(--paper); border-radius: 36px;
  overflow: hidden; position: relative; display: flex; flex-direction: column;
}
.phone__island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; background: #16130F; border-radius: 16px; z-index: 5;
}
.phone__statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 4px; font-size: 12px; font-weight: 600; color: var(--ink);
}
.phone__statusbar .dots { letter-spacing: 2px; font-size: 10px; }
.phone__view { flex: 1; overflow: hidden; padding: 4px 16px 16px; }

/* shared in-screen atoms */
.scr-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.scr-greet { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -0.01em; margin-top: 6px; }
.scr-date { font-size: 12px; color: var(--faint); margin-top: 2px; margin-bottom: 14px; }
.scr-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 12px; }
.scr-card__head { display: flex; justify-content: space-between; align-items: baseline; }
.scr-card__title { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.scr-card__action { font-size: 11px; font-weight: 700; color: var(--accent); }
.scr-body { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); margin-top: 9px; }
.scr-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 4px 2px 9px; }
.scr-pcard { background: var(--card); border: 1px solid var(--pending); border-radius: var(--radius); padding: 12px 13px; margin-bottom: 10px; }
.scr-pcard .who { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.scr-pcard .body { font-size: 12.5px; line-height: 1.5; color: var(--ink); margin: 7px 0 11px; }
.scr-actions { display: flex; gap: 7px; }
.scr-btn { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; padding: 8px 0; border-radius: 10px; }
.scr-btn.approve { background: var(--ink); color: #fff; }
.scr-btn.ghost { background: var(--paper-2); color: var(--muted); font-weight: 600; }
.scr-costline { font-size: 11.5px; color: var(--muted); text-align: center; padding: 4px 0 10px; }
.scr-costline b { color: var(--ink-soft); }
.scr-act-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-top: 1px solid var(--line-soft); }
.scr-act-row:first-of-type { border-top: 0; }
.scr-act-row .a { font-size: 12px; color: var(--ink-soft); }
.scr-act-row .at { font-size: 10.5px; color: var(--faint); white-space: nowrap; padding-left: 10px; }

/* illustration badge, so the phone never reads as a real screenshot */
.illus-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: rgba(255,255,255,0.55);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 0.35rem 0.7rem;
}
.illus-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.phone-caption { text-align: center; margin-top: 1rem; }

/* ---- Generic section header ---- */
.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .eyebrow { display: block; margin-bottom: 0.9rem; }
.section-head h2 + p { margin-top: 1rem; }

/* ---- Restoration story (two-up statements) ---- */
.story { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 760px) { .story { grid-template-columns: 1fr 1fr; } }
.story__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-soft);
}
.story__card h3 { font-size: var(--step-2); }
.story__card p { margin-top: 0.85rem; color: var(--ink-soft); }
.story__card .kicker { font-family: var(--serif); font-style: italic; color: var(--accent-ink); font-size: var(--step-1); }

/* ---- First week (numbered steps in her voice) ---- */
.week { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .week { grid-template-columns: repeat(2, 1fr); } }
.week__item {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.35rem, 2.5vw, 1.9rem);
}
.week__day { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.week__item h3 { font-size: var(--step-1); margin-top: 0.5rem; }
.week__item p { margin-top: 0.6rem; color: var(--ink-soft); font-size: var(--step-0); }
.week__voice {
  margin-top: 1rem; padding: 0.9rem 1.05rem; border-left: 2px solid var(--pending);
  background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.02rem; line-height: 1.5;
}

/* ---- Privacy (how it works) ---- */
.privacy-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.privacy-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.35rem, 2.5vw, 1.75rem); }
.privacy-card .mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 1rem; }
.privacy-card .mark svg { width: 22px; height: 22px; stroke: var(--accent-ink); fill: none; stroke-width: 1.6; }
.privacy-card h3 { font-size: var(--step-1); }
.privacy-card p { margin-top: 0.55rem; color: var(--ink-soft); font-size: var(--step-0); }
.devtools-note {
  margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.5); border: 1px dashed var(--line);
  font-size: var(--step--1); color: var(--muted); max-width: var(--measure);
}
.devtools-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--serif); font-size: var(--step-1); font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; color: var(--accent); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0.25rem 1.25rem; color: var(--ink-soft); max-width: var(--measure); }
.faq details p + p { margin-top: 0.75rem; }

/* ---- CTA band ---- */
.cta {
  background: var(--ink);
  color: #F4EFE4;
  border-radius: var(--radius-xl);
  padding: clamp(2.25rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta h2 { color: #FBF7EE; }
.cta p { color: rgba(244,239,228,0.82); margin-top: 1rem; margin-inline: auto; max-width: 52ch; }
.cta .btn { margin-top: 1.75rem; }
.cta .btn--primary { background: var(--accent-2); color: #23201B; }
.cta .btn--primary:hover { background: #cf8b4d; }
.cta__fine { margin-top: 1.1rem; font-size: var(--step--1); color: rgba(244,239,228,0.6); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); margin-top: 2rem; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer .wordmark { font-size: 1.2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer nav a { font-size: var(--step--1); color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--accent-ink); }
.site-footer__fine { margin-top: 2rem; font-size: var(--step--1); color: var(--faint); max-width: 70ch; }
.site-footer__fine p + p { margin-top: 0.6rem; }

/* ---- Page-load rise, one orchestrated motion (calm, not busy) ---- */
.rise { opacity: 0; animation: rise var(--dur) var(--ease) forwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.14s; }
.rise-3 { animation-delay: 0.24s; }
.rise-4 { animation-delay: 0.34s; }
.rise-5 { animation-delay: 0.46s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; animation: none; } }

/* ---- Prose pages (privacy) ---- */
.prose { max-width: var(--measure); }
.prose h1 { font-size: var(--step-4); }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin-top: 1rem; }
.prose ul, .prose ol { margin-top: 1rem; padding-left: 1.25rem; }
.prose li { margin-top: 0.5rem; }
.prose strong { color: var(--ink); }
.prose .updated { color: var(--faint); font-size: var(--step--1); }
.lang-switch { display: inline-flex; gap: 0.5rem; align-items: center; font-size: var(--step--1); }
.lang-switch a { font-weight: 600; }
.lang-switch [aria-current="true"] { color: var(--ink); text-decoration: none; }
