/* Fast by Flow7 site styles, taken from the app's own design system:
   Geologica type (FlowDesign fonts), the FlowDesign colour tokens, the stage spectrum
   from FastDialStages, the stage-lit ground from FlowStageGround, and the fast dial.
   Geologica: Copyright 2020 The Geologica Project Authors, SIL Open Font License 1.1. */

@font-face {
  font-family: "Geologica";
  src: url("fonts/Geologica-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #f3f7fa;
  --field: #e8eff4;
  --surface: #f9fbfc;
  --raised: #ffffff;
  --ink: #121a22;
  --muted: #596875;
  --hairline: rgb(202 214 222 / 0.64);
  --shadow: rgb(22 48 68 / 0.12);
  --track: rgb(0 0 0 / 0.06);
  --knob: #ffffff;
  --future: 0.9;
  --wash-top: 15%;
  --wash-glow: 12%;
  /* Stage spectrum: stored fuel violet, fuel switch pink, fat burn orange, deep fast blue. */
  --fed: #8a72e8;
  --settling: #7046d8;
  --fuel: #bc3d72;
  --burn: #b8481f;
  --deep: #2469ca;
  --extended: #8f520b;
  --font: "Geologica", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --page: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101417;
    --field: #171d21;
    --surface: #1d2429;
    --raised: #252d33;
    --ink: #f3f7fa;
    --muted: #bac5cd;
    --hairline: rgb(74 88 97 / 0.64);
    --shadow: rgb(0 0 0 / 0.45);
    --track: rgb(255 255 255 / 0.09);
    --knob: #f2f7fc;
    --future: 0.8;
    --wash-top: 26%;
    --wash-glow: 20%;
    --fed: #b9a8ff;
    --settling: #9c7bff;
    --fuel: #f58db6;
    --burn: #ff9a6a;
    --deep: #75aeff;
    --extended: #f1ba58;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  /* FlowDesign.signal and signalInk: the app's one interaction colour. */
  --accent: #2465c3;
  --accent-ink: #ffffff;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  body { --accent: #82b4ff; --accent-ink: #07111f; }
}

/* Today's ground: lit from the top in the stage colour, settling into the page colour. */
body.home {
  background:
    radial-gradient(circle 380px at 50% 220px, color-mix(in srgb, var(--fuel) var(--wash-glow), transparent), transparent) no-repeat,
    linear-gradient(to bottom, color-mix(in srgb, var(--fuel) var(--wash-top), transparent), transparent) 0 0 / 100% 900px no-repeat,
    var(--ground);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { text-wrap: balance; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page { width: min(var(--page), 100% - 32px); margin-inline: auto; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 76%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.bar .page { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 22.5%; box-shadow: 0 2px 8px var(--shadow); }
.brand span { color: var(--muted); font-weight: 400; }
.bar nav { display: flex; gap: 4px; }
.bar nav a {
  padding: 7px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 15px;
}
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }

/* Today: the hero is the dial */
.today { padding: clamp(36px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.today .page {
  display: grid; align-items: center; gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.app-name { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 17px; font-weight: 600; }
.app-name img { width: 56px; height: 56px; border-radius: 22.5%; box-shadow: 0 8px 24px var(--shadow); }
.today h1 {
  font-size: clamp(44px, 6.6vw, 76px); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.035em; margin: 0 0 20px; max-width: 11ch;
}
.lede { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.42; color: var(--muted); margin: 0 0 30px; max-width: 30rem; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 11px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--raised) 72%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 6px 18px var(--shadow);
  font-weight: 600;
}
.soon::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--fuel); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fuel) 22%, transparent);
}
.needs { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

.dial { margin: 0; display: grid; justify-items: center; gap: 14px; text-align: center; }
.dial-plan { margin: 0; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dial-plan b { color: var(--ink); font-weight: 600; }
.dial-ring { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.dial-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-ring .track { stroke: var(--track); }
.dial-ring .fed { stroke: var(--fed); }
.dial-ring .settling { stroke: var(--settling); }
.dial-ring .fuel { stroke: var(--fuel); }
.dial-ring .ahead { opacity: var(--future); }
.dial-ring .knob { fill: var(--knob); stroke: var(--fuel); filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.22)); }
.dial-center { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; }
.dial-center p { margin: 0; }
.dial-stage { color: var(--fuel); font-weight: 600; font-size: clamp(17px, 2vw, 22px); }
.dial-time { font-weight: 600; font-size: clamp(54px, 8vw, 84px); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.dial-time small { font-size: 0.4em; font-weight: 500; letter-spacing: 0; margin: 0 0.12em 0 0.04em; }
.dial-fasted { color: var(--muted); }
.dial-left { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.dial figcaption { font-size: 13px; color: var(--muted); }

/* Your fast: the page follows the stages of a fast */
.your-fast { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 48px); }
.schedule-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
}
.schedule-head h2, .everywhere h2, .finish h2 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.04; letter-spacing: -0.032em; margin: 0;
}
.schedule-head p { margin: 0; font-size: 15px; color: var(--muted); }
.schedule-intro { color: var(--muted); font-size: 19px; max-width: 34rem; margin: 18px 0 0; }

.stages { list-style: none; margin: 8px 0 0; padding: 0; }
.stage {
  --stage: var(--fed);
  position: relative; display: grid; gap: 10px 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 40px 0 48px 60px;
}
.stage + .stage { border-top: 1px solid var(--hairline); }
.stage.settling { --stage: var(--settling); }
.stage.fuel { --stage: var(--fuel); }
.stage.burn { --stage: var(--burn); }
.stage.deep { --stage: var(--deep); }
/* The dial, unrolled: a rail in each stage's colour with a knob at each boundary. */
.stage::before {
  content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 8px;
  background: var(--stage); opacity: var(--future);
}
.stage:first-child::before { top: 46px; border-radius: 4px 4px 0 0; }
.stage:last-child::before { background: linear-gradient(var(--stage), transparent); }
.knob {
  position: absolute; left: 1px; top: 38px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--knob); border: 8px solid var(--stage);
  box-shadow: 0 4px 10px var(--shadow);
}
.stage-text { grid-column: 1; max-width: 36rem; }
.stage-when { display: flex; gap: 10px; align-items: baseline; margin: 2px 0 14px; font-size: 15px; }
.stage-when b { font-weight: 600; font-variant-numeric: tabular-nums; }
.stage-when span { color: var(--muted); }
.stage h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 12px; }
.stage p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.stage img {
  grid-column: 2; grid-row: 1 / span 2; align-self: start;
  width: clamp(200px, 22vw, 250px); border-radius: 34px;
  box-shadow: 0 0 0 1px var(--hairline), 0 20px 44px var(--shadow);
}

/* The same ring everywhere */
.everywhere { padding: clamp(56px, 9vw, 112px) 0; }
.everywhere .intro { color: var(--muted); font-size: 19px; max-width: 36rem; margin: 18px 0 0; }
.surfaces {
  list-style: none; padding: 0; margin: clamp(36px, 6vw, 64px) 0 0;
  display: grid; gap: 40px 32px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.surfaces li { display: grid; grid-template-rows: 138px auto auto; align-content: start; justify-items: start; gap: 6px; }
.ring {
  --size: 120px; --w: 12px;
  width: var(--size); height: var(--size); border-radius: 50%; margin-bottom: 18px; align-self: end;
  background: conic-gradient(
    var(--fed) 0 24.6%, transparent 0 25.4%,
    var(--settling) 0 74.6%, transparent 0 75.4%,
    var(--fuel) 0 85%, var(--track) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - 0.5px), #000 calc(100% - var(--w)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - 0.5px), #000 calc(100% - var(--w)));
}
.ring.watch { --size: 120px; --w: 12px; }
.ring.widget { --size: 96px; --w: 10px; }
.ring.live { --size: 72px; --w: 8px; }
.surfaces h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.surfaces p { margin: 0; color: var(--muted); max-width: 22rem; }

/* Planned end */
.finish { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px); border-top: 1px solid var(--hairline); }
.flag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 600; font-size: 15px; }
.flag svg { width: 20px; height: 20px; }
.finish h2 { max-width: 16ch; }
.finish .lede { margin: 18px 0 28px; }
.fine { margin: 28px 0 0; font-size: 14px; color: var(--muted); max-width: 40rem; }

/* Footer: the app's floating tab bar */
.foot { padding: 0 0 40px; }
.foot .page { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot p { margin: 0; font-size: 14px; color: var(--muted); }
.foot nav {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--raised) 78%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 8px 24px var(--shadow);
}
.foot nav a { padding: 9px 18px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* Privacy, support and terms */
.prose { max-width: 42rem; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.prose .eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.prose h1 { font-size: clamp(36px, 5.4vw, 54px); font-weight: 600; line-height: 1.05; letter-spacing: -0.032em; margin: 0 0 12px; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.prose h2 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.012em; margin: 40px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--accent); }
.prose .callout {
  background: var(--surface); border-radius: 24px; padding: 20px 24px; margin: 0 0 24px;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

@media (max-width: 860px) {
  .today .page { grid-template-columns: 1fr; }
  .today h1 { max-width: 14ch; }
  .stage { grid-template-columns: 1fr; }
  .stage img { grid-column: 1; grid-row: auto; width: min(250px, 100%); margin-top: 22px; }
  .surfaces { grid-template-columns: 1fr; }
  .surfaces li { grid-template-rows: auto auto auto; }
}

@media (max-width: 520px) {
  .bar nav a { padding: 6px 9px; font-size: 14px; }
  .brand span { display: none; }
  .stage { padding-left: 52px; }
  .foot .page { flex-direction: column-reverse; align-items: flex-start; }
}

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