/* ===== Pearmint marketing site ===== */

:root {
  --green: #32cd32;
  --green-dark: #166534;
  --green-deep: #14532d;
  --tint: #f0fdf0;
  --ink: #0f172a;
  --muted: #71717a;
  --line: #e4e4e7;
  --bg: #ffffff;
  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .09);
  --shadow-phone: 0 24px 60px rgba(15, 23, 42, .22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 2.5rem); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6.5vw, 3.9rem); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.hero h1 .line { display: block; white-space: nowrap; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.num, .plan-price, .bar-val { font-variant-numeric: tabular-nums; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--green-dark); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; transition: top .15s;
}
.skip-link:focus { top: 1rem; }

.is-hidden { display: none !important; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--green-dark); color: #fff;
  box-shadow: 0 8px 20px rgba(22, 101, 52, .28);
}
.btn-primary:hover { background: var(--green-deep); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--green-dark); color: var(--green-dark); }
.btn-sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .93rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 228, 231, .7);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 132px; height: auto; }
.site-nav { display: none; gap: .25rem; margin-inline: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--green-dark); background: var(--tint); }
.header-inner > .store-badge { margin-left: auto; }
@media (min-width: 960px) {
  .site-nav { display: flex; }
  .header-inner > .store-badge { margin-left: 0; }
}

/* ===== Hero ===== */
.hero { overflow: hidden; background: #fff; }
.hero-grid { display: grid; gap: 3rem; padding: 3.5rem 0 4rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .9rem; font-size: .85rem; font-weight: 600; color: var(--green-dark);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.hero h1 .accent { color: var(--green-dark); }
.sub { font-size: 1.13rem; color: var(--muted); max-width: 34em; }

.cta-stack { margin-top: 1.75rem; }
.cta-note { margin-top: .8rem; font-size: .85rem; color: var(--muted); }

/* Real App Store badge — sized per placement via width on the img */
.store-badge { display: inline-block; line-height: 0; transition: transform .15s, opacity .15s; }
.store-badge:hover { transform: translateY(-1px); opacity: .88; }
.store-badge img { display: block; height: auto; }
.header-badge img { width: 120px; }
.hero-badge img { width: 170px; }
.closing-badge img { width: 190px; }

.hero-visual { position: relative; justify-self: center; }

/* ===== Phone frame =====
   Radius/padding/notch scale in lockstep with width (matching min(px, Nvw)
   coefficients) so bezel proportions hold at any viewport — a fixed px
   radius next to a vw-shrinking width goes chunky and over-rounded on
   narrow phones otherwise. */
.phone {
  width: min(300px, 78vw);
  background: #101418;
  border-radius: min(52px, 13.52vw);
  padding: min(11px, 2.86vw);
  box-shadow: var(--shadow-phone), inset 0 0 0 2px #2b3138;
  position: relative;
}
.phone-screen {
  position: relative; overflow: hidden; border-radius: min(41px, 10.66vw); background: #fff;
}
.phone-screen img { width: 100%; height: auto; }
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: min(22px, 5.72vw); left: 50%; transform: translateX(-50%);
  width: 27%; height: min(24px, 6.24vw); border-radius: 999px; background: #101418;
}
.hero-duo {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(1rem, 3vw, 1.75rem);
  padding: 1.5rem 0 1rem;
}
.hero-duo .phone { width: min(210px, 40vw); border-radius: min(40px, 7.62vw); padding: min(8px, 1.52vw); }
.hero-duo .phone-screen { border-radius: min(32px, 6.1vw); }
.hero-duo .phone::after { height: min(17px, 3.24vw); top: min(15px, 2.86vw); }
.hero-phone-b { margin-bottom: 2.25rem; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 4.5rem 0 5.5rem; }
  .hero-duo .phone { width: 235px; }
}

/* ===== Store strip ===== */
.stores { padding: 2.5rem 0 2.75rem; border-bottom: 1px solid var(--line); }
.stores-title { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.stores-title strong { color: var(--ink); }

.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 2.75rem;
  list-style: none; margin: 0; padding: 0 1.25rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track li { flex: none; }
.marquee-track img { width: auto; height: 40px; max-width: 96px; object-fit: contain; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* When JS hasn't duplicated the track, keep it static & scrollable-safe */
.marquee:not(.is-cloned) .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 1.5rem 2.25rem; }

/* ===== Savings band ===== */
.savings-band {
  background: #f4f4f5; color: var(--ink);
  padding: 4.5rem 0;
}
.band-eyebrow {
  display: inline-flex; align-items: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-dark); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .9rem; margin-bottom: 1rem;
}
.savings-band h2 { color: var(--ink); max-width: 18em; }
.band-accent { color: var(--green-dark); }

/* Hero number — the one figure this whole section leads with */
.band-hero {
  margin-top: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.hero-figure-label {
  margin: 0 0 .35rem; font-size: 1rem; color: var(--muted); font-weight: 600;
}
.hero-figure {
  margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(3.25rem, 9vw, 5.5rem); color: var(--ink);
}
.hero-figure-unit { font-size: .35em; font-weight: 700; color: var(--muted); margin-left: .15em; }
.hero-figure-annotation { margin: .6rem 0 0; font-size: 1.05rem; color: var(--muted); }
.hero-figure-annotation strong { color: var(--green-dark); font-weight: 800; }

/* Proof chart — supporting evidence for the hero number */
.band-chart {
  margin: 2rem 0 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

/* Desktop: hero number and chart sit side by side instead of stacked */
@media (min-width: 960px) {
  .band-columns { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
  .band-columns .band-hero { margin-top: 0; padding-bottom: 0; border-bottom: none; }
  .band-columns .band-chart { margin-top: 0; }
}
.band-chart figcaption { font-size: .9rem; color: var(--muted); margin-bottom: 1.1rem; }
.bar-row { display: grid; grid-template-columns: 105px 1fr; gap: .25rem .9rem; align-items: center; margin-bottom: 1rem; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.bar-track { background: #e4e4e7; border-radius: 999px; height: 16px; overflow: hidden; }
.bar { height: 100%; width: var(--w); border-radius: 999px; background: #d4d4d8; }
.bar-win { background: var(--green-dark); }
.bar-val { grid-column: 2; font-size: .88rem; color: var(--muted); }
.win-tag {
  font-style: normal; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--green-dark); color: #fff; border-radius: 999px; padding: .1rem .55rem; margin-left: .4rem;
}
.delta-tag {
  font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .01em;
  background: #fef2f2; color: #b91c1c; border-radius: 999px; padding: .1rem .55rem; margin-left: .4rem;
}
@media (min-width: 640px) {
  .bar-row { grid-template-columns: 120px 1fr auto; }
  .bar-val { grid-column: auto; min-width: 9.5em; }
}

.band-disclaimer { margin: 1.5rem 0 0; font-size: .82rem; color: var(--muted); max-width: 52em; }

/* ===== Feature showcase (cycling) ===== */
.showcase { padding: 4.5rem 0; }
.showcase h2 { text-align: center; margin-bottom: 2.5rem; }
.showcase-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .showcase { padding: 6rem 0; }
  .showcase-grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; }
}

.showcase-phone { justify-self: center; }
.showcase-phone .phone { width: min(300px, 74vw); border-radius: min(52px, 12.83vw); padding: min(11px, 2.71vw); }
.showcase-phone .phone-screen { border-radius: min(41px, 10.11vw); }
.showcase-phone .phone::after { height: min(24px, 5.92vw); top: min(22px, 5.43vw); }
.showcase-screen { aspect-ratio: 663 / 1440; }
.showcase-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .35s ease;
}
.showcase-img.is-active { opacity: 1; }

.showcase-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
.dot {
  width: 10px; height: 10px; padding: 0; border-radius: 999px;
  border: none; background: var(--line); cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot.is-active { background: var(--green-dark); transform: scale(1.25); }

.showcase-cards { display: grid; gap: 1rem; }

/* Mobile: a swipeable, scroll-snapped carousel — one card per view with a
   peek of the next, so 5 features don't cost a full screen of vertical
   scroll each. Desktop reverts to the original stacked list. */
.showcase-track {
  display: flex; gap: .7rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -1.25rem; padding: .15rem 1.25rem .4rem;
}
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-card {
  flex: 0 0 84%; scroll-snap-align: center;
  display: block; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font: inherit; color: inherit;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.showcase-card:hover { border-color: var(--green-dark); }
.showcase-card.is-active {
  background: var(--tint); border-color: var(--green-dark);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(22, 101, 52, .10);
}
.card-head {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: .95rem; letter-spacing: -0.02em; line-height: 1.3;
  margin-bottom: .3rem;
}
.card-head .icon { color: var(--green-dark); flex: none; }
.card-body { display: block; color: var(--muted); font-size: .875rem; line-height: 1.5; }
@media (min-width: 640px) {
  .showcase-card { flex-basis: 62%; }
}

@media (min-width: 960px) {
  .showcase-track {
    display: contents; /* dissolve the scroller; cards return to the parent grid */
  }
  .showcase-card {
    flex: initial; scroll-snap-align: none;
    padding: 1.25rem 1.5rem;
  }
  .card-head { font-size: 1.08rem; gap: .6rem; margin-bottom: .35rem; }
  .card-body { font-size: .95rem; line-height: 1.55; }
}

/* ===== Recipe strip ===== */
.recipe-strip { padding: 1.25rem 0; background: #fff; }
.marquee-track-recipes { gap: 1rem; animation-duration: 45s; }
.marquee-track-recipes img {
  width: 108px; height: 108px; max-width: none; object-fit: cover; border-radius: 16px;
}
.recipe-strip:not(.is-cloned) .marquee-track { animation: none; width: max-content; }

/* ===== How it works ===== */
.how { padding: 5rem 0; background: #f4f4f5; }
.how h2 { text-align: center; max-width: 16em; margin-inline: auto; }
.steps {
  list-style: none; counter-reset: step;
  display: grid; gap: 1.25rem; margin: 2.75rem 0 0; padding: 0;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.steps li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.step-num {
  position: absolute; top: 1.4rem; right: 1.4rem;
  font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--tint);
  -webkit-text-stroke: 1.5px var(--green-dark);
  line-height: 1;
}
.step-icon {
  width: 46px; height: 46px; padding: 11px; border-radius: 13px;
  background: var(--tint); color: var(--green-dark); margin-bottom: 1rem;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== FAQ ===== */
.faq { padding: 5rem 0; }
.faq h2 { text-align: center; margin-bottom: 2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px; padding: 1.1rem 0; cursor: pointer;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 999px; background: var(--tint); color: var(--green-dark);
  font-weight: 600; font-size: 1.2rem; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--green-dark); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; max-width: 60em; }

/* ===== Closing CTA ===== */
.closing {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #fff 0%, var(--tint) 100%);
  text-align: center;
}
.closing h2 { max-width: 16em; margin-inline: auto; }
.closing .sub { margin-inline: auto; }
.closing .store-badge { margin-top: 1.75rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img:first-child { width: 30px; }
.footer-brand img:last-child { width: 108px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.footer-nav a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer-fine { color: var(--muted); font-size: .82rem; margin: 0; max-width: 52em; }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: auto 1fr; align-items: center; }
  .footer-nav { justify-content: flex-end; }
  .footer-fine { grid-column: 1 / -1; }
}

/* ===== Legal pages ===== */
.legal-page { padding: 3rem 0 5rem; }
.legal-page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .3em; }
.legal-effective { color: var(--muted); font-weight: 600; margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 1.3rem; margin: 2.2em 0 .6em; }
.legal-page p, .legal-page li { color: #3f3f46; font-size: .98rem; }
.legal-page ul { padding-left: 1.3rem; }
.legal-page li { margin-bottom: .4rem; }
.legal-page hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.legal-page a { color: var(--green-dark); }
