/* ===========================================================================
   SnowRaven website — styles
   Token-driven, light + dark, system fonts only, no external requests.
   =========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --surface-subtle: #F4F4F5;
  --text: #0F1117;
  --text-muted: #5b5d66;
  --text-faint: #71717A;
  --border: #E4E4E7;
  --border-strong: #d4d4d8;
  --accent: #2D8653;
  --accent-strong: #1A5C38;
  --accent-bg: #E8F5EE;
  --accent-rgb: 45, 134, 83;
  --ring: rgba(45, 134, 83, 0.45);
  --card-shadow: 0 1px 2px rgba(16, 17, 23, .04), 0 8px 24px rgba(16, 17, 23, .06);
  --card-shadow-lg: 0 4px 12px rgba(16, 17, 23, .08), 0 24px 56px rgba(16, 17, 23, .12);

  /* Dark "band" — constant across themes */
  --band-bg: #0c1f17;
  --band-surface: rgba(255, 255, 255, .055);
  --band-border: rgba(255, 255, 255, .12);
  --band-text: #e8efe9;
  --band-muted: #9fb3a7;
  --band-accent: #59d499;

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #09090B;
  --surface: #161619;
  --surface-subtle: #202024;
  --text: #F4F4F5;
  --text-muted: #a9a9b2;
  --text-faint: #8a8a92;
  --border: #27272A;
  --border-strong: #3a3a40;
  --accent: #34D399;
  --accent-strong: #6ee7b7;
  --accent-bg: #07301f;
  --accent-rgb: 52, 211, 153;
  --ring: rgba(52, 211, 153, 0.5);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .5);
  --card-shadow-lg: 0 4px 12px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .6);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 36px); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-strong); margin: 0 0 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.eyebrow.on-dark { color: var(--band-accent); }
.eyebrow.on-dark .dot { background: var(--band-accent); box-shadow: 0 0 0 4px rgba(89, 212, 153, .18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .98rem; padding: 12px 20px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(var(--accent-rgb), .28); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; box-shadow: 0 10px 22px rgba(var(--accent-rgb), .34); }
[data-theme="dark"] .btn-primary { color: #04150d; }
[data-theme="dark"] .btn-primary:hover { color: #04150d; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--card-shadow); }
.btn-secondary:hover { color: var(--text); border-color: var(--accent); }
.btn-secondary.on-dark { background: transparent; color: var(--band-text); border-color: var(--band-border); }
.btn-secondary.on-dark:hover { color: #fff; border-color: var(--band-accent); }
.btn-small { padding: 9px 15px; font-size: .9rem; border-radius: 9px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { border-radius: 7px; }
.brand-accent { color: var(--accent); }
.version-pill {
  margin-left: 4px; font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-strong); background: var(--accent-bg); border: 1px solid rgba(var(--accent-rgb), .25);
  padding: 2px 8px; border-radius: 999px;
}
.primary-nav { display: flex; gap: 26px; margin-left: auto; }
.primary-nav a { color: var(--text-muted); font-weight: 500; font-size: .96rem; }
.primary-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.ghost-link {
  display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted);
  font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 9px;
}
.ghost-link:hover { color: var(--text); background: var(--surface-subtle); }
.theme-toggle, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover, .menu-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 6vw, 92px) 0 clamp(40px, 5vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(var(--accent-rgb), .14), transparent 60%),
    radial-gradient(700px 380px at 6% 4%, rgba(var(--accent-rgb), .07), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.18fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { max-width: 560px; }
.lede { color: var(--text-muted); font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); margin-top: 20px; }
h1 .accent { color: var(--accent); }
.hero-meta { margin-top: 18px; color: var(--text-faint); font-size: .9rem; font-weight: 500; }

.hero-media { position: relative; }
.browser-frame {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--card-shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: var(--surface-subtle); border-bottom: 1px solid var(--border);
}
.browser-bar .tl { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser-frame img { width: 100%; height: auto; }

.float-card {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--card-shadow-lg);
}
.float-card .fc-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); font-weight: 600; }
.float-card .fc-v { font-size: 1rem; font-weight: 700; color: var(--accent-strong); }
.float-a { top: 14%; left: -22px; }
.float-b { bottom: 12%; right: -18px; }

/* ---------- Bands (dark sections) ---------- */
.band { background: var(--band-bg); color: var(--band-text); position: relative; }
.band h2 { color: #fff; }
.band p { color: var(--band-muted); }

/* ---------- Privacy ---------- */
#privacy { padding: clamp(52px, 6vw, 86px) 0; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.privacy-lead { max-width: 480px; }
.privacy-lead p { margin-top: 16px; }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy-points li {
  display: flex; gap: 13px; padding: 18px; border-radius: var(--radius-sm);
  background: var(--band-surface); border: 1px solid var(--band-border);
}
.privacy-points svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--band-accent); margin-top: 2px; }
.privacy-points strong { display: block; color: #fff; font-size: .98rem; }
.privacy-points span { color: var(--band-muted); font-size: .88rem; line-height: 1.45; }

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-sub { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Features ---------- */
.features { padding: clamp(56px, 7vw, 100px) 0; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding: clamp(28px, 4vw, 52px) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
.feature-text { max-width: 460px; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: var(--accent-bg); color: var(--accent-strong);
  border: 1px solid rgba(var(--accent-rgb), .2);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-text h3 { margin-bottom: 10px; }
.feature-text p { color: var(--text-muted); }
.feature-tag { margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--accent-strong); }
.feature-media {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--card-shadow);
}
.feature-media img { width: 100%; height: auto; }
.feature-media[data-shot="weather"] { max-width: 420px; margin-inline: auto; }
.shot-swap .for-dark { display: none; }
[data-theme="dark"] .shot-swap .for-light { display: none; }
[data-theme="dark"] .shot-swap .for-dark { display: block; }

/* List Comparer mock */
.feature-mock { padding: 18px; display: flex; align-items: center; }
.cmp { width: 100%; font-size: .9rem; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1fr 52px 52px; gap: 6px; align-items: center; }
.cmp-head { color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; padding: 0 10px 8px; }
.cmp-head span:not(.cmp-name) { text-align: center; }
.cmp-row { padding: 9px 10px; border-radius: 8px; }
.cmp-row + .cmp-row { margin-top: 4px; }
.cmp-row:nth-child(even) { background: var(--surface-subtle); }
.cmp-name { font-weight: 500; color: var(--text); }
.cmp-a, .cmp-b { text-align: center; font-variant-numeric: tabular-nums; color: var(--text-muted); font-weight: 600; }
.cmp .win { color: var(--accent-strong); background: var(--accent-bg); border-radius: 6px; }
.cmp-row.only .cmp-name { color: var(--text-muted); font-style: italic; }

/* ---------- Platforms ---------- */
.platforms { padding: clamp(56px, 7vw, 96px) 0; background: var(--surface-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.platforms-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.platforms-copy { max-width: 560px; }
.platforms-copy p { color: var(--text-muted); margin-top: 16px; }
.platform-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.platform-list li { display: flex; align-items: center; gap: 13px; font-weight: 600; color: var(--text); }
.platform-list svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.phone-frame {
  margin: 0 auto; max-width: 260px; border-radius: 28px; overflow: hidden;
  border: 8px solid #18181b; background: #18181b; box-shadow: var(--card-shadow-lg);
}
.phone-frame img { width: 100%; height: auto; border-radius: 20px; }

/* ---------- Install ---------- */
.install { padding: clamp(56px, 7vw, 100px) 0; }
.install-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.install-steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.install-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--card-shadow); }
.install-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step-os { color: var(--accent-strong); }
.install-card p { color: var(--text-muted); font-size: .98rem; margin-bottom: 14px; }
.terminal {
  position: relative; display: flex; align-items: center; background: #0d1117; color: #e6edf3;
  border: 1px solid #1f2630; border-radius: 10px; padding: 12px 46px 12px 14px; font-family: var(--mono); font-size: .82rem;
}
.t-scroll { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; overflow-x: auto; }
.terminal .t-prompt { color: #59d499; user-select: none; }
.terminal code { color: #e6edf3; white-space: nowrap; }
.copy-cmd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: #0d1117; border: none; color: #8b97a6; cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.copy-cmd:hover { color: #fff; }
.copy-cmd.copied { color: #59d499; }

.requirements { background: var(--accent-bg); border: 1px solid rgba(var(--accent-rgb), .22); border-radius: var(--radius); padding: 24px; position: sticky; top: 84px; min-width: 0; }
.requirements h3 { margin-bottom: 10px; }
.requirements > p { color: var(--text-muted); font-size: .96rem; }
.requirements ul { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.requirements li { font-size: .94rem; color: var(--text-muted); line-height: 1.5; }
.requirements li strong { color: var(--text); }
.req-note { font-size: .88rem; color: var(--text-muted); margin-top: 12px; }
[data-theme="dark"] .requirements { background: #0c241a; }

/* ---------- Closing ---------- */
.closing { padding: clamp(56px, 7vw, 96px) 0; text-align: center; }
.closing-inner { max-width: 620px; margin-inline: auto; }
.closing p { margin-top: 14px; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 36px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--text-muted); font-size: .92rem; margin-top: 12px; max-width: 320px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer-links a { color: var(--text-muted); font-size: .92rem; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-fine { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-fine p { color: var(--text-faint); font-size: .82rem; max-width: 640px; line-height: 1.55; }
.footer-version { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .privacy-grid, .platforms-grid, .install-grid, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text, .feature-row.reverse .feature-media { order: initial; }
  .feature-text { max-width: none; }
  .hero-media { margin-top: 12px; }
  .float-a { left: 0; } .float-b { right: 0; }
  .privacy-lead { max-width: none; }
  .requirements { position: static; }
  .phone-frame { max-width: 230px; }
  .feature-media[data-shot="weather"] { max-width: 360px; }
}
@media (max-width: 720px) {
  .primary-nav, .ghost-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: 10px; }
  .primary-nav { margin-left: 0; }
  .mobile-nav[data-open] { display: flex; flex-direction: column; padding: 8px 0 16px; border-top: 1px solid var(--border); }
  .mobile-nav[data-open] a { padding: 12px clamp(18px, 4vw, 36px); color: var(--text-muted); font-weight: 500; }
  .mobile-nav[data-open] a:hover { color: var(--text); background: var(--surface-subtle); }
  .privacy-points { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 440px) {
  .version-pill { display: none; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
