/* heliva.app's home and accuracy pages, from the design board
   (docs/marketing/website/Main.dc.html, Accuracy.dc.html). Mobile first: the
   board's fluid sizes, with the desktop layout from 760 px. Always light: the
   board's cream page is the brand, so there is no dark variant here (the legal
   pages, site.css, have one). Text colours pass WCAG AA on their grounds. */

@font-face {
  font-family: 'Familjen Grotesk';
  src: url('/fonts/FamiljenGrotesk-Variable.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/fonts/DMMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/fonts/DMMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f2ede3;
  --spruce: #12332b;
  --spruce-deep: #0b231d;
  --sage: #cbd9d1;
  --ink-2: #2e4a41;
  --muted: #4e6a60;
  --on-dark: #c9d6cf;
  --on-dark-muted: #a8bbb2;
  --line: #d6cdbc;
  --line-dark: #2a5246;
  --track: #24503f;
  --amber: #f2a93b;
  --table-head: #e8dfcf;
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --gap-section: clamp(56px, 8vw, 112px);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--spruce);
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--spruce);
}
a:hover {
  color: var(--spruce-deep);
}
/* Spruce on cream, amber on the spruce blocks: 3:1 or more either way. */
:focus-visible {
  outline: 3px solid var(--spruce);
  outline-offset: 3px;
}
.block :focus-visible,
.foot :focus-visible,
.plan.yearly :focus-visible,
.stat :focus-visible {
  outline-color: var(--amber);
}
.m {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
h1,
h2 {
  margin: 0;
  font-weight: 600;
}
h1 {
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
p {
  margin: 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.wrap.narrow {
  max-width: 1040px;
}
.section {
  padding-bottom: var(--gap-section);
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split > * {
  flex: 1 1 380px;
  min-width: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 520px;
}
.body {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}
.small {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 760px;
}
.muted {
  color: var(--on-dark-muted);
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.desk {
  display: none !important;
}
.grow {
  flex: 1 1 20px;
}
/* Read aloud, not shown. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Buttons: the whole pill is the link. */
.pill {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
.pill.dark {
  min-height: 44px;
  padding: 0 20px;
  background: var(--spruce);
  color: var(--cream);
  font-size: 15px;
}
.pill.dark:hover {
  background: var(--spruce-deep);
  color: var(--cream);
}
.pill.amber {
  min-height: 52px;
  border-radius: 26px;
  background: var(--amber);
  color: var(--spruce);
  font-size: 17px;
}
.pill.outline {
  min-height: 52px;
  border-radius: 26px;
  border: 1.5px solid var(--spruce);
  font-size: 17px;
}
.pill.outline-light {
  align-self: flex-start;
  border: 1.5px solid var(--cream);
  color: var(--cream);
}
.pill.outline-light:hover {
  background: var(--cream);
  color: var(--spruce);
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.navlinks {
  display: none;
  gap: 28px;
  align-items: center;
}
.navlinks a {
  text-decoration: none;
  font-size: 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.navlinks a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@keyframes rimfill {
  from {
    stroke-dashoffset: 79;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.rim {
  animation: rimfill 1.8s cubic-bezier(0.3, 0.7, 0.2, 1) 0.3s both;
}
@media (prefers-reduced-motion: reduce) {
  .rim {
    animation: none;
  }
}

/* Hero */
.hero {
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: var(--gap-section);
}
.get {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
  scroll-margin-top: 24px;
}
/* Apple's badge artwork, unaltered (black, for the light page). */
.badge {
  display: block;
  line-height: 0;
}
.badge img {
  height: 54px;
  width: auto;
}
.qr {
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 220px;
}
.qr-code {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 10px;
}
.android {
  font-size: 15px;
  color: var(--muted);
}
.android a {
  font-weight: 600;
}

/* A screenshot in a phone frame, on a sage panel. 282 x 613 is the board's
   screen inside a 9 px bezel. */
.panel {
  background: var(--sage);
  border-radius: 36px;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  padding: 9px;
  border-radius: 46px;
  background: #0a1f19;
  box-shadow: 0 0 0 1px var(--line-dark);
}
.phone img,
.screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 38px;
  background: var(--spruce);
}
.island {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  border-radius: 12px;
  background: #0a1f19;
}

/* How it works */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.steps li {
  display: flex;
  gap: 16px;
}
.num {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 18px;
  background: var(--spruce);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}
.step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--spruce);
}

/* Spruce blocks: Honest numbers, A real week */
.block {
  background: var(--spruce);
  color: var(--cream);
  border-radius: 36px;
  padding: clamp(28px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.block-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}
.block .lede {
  color: var(--on-dark);
  max-width: none;
}
.range {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  width: 100%;
}
.range-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 18px;
  color: var(--on-dark-muted);
}
.range-est {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.big {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--amber);
  line-height: 1;
}
/* 0 to 1 000 kcal is 300 to 1 100 on the bar: 490 → 23.75 %, 640 → 42.5 %,
   860 → 70 %. */
.range-bar {
  position: relative;
  height: 18px;
  border-radius: 9px;
  background: var(--track);
}
.range-fill {
  position: absolute;
  left: 23.75%;
  width: 46.25%;
  top: 0;
  bottom: 0;
  border-radius: 9px;
  background: var(--amber);
  opacity: 0.85;
}
.range-mark {
  position: absolute;
  left: 42.5%;
  top: -6px;
  bottom: -6px;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cream);
}
.range-ticks {
  position: relative;
  height: 22px;
  font-size: 15px;
  color: var(--on-dark);
}
.range-ticks span {
  position: absolute;
  transform: translateX(-50%);
}
.range-ticks .lo {
  left: 23.75%;
}
.range-ticks .mid {
  left: 46.9%;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.range-ticks .hi {
  left: 70%;
}

/* Forgiving */
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
  line-height: 1.5;
}
.checks li {
  display: flex;
  gap: 12px;
}
.checks svg {
  flex: none;
  margin-top: 1px;
}
strong {
  font-weight: 600;
}

/* A real week */
.week {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(6px, 1.5vw, 20px);
}
/* Seven columns of a phone's width can't hold "Birthday cake": two rows. */
@media (max-width: 559px) {
  .week {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 12px;
  }
}
.week li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.week svg {
  width: 100%;
  max-width: 80px;
  height: auto;
}
.day {
  font-size: 14px;
  font-weight: 600;
}
.kcal {
  font-size: 13px;
}
.label {
  font-size: 13px;
  line-height: 1.3;
  color: var(--on-dark-muted);
  text-align: center;
}
.week-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 17px;
}
.total {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.week-total strong {
  font-size: 18px;
}

/* Apple Health */
.health {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.health p {
  flex: 1 1 320px;
  font-size: 18px;
  line-height: 1.5;
}

/* Founder note */
.founder {
  margin: 0 auto;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.founder blockquote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.founder figcaption {
  font-size: 17px;
  color: var(--muted);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.plan {
  border: 1.5px solid var(--spruce);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan.yearly {
  border-color: var(--spruce);
  background: var(--spruce);
  color: var(--cream);
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.plan-name {
  font-size: 20px;
  font-weight: 600;
}
.tag {
  padding: 6px 12px;
  border-radius: 14px;
  background: var(--amber);
  color: var(--spruce);
  font-size: 13px;
  font-weight: 600;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 17px;
}
.price .m {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan .muted {
  color: var(--muted);
}
.plan.yearly .muted {
  color: var(--on-dark-muted);
}
.plan-note {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.plan.yearly .plan-note {
  color: var(--on-dark);
}
.plan .pill {
  margin-top: 8px;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.chev {
  flex: none;
  transition: transform 0.2s ease;
}
details[open] .chev {
  transform: rotate(180deg);
}
details > p,
.android-body p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 680px;
}
.android-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}
.android-body p {
  margin: 0;
}
#android,
#how,
#pricing,
#faq,
#accuracy {
  scroll-margin-top: 16px;
}

/* Footer */
.foot {
  background: var(--spruce);
  color: var(--cream);
}
.foot .wrap {
  padding-top: 56px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.foot-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 260px;
}
.foot-brand .muted {
  font-size: 16px;
  color: var(--on-dark);
}
.foot nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 1 220px;
}
.foot-head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 6px;
}
.foot a {
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: var(--on-dark-muted);
}

/* Accuracy page */
.article {
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.article h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}
.article h2 {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}
.intro .lede {
  max-width: none;
  line-height: 1.55;
}
.intro .small {
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}
.stat {
  background: var(--spruce);
  color: var(--cream);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-value {
  font-size: 60px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--amber);
}
.stat-title {
  font-size: 18px;
  font-weight: 600;
}
.stat-body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark);
}
.prose,
.wide {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prose {
  max-width: 760px;
}
.prose p,
.prose ul,
.wide .body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 760px;
}
.prose ul {
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.55;
}
.prose strong {
  color: var(--spruce);
}
.prose .small {
  font-size: 15px;
  color: var(--muted);
}
.sources {
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.sources h2 {
  font-size: 20px;
}
.sources ul {
  gap: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.table-box {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 16px;
}
th,
td {
  padding: 14px 18px;
  text-align: left;
}
th {
  font-weight: 400;
}
thead tr {
  background: var(--table-head);
}
thead th {
  font-weight: 600;
}
tbody tr {
  border-top: 1px solid var(--line);
}
tr.total {
  background: var(--table-head);
}
tr.total th {
  font-weight: 600;
}

/* Desktop */
@media (min-width: 761px) {
  .navlinks {
    display: flex;
  }
  .desk {
    display: flex !important;
  }
  .split.rev {
    flex-direction: row-reverse;
  }
}

/* Languages, once there is more than one */
.foot .langs {
  display: flex;
  flex-direction: row;
  flex: none;
  gap: 8px;
  align-items: center;
}
.foot .langs a {
  display: inline-flex;
  min-height: 44px;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.foot .langs a[aria-current] {
  color: var(--cream);
}

/* The hero animation (HeroPhone on the board): real screenshots moved the way
   iOS moves screens, never faded. The sheet slides up from the bottom; a push
   comes in from the right while the screen it covers moves 30 % left and
   dims; the dismiss slides down. 0.5 s on iOS's curve. site/client/hero.ts
   sets the data attributes; without it they hold the estimate, still.
   Sizes inside the screen are in cqw: 100cqw is the screen's 402 pt. */
.hero-anim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 300px;
  max-width: 100%;
}
.screen-stack {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: 38px;
  overflow: hidden;
  background: var(--spruce);
  container-type: inline-size;
}
.screen-stack .lay {
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--ease-ios);
}
.screen-stack img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.dim,
.flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.dim {
  background: #000;
  transition: opacity 0.5s var(--ease-ios);
}
.flash {
  background: #fff;
  transition: opacity 0.18s ease;
}
[data-flash='true'] .flash {
  opacity: 0.9;
}
.s-today-after {
  visibility: hidden;
}
[data-logged='true'] .s-today-after {
  visibility: visible;
}
.sheet {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-ios);
}
[data-sheet='up'] .sheet {
  transform: translateY(0);
}
.sheet .s-camera,
.sheet .s-estimating,
.sheet .s-estimate {
  box-shadow: -8px 0 24px rgb(0 0 0 / 0.3);
}
/* Not pushed yet: off to the right. */
[data-stage='0'] .s-camera,
[data-stage='0'] .s-estimating,
[data-stage='0'] .s-estimate,
[data-stage='1'] .s-estimating,
[data-stage='1'] .s-estimate,
[data-stage='2'] .s-estimate {
  transform: translateX(100%);
}
/* Pushed past: 30 % left, dimmed. */
[data-stage='1'] .s-log-sheet,
[data-stage='2'] .s-log-sheet,
[data-stage='2'] .s-camera,
[data-stage='3'] .s-log-sheet,
[data-stage='3'] .s-camera,
[data-stage='3'] .s-estimating {
  transform: translateX(-30%);
}
[data-stage='1'] .s-log-sheet .dim,
[data-stage='2'] .s-log-sheet .dim,
[data-stage='2'] .s-camera .dim,
[data-stage='3'] .s-log-sheet .dim,
[data-stage='3'] .s-camera .dim,
[data-stage='3'] .s-estimating .dim {
  opacity: 0.3;
}
/* A finger: where the next tap lands, shown as it lands. */
.tap {
  position: absolute;
  width: 13.93cqw;
  height: 13.93cqw;
  margin: -6.97cqw 0 0 -6.97cqw;
  border-radius: 50%;
  background: rgb(242 237 227 / 0.5);
  box-shadow: 0 0 0 2cqw rgb(242 237 227 / 0.16);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.12s ease,
    transform 0.22s ease;
  pointer-events: none;
}
[data-tap-down='true'] .tap {
  opacity: 1;
  transform: scale(1);
}
[data-tap='0'] .tap {
  left: 50%;
  top: 90.96%;
}
[data-tap='1'] .tap {
  left: 34.08%;
  top: 91.53%;
}
[data-tap='2'] .tap {
  left: 50%;
  top: 89.93%;
}
[data-tap='3'] .tap {
  left: 50%;
  top: 91.42%;
}
.hero-toggle {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1.5px solid var(--spruce);
  background: var(--cream);
  color: var(--spruce);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.hero-toggle[hidden] {
  display: none;
}
.hero-toggle[data-state='playing'] .i-play,
.hero-toggle[data-state='paused'] .i-pause {
  display: none;
}
[data-instant] .lay,
[data-instant] .sheet,
[data-instant] .dim,
[data-instant] .tap {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .screen-stack .lay,
  .sheet,
  .dim,
  .tap {
    transition: none;
  }
}

/* Back on track: the app's burst of dots from behind the tick
   (ComebackCards.swift), played twice, once, when the phone comes into view.
   The tick sits at 50 %, 16.5 % of the screen. */
.burst {
  position: absolute;
  inset: 9px;
  border-radius: 38px;
  overflow: hidden;
  container-type: inline-size;
  pointer-events: none;
}
/* What the burst watches for: the card's area at the top of the screen. */
.burst-card {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 7%;
  height: 26%;
}
.burst span {
  position: absolute;
  left: 50%;
  top: 16.48%;
  border-radius: 50%;
  opacity: 0;
  translate: -50% -50%;
}
@keyframes burst {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 0;
  }
  /* Hidden while still over the tick: in the app they're behind it. */
  28% {
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  76%,
  100% {
    transform: translate(var(--dx), var(--dy)) scale(1);
    opacity: 0;
  }
}
[data-burst='play'] .burst span {
  animation: burst 2.1s ease-out 2;
}
@media (prefers-reduced-motion: reduce) {
  .burst {
    display: none;
  }
}
.burst span:nth-of-type(1) {
  --dx: 11.44cqw;
  --dy: 0cqw;
  width: 2.49cqw;
  height: 2.49cqw;
  background: #3e7a2a;
}
.burst span:nth-of-type(2) {
  --dx: 10.87cqw;
  --dy: 6.32cqw;
  width: 1.99cqw;
  height: 1.99cqw;
  background: #f2a93b;
}
.burst span:nth-of-type(3) {
  --dx: 4.77cqw;
  --dy: 11.73cqw;
  width: 2.49cqw;
  height: 2.49cqw;
  background: #12332b;
}
.burst span:nth-of-type(4) {
  --dx: -3.54cqw;
  --dy: 8.71cqw;
  width: 1.99cqw;
  height: 1.99cqw;
  background: #3e7a2a;
}
.burst span:nth-of-type(5) {
  --dx: -10.87cqw;
  --dy: 6.32cqw;
  width: 2.49cqw;
  height: 2.49cqw;
  background: #f2a93b;
}
.burst span:nth-of-type(6) {
  --dx: -15.42cqw;
  --dy: 0cqw;
  width: 1.99cqw;
  height: 1.99cqw;
  background: #12332b;
}
.burst span:nth-of-type(7) {
  --dx: -9.26cqw;
  --dy: -5.38cqw;
  width: 2.49cqw;
  height: 2.49cqw;
  background: #3e7a2a;
}
.burst span:nth-of-type(8) {
  --dx: -4.15cqw;
  --dy: -10.22cqw;
  width: 1.99cqw;
  height: 1.99cqw;
  background: #f2a93b;
}
.burst span:nth-of-type(9) {
  --dx: 4.77cqw;
  --dy: -11.73cqw;
  width: 2.49cqw;
  height: 2.49cqw;
  background: #12332b;
}
.burst span:nth-of-type(10) {
  --dx: 9.26cqw;
  --dy: -5.38cqw;
  width: 1.99cqw;
  height: 1.99cqw;
  background: #3e7a2a;
}

/* Forms: the Android sign-up as on the board, and /support built from it.
   The status line under each is the script's answer, read aloud. */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}
.form.inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  max-width: none;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.grow-field {
  flex: 1 1 260px;
}
.field input,
.field textarea {
  min-height: 50px;
  border-radius: 14px;
  border: 1.5px solid var(--spruce);
  background: #fff;
  padding: 12px 16px;
  font: inherit;
  /* 16 px or more: iOS Safari zooms into a smaller field. */
  font-size: 16px;
  font-weight: 400;
  color: var(--spruce);
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.field input::placeholder {
  color: var(--muted);
}
.submit {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 25px;
  border: 0;
  background: var(--spruce);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}
.form.inline .submit {
  align-self: auto;
}
.submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.form-status:empty {
  /* Kept in the accessibility tree, so its first message is read aloud. */
  margin-top: -14px;
}
.form-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* /sent and /not-sent: the fragment says which line applies. */
.when {
  display: none;
}
.when:target,
.whens:not(:has(:target)) .when:first-child {
  display: block;
}
