/*
  Cholestie website
  One stylesheet, no framework. Brand colors match the app theme
  (cholestie/src/theme/colors.ts); --green-ink and --cream-warm are the
  heading green and download-band cream from the approved landing design.
*/

/* ---------- Fonts (self-hosted: no third-party requests) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
}

@font-face {
  font-family: "La Belle Aurore";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/la-belle-aurore.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --green: #176B4F;
  --green-dark: #0D513E;
  --green-ink: #133A30;
  --mint: #EAF6EE;
  --mint-strong: #D3EBDC;
  --cream: #FAFBF7;
  --cream-warm: #F7F3EB;
  --surface: #FFFFFF;
  --coral: #FF6B6B;
  --coral-soft: #FDE9E5;
  --text: #1F2937;
  --logo-ink: #0D3432;
  --muted: #475569;
  --border: #E6E9E7;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-script: "La Belle Aurore", "Segoe Script", "Bradley Hand", cursive;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 80px;
  --radius-panel: clamp(24px, 3vw, 36px);
  --radius-card: 14px;
  --shadow-soft: 0 1px 2px rgb(19 58 48 / 0.04), 0 10px 28px -14px rgb(19 58 48 / 0.16);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--green-ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  --container: 780px;
}

.container--wide {
  --container: 1040px;
}

/* ---------- Type ---------- */

.eyebrow {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.display,
.h2,
.page-title {
  color: var(--green-ink);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.display {
  font-size: clamp(2.6rem, 1.35rem + 4.1vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(2rem, 1.35rem + 2.2vw, 2.9rem);
  line-height: 1.1;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

/* Handwritten notes from the design. Decorative only (aria-hidden in markup). */
.script {
  color: var(--green);
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.3;
  pointer-events: none;
  user-select: none;
}

.script svg {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.2em;
  color: var(--coral);
  vertical-align: -0.05em;
}

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgb(23 107 79 / 0.7);
}

.btn--primary:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/*
  Store badges are placeholders until the listings are live. They are not
  links. At launch, swap each <span class="store-badge"> for an <a> with the
  store URL, or for the official badge artwork from Apple and Google.
*/
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 14px;
  border: 1px solid #A6A6A6;
  border-radius: 11px;
  background: #000;
  color: #fff;
  text-decoration: none;
  user-select: none;
}

a.store-badge:hover {
  background: #1C1C1C;
  color: #fff;
}

.store-badge svg {
  flex: none;
  width: 28px;
  height: 28px;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.store-badge__small {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.store-badge--play .store-badge__small {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-badge__big {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ---------- Phone frame (wraps a screenshot; keeps the image's own proportions) ---------- */

.phone {
  position: relative;
  width: var(--phone-w, 250px);
  max-width: 100%;
  margin-inline: auto;
  padding: calc(var(--phone-w, 250px) * 0.032);
  border-radius: calc(var(--phone-w, 250px) * 0.15);
  background: linear-gradient(150deg, #34393A 0%, #121414 45%, #1E2222 100%);
  box-shadow:
    0 34px 60px -26px rgb(19 58 48 / 0.45),
    0 14px 24px -14px rgb(19 58 48 / 0.3),
    inset 0 0 0 1.5px rgb(255 255 255 / 0.1);
}

/* Side buttons */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #1A1D1D;
}

.phone::before {
  top: 24%;
  right: -2px;
  height: 11%;
}

.phone::after {
  top: 18%;
  left: -2px;
  height: 7%;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--phone-w, 250px) * 0.118);
  background: var(--surface);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(19 58 48 / 0.06);
  background: rgb(250 251 247 / 0.92);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 44px;
  color: var(--logo-ink);
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--logo-ink);
}

.brand img {
  width: auto;
  height: 1.1em;
}

.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  gap: clamp(20px, 3.2vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--green);
}

.site-nav__cta {
  display: none;
}

.header-cta {
  min-height: 50px;
  padding-inline: 28px;
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  /* Distance from the viewport edge to the content edge, same as the header. */
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding-block: 56px 88px;
}

.hero h1 .line {
  display: block;
}

.hero .lead {
  max-width: 33rem;
  margin-top: 26px;
}

.hero .store-badges {
  margin-top: 34px;
}

.store-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Phone top lines up with the eyebrow (same top padding as .hero__content). */
.hero__visual {
  position: relative;
  align-self: stretch;
  padding-block: 56px 64px;
}

/*
  The plate and hanging leaves end at the content edge, so the page keeps
  equal left and right margins at any width.
*/
.hero__meal {
  position: absolute;
  right: var(--edge);
  bottom: 48px;
  width: clamp(200px, 19vw, 280px);
  height: auto;
  border: clamp(6px, 0.7vw, 10px) solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 24px 48px -20px rgb(19 58 48 / 0.35), 0 8px 16px -8px rgb(19 58 48 / 0.18);
}

.hero__phone {
  --phone-w: clamp(260px, 21vw, 300px);
  margin: 0 0 0 4%;
  transform: rotate(-3deg);
}

/* leaves.webp is cropped along its right edge; fade that side wherever it's used. */
.hero__leaves,
.hero__sprig,
.page-hero__leaves {
  -webkit-mask-image: linear-gradient(to left, transparent, #000 40%);
  mask-image: linear-gradient(to left, transparent, #000 40%);
}

.hero__leaves {
  top: 0;
  right: var(--edge);
  width: clamp(110px, 11vw, 170px);
  transform: scaleY(-1);
}

/* Tucked behind the phone. */
.hero__sprig {
  bottom: 0;
  left: -84px;
  width: 132px;
}

.hero__note {
  position: absolute;
  top: 185px;
  right: 14px;
  font-size: 1.9rem;
  transform: rotate(-14deg);
}

/* ---------- Feature summary ---------- */

.features {
  padding-block: clamp(48px, 6vw, 76px);
  border-top: 1px solid rgb(19 58 48 / 0.05);
  background: #FDFDFB;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
}

.feature__icon svg {
  width: 36px;
  height: 36px;
}

.feature h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  max-width: 15.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- "More than a tracker" ---------- */

.story {
  position: relative;
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, calc(var(--container) / 2))
    [mid] minmax(0, calc(var(--container) / 2))
    [content-end] minmax(var(--gutter), 1fr)
    [full-end];
  align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
  overflow: hidden;
}

.story__media {
  grid-row: 1;
  grid-column: content-start / mid;
}

/* The photo carries its own curved right edge and handwritten note. */
.story__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-panel) 0 0 var(--radius-panel);
}

.story__note {
  position: absolute;
  z-index: 1;
  transform: rotate(-10deg);
}

.story__content {
  position: relative;
  grid-row: 1;
  grid-column: mid / content-end;
  padding: 40px 0 72px clamp(32px, 6vw, 88px);
}

.story__content .lead {
  margin-top: 22px;
}

.story__content .btn {
  margin-top: 34px;
}

.story__note--end {
  top: auto;
  right: 12px;
  bottom: -4px;
  left: auto;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
}

/* ---------- Real app screens ---------- */

.panel {
  max-width: 1240px;
  margin-inline: auto;
  border-radius: var(--radius-panel);
}

.screens {
  padding: 8px clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px);
}

.screens__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5vw, 64px) clamp(20px, 4vw, 56px) clamp(48px, 5vw, 72px);
  background: var(--mint);
  text-align: center;
}

.screens__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}

.screen-card .phone {
  --phone-w: 252px;
}

.screen-card h3 {
  margin-top: 30px;
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.screen-card p {
  max-width: 18rem;
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- About ---------- */

.about {
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
  text-align: center;
}

.about__inner {
  --container: 760px;
}

.about__mark {
  width: 30px;
  margin: 0 auto 20px;
}

.about .lead {
  margin-top: 18px;
}

/* ---------- Download CTA ---------- */

.download {
  padding: clamp(16px, 2vw, 24px);
}

.download__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 48px;
  overflow: hidden;
  padding: clamp(36px, 4vw, 52px) clamp(180px, 17vw, 250px) clamp(36px, 4vw, 52px) clamp(24px, 6vw, 88px);
  background: var(--cream-warm);
}

.download__copy .h2 {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
}

.download__copy .lead {
  max-width: 28rem;
  margin-top: 12px;
}

.download__stores {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.download__leaves {
  right: 0;
  bottom: 0;
  width: clamp(130px, 14vw, 200px);
}

/* ---------- FAQ ---------- */

.faq {
  padding-block: clamp(56px, 7vw, 88px) clamp(56px, 7vw, 88px);
}

.faq__header {
  margin-bottom: 30px;
  text-align: center;
}

.faq .h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.3rem);
}

.faq__list {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(19 58 48 / 0.03);
}

.faq__item h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius-card);
  background: none;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.faq__trigger:hover {
  color: var(--green-dark);
}

.faq__chevron {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq__trigger[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq__answer[hidden] {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 48px 32px;
  border-top: 1px solid var(--border);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
}

.site-footer .brand {
  font-size: 1.5rem;
}

.site-footer__tagline {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.footer-nav a[aria-current="page"] {
  color: var(--green-dark);
  font-weight: 600;
}

.site-footer__disclaimer {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Inner pages (legal & support) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px);
  background: var(--mint);
}

.page-hero .container {
  position: relative;
}

.page-hero__leaves {
  top: 0;
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  width: clamp(96px, 11vw, 160px);
  opacity: 0.85;
  transform: scaleY(-1);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #94A3B8;
}

.page-title {
  position: relative;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
  line-height: 1.1;
}

.page-hero__meta {
  margin-top: 16px;
  color: var(--muted);
}

.page-hero__sep {
  margin-inline: 0.75em;
  color: #94A3B8;
}

.page-hero .lead {
  position: relative;
  margin-top: 14px;
}

.page-body {
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px);
}

/* Long-form legal text: comfortable measure, full-size type. */
.prose {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2.2em;
  color: var(--green-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
}

.prose h2 + * {
  margin-top: 0.7em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose li::marker {
  color: var(--green);
}

.prose strong {
  font-weight: 650;
}

.legal-callout {
  padding: 16px 20px;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: var(--mint);
  color: var(--green-ink);
  font-weight: 600;
}

.legal-contact {
  font-style: normal;
  line-height: 1.7;
}

/* Contact lines that follow their lead-in sentence directly, as in the PDFs. */
.prose > .legal-contact--attached {
  margin-top: 0.2em;
}

.legal-contact--box {
  padding: 16px 20px;
  border: 1px solid var(--mint-strong);
  border-radius: 12px;
  background: var(--mint);
}

/* Cards used on Delete Account and Contact */
.stack > * + * {
  margin-top: 24px;
}

.card {
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card__title {
  margin-bottom: 14px;
  color: var(--green-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
}

.card > p + p,
.card > p + ul,
.card > ul + p,
.card > .path + .steps {
  margin-top: 14px;
}

.card > .btn {
  margin-top: 24px;
}

.muted {
  color: var(--muted);
}

.path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 600;
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 600;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%23176B4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--text);
}

.notice svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #B93C3C;
}

.card > .notice {
  margin-top: 24px;
}

.page-footnote {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  flex-direction: column;
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green);
}

.contact-card__icon svg {
  width: 26px;
  height: 26px;
}

.contact-card .card__title {
  margin-bottom: 8px;
}

.contact-card p {
  flex: 1;
  color: var(--muted);
}

.contact-card .btn {
  width: 100%;
  margin-top: 24px;
  padding-inline: 20px;
}

.contact-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact-note {
  margin-top: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1140px) {
  /* Not enough room beside the phone for the note until the layout stacks. */
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .hero__note {
    display: none;
  }
}

@media (max-width: 1100px) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  /* Header: collapse links into a toggle menu */
  .brand {
    font-size: 1.5rem;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--green-ink);
    cursor: pointer;
  }

  .nav-toggle svg {
    width: 24px;
    height: 24px;
  }

  .nav-toggle .icon-close,
  .nav-toggle[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
  }

  .site-nav {
    display: block;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    background: var(--cream);
    box-shadow: 0 18px 32px -22px rgb(19 58 48 / 0.4);
  }

  .js .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    width: 100%;
    min-height: 54px;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__cta {
    display: flex;
    width: 100%;
    margin-top: 18px;
  }

  /* Without JavaScript the menu simply shows under the logo. */
  html:not(.js) .site-header {
    position: static;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  html:not(.js) .site-nav {
    width: 100%;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  /* Hero: stack */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero__content {
    max-width: 640px;
    padding-block: 36px 8px;
  }

  .hero h1 .line {
    display: inline;
  }

  .hero__visual {
    padding-block: 36px 64px;
  }

  .hero__phone {
    --phone-w: 280px;
    margin-inline: auto;
  }

  .hero__meal {
    bottom: 32px;
    width: clamp(150px, 30vw, 220px);
  }

  /* Stacked layout: the hanging leaves would sit on the headline. */
  .hero__leaves {
    display: none;
  }

  .hero__sprig {
    left: 0;
    width: 110px;
    transform: scaleX(-1);
  }

  .hero__note {
    display: block;
    top: 70px;
    right: auto;
    left: 14px;
    font-size: 1.5rem;
  }

  /* Story: image on top */
  .story {
    grid-template-columns: [full-start] var(--gutter) [content-start mid] minmax(0, 1fr) [content-end] var(--gutter) [full-end];
    padding-block: 24px 48px;
  }

  .story__media {
    grid-column: content-start / content-end;
  }

  .story__content {
    grid-row: 2;
    grid-column: content-start / content-end;
    padding: 36px 0 0;
  }

  .story__note--end {
    display: none;
  }

  /* App screens: two across, third centred */
  .screens__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screens__grid > :last-child {
    grid-column: 1 / -1;
  }

  /* Download: stack */
  .download__panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px clamp(24px, 6vw, 48px) 44px;
    text-align: center;
  }

  .download__copy .lead {
    margin-inline: auto;
  }

  .download__stores .store-badges {
    justify-content: center;
  }

  .download__leaves {
    width: 110px;
    opacity: 0.6;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hero__phone {
    --phone-w: 248px;
  }

  .hero__note {
    display: none;
  }

  .store-badge {
    height: 52px;
  }

  .store-badge__big {
    font-size: 1.25rem;
  }

  /* Features: icon beside text so four items stay compact */
  .features__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .feature {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
    text-align: left;
  }

  .feature__icon {
    grid-row: span 2;
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .feature__icon svg {
    width: 28px;
    height: 28px;
  }

  .feature h3 {
    align-self: end;
    margin-bottom: 2px;
  }

  .feature p {
    align-self: start;
    max-width: none;
  }

  .screens__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .screen-card .phone {
    --phone-w: 260px;
  }

  .download__stores .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .download__stores .store-badge {
    width: 210px;
  }

  .download__leaves {
    display: none;
  }

  .page-hero__leaves {
    width: 80px;
    opacity: 0.45;
  }

  .site-footer__bottom {
    flex-direction: column;
  }

  .card .btn {
    width: 100%;
  }
}
