@font-face {
  font-family: Barlow;
  src: url(/assets/barlow.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url(/assets/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #1b1d20;
  --surface: #22252a;
  --panel: #282c32;
  --border: #393d43;
  --text: #f3f4f2;
  --muted: #b9bfc2;
  --green: #43db88;
  --on-green: #102118;
  --display: Barlow, "Arial Narrow", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.6 Inter, Arial, sans-serif;
}

a { color: inherit; text-underline-offset: 0.25em; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p, figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font: 700 1em/0.95 var(--display);
  letter-spacing: -0.016em;
}

h1, .section h2, .closing h2, .tile h3 { text-transform: uppercase; }
h1 { font-size: clamp(68px, 9vw, 136px); }
h2 { font-size: clamp(44px, 5.65vw, 86px); }
h3 { font-size: clamp(24px, 2.45vw, 37px); }
em { font-style: italic; color: var(--green); }

.wrap {
  width: min(100% - clamp(36px, 10vw, 160px), 1240px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 10;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--panel);
}

.skip:focus { transform: translateY(0); }

.nav, .foot, .nav nav, .foot nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
}

.nav { min-height: 74px; justify-content: space-between; }
.brand {
  display: block;
  flex: none;
}

.brand img { width: 117px; }
.nav nav a, footer a:not(.brand) { font-size: 14px; font-weight: 590; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--text); }
.nav nav .nav-action, .action {
  background: var(--green);
  color: var(--on-green);
}
.nav nav .nav-action {
  padding: 8px 15px;
  border-radius: 7px;
  font-weight: 700;
}
.nav nav .nav-action:hover, .action:hover { background: #82ecad; color: var(--on-green); }

.hero {
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 87% 30%, #1c3028 0%, var(--background) 51%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  align-items: center;
  gap: 24px;
  min-height: min(53vw, 760px);
  padding-block: clamp(42px, 4.6vw, 80px) clamp(48px, 5.3vw, 86px);
}

.hero-copy { position: relative; z-index: 1; }
@supports (-webkit-text-stroke: 1px white) {
  .outline {
    color: transparent;
    -webkit-text-stroke: 1.45px #d9ddda;
  }
}

.hero-description {
  max-width: 37ch;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.6;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 7px;
  font-weight: 720;
  font-size: 14px;
  text-decoration: none;
}

.action-secondary {
  border: 1px solid #57846c;
  background: #273b32;
  color: var(--text);
}

.action-secondary:hover {
  border-color: var(--green);
  background: #365544;
  color: var(--text);
}

.hero-art {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 715px;
  aspect-ratio: .95;
  align-self: center;
  justify-self: center;
}

.phone {
  display: block;
  overflow: hidden;
  border: 6px solid #111214;
  border-radius: clamp(18px, 2.9vw, 37px);
  background: #111214;
  box-shadow: 0 0 0 1px #61696b, 16px 17px 37px #090a0b96;
}
.screen { width: 100%; }

.hero-art .phone {
  position: absolute;
  width: 49%;
}

.hero-art .phone-secondary { top: 20%; left: 9%; width: 43%; transform: rotate(-11deg); }
.phone-primary { top: 6%; right: 14%; transform: rotate(2deg); }
.hero-pal {
  position: absolute;
  width: 37%;
  right: -3%;
  bottom: 0;
  filter: drop-shadow(0 8px 14px #090c09b3);
  pointer-events: none;
}

.hero-art .plate {
  position: absolute;
  width: 35%;
  filter: drop-shadow(0 9px 18px #0e0e10bd);
}
.hero-plate-red { top: 4%; left: 10%; transform: rotate(-21deg); }
.hero-plate-blue { top: 48%; right: -2%; transform: rotate(28deg); }

.feature-rail {
  background: var(--surface);
  border-block: 1px solid #33373c;
}
.feature-rail .wrap { display: flex; align-items: center; justify-content: space-between; }
.feature-rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-block: 13px;
  color: var(--muted);
  font: 700 clamp(15px, 1.65vw, 24px)/1 var(--display);
  text-transform: uppercase;
  text-decoration: none;
}
.feature-rail a:hover { color: var(--text); }
.feature-rail a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.section { padding-block: clamp(50px, 7.6vw, 108px); }
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(14px, 4vw, 48px);
  margin-bottom: clamp(22px, 3.1vw, 44px);
}
.section-intro p, .progress p, .closing p { color: var(--muted); max-width: 36ch; }

.feature-grid {
  display: grid;
  grid-template-areas:
    "routines routines logging"
    "routines routines records"
    "rest     rest     progress"
    "recovery recovery recovery";
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.tile {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.5vw, 31px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #2b3037, var(--panel) 76%);
}

.tile p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.tile > .plate, .bell {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 14px;
}

.tile-routines {
  grid-area: routines;
  overflow: hidden;
  min-height: 360px;
  isolation: isolate;
}
.tile-copy { width: min(52%, 31ch); }
.tile-copy h3 { font-size: clamp(35px, 3.5vw, 54px); }
.tile-routines .tile-phone {
  position: absolute;
  width: 36%;
  top: 7%;
  right: 7%;
  transform: rotate(8deg);
  z-index: -1;
}
.tile-routines:focus-within { border-color: var(--green); }
.tile-logging { grid-area: logging; }
.tile-records { grid-area: records; }
.tile-progress { grid-area: progress; }
.tile-rest { grid-area: rest; }
.tile-recovery { grid-area: recovery; }

.tile-rest, .tile-recovery {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
}

.recovery-map {
  width: clamp(60px, 7.5vw, 95px);
  height: auto;
  border-radius: 7px;
}
.tile-recovery .action { margin-top: 12px; }

.timer-graphic {
  display: grid;
  place-items: center;
  width: clamp(70px, 9vw, 118px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 70%, #484e53 70%);
  color: var(--text);
  font: 700 clamp(20px, 3vw, 37px)/1 var(--display);
}

.timer-graphic span {
  display: grid;
  place-items: center;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: var(--surface);
}

.tile-copy .action { margin-top: 16px; }

.steps-band { background: var(--surface); border-block: 1px solid #34383e; }
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.progress {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
}
.progress p, .closing p { margin: 17px 0 6px; }

.progress-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 22px 0 0;
}

.progress-metrics > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: clamp(8px, 0.9vw, 13px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.progress-metrics dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-transform: uppercase;
}

.progress-metrics dd {
  margin: 0;
  font: 700 clamp(24px, 2.8vw, 38px)/1 var(--display);
  white-space: nowrap;
}

.progress .sample-label {
  margin: 11px 0 0;
  color: #efd87a;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.progress-visual {
  width: min(100%, 565px);
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.progress-visual a { display: block; padding: clamp(9px, 1.6vw, 22px); background: #111214; }
.progress-visual a:focus-visible { outline-offset: -5px; }
.progress-visual figcaption {
  padding: 13px clamp(14px, 1.6vw, 22px);
  font: 700 clamp(24px, 2.6vw, 35px)/1 var(--display);
  text-transform: uppercase;
}
.progress-visual img { width: 100%; }

.closing {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  min-height: 300px;
  padding: clamp(25px, 5vw, 68px);
  border: 1px solid #315445;
  border-radius: 18px;
  background: radial-gradient(ellipse at 86% 48%, #254e3b, #1b2922 70%);
  overflow: hidden;
}
.closing .action { margin-top: 18px; }
.closing-art { position: relative; }
.closing-art > img:last-child { position: relative; width: min(100%, 355px); margin: auto; }
.closing-plate { position: absolute; top: -45%; right: -30%; width: 58%; transform: rotate(18deg); }

footer { border-top: 1px solid var(--border); }
.foot { min-height: 88px; padding-block: 18px; }
.foot nav { margin-left: auto; flex-wrap: wrap; }
.foot .publisher { color: var(--muted); }

.page-head { padding: clamp(42px, 6vw, 88px) 0 clamp(26px, 4vw, 56px); }
.page-head h1 { font-size: clamp(54px, 8.2vw, 105px); }
.lede { max-width: 56ch; margin: 17px 0 24px; color: var(--muted); }
.review-label { font-size: 14px; margin-bottom: 12px; color: var(--muted); }

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 7vw, 98px);
  border-top: 1px solid var(--border);
  padding: clamp(36px, 5vw, 78px) 0;
}
.story-copy h2 { max-width: 14ch; }
.story-copy p { margin-top: 15px; max-width: 50ch; color: var(--muted); }
.story-screen { width: min(100%, 300px); justify-self: center; }

.answers, .legal { max-width: 720px; padding-bottom: 64px; }
.answers section, .legal section { border-top: 1px solid var(--border); padding: 22px 0; }
.answers h2, .legal h2 { font-size: clamp(30px, 3.4vw, 41px); line-height: 1.05; }
.answers p, .legal p { margin-top: 12px; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .nav nav { gap: 18px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .hero-art { aspect-ratio: .84; }
  .hero-art .phone { width: 52%; }
  .hero-art .phone-secondary { left: 4%; }
  .phone-primary { right: 12%; }
  .tile-routines { min-height: 320px; }
}

@media (max-width: 900px) {
  .progress { grid-template-columns: 1fr; max-width: 565px; }
}

@media (max-width: 680px) {
  .nav { min-height: 60px; gap: 8px; }
  .nav .section-nav { display: none; }
  .nav nav { gap: 13px; }
  .nav nav a { font-size: 13px; }
  .brand img { width: 96px; }
  .hero { background: radial-gradient(ellipse at 30% 30%, #1d392e, var(--background) 68%); }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 34px;
    padding-bottom: 28px;
    gap: 23px;
  }
  .hero h1 { font-size: clamp(61px, 15vw, 100px); }
  .hero-art { max-width: 465px; aspect-ratio: .87; }
  .hero-art .phone { border-width: 4px; }
  .phone-secondary { display: none; }
  .hero-art .phone-primary { top: 3%; right: 20%; width: 58%; transform: none; }
  .hero-pal { bottom: -5%; right: 0; }
  .hero-plate-red { left: 3%; }
  .hero-plate-blue { right: 1%; }
  .section-intro, .closing, .story { grid-template-columns: 1fr; }
  .feature-grid {
    grid-template: "routines" "logging" "records" "progress" "rest" "recovery" / minmax(0, 1fr);
    gap: 9px;
  }
  .tile { border-radius: 12px; }
  .tile-routines {
    display: grid;
    grid-template-rows: auto clamp(225px, 57vw, 345px);
    min-height: 0;
  }
  .tile-copy { width: 100%; }
  .tile-routines .tile-phone {
    position: relative;
    top: auto;
    right: auto;
    width: 55%;
    align-self: start;
    margin: 30px auto 0;
  }
  .tile-logging, .tile-records, .tile-progress {
    display: grid;
    grid-template: "icon title" auto "icon body" auto / 47px minmax(0, 1fr);
    column-gap: 12px;
  }
  .tile-logging h3, .tile-records h3, .tile-progress h3 { grid-area: title; }
  .tile-logging p, .tile-records p, .tile-progress p { grid-area: body; margin-top: 5px; }
  .tile-logging > .plate, .tile-records > .plate, .tile-progress > .plate {
    grid-area: icon;
    width: 47px;
    height: 47px;
    margin-bottom: 0;
  }
  .step-list { grid-template-columns: 1fr; gap: 9px; }
  .step-list .tile { display: flex; align-items: center; gap: 12px; }
  .step-list .bell { flex: none; width: 55px; height: 55px; margin-bottom: 0; }
  .closing { padding-bottom: 2px; }
  .closing-art > img:last-child { width: min(68%, 245px); }
  .closing-plate { top: -18%; right: -20%; width: 43%; }
  .foot { flex-wrap: wrap; gap: 12px 18px; }
  .foot nav { width: 100%; margin: 0; }
  .foot nav a { font-size: 13px; }
  .story-screen { width: min(81%, 285px); }
}

.store-actions {
  --badge-height: clamp(40px, 12vw, 50px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 26px;
}

.store-signup {
  min-width: clamp(116px, 39vw, 166px);
  padding: 10px 14px;
  display: grid;
  gap: 2px;
  justify-items: center;
  cursor: pointer;
  font-family: inherit;
}

.store-signup span { color: var(--muted); font-size: 12px; line-height: 1.25; }
.store-signup strong { font-size: 16px; line-height: 1.2; }

.store-button {
  display: block;
  height: var(--badge-height);
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.store-button img { height: 100%; width: auto; }

/* The Google artwork has 41 px of transparent padding around its 564 × 168 px badge. */
.store-button[data-launch-store="google-play"] {
  position: relative;
  width: calc(var(--badge-height) * 564 / 168);
  overflow: hidden;
}

.store-button[data-launch-store="google-play"] img {
  position: absolute;
  top: calc(var(--badge-height) * -41 / 168);
  left: calc(var(--badge-height) * -41 / 168);
  height: calc(var(--badge-height) * 250 / 168);
  max-width: none;
}

.launch-dialog {
  width: min(100% - 32px, 460px);
  max-height: calc(100dvh - 32px);
  padding: clamp(22px, 6vw, 36px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
}

.launch-dialog::backdrop { background: #080a09bc; }
.launch-dialog h2 { font-size: clamp(42px, 8vw, 58px); padding-right: 30px; }
.launch-dialog p { margin-top: 12px; color: var(--muted); }

.launch-close { position: absolute; top: 10px; right: 10px; }
.launch-close button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: 28px/1 Inter, Arial, sans-serif;
}
.launch-close button:hover { background: var(--panel); }

#launch-form:not([hidden]) { display: grid; gap: 8px; margin-top: 18px; }
#launch-done { margin-top: 18px; }
#launch-form label { font-size: 14px; font-weight: 650; }
#launch-email {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #777d7a;
  border-radius: 7px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}
.launch-dialog .action { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
#launch-form .action:disabled { cursor: wait; opacity: .75; }
.launch-dialog button:focus-visible, .launch-dialog input:focus-visible, .store-button:focus-visible, .store-signup:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.launch-dialog .launch-note { font-size: 13px; }
#launch-status { color: var(--text); font-weight: 650; }
#launch-status:empty { margin: 0; }


.signup-admin h1 { font-size: clamp(40px, 7vw, 64px); }
.signup-admin p { color: var(--muted); margin: 12px 0; }
.signup-admin nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.signup-admin nav:empty { display: none; }
.signup-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.signup-table table { border-collapse: collapse; width: 100%; text-align: left; }
.signup-table th, .signup-table td { padding: 14px 16px; }
.signup-table th { white-space: nowrap; }
.signup-table td { border-top: 1px solid var(--border); }
.signup-table td:first-child { overflow-wrap: anywhere; min-width: 180px; }
