/* stayhd.app: the app's own tokens (app/lib/theme/tokens.dart, light). */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --tint: #f1f3f6;
  --tint2: #e4e7ec;
  --ink: #0e1116;
  --body: #30363f;
  --mute: #5a626e;
  --line: #c9ced6;
  --blue: #2b4cff;
  --blue-deep: #1b33c9;
  --blue-tint: #e8ecff;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 20px;
  --measure: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: Geist, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p, li { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }

/* Header */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  max-width: 1120px; margin: 0 auto; padding: 18px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; display: block; }
.brand span { font-weight: 700; font-size: 21px; letter-spacing: -0.5px; white-space: nowrap; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; }
.top nav a { color: var(--mute); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* Landing */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: grid; gap: 40px; align-items: center;
}
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.4px; color: var(--blue-deep); margin: 0 0 14px; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 9vw, 68px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 19px; color: var(--body); margin: 20px 0 28px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px;
  border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.2; color: #c9ced6; }
.store b { display: block; font-size: 17px; line-height: 1.2; font-weight: 600; letter-spacing: -0.2px; }
.store[aria-disabled="true"] { cursor: default; }
.soon { font-family: var(--mono); font-size: 12px; color: var(--mute); margin: 12px 0 0; }

/* Before and after: one frame split down the middle, as in the app's
   compare view and the C Split mark. */
.compare { margin: 0; width: 100%; max-width: 480px; justify-self: center; }
.compare .frame { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--tint); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare img.after { clip-path: inset(0 0 0 50%); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(14,17,22,0.12); }
.compare .divider::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(14,17,22,0.25);
}
.compare figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--mute); }
.compare figcaption .ours { color: var(--ink); }

/* Outcomes per app, as on the app's Learn screen. */
.outcomes { max-width: 1120px; margin: 0 auto; padding: 8px var(--gutter) 64px; }
.outcomes h2 { font-size: clamp(24px, 4vw, 30px); letter-spacing: -0.5px; line-height: 1.2; margin: 0 0 8px; }
.outcomes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
.fact { padding: 22px 0; border-bottom: 1px solid var(--tint2); display: grid; gap: 10px; }
.fact-h { display: flex; align-items: center; gap: 12px; }
.fact h3 { font-size: 20px; letter-spacing: -0.3px; margin: 0; }
.plat { width: 36px; height: 36px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; flex: none; }
.plat svg { width: 22px; height: 22px; display: block; }
.lr { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; line-height: 1.4; }
.lr .ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lr.bad { color: var(--body); }
.lr.bad .ico { color: #b42318; }
.lr.good { color: var(--ink); font-weight: 600; }
.lr.good .ico { color: #127a3a; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Legal pages */
.doc { max-width: 1120px; margin: 0 auto; padding: 16px var(--gutter) 72px; display: grid; gap: 32px; }
.doc header h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 10px; }
.doc .meta { font-family: var(--mono); font-size: 13px; color: var(--mute); margin: 0; }
.doc .lead { font-size: 19px; color: var(--ink); margin: 18px 0 0; }
.toc { font-size: 15px; }
.toc p { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: 0.4px; margin: 0 0 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { color: var(--body); text-decoration: none; display: block; padding: 6px 0; }
.toc a:hover { color: var(--blue); }
.prose { max-width: var(--measure); min-width: 0; }
.prose h2 { font-size: 24px; letter-spacing: -0.4px; line-height: 1.25; margin: 48px 0 12px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 6px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }

/* Data rows: a table on wide screens, stacked on phones. */
.rows { margin: 18px 0 8px; border-top: 1px solid var(--tint2); }
.row { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--tint2); }
.row .what { color: var(--ink); font-weight: 600; }
.row .k { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: 0.3px; margin-right: 6px; }
.row .keep { font-family: var(--mono); font-size: 14px; color: var(--blue-deep); }
.row p { margin: 0; }

.callout { background: var(--blue-tint); border-radius: 16px; padding: 18px 20px; margin: 20px 0; color: var(--ink); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center;
}
.path { font-family: var(--mono); font-size: 15px; color: var(--ink); background: var(--tint); padding: 1px 6px; border-radius: 6px; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Footer */
.foot { border-top: 1px solid var(--tint2); }
.foot div { max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--mute); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--mute); }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .outcomes ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 1.1fr 1.6fr 0.9fr; gap: 20px; align-items: baseline; }
  .row .k { display: none; }
  .rows .head { padding: 0 0 10px; }
  .rows .head span { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: 0.3px; }
}
@media (max-width: 719px) {
  .rows .head { display: none; }
  /* The header's links get their own row under the wordmark. */
  .top nav { width: 100%; justify-content: flex-start; gap: 0 20px; }
  .top nav a { padding: 8px 0; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr 1fr; padding-top: 56px; padding-bottom: 64px; }
  .doc { grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; }
  .doc header { grid-column: 2; }
  .toc { grid-column: 1; grid-row: 2; position: sticky; top: 24px; align-self: start; }
  .prose { grid-column: 2; }
}
