/* Hither site. Same thesis as the app: use what the platform gives you.
   - color-scheme + light-dark(): one token per colour; the page follows the system appearance, as Hither does.
   - <picture> chooses the light or dark screenshot; <figure>/<figcaption> carry them.
   - <details> for the FAQ, radio inputs for the style tabs: no script.
   Elements from seanfloyd.dev: the glass dock with a sliding lens, tone eyebrows, the status pill. */

:root {
  color-scheme: light dark;
  --bg: light-dark(#fbfbfd, #0e0f12);
  --surface: light-dark(#ffffff, #17181c);
  --sunken: light-dark(#f2f2f6, #1e1f24);
  --text: light-dark(#1d1d1f, #f5f5f7);
  --muted: light-dark(#5f5f68, #a1a1aa);
  --line: light-dark(rgb(0 0 0 / .09), rgb(255 255 255 / .09));
  --accent: light-dark(#0a6cff, #3b8bff);
  --accent-ink: #fff;
  --ok: light-dark(#15803d, #22c55e);
  --accent-fill: #0b5fd6;  /* white text on it is 5.6:1 in both modes */
  --c1: light-dark(#3b6fe0, #7aa2ff);
  --c2: light-dark(#16a34a, #4ade80);
  --c3: light-dark(#ea6a2a, #fb8a5a);
  --glass: light-dark(color-mix(in srgb, #fff 68%, transparent), color-mix(in srgb, #3a3a40 62%, transparent));
  --glass-edge: light-dark(rgb(0 0 0 / .16), rgb(0 0 0 / .7));
  --glass-rim: light-dark(rgb(255 255 255 / .9), rgb(255 255 255 / .22));
  --shadow: light-dark(0 18px 50px rgb(20 30 60 / .12), 0 18px 50px rgb(0 0 0 / .45));
  --stage: linear-gradient(135deg, light-dark(#d6e1f7, #3d5aa8), light-dark(#a9bdea, #22346a));
  --stage-ink: light-dark(#1d2a4a, #fff);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
kbd { font: 600 .82em ui-rounded, -apple-system, sans-serif; background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* glass: an outline and a lit rim, not a drop shadow (seanfloyd.dev) */
.dock, .seg {
  background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.9); backdrop-filter: blur(28px) saturate(1.9);
  box-shadow: 0 0 0 .5px var(--glass-edge), inset 0 1px 0 var(--glass-rim), inset 0 -.5px 0 rgb(0 0 0 / .06), 0 4px 14px -6px rgb(0 0 0 / .18);
}
@media (prefers-reduced-transparency: reduce) { .dock, .seg { background: var(--surface); } }

nav.dock { position: sticky; z-index: 50; top: 12px; width: max-content; max-width: calc(100% - 24px); margin: 12px auto 0; display: flex; align-items: center; gap: 2px; padding: 5px 5px 5px 8px; border-radius: 999px; white-space: nowrap; }
.dock a:not(.btn) { position: relative; z-index: 1; padding: 8px 13px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .2s, color .2s, scale .2s var(--spring); }
.dock a:not(.btn):hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); text-decoration: none; }
.dock a:active { scale: .95; }
.dock .home-l { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); }
.dock .home-l img { width: 22px; height: 22px; }
.dock .sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.dock .btn { margin-left: 4px; padding: 9px 17px; font-size: 14.5px; font-weight: 600; background: var(--text); color: var(--bg); border-radius: 999px; transition: transform .35s var(--spring), box-shadow .3s; }
.dock .btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.dock-lens, .seg-lens { display: none; }
@supports (anchor-name: --a) {
  .dock a:not(.btn):hover { background: none; }
  .dock > a:not(.btn):not(.home-l):is(:hover, :focus-visible) { anchor-name: --dock-lens; }
  .dock-lens { display: block; position: absolute; z-index: 0; position-anchor: --dock-lens; top: anchor(top); bottom: anchor(bottom); left: anchor(left); width: anchor-size(width); border-radius: 999px;
    background: color-mix(in srgb, var(--text) 8%, transparent); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--text) 6%, transparent);
    transition: left .5s var(--spring), width .5s var(--spring), opacity .2s; }
  .dock:not(:has(> a:not(.btn):not(.home-l):is(:hover, :focus-visible))) .dock-lens { opacity: 0; }
}

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.btn.primary { background: var(--accent-fill); color: var(--accent-ink); }
.btn.primary:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { text-decoration: none; background: var(--sunken); }

.hero { text-align: center; padding: 72px 0 40px; }
.hero img.icon { width: 112px; height: 112px; filter: drop-shadow(0 10px 24px rgb(0 0 0 / .18)); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 22px 0 14px; text-wrap: balance; }
.hero p.sub { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 30px; text-wrap: pretty; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 5px 12px 5px 11px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 13.5px; font-weight: 550; }
.status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--ok); animation: ping 2.4s var(--out) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.stage { margin: 46px auto 0; max-width: 860px; border-radius: 22px; background: var(--stage); box-shadow: var(--shadow); position: relative; }
.shot-stage { display: grid; place-items: center; padding: 56px 20px 64px; }
.stage .keys { position: absolute; right: 18px; bottom: 12px; font-size: 13px; color: var(--stage-ink); }
.stage .keys kbd, .pane figcaption kbd { background: light-dark(rgb(255 255 255 / .6), rgb(255 255 255 / .18)); border-color: transparent; color: inherit; }

section { padding: 70px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.015em; margin: 0 0 10px; text-align: center; text-wrap: balance; }
section p.lede { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 38px; text-wrap: pretty; }
.eyebrow-wrap { text-align: center; margin: 0 0 12px; }
.split .eyebrow-wrap { text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: color-mix(in srgb, var(--tone) 72%, var(--text)); background: color-mix(in srgb, var(--tone) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent); }

.tabs { text-align: center; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs .seg { position: relative; display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; margin-bottom: 26px; }
.tabs .seg label { position: relative; z-index: 1; padding: 8px 18px; border-radius: 999px; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 15px; transition: color .2s; }
.tabs .seg input:checked + label { color: var(--text); background: color-mix(in srgb, var(--text) 9%, transparent); }
.tabs .seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
@supports (anchor-name: --a) {
  .tabs .seg input:checked + label { background: none; anchor-name: --seg-lens; }
  .seg-lens { display: block; position: absolute; z-index: 0; position-anchor: --seg-lens; top: anchor(top); bottom: anchor(bottom); left: anchor(left); width: anchor-size(width); border-radius: 999px;
    background: color-mix(in srgb, var(--text) 9%, transparent); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--text) 7%, transparent), inset 0 1px 0 var(--glass-rim);
    transition: left .5s var(--spring), width .5s var(--spring); }
}
.panes { min-height: 300px; border-radius: 22px; padding: 44px 20px; background: var(--stage); }
.pane { display: none; }
.tabs:has(#t-switcher:checked) .p-switcher, .tabs:has(#t-list:checked) .p-list, .tabs:has(#t-menu:checked) .p-menu { display: block; }
.pane figcaption { color: var(--stage-ink); margin-top: 18px; font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.wide-img { grid-template-columns: 2fr 3fr; }
.split p { color: var(--muted); }
.split figure { justify-self: center; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .glyph { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; color: #fff; }
.g1 { background: linear-gradient(#5aa8ff, #2a73e8); } .g2 { background: linear-gradient(#a78bfa, #7c3aed); }
.g3 { background: linear-gradient(#34d399, #059669); } .g4 { background: linear-gradient(#fbbf24, #f97316); }
.g5 { background: linear-gradient(#f472b6, #db2777); } .g6 { background: linear-gradient(#94a3b8, #475569); }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 600; } td.no { color: var(--muted); }

.price { max-width: 460px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px 28px; box-shadow: var(--shadow); }
.price .amount { font-size: 54px; font-weight: 700; letter-spacing: -.02em; }
.price .amount small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 18px 0 26px; color: var(--muted); }
.price li { padding: 5px 0; }
.price li::before { content: "✓  "; color: var(--ok); font-weight: 700; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
footer .links { display: flex; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }

.doc { max-width: 720px; margin: 0 auto; padding: 40px 20px 60px; }
.doc h1 { font-size: 38px; letter-spacing: -.015em; }
.doc h2 { font-size: 21px; margin-top: 32px; }
.doc p, .doc li { color: var(--muted); }
.doc-nav { padding: 18px 20px 0; max-width: 720px; margin: 0 auto; }
.doc-nav a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; }
.doc-nav img { width: 24px; height: 24px; }

@media (max-width: 760px) {
  .split, .split.wide-img { grid-template-columns: 1fr; }
  .dock a:not(.btn):not(.home-l), .dock .sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .status i::after { animation: none; }
  * { transition: none !important; }
}

/* hero video: the real thing, recorded on a Mac (light and dark takes, picked by <source media>) */
.video-stage { max-width: 1040px; padding: 10px; background: var(--surface); border: 1px solid var(--line); }
.video-stage video { display: block; width: 100%; height: auto; border-radius: 14px; }
.video-stage figcaption { color: var(--muted); font-size: 14.5px; text-align: center; padding: 12px 8px 4px; }
@media (prefers-reduced-motion: reduce) { .video-stage video { animation: none; } }

/* appearance menu: a glass pill and a native popover (as on the Steer site) */
.theme { position: fixed; top: 16px; right: 20px; z-index: 60; }
.theme-btn { width: 38px; height: 38px; border: 0; border-radius: 999px; cursor: pointer; font-size: 17px; color: var(--text);
  background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.9); backdrop-filter: blur(28px) saturate(1.9);
  box-shadow: 0 0 0 .5px var(--glass-edge), inset 0 1px 0 var(--glass-rim), 0 4px 14px -6px rgb(0 0 0 / .18); }
#theme-menu { position: fixed; inset: auto; top: 62px; right: 20px; margin: 0; padding: 5px; min-width: 150px; border: 0; border-radius: 14px; color: var(--text);
  background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.9); backdrop-filter: blur(28px) saturate(1.9);
  box-shadow: 0 0 0 .5px var(--glass-edge), inset 0 1px 0 var(--glass-rim), 0 18px 40px -12px rgb(0 0 0 / .35);
  opacity: 0; transform: translateY(-6px) scale(.98); }
#theme-menu:popover-open { opacity: 1; transform: none; display: grid; }
#theme-menu button { all: unset; padding: 8px 12px; border-radius: 9px; font-size: 14px; cursor: pointer; }
#theme-menu button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
#theme-menu button[aria-pressed="true"]::after { content: "✓"; float: right; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  #theme-menu { transition: opacity .18s var(--settle), transform .3s var(--settle), display .18s allow-discrete, overlay .18s allow-discrete; }
  @starting-style { #theme-menu:popover-open { opacity: 0; transform: translateY(-6px) scale(.98); } }
}
@media (max-width: 900px) { .theme { top: auto; bottom: 16px; } #theme-menu { top: auto; bottom: 62px; } }

.pane .pair { display: flex; gap: 20px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.pane .pair picture { flex: 0 1 486px; }
.changes h2 { text-align: left; font-size: 24px; margin-top: 40px; } .changes h2 time { color: var(--muted); font-size: 15px; font-weight: 500; margin-left: 10px; }

#theme-menu button:focus-visible, .theme-btn:focus-visible, .vid-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.video-stage { position: relative; }
.vid-toggle { position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border: 0; border-radius: 999px; cursor: pointer; font-size: 12px; color: #fff; background: rgb(0 0 0 / .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
