/* rapportnotes.com — one stylesheet. Tokens mirror the "Rapport Website" round 2 canvas
   (see .claude/skills/rapport-web-dev/references/design-tokens.md). Dark by default,
   Slate when the visitor's system is in light mode. */

:root {
  color-scheme: dark;
  --bg: #060810;
  --card: #0D1117;
  --text: #E8E9EC;
  --muted: #8D919B;
  --line: rgba(210, 207, 200, 0.12);
  --line-strong: rgba(210, 207, 200, 0.28);
  --ring: #D2CFC8;
  --lens: #C9A46A;
  --ochre: #C9A46A;
  --blue: #79A2CF;
  --mauve: #B08FC0;
  --btn-bg: linear-gradient(180deg, #ECE9E2, #B3AFA6);
  --btn-text: #111318;
  --pend: #D9A55B;
  --pend-bg: rgba(217, 165, 91, 0.10);

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  --font-display: Outfit, -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #D3DAE2;
    --card: #E7EBF0;
    --text: #151A22;
    --muted: #4E5765;
    --line: rgba(54, 64, 78, 0.16);
    --line-strong: rgba(54, 64, 78, 0.32);
    --ring: #36404E;
    --lens: #8A6A2E;
    --ochre: #735926;
    --blue: #37608D;
    --mauve: #6D5183;
    --btn-bg: #36404E;
    --btn-text: #EEF1F5;
    --pend: #7A4E12;
    --pend-bg: rgba(122, 78, 18, 0.10);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol { margin: 0; }
img, svg { display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lens); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; color: var(--text); }
[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-strong);
}
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }

.display {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em;
}
.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.label--sm { font-size: 11px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }

/* ---------- mark + wordmark ---------- */
.mark circle { fill: none; stroke: var(--ring); stroke-width: 6; }
.mark path { fill: var(--lens); }
.mark--hero circle { stroke-width: 5; }
.wordmark {
  font-family: var(--font-display); font-weight: 300; font-size: 22px; letter-spacing: -0.02em; line-height: 1;
}
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); }
.brand:hover { text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px; padding-bottom: 14px;
  position: relative;
}
.site-header::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; border-bottom: 1px solid var(--line);
}
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--lens); }
.nav a:hover { text-decoration: none; border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"]:hover { border-bottom-color: var(--lens); }

/* ---------- footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 40px;
  padding-top: 32px; padding-bottom: 40px; position: relative;
}
.site-footer::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: 0; border-top: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand { min-height: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.footer-nav a { padding: 10px 0; }

/* ---------- buttons and badge ---------- */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 500; color: var(--text);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--secondary { border: 1px solid var(--line-strong); color: var(--text); padding: 0 20px; }
.link-arrow {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; align-self: flex-start;
}

/* ---------- cards and checks ---------- */
.card { border-radius: 12px; background: var(--card); border: 1px solid var(--line-strong); }
.card--quiet { border-color: var(--line); }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.5; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 2px; }
.checks path { fill: none; stroke: var(--lens); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- home ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  padding: 56px 0 72px;
}
.hero .wordmark { font-size: 34px; }
.hero h1 {
  margin-top: 14px; font-size: clamp(44px, 6vw, 76px); line-height: 1.06; letter-spacing: -0.025em;
}
.hero .lede { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 460px; }
.hero .badge { margin-top: 10px; }

.how h2 { margin-bottom: 8px; }
.step {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px 64px;
  padding: 32px 0 48px; border-top: 1px solid var(--line);
}
.step--flip { flex-direction: row-reverse; }
.step-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.step-text h3 { font-size: 30px; line-height: 1.15; }
.step-text p:last-child { font-size: 16px; line-height: 1.6; color: var(--muted); }
.step-label--ochre { color: var(--ochre); }
.step-label--blue { color: var(--blue); }
.step-label--mauve { color: var(--mauve); }
.step-shot { flex: 1 1 220px; display: flex; justify-content: center; }
.phone-placeholder {
  width: 220px; height: 476px; border-radius: 36px; border: 1px dashed var(--line-strong); background: var(--card);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted);
}
.step-shot img { width: 220px; height: auto; border-radius: 36px; }

.promise {
  margin: 8px 0 48px; padding: 28px 24px;
  display: flex; flex-wrap: wrap; gap: 18px 56px; align-items: flex-start;
}
.promise-head { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.promise-head h2 { font-size: 30px; line-height: 1.15; }
.promise .checks { flex: 2 1 320px; }

.details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 56px;
}
.details > div { background: var(--bg); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.details .label { font-size: 11px; }
.details p:last-child { font-size: 15px; line-height: 1.4; }

/* ---------- why ---------- */
.why { max-width: 640px; margin: 0 auto; padding: 44px 0 56px; display: flex; flex-direction: column; gap: 22px; }
.why h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.why .belief { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.42; letter-spacing: -0.01em; }
.why .idea { font-size: 17px; line-height: 1.62; color: var(--muted); }
.placeholder {
  padding: 18px 20px; border-radius: 12px; border: 1.5px dashed var(--pend); background: var(--pend-bg);
  display: flex; flex-direction: column; gap: 8px;
}
.placeholder .label { color: var(--pend); font-size: 11px; }
.placeholder p:last-child { font-size: 16px; line-height: 1.6; }
.byline { font-size: 15px; color: var(--muted); }
.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 12px; border-top: 1px solid var(--line);
}

/* ---------- page intro (support) ---------- */
.page-intro { padding: 36px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.page-intro h1 { font-size: clamp(40px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.025em; }
.page-intro p { font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ---------- support ---------- */
.contact-top {
  padding: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
}
.contact-top > div { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.contact-top h2 { font-size: 17px; font-weight: 600; }
.contact-top p { font-size: 15px; line-height: 1.5; color: var(--muted); }

.faq { padding: 40px 0 16px; display: flex; flex-direction: column; gap: 32px; }
.faq > h2 { font-size: 30px; line-height: 1.15; }
.faq-group { display: flex; flex-direction: column; }
.faq-group h3 { margin-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; font-size: 17px; font-weight: 500; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform 0.2s ease; }
.faq summary path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq-answer { padding: 0 0 18px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.faq-answer p, .faq-answer ol { font-size: 16px; line-height: 1.6; color: var(--muted); }
.faq-answer ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }

.still { margin: 16px 0 48px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.still h2 { font-size: 26px; }
.still > p:first-of-type { font-size: 16px; line-height: 1.55; color: var(--muted); }
.still ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; }
.still .fine { font-size: 14px; line-height: 1.5; }
.still .btn { align-self: flex-start; }

/* ---------- privacy ---------- */
.policy { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 64px; padding: 40px 0 56px; }
.toc-side { display: none; flex: 0 0 220px; position: sticky; top: 24px; padding-top: 128px; }
.toc-side .label { margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc-inline { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc-inline summary { min-height: 48px; display: flex; align-items: center; font-size: 15px; font-weight: 500; cursor: pointer; }
.toc-inline .toc { padding-bottom: 10px; }
@media (min-width: 1024px) {
  .toc-side { display: block; }
  .toc-inline { display: none; }
}
.policy article { flex: 1 1 320px; max-width: 680px; min-width: 0; }
.policy h1 { font-size: clamp(40px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.updated { margin-top: 10px; font-size: 15px; color: var(--muted); }
.short { margin-top: 26px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.short h2 { color: var(--ochre); }
.short .checks { gap: 12px; }
.policy section:not(.short) { display: flex; flex-direction: column; gap: 12px; padding-top: 30px; }
.policy section:not(.short) h2 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.policy section p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.policy section ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.policy section a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* ---------- 404 ---------- */
.notfound { padding: 72px 0 96px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; max-width: 640px; }
.notfound h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.notfound p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.notfound .links { display: flex; flex-wrap: wrap; gap: 4px 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
