/* Farview's site. Same bones as Warmth's (~/Code/warmth/site/styles.css), in
   Farview's dusk palette: the indigo of the app's ring, and the amber sun from its icon. */
:root {
  --bg: #f7f7fc;
  --surface: #ffffff;
  --ink: #16172e;
  --ink-2: #5a5c78;
  --line: rgba(22, 23, 46, 0.09);
  --accent: #5c61db;
  --accent-deep: #36368f;
  --sun: #f5a54a;
  --radius: 28px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1020;
    --surface: #191a31;
    --ink: #ecedf8;
    --ink-2: #a5a8c6;
    --line: rgba(225, 228, 255, 0.1);
    --accent-deep: #a3a8ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
header.site a.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
header.site a.brand img { width: 28px; height: 28px; }
header.site nav { display: flex; gap: 18px; font-size: 15px; }
header.site nav a { color: var(--ink-2); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }
header.site nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.hero { text-align: center; padding: 48px 0 24px; }
.hero img.icon { width: 112px; height: 112px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.18)); }
h1 {
  font: 700 clamp(34px, 7vw, 52px)/1.08 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.025em; margin: 20px 0 10px; text-wrap: balance;
}
.lede { font-size: 20px; color: var(--ink-2); margin: 0 auto 28px; max-width: 32ch; text-wrap: balance; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: linear-gradient(#7b80ea, var(--accent)); color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(92,97,219,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.badge.soon { background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.note { font-size: 14px; color: var(--ink-2); margin-top: 12px; }

section { padding: 32px 0; }
h2 { font: 700 26px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.02em; margin: 0 0 16px; }
h3 { font-size: 17px; margin: 0 0 4px; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border-radius: 22px; padding: 18px 20px;
  box-shadow: 0 0 0 1px var(--line);
}
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--ink-2); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 8px 0 0; }

.doc h1 { font-size: clamp(30px, 6vw, 40px); margin-top: 32px; }
.doc h2 { font-size: 20px; margin-top: 28px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc .updated { font-size: 14px; }
.doc code { font-size: 15px; overflow-wrap: anywhere; }

footer.site { padding: 40px 0 56px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); margin-top: 24px; }
footer.site a { color: var(--ink-2); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }


/* ---- Landing page: the App Store slide look ---- */
/* A dusk sky: cool overhead, with a trace of the sun's warmth low on the page. */
:root { --glow-1: #f1f2ff; --glow-2: #e9eafb; --glow-3: #fbeee2; --eyebrow: #4348b8; }
@media (prefers-color-scheme: dark) {
  :root { --glow-1: #1d1e3d; --glow-2: #131428; --glow-3: #1f1724; --eyebrow: #a3a8ff; }
}
body.home {
  background:
    radial-gradient(120% 70% at 15% 0%, var(--glow-1) 0%, var(--glow-2) 45%, transparent 100%),
    linear-gradient(180deg, var(--glow-2) 0%, var(--bg) 60%, var(--glow-3) 100%);
  background-attachment: fixed;
}
.wrap.wide { max-width: 1120px; }

.feature {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr; padding: 56px 0;
}
@media (min-width: 860px) {
  .feature { grid-template-columns: 1.05fr 0.95fr; gap: 72px; padding: 72px 0; }
  .feature.flip .copy { order: 2; }
  .feature.flip .art { order: 1; }
}
.eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--eyebrow); margin: 0 0 14px;
}
.feature h1, .feature h2, .break h2 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 20px; text-wrap: balance;
}
.feature h2, .break h2 { font-size: clamp(34px, 5vw, 56px); }
.feature .lede, .break .lede { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; color: var(--ink-2); margin: 0 0 28px; max-width: 30ch; text-align: left; }
.hero-feature { padding-top: 40px; }
.feature .art { margin: 0; display: flex; justify-content: center; }
.feature .art img {
  width: auto; height: auto; max-width: min(100%, 440px); max-height: 760px;
  border-radius: 30px;
  box-shadow: 0 40px 90px rgba(30, 32, 100, 0.25), 0 1px 0 var(--line);
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 36px; line-height: 1.6; color: var(--ink); font-size: 17px; }
.checks li::before {
  content: ""; position: absolute; left: 0;
  /* Centered on the first line of text. */
  top: calc((1.6em - 24px) / 2); width: 24px; height: 24px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><radialGradient id='b' cx='50%' cy='35%' r='70%'><stop offset='0' stop-color='%23dcdeff'/><stop offset='.55' stop-color='%238489ee'/><stop offset='1' stop-color='%234a4fc4'/></radialGradient><linearGradient id='h' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23fff' stop-opacity='.95'/><stop offset='1' stop-color='%23fff' stop-opacity='0'/></linearGradient><linearGradient id='r' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23fff' stop-opacity='.9'/><stop offset='1' stop-color='%23fff' stop-opacity='.15'/></linearGradient></defs><circle cx='12' cy='12' r='11' fill='url(%23b)'/><ellipse cx='12' cy='7' rx='7.2' ry='3.8' fill='url(%23h)'/><circle cx='12' cy='12' r='10.5' fill='none' stroke='url(%23r)' stroke-width='1'/><path d='M7.6 12.6l2.9 2.9 5.9-6.7' fill='none' stroke='%2323246b' stroke-opacity='.35' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' transform='translate(0 .7)'/><path d='M7.6 12.6l2.9 2.9 5.9-6.7' fill='none' stroke='%23fff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(60, 64, 180, 0.35));
}
.fineprint { font-size: 15px; color: var(--ink-2); margin: 20px 0 0; max-width: 40ch; }
.cards { padding: 24px 0 8px; }
.section-title { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.025em; margin: 0 0 20px; }
.grid.four { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.home .card { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(8px); }
.home #support { max-width: 760px; margin: 32px auto 0; }
.home footer.site { max-width: 760px; margin-left: auto; margin-right: auto; }


/* ---- The break, live: a stand-in desktop that dims the way Farview does ---- */
.break { padding: 56px 0 24px; }
.break .lede { max-width: 44ch; }
.stage {
  position: relative; margin: 0; overflow: hidden; isolation: isolate;
  min-height: 440px; border-radius: 30px;
  box-shadow: 0 40px 90px rgba(30, 32, 100, 0.25), 0 1px 0 var(--line);
  color: #fff;
}
@media (min-width: 720px) { .stage { aspect-ratio: 16 / 9; min-height: 0; } }
.stage-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.stage-idle, .stage-break {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.stage-start {
  font: inherit; font-weight: 600; font-size: 16px; color: #23246b; cursor: pointer;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(20, 20, 70, 0.3), inset 0 1px 0 #fff;
}
.stage-start:hover { background: #fff; }
.stage-break { background: rgba(9, 9, 26, 0.6); }
.stage-idle, .stage-break { transition: opacity 1s ease, visibility 0s linear 1s; }
/* idle: the desktop and the button. break: the dim, the ring, Skip. */
.stage[data-state="idle"] .stage-break,
.stage[data-state="break"] .stage-idle { opacity: 0; visibility: hidden; }
.stage[data-state="idle"] .stage-idle,
.stage[data-state="break"] .stage-break { transition: opacity 1s ease; }
/* Without JavaScript the stage simply shows a break in progress. */
.stage[data-state="static"] .stage-idle,
.stage[data-state="static"] .stage-actions { display: none; }

.ring { position: relative; width: clamp(104px, 14vw, 148px); aspect-ratio: 1; margin-bottom: 22px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .ring-track { stroke: rgba(255, 255, 255, 0.16); }
.ring .ring-arc { stroke: #a3a8ff; stroke-linecap: round; stroke-dasharray: 339.292; stroke-dashoffset: 0; }
.ring .stage-time {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(26px, 3.6vw, 36px); font-weight: 500; font-variant-numeric: tabular-nums;
}
.stage-break h3 { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.stage-break p { margin: 0; font-size: clamp(15px, 1.8vw, 19px); color: rgba(255, 255, 255, 0.72); }
.stage-actions { display: flex; gap: 8px; margin-top: 24px; }
.stage-actions button {
  font: inherit; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent;
}
.stage-actions button:hover { background: rgba(255, 255, 255, 0.12); }
.stage-actions kbd { font: inherit; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.6); margin-left: 6px; }
.stage :focus-visible { outline-color: #fff; border-radius: 999px; }
.stage-status { min-height: 1.6em; margin: 14px 0 0; font-size: 15px; color: var(--ink-2); text-align: center; }
.steps { margin-top: 20px; }
.steps .card h3 span { color: var(--eyebrow); font-variant-numeric: tabular-nums; margin-right: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-idle, .stage-break { transition: none !important; }
}
