/* HariLens website. One family (Noto Sans, variable weight and width), the
   app's own colours, and verdict colours only where a verdict is shown. */

@font-face {
  font-family: "Noto Sans";
  src: url("/assets/fonts/NotoSans-VF-latin.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Sinhala Hari";
  src: url("/assets/fonts/NotoSansSinhala-hari.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand: the icon's night green and mint, and the app's action green. */
  --night: #0e2a1f;
  --night-2: #16382a;
  --mint: #7ee2a8;
  --green: #1e6b3e;
  --green-press: #17572f;
  --green-tint: #e3f0e5;

  /* Ground and ink, from the app's soft world. */
  --ground: #f4f7f2;
  --paper: #ffffff;
  --card: #fbfcfa;
  --card-edge: #e7ede5;
  --dashed: #a9b3ac;
  --line: #dde5db;
  --ink: #16231b;
  --ink-2: #4b5b51;
  --ink-3: #5e6d63;
  --on-night: #e8f1ec;
  --on-night-2: #a9c2b4;

  /* Verdicts. Reserved: used only to show a verdict. */
  --limit: #e5484d;
  --limit-bg: #ffecec;
  --limit-text: #b4272b;
  --caution: #f5a623;
  --caution-bg: #fff4dc;
  --caution-text: #8a5b06;
  --ok: #4c9f3a;
  --ok-bg: #eaf5e3;
  --ok-text: #2e7a22;
  --nodata: #8a958e;
  --nodata-bg: #eef1ee;

  --measure: 66ch;
  --page: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-card: 22px;
  --shadow-card: 0 3px 14px rgba(43, 74, 53, 0.04);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 2.875rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  accent-color: var(--green);
  scrollbar-color: #a9b3ac var(--ground);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
::selection {
  background: var(--mint);
  color: var(--night);
}
:target {
  scroll-margin-top: 16px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--green-press);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

.sinhala {
  font-family: "Noto Sans Sinhala Hari", "Noto Sans Sinhala", sans-serif;
  font-weight: 700;
}

/* ---------- Header ---------- */

.site-header {
  padding-block: 18px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: inherit;
}
.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
}
.site-nav a:hover {
  background: rgba(126, 226, 168, 0.14);
}
.site-nav .nav-cta {
  margin-left: 8px;
  padding-inline: 16px;
  background: var(--mint);
  color: var(--night);
}
.site-nav .nav-cta:hover {
  background: #9cebbd;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.on-night .site-nav a:hover {
  background: rgba(126, 226, 168, 0.12);
}
.on-night :focus-visible {
  outline-color: var(--mint);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.button:active {
  transform: translateY(1px);
}
.button-primary {
  background: var(--green);
  color: #fff;
}
.button-primary:hover {
  background: var(--green-press);
  color: #fff;
}
.on-night .button-primary {
  background: var(--mint);
  color: var(--night);
}
.on-night .button-primary:hover {
  background: #9cebbd;
  color: var(--night);
}
.button-quiet {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.button-quiet:hover {
  color: inherit;
  background: rgba(126, 226, 168, 0.1);
}
.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Hero ---------- */

/* A shopper reading her phone in a Sri Lankan aisle, behind the hero. The
   photo keeps natural skin tones, muted a little; the night green fades in
   over it from the headline's side so the copy keeps its contrast. */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 30%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(14, 42, 31, 0.93) 30%, rgba(14, 42, 31, 0.55) 46%, rgba(14, 42, 31, 0.08) 64%, rgba(14, 42, 31, 0.08) 100%),
    linear-gradient(0deg, rgba(14, 42, 31, 0.7) 0%, rgba(14, 42, 31, 0) 30%),
    linear-gradient(180deg, rgba(14, 42, 31, 0.6) 0%, rgba(14, 42, 31, 0) 18%);
}
.hero .site-header {
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  min-height: min(760px, calc(100vh - 80px));
  padding-block: clamp(32px, 6vw, 80px) clamp(40px, 5vw, 64px);
}
.hero h1 {
  font-size: var(--step-4);
  color: #fff;
  font-stretch: 72%;
  max-width: 12ch;
}
.hero .lede {
  margin-top: 24px;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--on-night);
  max-width: 34rem;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero .fine {
  margin-top: 18px;
  font-size: var(--step--1);
  color: var(--on-night-2);
}

/* The result she is reading: a compact card from the app, framed by the
   HariLens scanner corners, set over the shelves at her side. */
.hero-result {
  position: relative;
  margin: 0;
  padding: 18px;
  justify-self: end;
  align-self: end;
  width: min(100%, 372px);
}
.hero-result .corners {
  position: absolute;
  inset: 0 0 38px 0;
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0 solid #fff;
  opacity: 0.95;
}
.corner.tl { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 10px; }
.corner.tr { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 10px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 10px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 10px; }
.result-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 44px rgba(4, 18, 11, 0.4);
}
.rc-head {
  display: grid;
  gap: 2px;
}
.rc-name {
  font-size: 1.0625rem;
  line-height: 1.25;
}
.rc-meta {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.rc-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--card-edge);
  font-size: 0.875rem;
  font-weight: 700;
}
.rc-stars .stars {
  display: flex;
  gap: 1px;
  color: #cfd8d1;
}
.rc-stars svg {
  width: 16px;
  height: 16px;
}
.rc-areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.rc-area {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 9px 4px;
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
}
.rc-area.is-limit {
  background: var(--limit-bg);
  border-color: #f8d6d6;
}
.vchip.vchip-sm {
  gap: 5px;
  padding: 3px 8px 3px 6px;
  font-size: 10.5px;
  letter-spacing: 0.4px;
}
.vchip.vchip-sm svg {
  width: 13px;
  height: 13px;
}
.vchip-limit-on {
  background: var(--paper);
  color: var(--limit-text);
}
.rc-flag {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.rc-flag svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}
.rc-source {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.rc-source b {
  display: block;
  color: var(--green);
}
.rc-source svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--green);
}
.hero-result .example-tag {
  width: fit-content;
  margin: 16px 0 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(14, 42, 31, 0.82);
  color: var(--on-night);
}

/* One load sequence: the corners close in on the card, then the result
   reads in. */
@media (prefers-reduced-motion: no-preference) {
  .js .corner {
    animation: corner-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .js .corner.tl { --dx: -22px; --dy: -22px; }
  .js .corner.tr { --dx: 22px; --dy: -22px; }
  .js .corner.bl { --dx: -22px; --dy: 22px; }
  .js .corner.br { --dx: 22px; --dy: 22px; }
  .js .hero-result .reveal {
    animation: read-in 420ms ease-out both;
    animation-delay: calc(650ms + var(--i, 0) * 110ms);
  }
}
@keyframes corner-in {
  from {
    transform: translate(var(--dx), var(--dy));
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 0.95;
  }
}
@keyframes read-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Phone mockups (drawn from the app's result screen) ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  aspect-ratio: 9 / 19;
  border-radius: 38px;
  background: #0a1510;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: var(--ground);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
}
.screen .status {
  display: flex;
  justify-content: space-between;
  padding: 9px 18px 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.screen .body {
  padding: 0 10px 10px;
  display: grid;
  gap: 7px;
  align-content: start;
}
.m-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 16px;
  padding: 10px;
}
.m-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.m-area {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 7px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.m-area.is-limit {
  background: var(--limit-bg);
  border-color: #f8d6d6;
}

/* Verdict chip: shape, colour and word together, never colour alone. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.chip svg {
  width: 10px;
  height: 10px;
  flex: none;
}
.chip-limit { background: var(--paper); color: var(--limit-text); }
.chip-caution { background: var(--caution-bg); color: var(--caution-text); }
.chip-ok { background: var(--ok-bg); color: var(--ok-text); }

.m-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 0;
  font-weight: 700;
  font-size: 12px;
}

.example-tag {
  margin-top: 14px;
  text-align: center;
  font-size: var(--step--1);
  color: var(--on-night-2);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 6vw, 88px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-size: var(--step-3);
}
.section-head p {
  max-width: 34rem;
  font-size: var(--step-1);
  color: var(--ink-2);
  line-height: 1.55;
}

/* Three questions, each with an example answer from the app */
.answers {
  list-style: none;
  margin: 0;
  padding: 0;
}
.answers li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.answers li:last-child {
  border-bottom: 1px solid var(--line);
}
.answer-q h3 {
  font-size: var(--step-1);
  font-stretch: 85%;
}
.answer-q p {
  margin-top: 6px;
  color: var(--ink-2);
  max-width: 44ch;
}
.answer-a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-weight: 500;
  line-height: 1.4;
}
.answers-key {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.answers-key li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Verdict chip at the app's size: 16px shape, 8px gap, 12px word. */
.vchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.48px;
  line-height: 1.4;
  white-space: nowrap;
}
.vchip svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.vchip-limit { background: var(--limit-bg); color: var(--limit-text); }
.vchip-caution { background: var(--caution-bg); color: var(--caution-text); }
.vchip-ok { background: var(--ok-bg); color: var(--ok-text); }
.vchip-nodata { box-shadow: inset 0 0 0 1px var(--dashed); color: var(--ink-3); }

/* How it works: three numbered cards side by side, each showing the top of
   its screen. A real sequence, so it is numbered. */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.flow-step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.flow-media {
  height: 300px;
  overflow: hidden;
  padding: 28px 28px 0;
  background: var(--green-tint);
}
.flow-media .phone {
  max-width: 250px;
  box-shadow: 0 18px 36px rgba(14, 42, 31, 0.2);
}
.flow-text {
  padding: 22px 24px 26px;
}
.flow-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.flow-text h3 {
  margin-top: 14px;
  font-size: var(--step-1);
  font-stretch: 85%;
}
.flow-text p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* For parents and anyone watching sugar or salt: copy and three points on
   the left, a stack of app cards on the right that float gently. */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px clamp(32px, 5vw, 72px);
  align-items: center;
}
.detail-copy h2 {
  font-size: var(--step-3);
}
.detail-lede {
  margin-top: 16px;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
}
.detail-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.detail-points li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
}
.detail-points .tick {
  width: 28px;
  height: 28px;
  margin-top: 2px;
}
.detail-points h3 {
  font-size: var(--step-1);
  font-stretch: 85%;
}
.detail-points p {
  margin-top: 6px;
  color: var(--ink-2);
  max-width: 44ch;
}
.detail-visual {
  position: relative;
  min-height: 560px;
}
.dv-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(14, 42, 31, 0.12);
  color: var(--ink);
}
.dv-title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}
.dv-main {
  top: 36px;
  right: 0;
  width: min(400px, 80%);
  padding: 20px 20px 8px;
}
.dv-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-block: 10px;
  border-top: 1px solid var(--card-edge);
}
.dv-ring {
  width: 38px;
  height: 38px;
}
.dv-row > div:nth-child(2) {
  display: grid;
}
.dv-row > div:nth-child(2) span {
  color: var(--ink-3);
  font-size: 0.8125rem;
}
.dv-row b {
  font-size: 1.0625rem;
}
.dv-band {
  display: grid;
  justify-items: end;
  gap: 4px;
}
.dv-band small {
  font-size: 0.75rem;
  color: var(--ink-3);
}
.dv-ingredients {
  top: 300px;
  left: 0;
  width: min(300px, 62%);
  padding: 16px 18px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.dv-ingredients mark {
  background: var(--caution-bg);
  color: var(--caution-text);
  font-weight: 700;
  padding: 0 3px;
  border-radius: 4px;
}
.dv-ingredients small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.dv-ingredients small i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--caution-bg);
  border: 1px solid #f3d38b;
}
.dv-alert {
  bottom: 8px;
  right: 0;
  width: min(300px, 50%);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.dv-alert svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
}
.dv-badge {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--night);
  box-shadow: 0 12px 28px rgba(14, 42, 31, 0.3);
}
.dv-badge svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .dv-ingredients {
    animation: float-y 6s ease-in-out infinite;
  }
  .dv-alert {
    animation: float-y 6s ease-in-out -2s infinite;
  }
  .dv-badge {
    animation: float-y 6s ease-in-out -4s infinite;
  }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Trust pillars */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(32px, 5vw, 64px);
}
.pillars-band {
  background: var(--night);
  color: var(--on-night);
}
.pillars-band h2 {
  color: #fff;
}
.pillars-band .section-head p {
  color: var(--on-night-2);
}
.pillars li {
  padding-top: 22px;
  border-top: 2px solid rgba(126, 226, 168, 0.35);
}
.pillars .tick {
  width: 32px;
  height: 32px;
}
.pillars h3 {
  margin-top: 16px;
  font-size: var(--step-2);
  color: #fff;
}
.pillars p {
  margin-top: 10px;
  color: var(--on-night-2);
  max-width: 38ch;
}

/* More than a verdict */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  gap: 0 clamp(28px, 4vw, 48px);
}
.trio > div {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}
/* The three cards share one height, their notes sitting at the bottom */
.trio .feature-visual {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  max-width: none;
}
.trio .visual-note {
  margin-top: auto;
  padding-top: 12px;
}
/* The MRP chart draws its line from left to right, each price appearing
   and pulsing as the line reaches it, then fades and draws again (SVG
   animation in the chart; site.js pauses it off screen and, for reduced
   motion, holds it fully drawn). */
.trio h3 {
  font-size: var(--step-2);
}
.trio > div > p {
  margin-top: 12px;
  color: var(--ink-2);
}
/* The diary card: items are added through an example day and the bars
   grow with each one (site.js loops it). It fills the card's height. */
.diary-demo .targets {
  flex: 1;
  justify-content: space-evenly;
}
.diary-added {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--green-tint);
  font-size: var(--step--1);
  line-height: 1.3;
}
.diary-added .plus {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}
.diary-added .d-text {
  display: grid;
  min-width: 0;
}
.diary-added .d-amount {
  color: var(--ink-3);
  font-size: 0.8125rem;
}
.diary-added.is-new {
  animation: added-in 420ms cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes added-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.targets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.t-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.t-row b {
  white-space: nowrap;
}
.targets .bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.targets .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 700ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-reduced-motion: reduce) {
  .targets .bar i,
  .diary-added.is-new {
    transition: none;
    animation: none;
  }
}

/* Questions */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: 24px;
}
.faq-intro h2 {
  font-size: var(--step-3);
}
.faq-intro p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.55;
}
.faq {
  border-bottom: 2px solid var(--ink);
}
.faq details {
  border-top: 2px solid var(--ink);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  font-size: var(--step-1);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary:hover {
  color: var(--green);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  max-width: var(--measure);
  color: var(--ink-2);
  margin-bottom: 14px;
}
.faq details p:last-child {
  margin-bottom: 24px;
}
/* Mock screens for the steps */
.screen.dark {
  background: #0b1410;
  color: #fff;
}
.viewfinder {
  position: relative;
  margin: 26% auto 0;
  width: 70%;
  aspect-ratio: 1 / 0.8;
}
.viewfinder .corner {
  width: 30px;
  height: 30px;
  border-width: 0;
  border-color: #fff;
}
.viewfinder .corner.tl, .viewfinder .corner.tr { border-top-width: 3px; }
.viewfinder .corner.bl, .viewfinder .corner.br { border-bottom-width: 3px; }
.viewfinder .corner.tl, .viewfinder .corner.bl { border-left-width: 3px; }
.viewfinder .corner.tr, .viewfinder .corner.br { border-right-width: 3px; }
.barcode {
  position: absolute;
  inset: 26% 16%;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px, #fff 8px 11px, transparent 11px 13px);
  opacity: 0.9;
}
.scanline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: var(--mint);
}
.dark-caption {
  margin-top: auto;
  padding: 14px;
  text-align: center;
  font-size: 10px;
  color: #c9d6cf;
}
.dark-caption .pill {
  display: block;
  margin-top: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #1a2a22;
  color: #fff;
  font-weight: 600;
}
.wizard-top {
  padding: 12px 14px 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
}
.wizard-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
}
.wizard-dots i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #3a4a42;
}
.wizard-dots i.on {
  background: var(--mint);
}
.pack-frame {
  position: relative;
  margin: 14% auto 0;
  width: 76%;
  aspect-ratio: 3 / 4;
}
.pack {
  position: absolute;
  inset: 10%;
  border-radius: 6px;
  background: #e9ece6;
  color: #1b2a22;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 5px;
  font-size: 7px;
}
.pack b {
  font-size: 8px;
}
.pack .line {
  height: 4px;
  border-radius: 2px;
  background: #b9c1bb;
}
.pack .line.short {
  width: 60%;
}
.shutter {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin: 16px auto 18px;
}

/* How-it-works screens, looping while the steps are on screen (site.js adds
   .is-playing): the scan line sweeps and the corners flash mint when the
   barcode is found; the shutter fires, the frame flashes and the next
   progress dot lights; the result screen scrolls down to its sources and
   back, as if being read. */
.flow.is-playing .scanline,
.flow.is-playing .viewfinder .corner,
.flow.is-playing .shutter,
.flow.is-playing .pack-frame::after,
.flow.is-playing .wizard-dots i:nth-child(4),
.flow.is-playing .wizard-dots i:nth-child(5),
.flow.is-playing .flow-step:nth-child(3) .screen .body {
  animation-play-state: running;
}
.flow .scanline {
  animation: scan-sweep 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate paused;
}
@keyframes scan-sweep {
  from { top: 12%; }
  to { top: 88%; }
}
.flow .viewfinder .corner {
  animation: scan-found 4.4s ease infinite paused;
}
@keyframes scan-found {
  0%, 84%, 100% { border-color: #fff; }
  88%, 96% { border-color: var(--mint); }
}
.flow .shutter {
  animation: shutter-press 4.8s ease infinite paused;
}
@keyframes shutter-press {
  0%, 30%, 40%, 65%, 75%, 100% { transform: scale(1); }
  34%, 69% { transform: scale(0.82); }
}
.flow .pack-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  animation: shutter-flash 4.8s ease-out infinite paused;
}
@keyframes shutter-flash {
  0%, 33%, 44%, 68%, 79%, 100% { opacity: 0; }
  35%, 70% { opacity: 0.75; }
}
.flow .wizard-dots i:nth-child(4) {
  animation: dot-on-first 4.8s step-end infinite paused;
}
.flow .wizard-dots i:nth-child(5) {
  animation: dot-on-second 4.8s step-end infinite paused;
}
@keyframes dot-on-first {
  0% { background: #3a4a42; }
  36% { background: var(--mint); }
  96% { background: #3a4a42; }
}
@keyframes dot-on-second {
  0% { background: #3a4a42; }
  71% { background: var(--mint); }
  96% { background: #3a4a42; }
}
.flow .flow-step:nth-child(3) .screen .body {
  animation: read-scroll 8s cubic-bezier(0.45, 0, 0.55, 1) infinite paused;
}
.flow .flow-step:nth-child(3) .screen .status {
  position: relative;
  z-index: 1;
  background: var(--ground);
}
@keyframes read-scroll {
  0%, 18% { transform: translateY(0); }
  48%, 72% { transform: translateY(-120px); }
  92%, 100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .flow .scanline,
  .flow .viewfinder .corner,
  .flow .shutter,
  .flow .pack-frame::after,
  .flow .wizard-dots i:nth-child(4),
  .flow .wizard-dots i:nth-child(5),
  .flow .flow-step:nth-child(3) .screen .body {
    animation: none;
  }
}

.feature-visual {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  max-width: 460px;
}
.star-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.star-steps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 3.4em;
  align-items: center;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
}
.star-steps li:last-child {
  border-bottom: 0;
  font-weight: 800;
}
/* A five-star strip per step: each star is a grey star with a green one
   over it, clipped to how full it is. While the card is in view, every
   strip moves from the rating before its step to the rating after it, one
   step after another, and the sequence loops (site.js). */
.stars-strip {
  display: inline-flex;
  gap: 2px;
}
.st {
  position: relative;
  width: 15px;
  height: 15px;
}
.stars-strip.big .st {
  width: 19px;
  height: 19px;
}
.st svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.st .off {
  color: #cfd8d1;
}
.st .on {
  color: var(--green);
  clip-path: inset(0 calc(100% - var(--to) * 100%) 0 0);
}
.js .star-steps .st .on {
  clip-path: inset(0 calc(100% - var(--from) * 100%) 0 0);
}
.js .star-steps.is-in .st .on {
  clip-path: inset(0 calc(100% - var(--to) * 100%) 0 0);
  transition: clip-path 480ms cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: calc(200ms + var(--r) * 450ms);
}
/* The final star fills last, with a small pop as it lands */
.js .star-steps.is-in .st.pop {
  animation: star-pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(200ms + var(--r) * 450ms);
}
@keyframes star-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .js .star-steps.is-in .st.pop {
    animation: none;
  }
  .js .star-steps .st .on,
  .js .star-steps.is-in .st .on {
    clip-path: inset(0 calc(100% - var(--to) * 100%) 0 0);
    transition: none;
  }
}
.star-steps .delta {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}
.mrp-chart {
  width: 100%;
  height: auto;
  color: var(--green);
}
.visual-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* Join: a rounded brand-green band, two app screens breaking out of its
   top edge on the right. */
.cta-section {
  padding-top: clamp(96px, 10vw, 140px);
}
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  min-height: 520px;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 28px;
  background: var(--green);
  color: #fff;
}
.cta-copy {
  align-self: center;
  max-width: 34rem;
}
.cta-copy h2 {
  color: #fff;
  font-size: var(--step-3);
}
.cta-copy > p {
  margin-top: 16px;
  font-size: var(--step-1);
  line-height: 1.55;
  color: #eaf4ed;
}
.cta-steps {
  margin: 20px 0 0;
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
  color: #eaf4ed;
}
.cta-steps li::marker {
  color: var(--mint);
  font-weight: 800;
}
.cta-copy .actions {
  margin-top: 28px;
}
.cta-phones {
  position: relative;
}
.cta-phones .phone {
  position: absolute;
  box-shadow: 0 30px 60px rgba(4, 18, 11, 0.4);
}
.cta-phone-a {
  width: 290px;
  top: calc(-1 * clamp(96px, 9vw, 130px));
  right: 190px;
  z-index: 1;
}
.cta-phone-b {
  width: 232px;
  top: 0;
  right: 0;
  z-index: 2;
}
/* The Home screen, as the app draws it */
.m-home {
  position: relative;
}
.mh-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px 6px;
}
.mh-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}
.mh-brand em {
  font-style: normal;
  color: var(--green);
}
.mh-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.mh-info {
  width: 15px;
  height: 15px;
  color: var(--ink-2);
}
.mh-body {
  padding-bottom: 64px;
}
.mh-title {
  padding: 2px 2px 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.12;
}
.mh-title span {
  color: var(--green);
}
.mh-sub {
  padding: 0 2px;
  font-size: 9.5px;
  color: var(--ink-2);
}
.mh-search,
.mh-outline {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 9.5px;
}
.mh-search {
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-edge);
  color: var(--ink-3);
}
.mh-outline {
  justify-content: center;
  border: 1.2px solid var(--line);
  background: var(--card);
  color: var(--green);
  font-weight: 600;
}
.mh-search svg,
.mh-outline svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.mh-learn {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 9.5px;
}
.mh-learn svg {
  width: 16px;
  height: 16px;
}
.mh-learn span {
  color: var(--ink-3);
  font-size: 14px;
}
.mh-recent {
  display: grid;
  gap: 8px;
  padding-block: 8px;
}
.mh-recent > div {
  display: grid;
  gap: 1px;
  font-size: 10px;
}
.mh-recent > div + div {
  padding-top: 8px;
  border-top: 1px solid #eef2ed;
}
.mh-meta {
  color: var(--ink-3);
  font-size: 9px;
}
.mh-reason {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 9px;
  color: var(--ink-2);
}
.mh-most {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mh-most .m-card {
  display: grid;
  gap: 4px;
  padding: 8px;
  font-size: 9.5px;
}
.mh-most span {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 9.5px;
}
.mh-most svg {
  width: 11px;
  height: 11px;
  color: var(--green);
}
.mh-nav {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: 46px;
  padding: 6px 4px;
  border-radius: 23px;
  background: rgba(251, 252, 250, 0.92);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--card-edge);
}
.mh-nav > span {
  display: grid;
  justify-items: center;
  gap: 1px;
  font-size: 7.5px;
  color: var(--ink-3);
}
.mh-nav i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 18px;
  border-radius: 999px;
}
.mh-nav i svg {
  width: 14px;
  height: 14px;
}
.mh-nav .on {
  color: var(--green);
  font-weight: 700;
}
.mh-nav .on i {
  background: var(--green-tint);
}
.mh-scan {
  align-self: start;
  justify-self: center;
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -20px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 6px 18px rgba(30, 107, 62, 0.33);
}
.mh-scan svg {
  width: 20px;
  height: 20px;
}
.m-today {
  padding: 2px 4px 2px;
  font-size: 17px;
  font-weight: 750;
}
.m-goals {
  display: grid;
  gap: 9px;
}
.m-goal {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr) 5.6em;
  gap: 6px;
  align-items: center;
  font-size: 9.5px;
}
.m-goal b {
  text-align: right;
  font-size: 9.5px;
}
.m-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.m-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.m-list {
  display: grid;
  gap: 8px;
  font-size: 10px;
}
.m-list div {
  display: grid;
  gap: 1px;
}
.m-list span {
  color: var(--ink-3);
  font-size: 9.5px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--on-night-2);
  border-top: 1px solid rgba(126, 226, 168, 0.16);
  padding-block: 40px 48px;
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
  align-items: start;
}
.footer-grid h2 {
  font-size: var(--step--1);
  font-stretch: 100%;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.site-footer a {
  color: #fff;
}
.site-footer .brand {
  color: #fff;
}
.site-footer .name-note {
  margin-top: 12px;
  max-width: 44ch;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.site-footer .small {
  grid-column: 1 / -1;
  max-width: 70ch;
  color: var(--on-night-2);
}

/* ---------- Document pages (privacy, support) ---------- */

.doc-header {
  background: var(--night);
  color: var(--on-night);
}
.doc-header .site-header {
  color: #fff;
}
.doc-title {
  padding-block: clamp(24px, 4vw, 48px) clamp(36px, 5vw, 64px);
}
.doc-title h1 {
  color: #fff;
  font-size: var(--step-3);
}
.doc-title p {
  margin-top: 14px;
  font-size: var(--step-1);
  max-width: 40rem;
}
.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
}
.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  font-size: var(--step--1);
}
.toc h2 {
  font-size: var(--step--1);
  font-stretch: 100%;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--green);
  text-decoration: underline;
}
.prose {
  max-width: var(--measure);
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.2em;
  padding-top: 0.6em;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 16px;
}
.prose h3 {
  font-size: var(--step-1);
  font-stretch: 85%;
  margin-top: 1.8em;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6em;
}
.prose .meta {
  color: var(--ink-2);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose code {
  font-family: inherit;
  font-weight: 600;
  background: var(--green-tint);
  padding: 0 0.3em;
  border-radius: 4px;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  line-height: 1.5;
  background: var(--paper);
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  border-bottom: 3px solid var(--ink);
  font-weight: 700;
}
.prose td:first-child {
  font-weight: 600;
  min-width: 9rem;
}

/* Support */
.support-mail {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.support-mail .address {
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 85%;
  word-break: break-word;
}
.support-mail .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.copy-done {
  font-size: var(--step--1);
  color: var(--green);
  min-height: 1.5em;
}

/* For brands: three numbered step cards, then the promises as a ticked
   list (the same points as the landing page's details section). */
.prose .brand-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.prose .brand-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.prose .brand-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--night);
  color: var(--mint);
  font-weight: 800;
}
.prose .brand-steps h3,
.prose .detail-points h3 {
  margin-top: 0;
}
.prose .brand-steps p {
  margin-top: 4px;
  color: var(--ink-2);
}
.prose .detail-points {
  margin-top: 1.4em;
  padding: 0;
  gap: 20px;
}
.prose .detail-points li + li {
  margin-top: 0;
}
.apply-lead {
  font-size: var(--step-1);
  font-weight: 700;
}
.apply-note {
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* Blog: a list of post cards, and posts as one readable column with a
   join-the-test card and older/newer links at the end. */
.blog-list {
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
}
.post-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.post-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.post-card:hover {
  transform: translateY(-2px);
}
.post-card:focus-within {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.post-card time,
.post-kicker {
  font-size: var(--step--1);
  color: var(--ink-3);
}
.post-card h2 {
  font-size: var(--step-1);
  line-height: 1.3;
}
.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
/* The whole card is the link's target. */
.post-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.post-card h2 a:focus-visible {
  outline: none;
}
.post-card p {
  color: var(--ink-2);
}
.blog-feed,
.blog-empty {
  margin-top: 32px;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.post-title h1 {
  max-width: 26ch;
}
.post-kicker {
  margin-bottom: 12px;
  color: var(--on-night-2);
}
.doc-title .post-kicker {
  margin-top: 0;
  font-size: var(--step--1);
}
.post-kicker a {
  color: var(--mint);
}
.post {
  display: grid;
  justify-items: start;
  gap: clamp(40px, 5vw, 56px);
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
}
.post .prose {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.post .prose > h2:first-child {
  margin-top: 0;
}
.post-cta {
  width: 100%;
  max-width: var(--measure);
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--night);
  color: var(--on-night);
  border-radius: var(--radius-card);
}
.post-cta h2 {
  color: #fff;
  font-size: var(--step-2);
}
.post-cta .button {
  margin-top: 6px;
}
.post-more {
  width: 100%;
  max-width: var(--measure);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.post-more a {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.post-more a span {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-3);
}
.post-more a:hover {
  color: var(--green);
}
.post-more .newer {
  text-align: right;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-section {
    padding-top: clamp(56px, 6vw, 88px);
  }
  .cta-band {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    padding-bottom: 0;
  }
  .cta-phones {
    height: 330px;
  }
  .cta-phone-a {
    top: 8px;
    right: auto;
    left: calc(50% - 250px);
    width: 250px;
  }
  .cta-phone-b {
    top: 56px;
    right: auto;
    left: calc(50% - 10px);
    width: 230px;
  }
  /* Phones and tablets: the copy on the night green, then the photo below
     it with her face clear, and the result card over her basket. */
  .hero-grid {
    min-height: 0;
    align-items: start;
  }
  .hero-photo {
    top: auto;
    height: 640px;
    object-position: 64% 30%;
  }
  .hero-shade {
    background: linear-gradient(180deg, var(--night) 0%, var(--night) calc(100% - 640px), rgba(14, 42, 31, 0.12) calc(100% - 470px), rgba(14, 42, 31, 0.3) calc(100% - 200px), rgba(14, 42, 31, 0.75) 100%);
  }
  .hero-result {
    justify-self: center;
    margin-top: 270px;
  }
  .hero-result .example-tag {
    margin-inline: auto;
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-visual {
    min-height: 0;
    display: grid;
    gap: 14px;
    max-width: 440px;
    padding-top: 36px;
  }
  .dv-card {
    position: relative;
    inset: auto;
    width: auto;
  }
  .dv-ingredients {
    margin-right: 40px;
  }
  .dv-alert {
    margin-left: 40px;
  }
  .dv-badge {
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
  }
  .dv-badge svg {
    width: 32px;
    height: 32px;
  }
  .flow-media {
    height: 260px;
  }
  .section-head,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-intro {
    position: static;
  }
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }
  .trio {
    grid-template-rows: none;
    row-gap: 48px;
  }
  .trio > div {
    grid-row: auto;
    grid-template-rows: none;
  }
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
  }
  .toc ol {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 0 16px;
  }
}

@media (max-width: 720px) {
  .answers li {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta-phone-a {
    left: calc(50% - 190px);
    width: 210px;
  }
  .cta-phone-b {
    left: calc(50% - 10px);
    width: 190px;
  }
}

@media (max-width: 520px) {
  .site-header .wrap {
    flex-wrap: wrap;
  }
  .site-nav a {
    padding: 10px 8px;
  }
  .nav-wide,
  .site-nav .nav-cta {
    display: none;
  }
  .flow-media {
    height: 220px;
    padding: 24px 24px 0;
  }
  .hero .actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
