/* trofelo.com: the brand's ink and leaf, with the app's own colours
   (mobile/src/constants/theme.ts) for the screens drawn on the page. */

:root {
  color-scheme: light dark;

  --ink: #17473a;
  --leaf: #4db37f;
  --bg: #f3f5f1;
  --bg-alt: #e9ede6;
  --card: #ffffff;
  --fill: #e9ece6;
  --border: #dde2da;
  --text: #15201a;
  --text-2: #5b6760;
  --text-3: #8c968f;
  --tint: #0b7a62;
  --tint-soft: #dcf0e8;
  --on-tint: #ffffff;
  --band: #17473a;
  --band-text: #eaf3ee;
  --band-text-2: #b5cfc3;
  --band-card: rgba(255, 255, 255, 0.07);

  --calories: #e0662f;
  --protein: #3b7ddd;
  --carbs: #e9a23b;
  --fat: #7456d8;
  --food: #0b7a62;
  --supplement: #8fd3b0;
  --near: #9a6700;
  --near-soft: #faf0d4;
  --track: #eef1ec;
  --before: #a3aca6;
  --after: #0b7a62;

  --phone: #101714;
  --shadow: 0 1px 2px rgba(21, 32, 26, 0.06), 0 12px 32px -12px rgba(21, 32, 26, 0.18);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f0d;
    --bg-alt: #121613;
    --card: #171b18;
    --fill: #242a26;
    --border: #2c332e;
    --text: #eef2ee;
    --text-2: #a3afa7;
    --text-3: #6f7a73;
    --tint: #3dcca1;
    --tint-soft: #133a2f;
    --on-tint: #04150f;
    --band: #10261f;
    --band-card: rgba(255, 255, 255, 0.05);

    --calories: #f07a44;
    --protein: #6fa3ec;
    --carbs: #e9b05a;
    --fat: #9c84ec;
    --food: #3dcca1;
    --supplement: #1f6b55;
    --near: #e0b04a;
    --near-soft: #342a12;
    --track: #242a26;
    --before: #59645d;
    --after: #3dcca1;

    --phone: #000000;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Icons from img/icons.svg, drawn in the text colour. */
.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: var(--tint);
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  font-family: var(--round);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d5a49;
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: var(--tint);
    color: var(--on-tint);
  }

  .btn-primary:hover {
    background: #5ad9b2;
  }
}

/* Hero */

.hero {
  padding: 56px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--tint-soft);
  color: var(--tint);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--tint);
}

.lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: 19px;
  color: var(--text-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.fine {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-3);
}

/* The phone and the app's screens */

.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: var(--phone);
  box-shadow: 0 30px 60px -20px rgba(16, 38, 31, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--phone);
  z-index: 2;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 50px 14px 18px;
  border-radius: 36px;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
}

.app-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 4px;
}

.app-date {
  color: var(--text-2);
  font-size: 11px;
}

.app-title {
  font: 700 24px/1.1 var(--round);
  letter-spacing: -0.02em;
}

.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint-soft);
  color: var(--tint);
  font-weight: 700;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
}

.week .ring {
  width: 30px;
  height: 30px;
  margin: 0 auto 3px;
}

.week .today {
  color: var(--text);
}

.week .today .ring-track {
  stroke: var(--fill);
}

.ring-track {
  fill: none;
  stroke: var(--track);
}

.ring-fill {
  fill: none;
  stroke: var(--tint);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}

.app-card {
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 12px;
}

.app-card-head span {
  color: var(--text-2);
  font-weight: 500;
}

.cal {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
}

.cal-ring {
  position: relative;
  width: 84px;
  height: 84px;
}

.cal-ring svg {
  width: 84px;
  height: 84px;
}

.cal-ring .ring-fill {
  stroke: var(--calories);
}

.cal-ring div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 9px;
  color: var(--text-2);
}

.cal-ring strong {
  display: block;
  color: var(--text);
  font: 700 17px/1.1 var(--round);
}

.macros {
  display: grid;
  gap: 7px;
}

.macro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 6px;
  font-size: 10.5px;
}

.macro b {
  font-weight: 600;
}

.macro span {
  color: var(--text-2);
}

.bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: var(--track);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: 3px;
  background: var(--c, var(--tint));
}

.take-all {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint-soft);
  color: var(--tint) !important;
  font-weight: 600 !important;
  font-size: 11px;
}

.dose {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--track);
}

.dose:first-of-type {
  border-top: 0;
}

.dose small {
  display: block;
  color: var(--text-2);
  font-size: 10.5px;
}

.dose b {
  font-weight: 600;
}

.tick {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--border);
}

.tick.on {
  background: var(--tint);
  box-shadow: none;
  color: var(--on-tint);
}

.tick svg {
  width: 14px;
  height: 14px;
}

.pill-time {
  color: var(--text-3);
  font-size: 10px;
}

.rating {
  display: flex;
  gap: 6px;
  margin: 2px 0 10px;
}

.rating i {
  flex: 1;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--fill);
  color: var(--text-2);
  font-style: normal;
  font-weight: 600;
}

.rating i.on {
  background: var(--tint);
  color: var(--on-tint);
}

.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 500;
}

.flags span.on {
  background: var(--ink);
  color: #ffffff;
}

/* Sections */

section {
  scroll-margin-top: 76px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.kicker {
  color: var(--tint);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head {
  max-width: 720px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 700;
}

.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-2);
}

.center {
  margin: 0 auto;
  text-align: center;
}

/* One app instead of four */

.merge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

.sources {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  border-radius: 20px;
  background: var(--card);
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow);
}

.source small {
  color: var(--text-2);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
}

.icon-tile {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--tile-soft);
  color: var(--tile);
}

.icon-tile svg {
  width: 26px;
  height: 26px;
}

.t-food {
  --tile: #e0662f;
  --tile-soft: #fbeae1;
}

.t-supp {
  --tile: #0b7a62;
  --tile-soft: #dcf0e8;
}

.t-feel {
  --tile: #7456d8;
  --tile-soft: #ece7fb;
}

.t-weight {
  --tile: #2a78d6;
  --tile-soft: #e2eefb;
}

@media (prefers-color-scheme: dark) {
  .t-food {
    --tile: #f07a44;
    --tile-soft: #3a2014;
  }

  .t-supp {
    --tile: #3dcca1;
    --tile-soft: #133a2f;
  }

  .t-feel {
    --tile: #9479ea;
    --tile-soft: #251d45;
  }

  .t-weight {
    --tile: #4b92e8;
    --tile-soft: #142a45;
  }
}

.merge-arrow {
  color: var(--text-3);
  transform: rotate(90deg);
}

.merge-arrow svg {
  width: 32px;
  height: 32px;
}

.together {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  padding: 22px;
  border-radius: 24px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.together img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: none;
}

.together b {
  display: block;
  font: 700 20px/1.2 var(--round);
}

.together span {
  display: block;
  margin-top: 4px;
  color: #b5cfc3;
  font-size: 14px;
  line-height: 1.45;
}

/* Features */

.features {
  display: grid;
  gap: 112px;
  margin-top: 72px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.feature:nth-child(even) .feature-text {
  order: 2;
}

.feature h3 {
  margin-top: 10px;
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
}

.feature p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}

.points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  font-size: 16px;
}

.points svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--tint);
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.mock {
  width: 100%;
  max-width: 440px;
  padding: 22px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.4;
}

.mock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mock-head b {
  font: 700 18px/1.2 var(--round);
}

.mock-head span {
  color: var(--text-2);
  font-size: 13px;
}

.muted {
  color: var(--text-2);
}

/* Scan */

.scanned {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--fill);
}

.scanned svg {
  width: 72px;
  height: 44px;
  flex: none;
  color: var(--text);
}

.mono {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.ladder {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.ladder li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}

.step {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-3);
  font-weight: 700;
  font-size: 13px;
}

.step svg {
  width: 16px;
  height: 16px;
}

.ladder .hit .step {
  background: var(--tint);
  color: var(--on-tint);
}

.ladder .miss {
  color: var(--text-2);
}

.ladder .idle {
  color: var(--text-3);
}

.ladder li > span:last-child {
  font-size: 13px;
  color: var(--text-3);
}

.ladder .hit > span:last-child {
  color: var(--tint);
  font-weight: 600;
}

.found {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.found-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fbeae1;
  color: #e0662f;
}

@media (prefers-color-scheme: dark) {
  .found-avatar {
    background: #3a2014;
    color: #f07a44;
  }
}

.found-avatar svg {
  width: 26px;
  height: 26px;
}

.found b {
  display: block;
}

.found small {
  display: block;
  color: var(--text-2);
  font-size: 13px;
}

.saved {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--tint);
  font-size: 13px;
  font-weight: 600;
}

.saved svg {
  width: 16px;
  height: 16px;
}

/* Nutrients */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 13px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--c);
}

.legend .target i {
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: var(--text);
}

.nutrient {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 10px 0;
  border-top: 1px solid var(--track);
}

.nutrient b {
  font-weight: 600;
}

.nutrient b small {
  color: var(--text-2);
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}

.status {
  align-self: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--fill);
  color: var(--text-2);
}

.status.met {
  background: var(--tint-soft);
  color: var(--tint);
}

.status.near {
  background: var(--near-soft);
  color: var(--near);
}

.stack-bar {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  height: 10px;
  border-radius: 5px;
  background: var(--track);
}

.stack-bar i {
  height: 100%;
  width: var(--p);
}

.stack-bar i:first-child {
  border-radius: 5px 0 0 5px;
}

.stack-bar i:last-of-type {
  border-radius: 0 5px 5px 0;
}

.stack-bar i:only-of-type {
  border-radius: 5px;
}

.stack-bar .f {
  background: var(--food);
}

.stack-bar .s {
  background: var(--supplement);
}

/* The recommended intake: two thirds along, so the bar runs to 150%. */
.stack-bar::after {
  content: "";
  position: absolute;
  left: 66.67%;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 1px;
  background: var(--text);
}

/* Insights */

.effect {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.effect strong {
  font: 700 40px/1 var(--round);
  color: var(--tint);
  letter-spacing: -0.02em;
}

.chart {
  margin: 18px 0 8px;
  width: 100%;
  height: auto;
}

.chart .grid-line {
  stroke: var(--track);
}

.chart .axis-label {
  fill: var(--text-3);
  font: 11px var(--sans);
}

.chart .before {
  fill: var(--before);
}

.chart .after {
  fill: var(--after);
}

.chart .left-out {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.5;
}

.chart .mean-before {
  stroke: var(--before);
  stroke-width: 3;
  stroke-linecap: round;
}

.chart .mean-after {
  stroke: var(--after);
  stroke-width: 3;
  stroke-linecap: round;
}

.chart .start {
  stroke: var(--text-2);
  stroke-dasharray: 4 4;
}

.chart .start-label {
  fill: var(--text-2);
  font: 600 11px var(--sans);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
  align-items: center;
}

.chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text);
  font-weight: 500;
}

.chips svg {
  width: 14px;
  height: 14px;
}

/* Meals */

.meal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meal-title b {
  font: 700 20px/1.2 var(--round);
}

.tag {
  padding: 3px 12px;
  border-radius: 999px;
  background: #faf0d4;
  color: #8a5c00;
  font-size: 13px;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .tag {
    background: #342a12;
    color: #e0b04a;
  }
}

.kcal {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kcal strong {
  font: 700 32px/1 var(--round);
  color: var(--calories);
}

.macro-strip {
  display: flex;
  gap: 3px;
  height: 10px;
  margin: 12px 0 8px;
}

.macro-strip i {
  width: var(--p);
  border-radius: 5px;
  background: var(--c);
}

.macro-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--text-2);
}

.macro-key span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--c);
}

.macro-key b {
  color: var(--text);
  font-weight: 600;
}

.ingredients {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.ingredients li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--track);
}

.ingredients span {
  color: var(--text-2);
}

.log-meal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--on-tint);
  font-weight: 600;
}

.log-meal svg {
  width: 18px;
  height: 18px;
}

.targets {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--fill);
  font-size: 13px;
}

.targets b {
  display: block;
  font-size: 14px;
}

.targets span {
  color: var(--text-2);
}

.targets .edit {
  color: var(--tint);
  font-weight: 600;
  white-space: nowrap;
}

/* Seconds, not minutes */

.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.quick div {
  padding: 26px 22px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.quick h3 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 700;
}

.quick p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

/* Privacy band */

.band {
  background: var(--band);
  color: var(--band-text);
}

.band .kicker {
  color: var(--leaf);
}

.band .section-head p {
  color: var(--band-text-2);
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.promises div {
  padding: 26px 22px;
  border-radius: 24px;
  background: var(--band-card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.promises svg {
  width: 28px;
  height: 28px;
  color: var(--leaf);
}

.promises h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}

.promises p {
  margin-top: 8px;
  color: var(--band-text-2);
  font-size: 15px;
}

.band-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  color: #ffffff;
  font-weight: 600;
}

.band-link svg {
  width: 18px;
  height: 18px;
}

/* Get the app */

.get {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
  margin-top: 48px;
}

.get-card {
  padding: 32px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.get-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
}

.get-card h3 svg {
  width: 28px;
  height: 28px;
  color: var(--tint);
}

.get-card p {
  margin-top: 12px;
  color: var(--text-2);
}

.steps {
  display: grid;
  gap: 14px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint-soft);
  color: var(--tint);
  font-weight: 700;
  font-size: 15px;
}

.steps li span {
  padding-top: 3px;
}

.get-card .fine {
  margin-top: 16px;
}

.get-card.soft {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--border);
}

.get-card.soft .btn {
  margin-top: 24px;
}

/* Footer */

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--text-2);
}

.footer-links a:hover {
  color: var(--text);
}

.credit {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--text-3);
}

.credit a {
  color: inherit;
}

/* The privacy page and other text pages */

.doc {
  max-width: 720px;
  padding: 56px 0 96px;
}

.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
}

.doc .updated {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 15px;
}

.doc .intro {
  margin-top: 24px;
  font-size: 19px;
  color: var(--text-2);
}

.doc h2 {
  margin-top: 52px;
  font-size: 26px;
  font-weight: 700;
}

.doc p,
.doc ul {
  margin-top: 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

.doc .summary {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding: 24px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  list-style: none;
}

.doc .summary li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin: 0;
}

.doc .summary svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--tint);
}

.not-found {
  padding: 120px 0 140px;
  text-align: center;
}

.not-found img {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
}

.not-found h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.not-found p {
  margin: 14px auto 32px;
  color: var(--text-2);
}

/* Narrower screens */

@media (max-width: 960px) {
  .hero .wrap,
  .feature,
  .get {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 32px;
  }

  .hero .wrap {
    gap: 56px;
  }

  .feature {
    gap: 36px;
  }

  .feature:nth-child(even) .feature-text {
    order: 0;
  }

  .features {
    gap: 88px;
  }

  .sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick,
  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .nav a:not(.btn) {
    display: none;
  }

  .brand img {
    height: 26px;
  }

  .section {
    padding: 72px 0;
  }

  .lede,
  .section-head p,
  .feature p {
    font-size: 17px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .quick,
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock {
    padding: 18px;
    border-radius: 24px;
  }

  .get-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
