/* ==========================================================================
   Meal Planner — landing page
   Design tokens lifted straight from the app's AppDesignSystem.swift, so the
   site and the product read as one thing: a pure white canvas, separation from
   hairline borders and soft shadows rather than tinted panels.
   ========================================================================== */

:root {
  /* Palette — AppColors */
  --white: #ffffff;
  --surface: #f5f7f6;
  --border: #ebeeec;
  --green: #199e5b;
  --green-deep: #0f7a45;
  --green-bright: #22a863;
  --mint: #e7f6ee;
  --mint-soft: #edf8f1;
  --mint-deep: #dcf0e5;
  --coral: #ff5a3f;
  --ink: #121714;
  --ink-2: #6d7671;
  --ink-3: #a2aaa5;

  /* Radii — AppRadius */
  --r-card: 22px;
  --r-control: 18px;
  --r-small: 14px;
  --r-pill: 999px;

  /* White-on-white card elevation, two layers like the app */
  --shadow-card: 0 8px 16px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.025);
  --shadow-lift: 0 18px 40px rgba(18, 23, 20, 0.09), 0 2px 6px rgba(18, 23, 20, 0.04);
  --shadow-phone: 0 40px 80px -20px rgba(18, 23, 20, 0.28), 0 12px 28px -12px rgba(18, 23, 20, 0.16);

  /* Motion — AppMotion springs, translated to CSS easings */
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-bouncy: cubic-bezier(0.34, 1.4, 0.5, 1);
  --dur: 0.42s;
  --dur-snappy: 0.3s;

  /* Layout */
  --page: 1120px;
  --gutter: 20px;
  --nav-h: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--green-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--mint-deep);
  color: var(--ink);
}

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

/* ---------- Typography scale ------------------------------------------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.028em;
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.86rem, 7.4vw, 3.55rem);
}

h2 {
  font-size: clamp(1.9rem, 6.2vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 4.4vw, 1.6rem);
  letter-spacing: -0.022em;
  line-height: 1.16;
}

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

.lede {
  font-size: clamp(1.06rem, 4.1vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.014em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.eyebrow-pill {
  padding: 7px 15px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--mint);
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-align: left;
}

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

/* ---------- Layout ----------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
}

.section {
  padding-block: clamp(64px, 13vw, 116px);
}

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

.section-head .lede {
  margin-top: 16px;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

/* ---------- Skip link -------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-small);
}

/* ---------- Nav -------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(18, 23, 20, 0.04);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.02rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(15, 122, 69, 0.28);
  flex: none;
}

.brand-mark svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

.nav-links {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  margin-left: auto;
}

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
  .nav-links ~ .nav-cta {
    margin-left: 0;
  }
}

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--dur-snappy) var(--spring),
    box-shadow var(--dur-snappy) var(--spring), background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 122, 69, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(15, 122, 69, 0.32);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 17px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

/* App Store button */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 22px 12px 19px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  transition: transform var(--dur-snappy) var(--spring), box-shadow var(--dur-snappy) var(--spring);
  box-shadow: 0 8px 22px rgba(18, 23, 20, 0.22);
}

.appstore:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 23, 20, 0.28);
}

.appstore:active {
  transform: scale(0.975);
}

.appstore svg {
  width: 22px;
  height: 27.5px;
  fill: #fff;
  flex: none;
  /* the mark reads centred a hair high next to the two-line label */
  margin-top: -2px;
}

.appstore span {
  display: block;
  text-align: left;
}

.appstore .as-small {
  font-size: 0.62rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1.3;
  font-weight: 600;
}

.appstore .as-big {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

@media (max-width: 520px) {
  .cta-row {
    display: grid;
    gap: 10px;
  }
  .cta-row .appstore,
  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  .close-cta .cta-row {
    justify-items: stretch;
  }
}

.cta-note {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.87rem;
  color: var(--ink-2);
  font-weight: 500;
}

.cta-note li {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.cta-note ul {
  display: contents;
}

.tick {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--green);
}

/* Rating under the download button */
.rating {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 500;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 15px;
  height: 15px;
  color: var(--coral);
}

.rating-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rating-star {
  width: 16px;
  height: 16px;
  flex: none;
  color: #f5b301;
}

.rating strong {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rating-sep {
  color: var(--ink-3);
}

@media (max-width: 520px) {
  .rating {
    justify-content: center;
  }
}

.close-cta .rating {
  justify-content: center;
}

/* ---------- Hero ------------------------------------------------------- */

.hero {
  padding-top: clamp(34px, 7vw, 62px);
  padding-bottom: clamp(20px, 5vw, 40px);
  overflow: hidden;
}

/* Faint mint wash behind the hero so the white canvas still has a horizon */
.hero::before {
  content: "";
  position: absolute;
  inset: -140px -20% auto -20%;
  height: 620px;
  background: radial-gradient(
    58% 52% at 50% 32%,
    rgba(231, 246, 238, 0.9) 0%,
    rgba(231, 246, 238, 0) 72%
  );
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: clamp(38px, 7vw, 56px);
  align-items: center;
}

.hero-copy > * + * {
  margin-top: 22px;
}

.hero h1 .flip {
  color: var(--green-deep);
  font-style: italic;
}

.hero-strike {
  position: relative;
  /* Own line, but only as wide as the words — the strike has to stop where
     the question mark does, not run to the edge of the column. */
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

/* The line strikes itself out on load — the problem being crossed off */
.hero-strike::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 50%;
  height: 0.072em;
  border-radius: 99px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  animation: strike 0.62s var(--spring) 1.05s forwards;
}

@keyframes strike {
  to {
    transform: scaleX(1);
  }
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 40px;
  }
  .hero {
    padding-bottom: 60px;
  }
}

/* ---------- Phone frame ------------------------------------------------ */

.phone {
  position: relative;
  width: min(300px, 76vw);
  border-radius: 15% / 7.15%;
  padding: 8px;
  background: linear-gradient(155deg, #2b312e 0%, #141816 42%, #2f3633 100%);
  box-shadow: var(--shadow-phone);
  flex: none;
}

.phone::after {
  /* hairline highlight on the bezel edge */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  /* Keep the viewport locked to the real capture instead of stretching it to
     an approximate device ratio. */
  aspect-ratio: 720 / 1564;
  border-radius: 12.75% / 5.9%;
  overflow: hidden;
  background: var(--white);
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.phone-lg {
  width: min(330px, 80vw);
}

/* Floating chips that orbit the hero phone */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  box-shadow: var(--shadow-lift);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  white-space: nowrap;
  z-index: 2;
}

.chip small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}

.chip-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex: none;
}

.chip-ico svg {
  width: 16px;
  height: 16px;
}

.chip-a {
  top: 30%;
  left: -14%;
  animation: float 7s ease-in-out infinite;
}

.chip-b {
  top: 48%;
  right: -13%;
  animation: float 8.4s ease-in-out 0.6s infinite reverse;
}

.chip-c {
  bottom: 14%;
  left: -12%;
  animation: float 7.8s ease-in-out 1.1s infinite;
}

/* Keep the screenshot clean until there is genuinely enough room to hang the
   chips outside the device. */
.phone-wrap .chip {
  display: none;
}

@media (min-width: 1280px) {
  .phone-wrap .chip {
    display: flex;
  }
  .chip-a {
    left: -48%;
  }
  .chip-b {
    right: -57%;
  }
  .chip-c {
    left: -51%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}

/* ---------- Why: benefit cards ---------------------------------------- */

.ps-list {
  margin-top: clamp(34px, 6vw, 52px);
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .ps-list {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  /* The budget promise is the one people came for, so it gets the wide slot —
     split in two so the line length stays readable across it. */
  .ps-item:first-child {
    grid-column: 1 / -1;
  }
  .ps-item:first-child .ps-fix {
    flex: 1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 36px;
    align-items: center;
  }
  .ps-item:first-child .ps-tag,
  .ps-item:first-child h3 {
    grid-column: 1;
  }
  .ps-item:first-child .ps-fix p {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .ps-item:first-child h3 {
    font-size: clamp(1.3rem, 4vw, 1.62rem);
  }
}

.ps-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 4.4vw, 28px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--dur) var(--spring), transform var(--dur) var(--spring);
}

.ps-item:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.ps-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--mint);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex: none;
}

.ps-ico svg {
  width: 22px;
  height: 22px;
}

.ps-fix {
  display: grid;
  gap: 9px;
}

.ps-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.ps-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
  flex: none;
}

.ps-fix h3 {
  font-size: clamp(1.18rem, 4vw, 1.45rem);
}

.ps-fix p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .ps-item {
    flex-direction: column;
    gap: 14px;
  }
}

/* ---------- How it works ---------------------------------------------- */

.steps {
  margin-top: clamp(34px, 6vw, 52px);
  display: grid;
  gap: 18px;
  counter-reset: step;
}

@media (min-width: 780px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 4.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-n {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: 0 4px 12px rgba(15, 122, 69, 0.28);
}

.step h3 {
  font-size: 1.2rem;
}

.step p {
  color: var(--ink-2);
  font-size: 0.97rem;
}

.step-meta {
  margin-top: auto;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--mint);
  border-radius: var(--r-pill);
  align-self: start;
}

/* ---------- Feature rows ---------------------------------------------- */

.feature {
  display: grid;
  gap: clamp(30px, 6vw, 54px);
  align-items: center;
  padding-block: clamp(46px, 8vw, 74px);
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
  .feature.reverse .feature-media {
    order: -1;
  }
}

.feature-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.feature-copy h3 {
  font-size: clamp(1.55rem, 5.4vw, 2.15rem);
  letter-spacing: -0.026em;
}

.feature-copy p {
  color: var(--ink-2);
  font-size: clamp(1rem, 3.6vw, 1.1rem);
}

.feature-media {
  display: flex;
  justify-content: center;
  position: relative;
}

.f-list {
  display: grid;
  gap: 11px;
  margin-top: 4px;
  padding: 0;
}

.f-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--ink);
  font-weight: 500;
  list-style: none;
}

.f-list .tick {
  margin-top: 4px;
  width: 17px;
  height: 17px;
}

/* ---------- Live demo widgets (HTML replicas of app cards) ------------ */

.demo {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.demo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.demo-head strong {
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.demo-head .demo-val {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 10px;
  border-radius: 99px;
  background: var(--surface);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-bright), var(--green-deep));
  transition: width 1.5s var(--spring);
}

.demo.in .bar i {
  width: var(--fill, 97%);
}

.demo-sub {
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-top: -4px;
}

.demo-divider {
  height: 1px;
  background: var(--border);
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-row .chip-ico {
  background: var(--surface);
}

.demo-row-text strong {
  display: block;
  font-size: 0.99rem;
  letter-spacing: -0.015em;
}

.demo-row-text span {
  font-size: 0.83rem;
  color: var(--ink-2);
}

.demo-row .caret {
  margin-left: auto;
  color: var(--ink-3);
  width: 16px;
  height: 16px;
}

/* Week replica: the day strip, budget card, stat tiles and meal rows */

.wk-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--surface);
  border-radius: var(--r-small);
  padding: 6px 4px;
}

.wk-days span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 0 7px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.wk-days em {
  font-style: normal;
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--ink-3);
}

.wk-days b {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.wk-days .on {
  background: linear-gradient(160deg, var(--green-bright), var(--green-deep));
  box-shadow: 0 4px 10px rgba(15, 122, 69, 0.3);
}

.wk-days .on em,
.wk-days .on b {
  color: #fff;
}

.wk-card {
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  padding: 14px;
  display: grid;
  gap: 9px;
}

.wk-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wk-tiles span {
  background: var(--surface);
  border-radius: var(--r-small);
  padding: 11px 10px 12px;
  display: grid;
  gap: 1px;
  justify-items: start;
}

.wk-tiles svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  margin-bottom: 4px;
}

.wk-tiles b {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.wk-tiles em {
  font-style: normal;
  font-size: 0.73rem;
  color: var(--ink-2);
}

.wk-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.022em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wk-title em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}

.wk-meal {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.wk-meal img {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  object-fit: cover;
  flex: none;
}

.wk-meal-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wk-meal-text > strong {
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.25;
}

.wk-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.pill {
  font-style: normal;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.wk-heart {
  width: 17px;
  height: 17px;
  color: var(--coral);
  margin-left: auto;
  flex: none;
}

/* Recipe replica */

.rcp {
  gap: 12px;
}

.rcp-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-control);
}

.rcp .pill {
  justify-self: start;
}

.rcp-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1.2;
}

.rcp-swap {
  background: var(--mint);
  color: var(--green-deep);
  border-radius: var(--r-control);
  padding: 12px;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rcp-swap svg {
  width: 16px;
  height: 16px;
}

.rcp-block {
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  padding: 14px;
  display: grid;
  gap: 0;
}

.rcp-block .wk-title {
  margin-bottom: 4px;
}

.rcp-ing {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.rcp-ing b {
  margin-left: auto;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.rcp-step {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.45;
  border-top: 1px solid var(--border);
}

.rcp-step i {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}

/* Shopping list demo */
.slist {
  display: grid;
  gap: 0;
}

.slist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}

.pantry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: var(--r-small);
}

.pantry-pill svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.slist-cat {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.slist-cat span {
  display: block;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}

.slist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
}

.slist-item + .slist-item {
  border-top: 1px solid var(--border);
}

.slist-box {
  width: 25px;
  height: 25px;
  border-radius: 99px;
  border: 1.8px solid var(--border);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.32s var(--spring), border-color 0.32s var(--spring),
    transform 0.36s var(--spring-bouncy);
  color: transparent;
}

.slist-box svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.24s ease, transform 0.34s var(--spring-bouncy);
}

.slist-item.done .slist-box {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: scale(1.06);
}

.slist-item.done .slist-box svg {
  opacity: 1;
  transform: none;
}

.slist-emoji {
  font-size: 1.08rem;
  width: 22px;
  text-align: center;
  flex: none;
  filter: none;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.slist-item.done .slist-emoji {
  filter: grayscale(1);
  opacity: 0.6;
}

.slist-text strong {
  display: block;
  font-size: 0.97rem;
  letter-spacing: -0.014em;
  transition: color 0.4s ease;
  position: relative;
}

.slist-text strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 1.5px;
  background: currentColor;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.36s var(--spring);
}

.slist-item.done .slist-text strong {
  color: var(--ink-3);
}

.slist-item.done .slist-text strong::after {
  transform: scaleX(1);
}

.slist-text span {
  font-size: 0.82rem;
  color: var(--ink-2);
}

/* ---------- Idea ticker ----------------------------------------------- */

.ticker {
  position: relative;
  overflow: hidden;
  padding-block: 6px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
}

.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.ticker + .ticker .ticker-track {
  animation-duration: 54s;
  animation-direction: reverse;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.meal-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.014em;
  white-space: nowrap;
  flex: none;
}

.meal-chip em {
  font-style: normal;
  color: var(--ink-3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meal-chip b {
  font-size: 1.06rem;
  line-height: 1;
}

/* ---------- Stats ----------------------------------------------------- */

.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(30px, 5vw, 44px);
}

@media (min-width: 780px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 3.6vw, 26px);
  display: grid;
  gap: 4px;
}

.stat-n u {
  text-decoration: none;
  margin-left: 0.11em;
  font-size: 0.62em;
  letter-spacing: -0.02em;
}

.stat-n {
  font-size: clamp(2rem, 7vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

.stat-l {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

/* ---------- FAQ ------------------------------------------------------- */

.faq {
  margin-top: clamp(30px, 5vw, 44px);
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.qa {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.01rem;
  letter-spacing: -0.017em;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  margin-left: auto;
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2.2px solid var(--ink-3);
  border-bottom: 2.2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-snappy) var(--spring);
}

.qa[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.qa-body {
  padding: 0 19px 19px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.qa[open] .qa-body {
  animation: qa-in 0.34s var(--spring);
}

@keyframes qa-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- Closing CTA ----------------------------------------------- */

.close-cta {
  position: relative;
  overflow: hidden;
  border-radius: clamp(24px, 5vw, 34px);
  border: 1px solid var(--mint-deep);
  background: linear-gradient(135deg, var(--mint-soft), var(--mint-deep));
  padding: clamp(34px, 7vw, 66px) clamp(22px, 5vw, 56px);
  text-align: center;
  display: grid;
  gap: 20px;
  justify-items: center;
}

.close-cta h2 {
  max-width: 620px;
}

.close-cta .lede {
  max-width: 520px;
  color: #3d5a4a;
}

.close-cta::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -90px;
  top: -120px;
  border-radius: 99px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75), transparent 68%);
  pointer-events: none;
}

/* ---------- Footer ---------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 40px 46px;
  margin-top: clamp(16px, 3vw, 36px);
}

.footer-grid {
  display: grid;
  gap: 26px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}

.footer p {
  color: var(--ink-2);
  font-size: 0.92rem;
  max-width: 340px;
}

.footer h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 800;
  margin-bottom: 12px;
}

.footer ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.footer ul a {
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
}

.footer ul a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.footer-bottom nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.footer-bottom a {
  color: var(--ink-3);
}

.footer-bottom .btn,
.footer-bottom .btn:hover {
  color: #fff;
}

/* ---------- Blog ------------------------------------------------------ */

.blog-hero {
  padding-block: clamp(58px, 10vw, 96px) clamp(48px, 8vw, 76px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.92), transparent 25%),
    linear-gradient(145deg, var(--mint-soft), #f8fcfa 62%, var(--white));
  border-bottom: 1px solid var(--mint-deep);
}

.blog-hero-copy {
  max-width: 760px;
}

.blog-hero h1,
.article-header h1 {
  margin-top: 16px;
  font-size: clamp(2.35rem, 7.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.blog-hero .lede {
  max-width: 680px;
  margin-top: 20px;
}

.blog-grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(32px, 6vw, 48px);
}

@media (min-width: 720px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.article-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 4vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  transition: transform var(--dur-snappy) var(--spring),
    box-shadow var(--dur-snappy) var(--spring), border-color 0.2s ease;
}

.article-card:hover {
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--mint-deep);
}

.article-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--mint);
  font-size: 1.35rem;
  line-height: 1;
}

.article-card:nth-child(2n) .article-card-icon {
  background: #fff3e9;
}

.article-card:nth-child(3n) .article-card-icon {
  background: #f0f1ff;
}

.article-card-tag {
  margin-top: 20px;
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
  margin-top: 8px;
  font-size: clamp(1.25rem, 3vw, 1.52rem);
  line-height: 1.15;
}

.article-card p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-more {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--ink-2);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.article-header {
  padding-block: clamp(44px, 8vw, 78px) clamp(36px, 6vw, 58px);
  background: linear-gradient(180deg, var(--mint-soft), rgba(237, 248, 241, 0));
}

.article-header .wrap {
  max-width: 880px;
}

.article-header .eyebrow {
  margin-top: 28px;
}

.article-header .lede {
  max-width: 760px;
  margin-top: 20px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--ink-3);
  font-size: 0.88rem;
  font-weight: 600;
}

.article-byline a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.article-byline a:hover {
  color: var(--ink-2);
  text-decoration-color: currentColor;
}

.article-layout {
  display: grid;
  gap: 48px;
  padding-block: clamp(38px, 7vw, 74px) 26px;
}

@media (min-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 720px) minmax(210px, 1fr);
    align-items: start;
    gap: clamp(54px, 7vw, 86px);
  }
}

.article-body {
  min-width: 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 2vw, 1.06rem);
  line-height: 1.72;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  margin-top: 48px;
  color: var(--ink);
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  scroll-margin-top: 86px;
}

.article-body h3 {
  margin-top: 30px;
  color: var(--ink);
  font-size: clamp(1.15rem, 3vw, 1.34rem);
  scroll-margin-top: 86px;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body .article-callout,
.article-body .article-table-wrap {
  margin-top: 18px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

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

.article-body li::marker {
  color: var(--green);
  font-weight: 800;
}

.article-body strong {
  color: var(--ink);
}

.article-body a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 122, 69, 0.3);
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-color: currentColor;
}

.article-summary,
.article-callout {
  padding: clamp(20px, 4vw, 26px);
  border-radius: var(--r-control);
  border: 1px solid var(--mint-deep);
  background: var(--mint-soft);
  color: #345244;
}

.article-app-break {
  margin-block: clamp(34px, 6vw, 48px);
  padding: clamp(22px, 4vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  border: 1px solid var(--mint-deep);
  border-radius: var(--r-card);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(135deg, var(--mint-soft), var(--mint-deep));
  color: #345244;
}

.article-app-break strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.2;
}

.article-app-break p {
  margin-top: 7px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.article-app-break .btn {
  min-width: 180px;
  color: #fff;
  text-decoration: none;
}

.article-app-break .btn:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 620px) {
  .article-app-break {
    grid-template-columns: 1fr;
  }

  .article-app-break .btn {
    width: 100%;
  }
}

.article-summary strong,
.article-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-deep);
}

.article-callout.is-neutral {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink-2);
}

.article-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
}

.article-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article-table th,
.article-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-aside {
  display: grid;
  gap: 18px;
}

@media (min-width: 980px) {
  .article-aside {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
}

.article-toc,
.article-side-cta {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.article-toc strong,
.article-side-cta strong {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-toc ol {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ink-3);
  font-size: 0.86rem;
}

.article-toc a {
  color: var(--ink-2);
  font-weight: 600;
}

.article-toc li span {
  color: var(--ink-2);
  font-weight: 600;
}

.article-side-cta {
  border-color: var(--mint-deep);
  background: var(--mint-soft);
}

.article-side-cta p {
  margin-top: 8px;
  color: #486356;
  font-size: 0.88rem;
  line-height: 1.5;
}

.article-side-cta .btn {
  width: 100%;
  margin-top: 14px;
}

/* ---------- Legal / privacy page -------------------------------------- */

.legal-hero {
  padding-block: clamp(38px, 7vw, 70px) clamp(24px, 4vw, 34px);
}

.legal {
  max-width: 720px;
  padding-bottom: 20px;
}

.legal h2 {
  font-size: clamp(1.4rem, 4.6vw, 1.85rem);
  margin-top: 46px;
  scroll-margin-top: 84px;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 28px;
}

.legal p,
.legal ul,
.legal ol {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.62;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  display: grid;
  gap: 9px;
}

.legal li::marker {
  color: var(--green);
}

.legal strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-meta {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.tldr {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--mint-deep);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 4vw, 28px);
}

.tldr h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.tldr ul {
  margin-top: 14px;
  padding: 0;
  display: grid;
  gap: 11px;
}

.tldr li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  list-style: none;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
}

.tldr .tick {
  margin-top: 4px;
  width: 17px;
  height: 17px;
}

.legal-table {
  margin-top: 18px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  margin-top: 18px;
  box-shadow: var(--shadow-card);
}

.legal-table-wrap .legal-table {
  margin-top: 0;
  min-width: 480px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-2);
}

.legal-table th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-toc {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  padding: 18px 20px;
}

.legal-toc h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 800;
  margin: 0 0 10px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: 0.94rem;
}

.legal-toc a {
  color: var(--ink-2);
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}

.back-link svg {
  width: 15px;
  height: 15px;
}

.back-link:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Reveal on scroll ------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.js [data-reveal] {
  transition: opacity 0.6s var(--spring), transform 0.7s var(--spring);
  transition-delay: calc(var(--i, 0) * 0.055s);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* No JS: never leave content hidden */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Hero entrance sequence runs on load rather than on scroll */
.js .hero [data-enter] {
  opacity: 0;
  transform: translateY(20px);
  animation: enter 0.75s var(--spring) forwards;
  animation-delay: calc(0.08s + var(--i, 0) * 0.09s);
}

.js .hero .phone-wrap[data-enter] {
  transform: translateY(34px) scale(0.965);
  animation-name: enter-phone;
  animation-duration: 0.95s;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes enter-phone {
  to {
    opacity: 1;
    transform: none;
  }
}

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ---------- Reduced motion -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  [data-reveal],
  .js .hero [data-enter] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-strike::after {
    transform: scaleX(1);
  }
  .demo .bar i {
    width: var(--fill, 97%);
  }
  .slist-item.done .slist-box svg {
    opacity: 1;
    transform: none;
  }
}
