/* Pantrinho site: the same tokens as the app (lib/core/design_system). */
:root {
  --brand: #e2572c;
  --primary: #c5431b;
  --primary-pressed: #a13716;
  --primary-tint: #fce9e1;
  --lemon: #ffd449;
  --on-lemon: #2a2205;
  --ink: #15201a;
  --ink-muted: #5c685f;
  --ground: #f4f6f0;
  --surface: #ffffff;
  --line: #e1e5dc;
  --fresh: #17734c;
  --fresh-tint: #e1f0e7;
  --soon-tint: #fff4cc;
  --soon-ink: #6b4e00;
  --expired-tint: #fce4de;
  --expired-ink: #a32e1c;
  --dairy-tint: #e3ecfb;
  --dairy-ink: #2e5bcc;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 24px;
  --shadow: 0 24px 60px -24px rgb(21 32 26 / 0.35);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-pressed);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(244 246 240 / 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 800 24px/1 var(--display);
  letter-spacing: -0.02em;
}

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

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

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--ink);
  background: rgb(21 32 26 / 0.05);
}

.nav a.btn-primary,
.nav a.btn-primary:hover {
  color: #fff;
  background: var(--primary);
  padding: 0 18px;
}

.nav a.btn-primary:hover {
  background: var(--primary-pressed);
}

@media (max-width: 720px) {
  .nav .hide-sm {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font: 700 16px/1 var(--body);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

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

.btn-primary:hover {
  background: var(--primary-pressed);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  background: #fbfcf9;
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 999px;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.play-badge:hover {
  color: #fff;
}

.play-badge small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.play-badge strong {
  display: block;
  font: 700 18px/1.1 var(--body);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 96px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--on-lemon);
  font-weight: 700;
  font-size: 14px;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(44px, 7vw, 84px);
}

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

.lead {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-muted);
}

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

.note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-muted);
}

.blob {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.blob-1 {
  width: 620px;
  height: 620px;
  right: -160px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, #f07a54, var(--brand) 70%);
  opacity: 0.95;
}

.blob-2 {
  width: 240px;
  height: 240px;
  right: 380px;
  bottom: 10px;
  background: var(--lemon);
  opacity: 0.55;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .blob-1 {
    width: 460px;
    height: 460px;
    right: -180px;
    top: auto;
    bottom: -60px;
  }

  .blob-2 {
    display: none;
  }
}

/* ---------- phone mockup ---------- */

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}

.phone {
  width: 300px;
  border-radius: 44px;
  padding: 12px;
  background: #101612;
  box-shadow: var(--shadow), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
  transform: rotate(-3deg);
}

.screen {
  overflow: hidden;
  border-radius: 34px;
  background: var(--ground);
  padding: 18px 14px 20px;
  font-size: 13px;
}

.screen .status {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
  padding: 0 8px 10px;
}

.screen h4 {
  margin: 4px 6px 2px;
  font: 800 22px/1.1 var(--display);
  letter-spacing: -0.02em;
}

.screen .sub {
  margin: 0 6px 12px;
  color: var(--ink-muted);
  font-size: 12px;
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.summary div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}

.summary b {
  display: block;
  font: 800 22px/1 var(--display);
}

.summary span {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
}

.section-label {
  margin: 10px 6px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 9px 10px;
  margin-bottom: 6px;
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.tile svg {
  width: 18px;
  height: 18px;
}

.item .name {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.item .name b {
  display: block;
  font-size: 13px;
}

.item .name span {
  color: var(--ink-muted);
  font-size: 11px;
}

.badge {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}

.b-expired {
  background: var(--expired-tint);
  color: var(--expired-ink);
}

.b-soon {
  background: var(--soon-tint);
  color: var(--soon-ink);
}

.b-fresh {
  background: var(--fresh-tint);
  color: var(--fresh);
}

.t-dairy {
  background: var(--dairy-tint);
  color: var(--dairy-ink);
}

.t-produce {
  background: var(--fresh-tint);
  color: var(--fresh);
}

.t-bakery {
  background: #fbecd9;
  color: #8a4b0f;
}

.t-meat {
  background: var(--expired-tint);
  color: var(--expired-ink);
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 12px 16px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: var(--shadow);
}

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

.float-note {
  left: -10px;
  bottom: 80px;
  background: var(--lemon);
  color: var(--on-lemon);
  transform: rotate(-2deg);
}

.float-push {
  right: -10px;
  top: 64px;
  background: var(--surface);
  color: var(--ink);
  transform: rotate(3deg);
}

.float-push .icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
}

.float-push .icon img {
  width: 32px;
  height: 32px;
}

.float-push small {
  display: block;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 12px;
}

@media (max-width: 520px) {
  .phone {
    width: 270px;
  }

  .float-note {
    left: 0;
    bottom: 40px;
  }

  .float-push {
    right: 0;
    top: 24px;
  }
}

/* ---------- sections ---------- */

.section {
  padding: 96px 0;
}

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

.section-head h2 {
  font-size: clamp(34px, 5vw, 52px);
}

.section-head p {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 19px;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.feature .ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary);
}

.feature .ico svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 22px;
}

.feature p {
  margin: 8px 0 0;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

/* household band */

.band {
  background: var(--ink);
  color: #eef2ee;
  border-radius: 40px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.band h2 {
  font-size: clamp(34px, 5vw, 52px);
}

.band p {
  color: #b9c4bc;
  font-size: 19px;
}

.band ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.band li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.band li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--lemon);
}

.feed {
  background: #1a231d;
  border: 1px solid #27312a;
  border-radius: 28px;
  padding: 24px;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feed-head b {
  font: 800 22px/1 var(--display);
}

.avatars {
  display: flex;
}

.avatars span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid #1a231d;
  font-weight: 700;
  font-size: 13px;
}

.feed-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #27312a;
  font-size: 15px;
}

.feed-row .dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

.feed-row small {
  display: block;
  color: #9da9a0;
  font-size: 13px;
}

@media (max-width: 900px) {
  .band {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    border-radius: 28px;
  }
}

/* build the list by chatting */

.chatlist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.chatlist h2 {
  font-size: clamp(34px, 5vw, 52px);
}

.chatlist > div > p {
  color: var(--ink-muted);
  font-size: 19px;
}

.chatlist ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.chatlist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chatlist li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--primary);
}

.chat {
  background: var(--ground);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-head b {
  font: 800 22px/1 var(--display);
}

.chat-head svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.bubble {
  margin: 0;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
}

.bubble.me {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble.ai {
  align-self: flex-start;
  background: var(--surface);
  border-bottom-left-radius: 6px;
}

.draft {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px 16px;
  margin-top: 4px;
}

.draft-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-weight: 700;
}

.draft-head small {
  color: var(--ink-muted);
  font-weight: 500;
}

.draft-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.draft-row b {
  margin-left: auto;
  font-weight: 700;
}

.draft-row .tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
}

.draft-row .tick svg {
  width: 13px;
  height: 13px;
}

.draft-add {
  display: block;
  margin-top: 12px;
  padding: 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .chatlist {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    border-radius: 28px;
  }
}

@media (max-width: 520px) {
  .chat {
    padding: 16px;
  }
}

/* pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
}

.plan.pro {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #fff 0%, #fff8f5 100%);
}

.plan .tag {
  position: absolute;
  top: -14px;
  right: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--on-lemon);
  font-weight: 700;
  font-size: 13px;
}

.plan h3 {
  font-size: 28px;
}

.price {
  margin: 12px 0 4px;
  font: 800 44px/1 var(--display);
  letter-spacing: -0.02em;
}

.price small {
  font: 600 16px/1 var(--body);
  color: var(--ink-muted);
  letter-spacing: 0;
}

.plan .alt {
  color: var(--ink-muted);
  font-size: 15px;
}

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

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
}

.plan li svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--fresh);
}

.plan.pro li svg {
  color: var(--primary);
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* faq */

.faq {
  max-width: 820px;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 24px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 18px;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ground);
  font: 700 20px/1 var(--body);
  color: var(--primary);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 20px;
  color: var(--ink-muted);
}

/* final cta */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  border-radius: 40px;
  padding: 72px 48px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(36px, 6vw, 64px);
}

.cta p {
  max-width: 520px;
  margin: 16px auto 32px;
  font-size: 19px;
  color: #fff3ee;
}

.cta .play-badge {
  background: #fff;
  color: var(--ink);
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
}

.cta::before {
  width: 320px;
  height: 320px;
  left: -80px;
  top: -120px;
}

.cta::after {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -220px;
}

.cta > * {
  position: relative;
}

/* footer */

.site-footer {
  padding: 56px 0 40px;
  color: var(--ink-muted);
  font-size: 15px;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
}

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

.site-footer .attribution {
  flex-basis: 100%;
  font-size: 13px;
}

/* ---------- legal pages ---------- */

.doc {
  width: min(760px, 100% - 32px);
  margin: 40px auto 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 56px);
}

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

.doc .updated {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 15px;
}

.doc h2 {
  margin-top: 40px;
  font-size: 26px;
}

.doc p,
.doc li {
  color: #2b362f;
}

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

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

.doc .summary-box {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--primary-tint);
  color: var(--ink);
}

.doc .summary-box p {
  margin: 0;
}

/* ---------- reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }

  .phone {
    animation: float 7s ease-in-out infinite;
  }

  @keyframes float {
    50% {
      transform: rotate(-3deg) translateY(-10px);
    }
  }
}

/* ---------- photos ---------- */

.photo {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: 28px;
  overflow: hidden;
  background: var(--primary-tint);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empty slot, until the photo arrives. */
.photo.ph {
  border: 2px dashed rgb(197 67 27 / 0.45);
  background:
    repeating-linear-gradient(-45deg, rgb(197 67 27 / 0.06) 0 12px, transparent 12px 24px),
    var(--primary-tint);
}

.photo.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: var(--primary);
  font: 700 15px/1.3 var(--body);
}

/* 1. hero: behind the phone */
.hero-photo {
  position: absolute;
  left: -50px;
  top: 30px;
  width: 320px;
  transform: rotate(-4deg);
  box-shadow: var(--shadow);
}

.phone-stage .phone {
  position: relative;
  margin-left: 250px;
}

@media (max-width: 1100px) {
  .hero-photo {
    width: 250px;
    left: -20px;
  }

  .phone-stage .phone {
    margin-left: 190px;
  }
}

@media (max-width: 520px) {
  .hero-photo {
    width: 170px;
    left: 0;
    top: 10px;
  }

  .phone-stage .phone {
    margin-left: 90px;
  }
}


/* 5. household */
.band-media {
  position: relative;
}

.band-photo {
  border-radius: 24px;
}

.band-media .feed {
  position: relative;
  margin: -96px 24px 0;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.6);
}

@media (max-width: 520px) {
  .band-media .feed {
    margin: -64px 8px 0;
  }
}

/* 6. final CTA */
.cta-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.cta-split p {
  margin-left: 0;
}

.cta-photo {
  border-radius: 28px;
  border-color: rgb(255 255 255 / 0.6);
  background-color: rgb(255 255 255 / 0.85);
  transform: rotate(2deg);
}

@media (max-width: 860px) {
  .cta-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-split p {
    margin-left: auto;
  }
}

/* ---------- how it works: chapters ---------- */

.journey {
  display: grid;
  gap: 88px;
}

.chapter {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.chapter.flip .chapter-media {
  order: 2;
}

.chapter-media {
  position: relative;
  padding: 28px;
}

/* Soft color block behind each photo. */
.chapter-media::before {
  content: "";
  position: absolute;
  inset: 0 48px 56px 0;
  border-radius: 40px;
  z-index: -1;
}

.chapter.flip .chapter-media::before {
  inset: 0 0 56px 48px;
}

.tone-lemon::before {
  background: var(--lemon);
  opacity: 0.55;
}

.tone-tint::before {
  background: #f9cdbd;
  opacity: 0.6;
}

.tone-fresh::before {
  background: #bfe0cd;
  opacity: 0.7;
}

.chapter-media .photo {
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.chapter.flip .chapter-media .photo {
  transform: rotate(1.5deg);
}

.chapter-num {
  display: block;
  font: 800 88px/0.9 var(--display);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--brand);
  margin-bottom: 16px;
}

.chapter-text h3 {
  font-size: clamp(30px, 3.6vw, 42px);
}

.chapter-text p {
  margin: 14px 0 0;
  max-width: 42ch;
  color: var(--ink-muted);
  font-size: 18px;
}

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

.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.ticks svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
}

/* App snippets laid over the photos */
.overlay {
  position: absolute;
  background: var(--surface);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 22px 50px -18px rgb(21 32 26 / 0.45);
  font-size: 14px;
}

.ov-label {
  margin: 10px 0 6px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overlay-add {
  right: -8px;
  bottom: -24px;
  width: 270px;
  transform: rotate(2deg);
}

.ov-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ov-row .name {
  flex: 1;
  line-height: 1.2;
}

.ov-row .name span {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
}

.ov-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fresh);
  color: #fff;
}

.ov-check svg {
  width: 15px;
  height: 15px;
}

.chips {
  display: flex;
  gap: 6px;
}

.chips span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 12px;
}

.chips .on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Barcode scanner frame on the first photo */
.scanner {
  position: absolute;
  left: 30%;
  top: 46%;
  width: 26%;
  aspect-ratio: 1.4;
  border-radius: 14px;
  background:
    linear-gradient(#fff, #fff) top left / 22px 4px no-repeat,
    linear-gradient(#fff, #fff) top left / 4px 22px no-repeat,
    linear-gradient(#fff, #fff) top right / 22px 4px no-repeat,
    linear-gradient(#fff, #fff) top right / 4px 22px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 22px 4px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 4px 22px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 22px 4px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 4px 22px no-repeat;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.35));
}

.scanner span {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 12px 2px rgb(226 87 44 / 0.8);
}

.overlay-push {
  left: -10px;
  top: 18px;
  width: 290px;
  display: grid;
  gap: 2px;
  transform: rotate(-2deg);
  background: rgb(255 255 255 / 0.96);
}

.push-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--ink-muted);
  font-size: 12px;
}

.push-head img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.overlay-push span:last-child {
  color: var(--ink-muted);
}

.overlay-report {
  right: -10px;
  bottom: -28px;
  width: 260px;
  transform: rotate(-2deg);
}

.overlay-report .ov-label {
  margin-top: 0;
}

.report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.report span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.report .good {
  color: var(--fresh);
}

.report .bad {
  color: var(--expired-ink);
}

.report b {
  font: 800 26px/1.1 var(--display);
}

.bar {
  height: 8px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: var(--expired-tint);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--fresh);
}

.ov-foot {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.ov-foot strong {
  color: var(--ink);
}

.ov-foot em {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--fresh-tint);
  color: var(--fresh);
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
}

@media (max-width: 900px) {
  .journey {
    gap: 72px;
  }

  .chapter {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chapter.flip .chapter-media {
    order: 0;
  }

  .chapter-media {
    padding: 16px;
  }

  .chapter-num {
    font-size: 64px;
  }
}

@media (max-width: 520px) {
  .overlay-add,
  .overlay-report {
    width: 230px;
    right: -4px;
    bottom: -36px;
  }

  .overlay-push {
    width: 240px;
    left: -4px;
    top: -12px;
  }

  .chips span {
    padding: 5px 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scanner span {
    animation: scan 2.2s ease-in-out infinite;
  }

  @keyframes scan {
    0%,
    100% {
      top: 12%;
    }

    50% {
      top: 86%;
    }
  }
}

/* ---------- real app screens ---------- */

.screen.shot {
  padding: 0;
}

.screen.shot img {
  display: block;
  width: 100%;
  height: auto;
}

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

.tour-phone {
  position: sticky;
  top: 96px;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.tour-screen {
  position: relative;
  aspect-ratio: 720 / 1600;
}

.tour-screen img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.tour-screen img.on {
  opacity: 1;
  transform: none;
}

.tour-dots {
  display: flex;
  gap: 8px;
}

.tour-dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #c4cbbf;
  transition: width 0.3s ease, background 0.3s ease;
}

.tour-dots i.on {
  width: 22px;
  background: var(--brand);
}

.tour-step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tour-step.on {
  opacity: 1;
  transform: none;
}

.tour-num {
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.08em;
}

.tour-step h3 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 8px 0 12px;
}

.tour-step p {
  color: var(--ink-muted);
  font-size: 18px;
  max-width: 420px;
  margin: 0;
}

.tour-inline {
  display: none;
}

/* Phones: no sticky phone; each step shows its own print. */
@media (max-width: 820px) {
  .tour {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tour-phone {
    display: none;
  }

  .tour-step {
    min-height: 0;
    padding: 28px 0;
    opacity: 1;
    transform: none;
    align-items: center;
    text-align: center;
  }

  .tour-inline {
    display: block;
    width: 230px;
    height: auto;
    margin-top: 20px;
    border-radius: 28px;
    border: 9px solid #101612;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-screen img,
  .tour-step,
  .tour-dots i {
    transition: none;
  }
}

.phone.phone-sm {
  width: 230px;
  padding: 9px;
  border-radius: 34px;
  transform: none;
  animation: none;
}

.phone-sm .screen {
  border-radius: 26px;
}

/* App Store: not out yet. */
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border-radius: 16px;
  border: 1.5px dashed #b8c0b3;
  color: var(--ink);
  cursor: default;
}

.store-soon small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.store-soon strong {
  display: block;
  font: 700 18px/1.1 var(--body);
}
