/* Psychic site (brand/BRAND.md): white only, #111 ink, #E4E4E4 lines, 8-pt grid, system font.
   Green and red only where they mean up/right or down/wrong. No gradients, glow, emoji or caps. */
:root {
  color-scheme: light;
  --ink: #111111; --base: #ffffff; --muted: #6b6b6b; --line: #e4e4e4; --soft: #f2f2f2;
  --green: #14b87a; --red: #f0443f; --green-tint: #e8f7f1; --red-tint: #fdecec;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--base); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
.up { color: var(--green); }
.down { color: var(--red); }

/* Shared header and footer (home and the Terms, Privacy, Support pages) */
main { max-width: 680px; margin: 0 auto; padding: 32px 24px 64px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; }
.mark { width: 32px; height: 32px; flex: none; }
nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
footer { margin-top: 48px; padding: 16px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }

/* Legal pages */
main h1 { font-size: 32px; line-height: 1.2; margin: 32px 0 8px; font-weight: 600; }
main h2 { font-size: 20px; margin: 32px 0 8px; font-weight: 600; }
p, li { margin: 8px 0; }
ul { padding-left: 24px; }
.date { color: var(--muted); margin: 0 0 24px; }
.draft { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 24px 0 0; }
.fill { background: #fff3c4; border-radius: 4px; padding: 0 4px; }
/* Draft-only: questions for the lawyer and decisions for Ethan. Delete every .note before publishing. */
.note { background: #eef4ff; border-left: 3px solid #5b8def; border-radius: 6px; padding: 8px 12px; margin: 10px 0; font-size: 15px; color: #26364f; }
.note strong { font-weight: 600; }

/* ---------- Home ----------
   Matches the app (ios/Psychic/Brand/Brand.swift): 16-pt card corners, gray capsule chips,
   soft green/red tints for selected states and results, rounded bold numbers. */
:root { --tline: #14b87a; --chart-label: #6b6b6b; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.home header { padding-top: 24px; border-bottom: 0; }
.home h1, .home h2, .home h3 { font-weight: 600; }
.home section { padding: 80px 24px; }
.section-title { font: 700 48px/1.05 var(--rounded); letter-spacing: -0.02em; margin: 0 0 16px; }
.pupil { transition: transform .35s cubic-bezier(.3, .7, .2, 1); }
.label { color: var(--muted); font-size: 15px; margin: 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding-top: 40px !important; padding-bottom: 72px !important; }
.hero-eye { width: 112px; height: 112px; display: block; margin: 0 0 24px -8px; }
.hero h1 { font: 700 76px/0.98 var(--rounded); letter-spacing: -0.035em; margin: 0 0 24px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 32px; max-width: 30em; }
.cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.soon { display: inline-block; padding: 16px 28px; border-radius: 999px; background: var(--ink); color: var(--base); font-weight: 600; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " ↓"; }
.text-link:hover { text-decoration: underline; }
.facts { color: var(--muted); font-size: 15px; margin: 24px 0 0; }
.facts span { padding: 0 4px; }
.hero-cards { display: flex; flex-direction: column; gap: 12px; max-width: 380px; width: 100%; justify-self: end; }

/* A prediction card, like the app's CallCard / ResultCard */
.pcard { display: block; border: 1px solid var(--line); border-radius: 16px; background: var(--base); padding: 16px; text-align: left; }
.pcard.result { border-color: transparent; padding: 16px; }
.pcard.hit { background: var(--green-tint); }
.pcard.miss { background: var(--red-tint); }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pc-head > div { min-width: 0; }
.pc-line { font: 600 22px/1.25 var(--rounded); font-variant-numeric: tabular-nums; margin: 0; white-space: nowrap; letter-spacing: -0.01em; }
.pc-line.sm { font-size: 15px; margin-top: 2px; }
.pc-line i, .pc-line em { font-style: normal; }
.pc-line span { font-weight: 400; color: var(--muted); }
.pc-sub { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin: 2px 0 0; }
.pc-big { font: 700 22px/1.2 var(--rounded); font-variant-numeric: tabular-nums; margin: 0; }
.pc-eye { width: 44px; height: 44px; flex: none; }
.pc-eye.sm { width: 36px; height: 36px; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.left { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vote { display: flex; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vote span { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; white-space: nowrap; }
.vote .agree { background: var(--green-tint); color: var(--green); flex: 0 0 auto; }
.vote .disagree { background: var(--red-tint); color: var(--red); flex: 1; justify-content: flex-end; }

/* Card charts (PriceChart.swift): the winning zone tinted green, a dashed green target,
   the price in ink, a hollow start dot, and a dashed arrow with "to go" while short of it. */
.mini, .chart { display: block; width: 100%; height: auto; margin: 16px 0 0; overflow: visible; border-radius: 8px; }
.zone { fill: var(--green-tint); }
.tline, .chart .target.on { stroke: var(--tline); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .target { stroke: #c4c4c4; stroke-width: 1.5; stroke-dasharray: 5 4; }
.tlabel { font: 500 11px -apple-system, BlinkMacSystemFont, sans-serif; fill: var(--green); font-variant-numeric: tabular-nums; }
.chart .target:not(.on) + .tlabel { fill: var(--muted); }
.pline, .chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.togo, .togo-head { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.togo { stroke-dasharray: 3 4; }
.togo-t { font: 600 12px -apple-system, BlinkMacSystemFont, sans-serif; fill: var(--ink); font-variant-numeric: tabular-nums; }
.dot0 { fill: var(--base); stroke: var(--muted); stroke-width: 1.5; }
.dot, .chart .tip { fill: var(--ink); stroke: var(--base); stroke-width: 2; }
.chart .tip.up { fill: var(--green); }
.chart .tip.down { fill: var(--red); }

/* Ribbon */
.ribbon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.ribbon-track { display: flex; gap: 48px; width: max-content; animation: ribbon 44s linear infinite; }
.ribbon span { font: 600 21px/1 var(--rounded); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ribbon i, .ribbon em { font-style: normal; }
.ribbon small { font-size: inherit; font-weight: 400; color: var(--muted); }
.ribbon em { margin-left: 12px; font-weight: 700; }
.ribbon b { font-weight: 700; }
@keyframes ribbon { to { transform: translateX(calc(-50% - 24px)); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* Try it */
.try { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; border-top: 1px solid var(--line); }
.try-text p { font-size: 20px; color: var(--muted); max-width: 22em; }
.demo { padding: 20px; max-width: 440px; width: 100%; justify-self: center; transition: background-color .4s, border-color .4s; }
.demo.graded { border-color: transparent; }
.demo-q { font: 700 26px/1.2 var(--rounded); margin: 6px 0 0; letter-spacing: -0.01em; }
.demo-q b { font-variant-numeric: tabular-nums; }
.demo-line em { font-style: normal; }
.demo-eye { width: 52px; height: 52px; }
.chart { margin: 20px 0 8px; }
.demo-price { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.demo-price .label { font-size: 13px; }
.demo-price .now { font-weight: 600; font-variant-numeric: tabular-nums; }
.pick-label { font-size: 13px; margin: 20px 0 8px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.side { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; font: 400 19px/1 -apple-system, BlinkMacSystemFont, sans-serif; border-radius: 16px; border: 1px solid var(--line); background: var(--base); color: var(--ink); cursor: pointer; }
.side svg { width: 28px; height: 28px; }
.side:hover:not(:disabled) { border-color: #c8c8c8; }
.side[aria-pressed="true"] { font-weight: 600; border-width: 1.5px; }
.side.above[aria-pressed="true"] { background: var(--green-tint); border-color: var(--green); color: var(--green); }
.side.below[aria-pressed="true"] { background: var(--red-tint); border-color: var(--red); color: var(--red); }
.side:disabled { cursor: default; }
.side:disabled:not([aria-pressed="true"]) { opacity: .4; }
.demo-points { text-align: center; font-size: 13px; margin-bottom: 12px; }
.verdict { min-height: 56px; text-align: center; margin: 0 0 12px; }
.verdict p { margin: 0; }
.v-big { font: 700 28px/1.2 var(--rounded); font-variant-numeric: tabular-nums; }
.v-sub { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.verdict:not(.up):not(.down) .v-sub { line-height: 56px; }
.verdict.up .v-big { color: var(--green); }
.verdict.down .v-big { color: var(--red); }
.lock { width: 100%; font: 600 18px/1 -apple-system, BlinkMacSystemFont, sans-serif; padding: 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--base); cursor: pointer; }
.lock:disabled { background: var(--soft); color: #a8a8a8; cursor: default; }
.demo.graded .lock { background: var(--base); color: var(--ink); }
.side:focus-visible, .lock:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* What you'll see */
.see { border-top: 1px solid var(--line); }
.see-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.see-grid > li { margin: 0; }
.see-grid h3 { font: 700 22px/1.2 var(--rounded); margin: 24px 0 8px; letter-spacing: -0.01em; }
.see-grid > li > p { color: var(--muted); margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.score { text-align: center; padding: 24px 16px; }
.ring { width: 104px; height: 104px; display: block; margin: 0 auto 12px; }
.score-big { font: 700 40px/1.05 var(--rounded); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 0; }
.score-sub { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.figs { display: flex; justify-content: center; gap: 24px; }
.figs p { margin: 0; display: flex; flex-direction: column; align-items: center; }
.figs b { font: 700 22px/1.1 var(--rounded); font-variant-numeric: tabular-nums; }
.figs span { color: var(--muted); font-size: 13px; }

/* Steps */
.steps-sec { border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.step-n { font: 700 17px/1 var(--rounded); width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--base); display: grid; place-items: center; margin: 0 0 24px; }
.steps h3 { font: 700 26px/1.15 var(--rounded); margin: 0 0 8px; letter-spacing: -0.01em; }
.steps p { color: var(--muted); margin: 0; }

/* Called it */
.called { text-align: center; border-top: 1px solid var(--line); padding-top: 120px !important; padding-bottom: 120px !important; }
.called-eye { width: 120px; height: 120px; }
.called-eye .lids { transform-box: view-box; transform-origin: 52px 52px; }
.called-eye.wink .lids { animation: wink .5s ease-in-out .3s 1; }
.called-eye.wink .lid-pupil { animation: hide-pupil .5s ease-in-out .3s 1; }
@keyframes hide-pupil { 30%, 70% { opacity: 0; } }
@keyframes wink { 45%, 55% { transform: scaleY(.12); } }
.called-big { font: 700 128px/1 var(--rounded); letter-spacing: -0.04em; margin: 24px 0 16px; color: var(--green); }
.called-sub { font-size: 21px; color: var(--muted); margin: 0; }

/* Good to know */
.good { border-top: 1px solid var(--line); }
.grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.grid li { margin: 0; }
.grid h3 { font-size: 19px; margin: 0 0 8px; }
.grid p { color: var(--muted); margin: 0; font-size: 16px; }

/* End */
.end { text-align: center; border-top: 1px solid var(--line); }
.end h2 { font: 700 48px/1.05 var(--rounded); letter-spacing: -0.02em; margin: 0 0 16px; }
.end p { color: var(--muted); font-size: 18px; margin: 0; }

@media (max-width: 960px) {
  .see-grid { grid-template-columns: 1fr 1fr; }
  .see-grid > li:last-child { grid-column: 1 / -1; max-width: 420px; justify-self: center; width: 100%; }
}
@media (max-width: 860px) {
  .home section { padding: 56px 24px; }
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-eye { width: 96px; height: 96px; margin: 0 auto 20px; }
  .hero h1 { font-size: 56px; }
  .lede { font-size: 18px; margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-cards { justify-self: center; }
  .section-title, .end h2 { font-size: 36px; }
  .try { grid-template-columns: 1fr; gap: 24px; }
  .try-text p { font-size: 18px; }
  .see-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .called { padding-top: 80px !important; padding-bottom: 80px !important; }
  .called-big { font-size: 80px; }
  .called-eye { width: 96px; height: 96px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 44px; }
  .ribbon span { font-size: 17px; }
  .demo { padding: 16px; }
  .demo-q { font-size: 22px; }
  .pc-line { font-size: 19px; }
  .grid { grid-template-columns: 1fr; }
}
