/* Barometer landing. Generated pages: web/barometer-landing/gen.py */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(/barometer/site/fonts/jost-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(/barometer/site/fonts/jost-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(/barometer/site/fonts/jost-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  /* housing: the instrument body, Storm's outer colour */
  --housing: #0d0708;
  --housing-2: #170c0e;
  --ink: #fbf3ee;
  /* one five-step ink ramp, nothing in between */
  --ink-82: rgb(251 243 238 / .82);
  --ink-64: rgb(251 243 238 / .64);
  --ink-40: rgb(251 243 238 / .40);
  --ink-16: rgb(251 243 238 / .16);
  --gold: #f4c25a;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 56px);
  --wrap: 1240px;
  --font: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* the five phase skies, colours from Phase.swift */
  --storm: radial-gradient(circle max(80vmax, 900px) at 50% 35%, #5a1822 0%, #2a0d12 45%, #0d0708 100%);
  --dawn: linear-gradient(165deg, #f6c8c0 0%, #f3a48b 55%, #cf6a55 100%);
  --peak: radial-gradient(circle max(80vmax, 900px) at 50% 30%, #f4c25a 0%, #e8804a 50%, #9a2a2f 100%);
  --dusk: linear-gradient(180deg, #6e5a8a 0%, #9b7a96 45%, #c89aa0 100%);
  --thunder: radial-gradient(circle max(85vmax, 900px) at 30% 20%, #3a2050 0%, #4a1828 50%, #6b1a18 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--housing);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--housing); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure, ol, blockquote { margin: 0; padding: 0; }
ol { list-style: none; }
main a, .top a, .band a, .foot a, .phases a, .close a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
h2 {
  font-weight: 200;
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.06rem, 1.3vw, 1.2rem); color: var(--ink-82); max-width: 34em; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--housing); text-decoration: none; font-weight: 500;
}
.skip:focus { top: 48px; }

/* ---------- skies ---------- */
.sky--storm { background: var(--storm); }
.sky--dawn { background: var(--dawn); }
.sky--peak { background: var(--peak); }
.sky--dusk { background: var(--dusk); }
.sky--thunder { background: var(--thunder); }

.stage { position: relative; isolation: isolate; min-height: calc(100svh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.sky-stack, .sky-stack > * { position: absolute; inset: 0; }
.sky-stack { z-index: -1; }
.sky-stack > .sky { opacity: 0; transition: opacity .9s var(--ease); }
body[data-phase="storm"] .sky-stack > .sky--storm,
body[data-phase="dawn"] .sky-stack > .sky--dawn,
body[data-phase="peak"] .sky-stack > .sky--peak,
body[data-phase="dusk"] .sky-stack > .sky--dusk,
body[data-phase="thunder"] .sky-stack > .sky--thunder { opacity: 1; }
/* the app's per-phase breathing light */
.sky-stack__glow {
  background: radial-gradient(circle 40vmax at var(--gx, 50%) var(--gy, 32%), rgb(255 255 255 / var(--ga, .08)), transparent 70%);
  animation: breathe var(--gt, 3.5s) ease-in-out infinite alternate;
}
body[data-phase="storm"] { --gt: 4.5s; --ga: .05; }
body[data-phase="dawn"] { --gt: 8s; --ga: .06; --glass: .42; }
body[data-phase="peak"] { --gt: 3.5s; --ga: .1; --glass: .4; }
body[data-phase="dusk"] { --gt: 9s; --ga: .05; }
body[data-phase="thunder"] { --gt: 4.4s; --ga: .1; --gx: 30%; --gy: 20%; }
@keyframes breathe { from { opacity: .25; } to { opacity: 1; } }
/* shade: anchors text like the app's vignette, stronger where the sky is bright */
.sky-stack__shade {
  background:
    linear-gradient(180deg, transparent 45%, rgb(13 7 8 / .55) 100%),
    linear-gradient(90deg, rgb(13 7 8 / var(--side, .35)) 0%, rgb(13 7 8 / calc(var(--side, .35) * .8)) 24%, transparent 40%, transparent 60%, rgb(13 7 8 / calc(var(--side, .35) * .8)) 76%, rgb(13 7 8 / var(--side, .35)) 100%),
    rgb(13 7 8 / var(--shade, .12));
  transition: background-color .9s var(--ease);
}
body[data-phase="storm"] { --shade: 0; --side: .2; }
body[data-phase="dawn"] { --shade: .2; --side: .64; --face: .38; }
body[data-phase="peak"] { --shade: .12; --side: .62; --face: .38; }
body[data-phase="dusk"] { --shade: .1; --side: .55; --face: .26; }
body[data-phase="thunder"] { --face: .06; }
body[data-phase="thunder"] { --shade: 0; --side: .25; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 400; font-size: 1.05rem; letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top__act { display: flex; align-items: center; gap: 12px; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; transition: opacity .2s, transform .2s var(--ease); }
.badge img { width: auto; }
.badge:hover { opacity: .86; }
.badge:active { transform: scale(.98); }
.badge--top img { height: 40px; }
.badge--hero img, .badge--close img { height: 54px; }

/* ---------- hero ---------- */
main { flex: 1; display: flex; }
.hero {
  --dial: clamp(300px, min(100svh - 200px, 45vw), 700px);
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 40px);
  padding: 8px var(--pad) clamp(24px, 4vh, 48px);
}
.hero__offer { max-width: 23rem; }
h1 {
  font-weight: 300;
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__sub { margin-top: 10px; font-size: clamp(1.1rem, 1.35vw, 1.3rem); color: var(--ink-82); }
.hero__lede { margin-top: 22px; color: var(--ink-82); font-size: 1rem; text-wrap: pretty; }
.badge--hero { margin-top: 28px; }
.hero__micro { margin-top: 14px; font-size: .875rem; color: var(--ink-82); }

/* room for the rim legend, which sits outside the ring */
.dial { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 1.5vh, 16px); padding-inline: calc(var(--dial) * .1); }
.dial__ctl {
  position: relative;
  width: var(--dial); aspect-ratio: 1;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  border-radius: 50%;
}
.dial__ctl.is-dragging { cursor: grabbing; }
.dial__ctl:focus-visible { outline-offset: -2%; }
.dial__face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial__glass { opacity: var(--face, 0); transition: opacity .9s var(--ease); }
.dial__ring { fill: none; stroke: var(--ink-16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.t { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.t--q { stroke: var(--ink-16); stroke-width: .75; }
.t--day { stroke: var(--ink-40); stroke-width: 1; }
.t--phase { stroke: var(--ink-82); stroke-width: 1.5; }
.arc { fill: none; stroke: var(--ink-16); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; transition: stroke .5s; }
.num { fill: var(--ink-82); font: 400 28px/1 var(--font); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.rim { fill: var(--ink-82); font: 500 34px/1 var(--font); letter-spacing: .02em; dominant-baseline: central; paint-order: stroke; stroke: rgb(13 7 8 / .45); stroke-width: 8px; stroke-linejoin: round; transition: fill .5s; }
.needle__arm { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .82; }
.needle__tail { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .4; }
.needle__hub { fill: var(--ink); opacity: .82; }
.needle__pin { fill: var(--housing); }
body[data-phase="storm"] .arc[data-p="storm"], body[data-phase="dawn"] .arc[data-p="dawn"], body[data-phase="peak"] .arc[data-p="peak"],
body[data-phase="dusk"] .arc[data-p="dusk"], body[data-phase="thunder"] .arc[data-p="thunder"] { stroke: var(--ink); }
body[data-phase="storm"] .rim[data-p="storm"], body[data-phase="dawn"] .rim[data-p="dawn"], body[data-phase="peak"] .rim[data-p="peak"],
body[data-phase="dusk"] .rim[data-p="dusk"], body[data-phase="thunder"] .rim[data-p="thunder"] { fill: var(--ink); }

/* bright skies: the whole legend at full ink */
body[data-phase="dawn"] .rim, body[data-phase="peak"] .rim { fill: var(--ink); }
/* the active phase on the rim is marked by weight, so it still reads on the bright skies */
.rim { font-weight: 400; }
body[data-phase="storm"] .rim[data-p="storm"], body[data-phase="dawn"] .rim[data-p="dawn"], body[data-phase="peak"] .rim[data-p="peak"],
body[data-phase="dusk"] .rim[data-p="dusk"], body[data-phase="thunder"] .rim[data-p="thunder"] { font-weight: 700; }

.dial__read {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100%; text-align: center; pointer-events: none;
}
.dial__name {
  font-weight: 100;
  font-size: calc(var(--dial) * .2);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-shadow: 0 2px 30px rgb(13 7 8 / .3);
  transition: opacity .3s, filter .3s;
}
.dial__name.is-swap { opacity: 0; filter: blur(6px); }
.dial__day { margin-top: calc(var(--dial) * .035); font-size: clamp(.875rem, calc(var(--dial) * .024), 1rem); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dial__steps { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: .9375rem; text-shadow: 0 1px 10px rgb(13 7 8 / .55); }
.step {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ink-40); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.step:hover { border-color: var(--ink); background: rgb(13 7 8 / .2); }
.step svg { width: 18px; height: 18px; }

.hero__reading { max-width: 23rem; justify-self: end; }
.reading__range, .reading dt, .cap__step, .push__cap, .scale__days, .calib__shift dt {
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-82);
}
.reading__range { color: var(--ink); text-shadow: 0 1px 12px rgb(13 7 8 / .4); }
.hero__reading .reading { margin-top: 18px; }
/* the app's glass cards: "Today" and "Today, do this" */
.reading { display: grid; gap: 12px; }
.reading__item {
  padding: 18px 20px 20px;
  border-radius: 22px;
  border: 1px solid rgb(255 255 255 / .18);
  background: rgb(13 7 8 / var(--glass, .34));
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  backdrop-filter: blur(24px) saturate(1.15);
}
.reading dd { margin-top: 8px; }
.reading__main { font-size: 1.06rem; font-weight: 400; line-height: 1.45; text-wrap: pretty; }
.reading__main--do { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.reading__sub { margin-top: 6px; font-size: .9rem; color: var(--ink-82); text-wrap: pretty; }
[data-o].is-swap { opacity: 0; }
[data-o] { transition: opacity .3s; }

/* ---------- bands ---------- */
.band { padding: clamp(72px, 11vw, 150px) 0; border-top: 1px solid var(--ink-16); }
.calib { background: linear-gradient(180deg, var(--housing) 0%, var(--housing-2) 100%); }
.calib__grid { display: grid; grid-template-columns: 1.15fr auto auto; gap: clamp(24px, 4vw, 64px); align-items: start; }
.calib__text .lead { margin-top: 22px; }
.calib__shift { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--ink-16); max-width: 30em; }
.calib__shift dd { margin-top: 8px; color: var(--ink-82); }
.calib__fig { width: 240px; }
.calib__fig:nth-child(3) { margin-top: 72px; }
.shot { width: 240px; border-radius: 26px; border: 1px solid var(--ink-16); background: var(--housing-2); }
.calib__fig figcaption { display: grid; gap: 6px; margin-top: 18px; }
.calib__fig .cap__step { margin-top: 4px; color: var(--ink-64); font-size: .6875rem; }
.cap__title { font-size: 1.06rem; font-weight: 500; line-height: 1.3; }
.cap__hint { font-size: .9rem; color: var(--ink-82); }

.morning { background: var(--housing); }
.morning__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.morning .lead { margin-top: 22px; }
.push { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(20px, 3vw, 40px); align-items: start; }
.push__time { font-weight: 100; font-size: clamp(4rem, 8.5vw, 6rem); line-height: .9; letter-spacing: -0.04em; }
.push__msg { padding-top: 10px; border-top: 1px solid var(--ink-40); margin: 0; }
.push__title { font-weight: 500; font-size: 1.06rem; }
.push__body { margin-top: 6px; color: var(--ink-82); }
.push__cap { grid-column: 1 / -1; margin-top: 22px; color: var(--ink-64); letter-spacing: .14em; }

/* ---------- five phases, to scale ---------- */
.phases { padding-top: clamp(72px, 11vw, 150px); background: var(--housing); border-top: 1px solid var(--ink-16); }
.phases .lead { margin-top: 22px; }
.scale { display: grid; grid-template-columns: 5fr 8fr 3fr 6fr 6fr; margin-top: 48px; border-top: 1px solid var(--ink-40); }
.scale__seg { position: relative; border-left: 1px solid var(--ink-40); }
.scale__seg:last-child { border-right: 1px solid var(--ink-40); }
.scale__seg::before {
  content: ""; display: block; height: 10px;
  background: repeating-linear-gradient(90deg, var(--ink-40) 0 1px, transparent 1px calc(100% / var(--days)));
}
.scale__seg a { display: grid; gap: 4px; padding: 14px 10px 16px; text-decoration: none; transition: background-color .2s; }
.scale__seg a:hover { background: var(--ink-16); }
.scale__name { font-size: clamp(.9rem, 1.4vw, 1.2rem); font-weight: 300; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scale__days { letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.log { margin-top: clamp(48px, 7vw, 96px); }
.log__row { position: relative; isolation: isolate; scroll-margin-top: 16px; }
.log__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(13 7 8 / calc(var(--shade, 0) + .2)) 0%, rgb(13 7 8 / var(--shade, 0)) 45%, rgb(13 7 8 / calc(var(--shade, 0) * .5)) 100%); }
.log__row[data-p="dawn"] { --shade: .36; --glass: .4; }
.log__row[data-p="peak"] { --shade: .36; --glass: .4; }
.log__row[data-p="dusk"] { --shade: .24; --glass: .36; }
.log__in {
  width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 240px;
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
}
.log__name { font-weight: 100; font-size: clamp(3.5rem, 8vw, 6rem); line-height: .95; letter-spacing: -0.04em; text-shadow: 0 2px 30px rgb(13 7 8 / .25); overflow-wrap: anywhere; }
.log__range { margin-top: 14px; font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 12px rgb(13 7 8 / .35); }
.log__reading { max-width: 30rem; }
.log__row .shot { border: 0; }

.private { background: var(--housing); }
.private__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.private .lead { font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--ink); }
.private .lead + p { margin-top: 18px; color: var(--ink-82); }

.close { position: relative; isolation: isolate; padding: clamp(88px, 13vw, 180px) 0; }
.close::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(13 7 8 / .3), rgb(13 7 8 / .5)); }
.close__in { display: grid; justify-items: start; gap: 36px; }
.close h2 { max-width: 15em; font-weight: 200; font-size: clamp(2.25rem, 5.4vw, 5rem); text-shadow: 0 2px 30px rgb(13 7 8 / .25); }

.foot { background: var(--housing); border-top: 1px solid var(--ink-16); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .875rem; color: var(--ink-82); }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 14px 40px; }
.foot__note { max-width: 46em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; grid-row: span 2; align-content: start; justify-content: end; }
.foot a { text-decoration: underline; text-decoration-color: var(--ink-40); text-underline-offset: 4px; }
.foot a:hover { text-decoration-color: var(--ink); }
.foot__app { color: var(--ink-64); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  body[data-phase="dawn"] { --shade: .36; --face: .4; }
  body[data-phase="peak"] { --shade: .34; --face: .4; }
  body[data-phase="dusk"] { --shade: .22; --face: .3; }
  .sky-stack__shade {
    background:
      linear-gradient(180deg, rgb(13 7 8 / var(--side, .35)) 0%, rgb(13 7 8 / calc(var(--side, .35) * .7)) 32%, transparent 50%, rgb(13 7 8 / calc(var(--side, .35) * .75)) 72%, rgb(13 7 8 / var(--side, .35)) 100%),
      rgb(13 7 8 / var(--shade, .12));
  }
  .hero {
    --dial: min(100vw - 2 * var(--pad) - 120px, 560px);
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "offer offer" "dial dial" "reading reading";
    justify-items: center; text-align: center; gap: 28px; padding-top: 16px;
  }
  .hero__offer { grid-area: offer; max-width: 36rem; }
  .dial { grid-area: dial; }
  .hero__reading { grid-area: reading; justify-self: center; text-align: left; max-width: 36rem; width: 100%; }
  .badge--hero { display: none; }
  .hero__lede { margin-top: 14px; }
  .calib__grid { grid-template-columns: 1fr 1fr; justify-items: center; }
  .calib__text { grid-column: 1 / -1; justify-self: stretch; }
  .log__in { grid-template-columns: minmax(0, 1fr) 240px; }
  .log__head { grid-column: 1 / -1; }
  .morning__grid, .private__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 8px; font-size: .95rem; }
  .top__act { gap: 8px; }
  .badge--top img { height: 36px; }
  .hero { --dial: min(100vw - 2 * var(--pad) - 56px, 420px); gap: 18px; padding-bottom: 32px; }
  .hero__lede { font-size: .9375rem; margin-top: 10px; }
  .hero__micro { display: none; }
  .hero__sub { margin-top: 6px; }
  .rim { font-size: 46px; }
  .num { font-size: 34px; }
  .calib__grid { grid-template-columns: 1fr; }
  .calib__fig:nth-child(3) { margin-top: 0; }
  .log__in { grid-template-columns: 1fr; justify-items: start; }
  .log__row::before { background: linear-gradient(180deg, rgb(13 7 8 / calc(var(--shade, 0) + .22)) 0%, rgb(13 7 8 / var(--shade, 0)) 35%, rgb(13 7 8 / calc(var(--shade, 0) * .6)) 100%); }
  .dial { gap: 2px; }
  .log__row .shot { justify-self: center; }
  .scale__seg a { padding: 12px 4px 14px; }
  .scale__name { font-size: .8rem; }
  .scale__days { font-size: .6875rem; letter-spacing: 0; white-space: nowrap; }
  .scale__seg[data-p="peak"] a { padding-inline: 2px; }
  .push { grid-template-columns: 1fr; row-gap: 18px; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__links { justify-content: start; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
