/* thesnowdayapp.ca — the Snow-o-meter look from the iOS app (ios/SnowDay/Views/Theme.swift).
   Lilac sky, plum ink, sticker cards with a solid edge, ice blue / bubblegum meter zones, Baloo 2 + Nunito. */

@font-face { font-family: "Baloo 2"; src: url(/assets/fonts/Baloo2.ttf) format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Nunito; src: url(/assets/fonts/Nunito.ttf) format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: light;
  --sky: #E4DAFF; --sky2: #D8CBFF; --sticker: #FFFFFF; --peel: #F7F4FF; --ink: #2A1B4D; --stroke: #2A1B4D; --edge: #2A1B4D;
  --sun: #FFC94D; --sun-pressed: #F4BA34; --on-sun: #2A1B4D; --mist: #F1EBFF; --track: #EAE1FF; --thumb: #FFFFFF;
  --quiet: #5B4A86; --soft: #B6A6E0; --ice: #7FDDFB; --bubblegum: #FF8FC7; --snow: #FFFFFF; --drawing-ink: #2A1B4D;
  --line: 3px; --r: 22px;
  --display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: Nunito, ui-rounded, system-ui, sans-serif;
}
:root[data-theme="dark"] { color-scheme: dark;
  --sky: #1A1033; --sky2: #241645; --sticker: #33215C; --peel: #2E1D52; --ink: #F4EEFF; --stroke: #BBA7F2; --edge: #0A0518;
  --mist: #3F2B6E; --track: #22163F; --thumb: #4A3380; --quiet: #CDBEF2; --soft: #5D4A93; --snow: #F4EEFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
    --sky: #1A1033; --sky2: #241645; --sticker: #33215C; --peel: #2E1D52; --ink: #F4EEFF; --stroke: #BBA7F2; --edge: #0A0518;
    --mist: #3F2B6E; --track: #22163F; --thumb: #4A3380; --quiet: #CDBEF2; --soft: #5D4A93; --snow: #F4EEFF; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--sky); color: var(--ink); font: 700 18px/1.5 var(--body); overflow-x: hidden; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--bubblegum); }
:focus-visible { outline: 3px solid var(--bubblegum); outline-offset: 3px; border-radius: 12px; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Falling snow sits behind everything (canvas from site.js). */
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page { position: relative; z-index: 1; flex: 1; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Components ---------- */
.raised { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--sticker); color: var(--ink);
  border: var(--line) solid var(--stroke); border-radius: 999px; box-shadow: 0 6px 0 var(--edge); text-decoration: none; cursor: pointer;
  font: 800 18px/1 var(--display); transition: transform .07s ease-out, box-shadow .07s ease-out, background-color .15s; -webkit-tap-highlight-color: transparent; }
.raised:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge); }
.raised:active, .raised.pressed { transform: translateY(6px); box-shadow: 0 0 0 var(--edge); }
.raised.sun { background: var(--sun); color: var(--on-sun); }
.raised.sun:active { background: var(--sun-pressed); }
.btn { height: 62px; padding: 0 28px; font-size: 21px; }
.btn svg { width: 24px; height: 24px; flex: none; }
.round { width: 50px; height: 50px; padding: 0; }
.round svg { width: 24px; height: 24px; }

.sticker { position: relative; background: var(--sticker); border: var(--line) solid var(--stroke); border-radius: var(--r);
  box-shadow: 0 6px 0 var(--edge), 0 0 0 7px var(--snow); padding: 24px 24px 22px; transform: rotate(var(--tilt, 0deg));
  transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.sticker:hover { transform: rotate(calc(var(--tilt, 0deg) * -1)) scale(1.03); }
:root[data-theme="dark"] .sticker { box-shadow: 0 6px 0 var(--edge); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sticker { box-shadow: 0 6px 0 var(--edge); } }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--mist); color: #2A1B4D;
  border: var(--line) solid var(--stroke); box-shadow: 0 4px 0 var(--edge); font: 900 17px/1 var(--body); letter-spacing: .02em; text-transform: uppercase;
  transition: background-color .25s; }
.pill.maybe { color: var(--ink); }
.badge { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: var(--line) solid var(--stroke); background: var(--mist); flex: none; }
.badge svg { width: 30px; height: 30px; }
.badge.ice { background: var(--ice); color: #2A1B4D; } .badge.gum { background: var(--bubblegum); color: #2A1B4D; } .badge.sun { background: var(--sun); color: #2A1B4D; }

/* ---------- Top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 800 24px/1 var(--display); }
.brand img { width: 52px; height: 52px; border-radius: 14px; border: var(--line) solid var(--stroke); box-shadow: 0 4px 0 var(--edge); }
.top nav { display: flex; align-items: center; gap: 14px; }
.top nav a.link { font: 800 17px/1 var(--body); text-decoration: none; padding: 10px 6px; }
.top nav a.link:hover { text-decoration: underline; text-decoration-color: var(--bubblegum); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; } :root[data-theme="dark"] .theme-toggle .sunic { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } :root:not([data-theme="light"]) .theme-toggle .sunic { display: none; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding: 30px 0 70px; }
.hero h1 { font-size: clamp(48px, 5.6vw, 74px); line-height: .95; text-wrap: balance; }
.hero h1 .wobble { display: inline-block; color: var(--bubblegum); -webkit-text-stroke: 3px var(--stroke); paint-order: stroke fill; animation: wobble 3.2s ease-in-out infinite; }
.hero .lede { font-size: 21px; color: var(--quiet); margin: 22px 0 32px; max-width: 30ch; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }
.hero .cta .note { font: 700 15px/1.35 var(--body); color: var(--quiet); }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) scale(1.04); } }

.meter-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 26px 30px; --tilt: 2deg; }
.meter-card:hover { transform: rotate(2deg); }
.meter-card .place { font: 800 30px/1 var(--display); }
.meter-card .when { font: 700 16px/1.2 var(--body); color: var(--quiet); margin-top: -6px; }
.meter { width: min(100%, 380px); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.meter .needle { transform-box: view-box; transform-origin: 150px 160px; }
.meter:hover .hub { fill: var(--sun-pressed); }
.chance { font: 800 clamp(64px, 9vw, 96px)/.9 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.verdict { text-align: center; min-height: 3.2em; }
.verdict b { display: block; font: 800 22px/1.15 var(--display); }
.verdict span { font: 700 16px/1.3 var(--body); color: var(--quiet); }
.spin { height: 54px; padding: 0 24px; font-size: 19px; }
.spin svg { width: 22px; height: 22px; }
.deco { position: absolute; pointer-events: none; }
.deco.star { width: 56px; top: -26px; left: -22px; transform: rotate(-14deg); animation: twinkle 2.6s ease-in-out infinite; }
.deco.flake { width: 46px; top: 40%; right: -26px; transform: rotate(18deg); color: var(--stroke); animation: spinslow 14s linear infinite; }
@keyframes twinkle { 0%, 100% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.15); } }
@keyframes spinslow { to { transform: rotate(378deg); } }
.meter-card.party { animation: party .6s cubic-bezier(.3,1.8,.5,1); }
@keyframes party { 0% { transform: rotate(2deg) scale(1); } 40% { transform: rotate(-3deg) scale(1.05); } 100% { transform: rotate(2deg) scale(1); } }

/* ---------- Sections ---------- */
section.block { padding: 60px 0; }
.kicker { display: inline-block; font: 900 15px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--sun); color: #2A1B4D;
  border: var(--line) solid var(--stroke); border-radius: 999px; padding: 8px 14px; box-shadow: 0 4px 0 var(--edge); transform: rotate(-2deg); }
.block h2 { font-size: clamp(36px, 5vw, 58px); margin: 18px 0 12px; }
.block .sub { color: var(--quiet); font-size: 20px; max-width: 44ch; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 44px; }
.grid3 .sticker:nth-child(1) { --tilt: -1.6deg; } .grid3 .sticker:nth-child(2) { --tilt: 1.2deg; } .grid3 .sticker:nth-child(3) { --tilt: -0.8deg; }
.sticker h3 { font-size: 27px; margin: 16px 0 8px; }
.sticker p { color: var(--quiet); font-size: 17px; }
.step { position: absolute; top: -18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 22px/1 var(--display);
  background: var(--sun); color: #2A1B4D; border: var(--line) solid var(--stroke); box-shadow: 0 3px 0 var(--edge); }

.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.zone { display: flex; gap: 16px; align-items: center; padding: 20px 22px; }
.zone:nth-child(1) { --tilt: 1deg; } .zone:nth-child(2) { --tilt: -1.2deg; } .zone:nth-child(3) { --tilt: .8deg; }
.zone b { display: block; font: 800 24px/1.05 var(--display); }
.zone span { font: 700 15px/1.3 var(--body); color: var(--quiet); }

.grownups { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 30px 32px; --tilt: -0.6deg; }
.grownups h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; }
.grownups p + p { margin-top: 10px; }
.grownups .badge { width: 84px; height: 84px; } .grownups .badge svg { width: 44px; height: 44px; }

.getit { text-align: center; padding: 70px 0 90px; }
.getit img { width: 128px; height: 128px; border-radius: 30px; border: var(--line) solid var(--stroke); box-shadow: 0 7px 0 var(--edge); margin: 0 auto 24px; transform: rotate(-4deg); }
.getit h2 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 12px; }
.getit p { color: var(--quiet); font-size: 20px; margin-bottom: 30px; }

/* ---------- Text pages (privacy, support) ---------- */
.doc { padding: 20px 0 60px; }
.doc h1 { font-size: clamp(44px, 6.5vw, 72px); margin: 18px 0 10px; }
.doc .updated { color: var(--quiet); font-size: 16px; }
.doc .sheet { margin-top: 36px; padding: 34px clamp(22px, 4vw, 46px) 38px; max-width: 820px; --tilt: -0.4deg; }
.doc .sheet:hover { transform: rotate(-0.4deg); }
.doc h2 { font-size: 30px; margin: 34px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink); font-weight: 600; font-size: 18px; line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--bubblegum); }
.doc .tldr { display: grid; gap: 14px; margin-top: 30px; grid-template-columns: repeat(3, 1fr); max-width: 820px; }
.doc .tldr .sticker { padding: 18px 18px; display: flex; gap: 14px; align-items: center; font: 800 17px/1.25 var(--body); }
.doc .tldr .sticker:nth-child(1) { --tilt: -1deg; } .doc .tldr .sticker:nth-child(2) { --tilt: 1deg; } .doc .tldr .sticker:nth-child(3) { --tilt: -.6deg; }
.doc .tldr .badge { width: 48px; height: 48px; } .doc .tldr .badge svg { width: 24px; height: 24px; }
details.faq { border-top: 2px dashed var(--soft); padding: 16px 0; }
details.faq:first-of-type { border-top: 0; padding-top: 0; }
details.faq summary { cursor: pointer; list-style: none; font: 800 22px/1.2 var(--display); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #2A1B4D;
  border: var(--line) solid var(--stroke); font: 800 24px/1 var(--display); box-shadow: 0 3px 0 var(--edge); transition: transform .25s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: 10px; }
.contact { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.lost { text-align: center; padding: 40px 0 100px; }
.lost .meter { margin: 0 auto 14px; width: min(100%, 340px); }
.lost h1 { font-size: clamp(44px, 7vw, 76px); margin-bottom: 12px; }
.lost p { color: var(--quiet); font-size: 20px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
footer { border-top: var(--line) solid var(--stroke); background: var(--peel); padding: 34px 0 40px; position: relative; z-index: 1; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { font: 800 16px/1 var(--body); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer small { color: var(--quiet); font: 700 14px/1.4 var(--body); }

/* ---------- Phone widths ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .top { padding: 16px 0; }
  .top nav a.link { display: none; }
  .brand { font-size: 21px; } .brand img { width: 46px; height: 46px; }
  .hero { grid-template-columns: 1fr; gap: 46px; padding: 14px 0 40px; text-align: center; }
  .hero .lede { margin: 18px auto 26px; font-size: 19px; }
  .hero .cta { justify-content: center; flex-direction: column; }
  .meter-card { margin: 0 6px; }
  .deco.star { left: -10px; width: 46px; } .deco.flake { right: -12px; width: 38px; }
  section.block { padding: 40px 0; }
  .grid3, .zones, .doc .tldr { grid-template-columns: 1fr; gap: 28px; }
  .grownups { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 22px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Placeholder text that must be filled in before publishing. */
.todo { background: var(--sun); color: #2A1B4D; border-radius: 8px; padding: 1px 8px; font-weight: 900; }
