/* raeya.app. Tokens follow the Design Spec (Final) 2026-10-01, §2.
   Link/accent blue is one step darker than the app's #007AFF (light) and lighter in dark
   mode, so small text passes WCAG AA on the web. */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --grouped: #F2F2F7;
  --card: #FFFFFF;
  --text: #000000;
  --text2: #6C6C70;
  --separator: #E5E5EA;
  --accent: #0066CC;
  --dot: rgba(142, 142, 147, 0.45);
  --now: rgba(255, 59, 48, 0.6);
  --positive: #1B7A35;
  --mood: #FFD60A;
  --project: #6D7CFF;
  --project2: #FF375F;
  --review-bg: #FFF4CC;
  --review-line: #C99A00;
  --shadow: 0 4px 14px rgba(60, 60, 67, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --grouped: #000000;
    --card: #1C1C1E;
    --text: #FFFFFF;
    --text2: #AEAEB2;
    --separator: #38383A;
    --accent: #409CFF;
    --dot: rgba(142, 142, 147, 0.38);
    --now: rgba(255, 69, 58, 0.75);
    --positive: #30D158;
    --review-bg: #332B00;
    --review-line: #B38F00;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* Header */
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.logo svg { width: 26px; height: 26px; }
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--text2); text-decoration: none; padding: 10px 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 400px) { .site-header nav .wide-only { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: 12px; border: none;
  background: var(--text); color: var(--bg);
  font: inherit; font-size: 17px; font-weight: 600; text-decoration: none;
}
.button:hover { opacity: 0.85; text-decoration: none; }
.button[aria-disabled="true"] { background: var(--separator); color: var(--text2); cursor: default; opacity: 1; }

/* Hero: the center-axis timeline on a dot grid (Welcome board, Final page) */
.hero { padding: 8px 0 56px; }
.hero .wrap { display: grid; gap: 28px; }
.motif { position: relative; height: 360px; overflow: hidden; margin: 0 -16px; }
.motif::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.7px);
  background-size: 32px 30px;
  background-position: 50% 5px; /* puts a dot column on the time axis */
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent);
  mask-image: radial-gradient(closest-side, #000 70%, transparent);
}
.motif svg { position: absolute; top: 0; left: 50%; margin-left: -195px; width: 390px; height: 360px; overflow: visible; }
.motif .now { position: absolute; left: 0; right: 0; top: 232px; border-top: 1.5px dashed var(--now); }
.motif text { font-family: inherit; fill: var(--text); }
.motif .hour { font-size: 12px; fill: var(--text2); }
.motif .col { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; fill: var(--text2); }
.motif .name { font-size: 15px; font-weight: 600; }
.motif .sub { font-size: 12px; fill: var(--text2); }

.hero h1 { font-size: clamp(32px, 6.4vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
.hero h1 .line { display: inline-block; }
.lede { margin-top: 16px; font-size: 19px; line-height: 1.45; color: var(--text2); max-width: 34em; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { flex-shrink: 0; color: var(--positive); }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta .note { font-size: 15px; color: var(--text2); }

@media (min-width: 900px) {
  .hero { padding: 40px 0 88px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
  .hero .copy { grid-column: 1; grid-row: 1; }
  .motif { grid-column: 2; grid-row: 1; margin: 0; }
}

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--separator); }
.section h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.section .intro { margin-top: 10px; color: var(--text2); max-width: 36em; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; align-content: start; }
.steps .glyph { grid-row: span 2; width: 44px; height: 56px; }
.steps h3 { font-size: 17px; font-weight: 600; }
.steps p { margin-top: 4px; font-size: 16px; color: var(--text2); }

/* Grouped list, like an inset grouped Settings card */
.grouped { margin-top: 28px; background: var(--grouped); border-radius: 18px; padding: 6px; }
@media (prefers-color-scheme: dark) { .grouped { background: var(--card); } }
.rows { list-style: none; margin: 0; padding: 0 16px; background: var(--card); border-radius: 12px; }
@media (prefers-color-scheme: dark) { .rows { background: transparent; } }
.rows li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--separator); }
.rows li:last-child { border-bottom: none; }
.rows svg { color: var(--accent); margin-top: 1px; }
.rows h3 { font-size: 17px; font-weight: 600; }
.rows p { margin-top: 2px; font-size: 16px; color: var(--text2); }
.more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; }

/* Numbered steps (Mac setup) */
.numbered { list-style: none; counter-reset: n; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.numbered li::before {
  content: counter(n); width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.numbered h3 { font-size: 17px; font-weight: 600; }
.numbered p { margin-top: 2px; font-size: 16px; color: var(--text2); }

/* Mac page */
.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: clamp(34px, 6vw, 48px); font-weight: 700; letter-spacing: -0.025em; }
.page-head .lede { margin-top: 12px; }
.download { margin-top: 28px; padding: 20px; border-radius: 18px; background: var(--grouped); display: grid; gap: 12px; justify-items: start; }
@media (prefers-color-scheme: dark) { .download { background: var(--card); } }
.download .status { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.download .status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #FF9F0A; flex-shrink: 0; }
.download .fine { font-size: 15px; color: var(--text2); }
.mac-body { padding: 56px 0 72px; }
.mac-body h2 { font-size: 24px; font-weight: 700; }
.box { margin-top: 20px; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.box { background: var(--grouped); border-radius: 12px; padding: 16px; }
@media (prefers-color-scheme: dark) { .box { background: var(--card); } }
.box .label { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text2); }
.box p { margin-top: 4px; }
.plain { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* Legal documents */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 6vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.doc .updated { margin-top: 8px; font-size: 15px; color: var(--text2); }
.doc h2 { font-size: 22px; font-weight: 700; margin-top: 40px; scroll-margin-top: 16px; }
.doc h3 { font-size: 17px; font-weight: 600; margin-top: 24px; }
.doc p, .doc ul, .doc table { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.summary { margin-top: 24px; padding: 18px 20px; border-radius: 12px; background: var(--grouped); }
@media (prefers-color-scheme: dark) { .summary { background: var(--card); } }
.summary h2 { margin-top: 0; font-size: 17px; }
.summary ul { margin-top: 8px; }
.table-scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--separator); }
.doc th { font-weight: 600; color: var(--text2); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Notes for legal review: hidden unless the address has ?review */
.review-note { display: none; }
.review .review-note {
  display: block; margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  background: var(--review-bg); border-left: 3px solid var(--review-line); font-size: 15px;
}
.review .review-note::before { content: "Lawyer check: "; font-weight: 700; }
.review .review-banner::before { content: "Review mode. "; }

/* Footer */
.site-footer { border-top: 1px solid var(--separator); padding: 28px 0 40px; font-size: 15px; color: var(--text2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { color: var(--text2); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin-top: 12px; }
.site-footer p a { color: var(--text2); }
