/* Author: Muhammad Asif
   Date: 2026-12-02
   Description: Shared styles for the Snowdrift website. Tokens and rules: DESIGN.md, Website. */
:root {
  --night: #0B1226; --sky: #1A2952; --dusk: #52739E;
  --snow: #FFFFFF; --on-snow: #0B1226;
  --ink-on-dark: #F2F5FB; --ink-on-dark-2: #A9B6CF; --hair-dark: rgba(255,255,255,.12);
  --frost: #F4F7FB; --ink: #14192B; --ink-2: #5B6478; --ink-3: #7D869A; --hair: #D5DBE6;
  --ice: #8CCBFF; --ice-strong: #1F6FD1; --bulb: #FFB547;
  --win: #F7F8FA; --win-bar: #E6E8EC;
  --ease: cubic-bezier(.25,.1,.25,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 52px; }
body { background: #fff; color: var(--ink); font: 400 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ice-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

nav { position: sticky; top: 0; z-index: 10; height: 52px; background: rgba(11,18,38,.8);
      -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
nav .in { max-width: 1100px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink-on-dark); font-size: 17px; font-weight: 600; }
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 24px; height: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--snow); color: var(--on-snow);
       font: inherit; font-weight: 500; padding: 12px 24px; border: 0; border-radius: 980px; cursor: pointer; transition: opacity .2s var(--ease); }
.btn:hover { opacity: .88; text-decoration: none; }
.btn.sm { font-size: 13px; min-height: 28px; padding: 5px 14px; }
.light .btn, .white .btn, main .btn { background: var(--night); color: var(--ink-on-dark); }
.more { color: var(--ice); }
.more::after { content: " \203A"; }
.actions { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }

.tile { padding: 112px 24px; text-align: center; overflow: hidden; }
.dark { background: var(--night); color: var(--ink-on-dark); }
.light { background: var(--frost); }
.white { background: #fff; }
.col { max-width: 680px; margin: 0 auto; }
.eyebrow { font-size: 19px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; letter-spacing: 0; }
.dark .eyebrow { color: var(--ice); }
h1 { font-size: 64px; font-weight: 700; line-height: 1.05; letter-spacing: -.015em; }
h2 { font-size: 48px; font-weight: 600; line-height: 1.08; letter-spacing: -.005em; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.lead { font-size: 22px; line-height: 1.4; color: var(--ink-2); margin: 20px auto 0; max-width: 680px; letter-spacing: .005em; }
.dark .lead { color: var(--ink-on-dark-2); }
.note { font-size: 14px; line-height: 1.43; color: var(--ink-3); margin-top: 20px; letter-spacing: -.01em; }
.dark .note { color: var(--ink-on-dark-2); }

/* Hero: the app's preview sky with live snow on two mock windows */
.hero { background: linear-gradient(180deg, var(--night) 0%, var(--sky) 55%, var(--dusk) 100%); padding-top: 72px; padding-bottom: 0; }
.hero .col { max-width: 860px; }
.desk { position: relative; max-width: 980px; height: 440px; margin: 56px auto 0; }
.desk canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.win { position: absolute; background: var(--win); border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: hidden; text-align: left; }
.win .bar { height: 28px; background: var(--win-bar); display: flex; align-items: center; gap: 7px; padding: 0 11px; }
.win .bar i { width: 11px; height: 11px; border-radius: 50%; background: #C9CDD4; }
.win .body { padding: 18px 20px; color: var(--ink-3); font-size: 13px; }
.win .body b { display: block; height: 9px; border-radius: 5px; background: #E3E6EB; margin: 0 0 11px; }
.win.a { left: 6%; top: 90px; width: 48%; height: 330px; }
.win.b { right: 5%; top: 190px; width: 38%; height: 250px; z-index: 1; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin: 56px auto 0; text-align: left; }
.card { background: var(--frost); border-radius: 24px; padding: 28px 32px; }
.light .card { background: #fff; }
.card p { color: var(--ink-2); margin-top: 8px; }
.dark .card { background: rgba(255,255,255,.06); }
.dark .card p { color: var(--ink-on-dark-2); }

.price { font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -.015em; margin-top: 36px; font-variant-numeric: tabular-nums; color: var(--ink); }

.faq { max-width: 680px; margin: 48px auto 0; text-align: left; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-size: 19px; font-weight: 600; line-height: 1.3; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--ink-2); padding: 0 40px 22px 0; }

/* Text pages: install, thanks, privacy, terms, 404 */
main { max-width: 680px; margin: 0 auto; padding: 72px 24px 96px; }
main h1 { font-size: 48px; }
main h2 { font-size: 24px; margin-top: 40px; }
main p, main li { color: var(--ink-2); margin-top: 12px; }
main b { color: var(--ink); font-weight: 600; }
main ol, main ul { padding-left: 24px; }
main .icon { width: 96px; height: 96px; margin-bottom: 24px; }
main .updated { color: var(--ink-3); font-size: 14px; }
.key { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.key code { font: 600 20px ui-monospace, Menlo, monospace; letter-spacing: .04em; background: var(--frost); border-radius: 12px; padding: 14px 16px; color: var(--ink); }
.link { background: none; border: 0; font: inherit; color: var(--ice-strong); cursor: pointer; min-height: 44px; }

footer { background: var(--frost); color: var(--ink-3); font-size: 12px; line-height: 1.33; }
footer .in { max-width: 980px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer .links a { color: var(--ink-2); margin-left: 20px; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 734px) {
  .tile { padding: 80px 20px; }
  .hero { padding-top: 48px; padding-bottom: 0; }
  h1 { font-size: 44px; }
  h2, main h1 { font-size: 34px; }
  .lead { font-size: 19px; }
  .grid { grid-template-columns: 1fr; margin-top: 40px; }
  .card { border-radius: 18px; }
  .desk { height: 320px; margin-top: 40px; }
  .win.a { left: 3%; top: 60px; width: 62%; height: 240px; }
  .win.b { right: 3%; top: 150px; width: 48%; height: 170px; }
  .price { font-size: 56px; }
  .actions { gap: 20px; }
}
nav .tabs { display: flex; align-items: center; gap: 20px; }
nav .tabs a:not(.btn) { color: var(--ink-on-dark-2); font-size: 13px; }
nav .tabs a:not(.btn):hover { color: var(--ink-on-dark); text-decoration: none; }

/* Install guide (install.html): the video under a night sky, then the written steps. Same shape as Notchtrack's guide. */
.guide-top { padding-bottom: 96px; }
.guide-top .status { margin-top: 24px; color: var(--ink-on-dark); }
.guide-top .status a { color: var(--ice); }
.media { max-width: 980px; margin: 48px auto 0; border-radius: 28px; overflow: hidden; background: var(--night); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.media video { display: block; width: 100%; height: auto; }
.guide-top .actions a, .guide-top .actions .link { color: var(--ice); }
main.guide { max-width: 820px; padding: 96px 24px 120px; counter-reset: step; }
main.guide h2 { font-size: 40px; margin-top: 0; text-align: center; }
main.guide .sub { text-align: center; margin-top: 12px; }
.toc { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-top: 28px; padding: 0 !important; }
.toc li { margin-top: 0; }
.step { margin-top: 88px; counter-increment: step; }
.step h3 { font-size: 28px; line-height: 1.15; display: flex; gap: 16px; align-items: baseline; }
.step h3::before { content: counter(step); flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--night); color: var(--ink-on-dark);
                   font-size: 19px; display: inline-flex; align-items: center; justify-content: center; transform: translateY(-4px); }
.step h4 { font-size: 19px; font-weight: 600; margin-top: 32px; }
.step li { padding: 2px 0; }
.shot { margin: 24px 0 0; background: var(--night); border-radius: 20px; padding: 24px; }
.shot img { margin: 0 auto; border-radius: 8px; }
.shot figcaption { color: var(--ink-on-dark-2); font-size: 14px; text-align: center; margin-top: 12px; }
.tip { margin-top: 20px; background: var(--frost); border-radius: 18px; padding: 16px 20px; color: var(--ink-2); font-size: 15px; }
.help { margin-top: 96px; text-align: center; }
main.guide a:focus-visible, main.guide [tabindex]:focus-visible { outline: 3px solid var(--ice-strong); outline-offset: 3px; border-radius: 4px; }
.step a { color: var(--ice-strong); }
.toc a { color: var(--ice-strong); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio figure { margin: 0; }
.trio img { width: 100%; }
.warn { margin-top: 24px; background: #FFF6E5; border: 1px solid #F2D7A6; border-left: 5px solid var(--bulb); border-radius: 16px; padding: 16px 20px; font-size: 16px; color: var(--ink); }
.warn p + p { margin-top: 8px; }
.warn .warn-title { font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: #8A5200; margin: 0 0 6px; }
@media (max-width: 734px) {
  .guide-top { padding-bottom: 64px; }
  .media { border-radius: 18px; margin-top: 36px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .media video { aspect-ratio: 9 / 16; }
  main.guide { padding: 72px 20px 80px; }
  main.guide h2 { font-size: 32px; }
  .step { margin-top: 64px; }
  .step h3 { font-size: 23px; }
  .step h3::before { width: 34px; height: 34px; font-size: 16px; }
  .shot { padding: 12px; border-radius: 16px; }
  .trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; }
  .trio figure { scroll-snap-align: center; }
}
@media print {
  @page { margin: 16mm; }
  nav, .media, .guide-top .actions, .status, .toc, footer, canvas { display: none !important; }
  .guide-top { background: none; color: #000; padding: 0 0 8mm; }
  .guide-top .lead { display: none; }
  main.guide { padding: 0; max-width: none; }
  .step { margin-top: 10mm; }
  .step h3, .step h4 { break-after: avoid; }
  .shot { padding: 4mm; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .shot img { max-height: 70mm; width: auto; }
}
