/* SnowStreak — palette mirrors APPS/snowstreak/src/theme/index.ts (dark = night sections, light = day). */
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/assets/fonts/manrope-var.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --night: #070c17; --night-2: #0a1222; --night-3: #0c162e; --far: #1b2a55;
  --n-text: #f2f6fb; --n-muted: #8fa1b8; --n-primary: #7fb4ff; --n-ice: #7fe0f5; --n-flame: #ff8a3d; --n-line: rgba(148,190,255,.16);
  --day: #edf3fb; --day-2: #e3ebf6; --d-text: #0a1020; --d-muted: #5b6b80; --d-primary: #1150b8; --d-ice: #1c9cc8; --d-flame: #ef5f2b; --good: #17936c;
  --ridge-l: #c7daf4; --ridge-l-far: #dee9fa;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--d-text); background: var(--day); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .98; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--n-ice); outline-offset: 3px; border-radius: 6px; }
.kicker { font: 600 .82rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #0e6f93; margin-bottom: 1.1em; }
.lede { font-size: 1.15rem; color: var(--d-muted); max-width: 36em; }

/* Night / day surfaces */
.night, .night-deep, .foot { color: var(--n-text); }
.night .lede, .night-deep .lede { color: var(--n-muted); }
.night .kicker, .night-deep .kicker { color: var(--n-ice); }
.night { background: radial-gradient(900px 500px at 78% 10%, rgba(127,180,255,.18), transparent 70%), linear-gradient(180deg, var(--night) 0%, var(--night-3) 100%); }
.night-deep { background: var(--night-2); }
.day { background: var(--day); }
.day-alt { background: linear-gradient(180deg, var(--day) 0%, var(--day-2) 100%); }
section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--n-text); }
.top.solid { position: sticky; background: rgba(7,12,23,.92); backdrop-filter: blur(12px); }
.top-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.5rem/1 var(--display); text-decoration: none; margin: 0; }
.brand img { border-radius: 8px; }
.top-nav { display: flex; gap: 24px; margin-left: auto; font-size: .95rem; }
.top-nav a { text-decoration: none; color: var(--n-muted); }
.top-nav a:hover { color: var(--n-text); }
.top-cta { margin-left: 0; padding: 9px 16px; border-radius: 999px; background: var(--n-text); color: var(--night); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.top.solid .top-cta { margin-left: auto; }
.langs { position: relative; font-size: .85rem; font-weight: 700; }
.langs summary { list-style: none; cursor: pointer; padding: 8px 10px; border: 1px solid var(--n-line); border-radius: 8px; color: var(--n-muted); }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #121b2c; border: 1px solid var(--n-line); border-radius: 12px; min-width: 150px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.langs a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.langs a:hover, .langs a[aria-current] { background: rgba(127,180,255,.12); }

/* Hero */
.hero { padding: 132px 0 0; overflow: hidden; min-height: min(100svh, 960px); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-bottom: 150px; }
.hero h1 { font-size: clamp(3.6rem, 8.4vw, 7rem); line-height: .9; margin-bottom: .3em; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, var(--n-primary), var(--n-ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 30px 0 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; background: #fff; color: #000; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(127,180,255,.25); transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 20px; height: 24px; }
.soon { font-size: .9rem; color: var(--n-muted); }
.note { font-size: .92rem; color: var(--n-muted); }

.count { margin-top: 34px; max-width: 470px; padding: 18px 20px; border-radius: 18px; background: rgba(26,38,60,.6); border: 1px solid var(--n-line); backdrop-filter: blur(8px); }
.count label { font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--n-muted); }
.count-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.count input, .calc input { font: 600 1rem var(--body); color: inherit; background: rgba(255,255,255,.06); border: 1px solid var(--n-line); border-radius: 10px; padding: 9px 12px; color-scheme: dark; }
.count-num b { font: 700 3rem/1 var(--display); color: var(--n-flame); margin-right: 6px; }
.count-num span { color: var(--n-muted); font-size: .95rem; }
.count-msg { margin: 10px 0 0; font-size: .95rem; min-height: 1.6em; }
.count-msg b { color: var(--n-text); }

.hero-phone { position: relative; display: grid; place-items: center; }
.halo { position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(127,224,245,.32), rgba(127,180,255,.12) 55%, transparent 72%); }
.hero-phone .phone { width: min(340px, 78vw); transform: rotate(3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(3deg) translateY(-10px); } }

/* Phones */
.phone { position: relative; padding: 9px; border-radius: 48px; background: linear-gradient(145deg, #2a3650, #0b1120 60%); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -20px rgba(0,0,0,.55); }
.phone img { border-radius: 40px; width: 100%; }
.day .phone { box-shadow: 0 0 0 1px rgba(10,16,32,.08), 0 40px 70px -24px rgba(17,80,184,.35); }

/* Ridges */
.ridges { position: absolute; left: 0; width: 100%; height: clamp(90px, 14vw, 200px); pointer-events: none; }
.night-ridges { bottom: -1px; }
.night-ridges .r-far { fill: var(--far); } .night-ridges .r-near { fill: var(--night-2); } .night-ridges .r-cap { fill: #dceafb; opacity: .75; }
.day-ridges { bottom: -1px; }
.day-ridges .r-far { fill: var(--ridge-l); } .day-ridges .r-near { fill: var(--day); } .day-ridges .r-cap { fill: #fff; }
.top-ridges { top: -1px; background: var(--day-2); }
.top-ridges .r-far { fill: #9db3d8; } .top-ridges .r-near { fill: var(--night); } .top-ridges .r-cap { fill: #fff; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 560px; justify-self: center; }
.duo .phone:nth-child(2) { margin-top: 70px; }
.points { list-style: none; padding: 0; margin: 34px 0 0; counter-reset: p; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; counter-increment: p; }
.points li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font: 700 1.6rem/1.1 var(--display); color: var(--n-flame); }
.day .points li::before { color: var(--d-flame); }
.points b { font-size: 1.08rem; }
.points span { color: var(--n-muted); }
.day .points span { color: var(--d-muted); }

/* Flip: night → dawn → snow day */
.flip { padding: clamp(90px, 12vw, 150px) 0 clamp(170px, 22vw, 300px); text-align: center; color: var(--n-text); overflow: hidden;
  background: linear-gradient(180deg, var(--night-2) 0%, #1b2a55 38%, #6b5d8f 58%, #f2a37c 78%, #fbd9bf 92%, var(--day) 100%); }
.flip .lede { color: #c9d6ea; margin-inline: auto; }
.flip .kicker { color: #ffd2b0; }
.flip-copy { position: relative; z-index: 2; }
.sun { position: absolute; left: 50%; bottom: clamp(0px, 2vw, 30px); width: clamp(160px, 22vw, 300px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, #fff6e8 0 38%, rgba(255,214,170,.7) 52%, transparent 70%); }

/* Calculator */
.calc { margin-top: clamp(64px, 8vw, 100px); padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: rgba(255,255,255,.8); border: 1px solid #fff; box-shadow: 0 30px 60px -30px rgba(17,80,184,.35); display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px 48px; }
.calc h3 { grid-column: 1 / -1; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.calc-in { display: grid; gap: 14px; }
.calc label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--d-muted); }
.calc input { color-scheme: light; border-color: rgba(11,18,32,.12); background: var(--day); font-size: 1.15rem; width: 100%; }
.calc-big { color: var(--d-text); font: 700 clamp(1.8rem, 3.2vw, 2.5rem)/1.05 var(--display); margin-bottom: .5em; }
.calc-big b { color: var(--d-primary); }
#c-line b { color: var(--d-text); }
.calc-out { color: var(--d-muted); align-self: center; }
.track { position: relative; height: 12px; border-radius: 99px; background: var(--day-2); margin-top: 18px; }
.track i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--d-flame), #f5a35d); transition: width .3s; }
.track i.ok { background: linear-gradient(90deg, var(--d-primary), var(--d-ice), var(--good)); }
.track s { position: absolute; top: -6px; width: 3px; height: 24px; background: var(--d-text); border-radius: 2px; transition: left .3s; }
.calc-note { grid-column: 1 / -1; font-size: .85rem; color: var(--d-muted); margin: 8px 0 0; }

/* Privacy trio */
.trio { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--d-text); }
.trio li { padding: 22px 26px 0 0; display: grid; gap: 6px; }
.trio b { font: 700 1.6rem/1 var(--display); }
.trio span { color: var(--d-muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin-top: 40px; max-width: 900px; }
.plan { padding: 32px; border-radius: 24px; background: #fff; border: 1px solid rgba(11,18,32,.07); }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--day-2); box-shadow: inset 0 0 0 4px var(--d-ice); }
.plan.pro { background: linear-gradient(160deg, #121b2c, var(--night)); color: var(--n-text); border: 0; }
.plan.pro li::before { background: transparent; box-shadow: inset 0 0 0 4px var(--n-flame); }
.plan.pro p { color: var(--n-muted); font-size: .92rem; margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid rgba(11,18,32,.1); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 600 1.8rem/1 var(--display); color: var(--d-ice); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--d-muted); padding-right: 40px; }

/* Final */
.final { padding-top: clamp(170px, 20vw, 260px); text-align: center; overflow: hidden; }
.final-in .lede { margin-inline: auto; }
.final .stores { justify-content: center; }

/* Footer */
.foot { background: var(--night); padding: 48px 0 110px; font-size: .92rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 28px 60px; justify-content: space-between; align-items: flex-start; }
.foot p { color: var(--n-muted); }
.foot .brand { color: var(--n-text); margin-bottom: 10px; }
.foot nav, .foot-langs { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.foot a { color: var(--n-muted); text-decoration: none; }
.foot a:hover, .foot a[aria-current] { color: var(--n-text); }
.fine { margin-top: 26px; font-size: .82rem; color: #6c7d95 !important; }

/* Legal pages */
.doc { background: var(--day); }
.prose { padding: 56px 0 90px; }
.prose h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose a { color: var(--d-primary); }
.prose .updated { color: var(--d-muted); font-size: .9rem; }
.doc .foot { padding-bottom: 48px; }

.sticky-cta { display: none; }

@media (max-width: 900px) {
  .top-nav { display: none; }
  .langs { margin-left: auto; }
  .top-cta { display: none; }
  .hero { padding-top: 100px; min-height: 0; }
  .hero-grid, .split, .calc, .plans { grid-template-columns: 1fr; }
  .hero-grid { padding-bottom: 110px; gap: 56px; }
  .split.rev > .duo { order: 2; }
  .duo { max-width: 460px; }
  .trio { grid-template-columns: 1fr; }
  .sticky-cta { display: block; position: fixed; inset: auto 0 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(7,12,23,.92); backdrop-filter: blur(12px); }
  .sticky-cta a { display: block; text-align: center; padding: 13px; border-radius: 14px; background: #fff; color: #000; font-weight: 700; text-decoration: none; }
  .doc .sticky-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.hero-grid > *, .split > *, .duo > *, .calc > * { min-width: 0; }
