@import url("/brand.css");
/* =========================================================
   DIGICLIPPY — Single-file responsive landing page
   Brand colors live in /brand.css (imported below): edit them there, not here.
   ========================================================= */

/* 01. DESIGN TOKENS / RESET */
:root {
  --blue: var(--dc-blue);
  --blue-bright: var(--dc-blue-bright);
  --blue-light: var(--dc-blue-light);
  --blue-pale: #f4faff;
  --blue-ink: #07346b;
  --navy: var(--dc-navy);
  --green: #0fb36d;
  --green-dark: #078851;
  --yellow: #ffd95a;
  --yellow-soft: #fff2b7;
  --text: #12325d;
  --muted: #657a98;
  --text-medium: #657a98;
  --text-light: #8697ac;
  --text-dark: var(--dc-navy);

  /* Legacy-token compatibility (migrated pages' inline styles) */
  --primary: var(--dc-blue);
  --primary-dark: var(--dc-blue-dark);
  --primary-light: var(--dc-blue-soft);
  --primary-bg: #eaf5ff;
  --accent: #ff7043;
  --accent-dark: #e64a19;
  --bg-light: #f4faff;
  --bg-white: #ffffff;
  --bg: #ffffff;
  --card: #ffffff;
  --border: #dceaf6;
  --border-color: #dceaf6;
  --tint: #eaf5ff;
  --tint-line: #dceaf6;
  --ink: var(--dc-navy);
  --navy-dark: #051f45;
  --good: #0fb36d;
  --good-bg: #e7f8ef;
  --bad: #e5484d;
  --err: #e5484d;
  --warn: #e08b00;
  --near: #f0f6fc;
  --container-max: 1180px;
  --section-padding: 72px;
  --line: #dceaf6;
  --white: #ffffff;
  --page: #ffffff;
  --shadow-sm: 0 10px 30px rgba(10, 62, 112, 0.08);
  --shadow-md: 0 22px 60px rgba(10, 62, 112, 0.14);
  --shadow-phone: 0 28px 55px rgba(5, 38, 75, 0.24);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button, input, textarea, select { font: inherit; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin-top: 0; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-bright);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 31px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dc-grad-start) 0%, var(--dc-grad-end) 100%);
  box-shadow: 0 13px 28px color-mix(in srgb, var(--dc-grad-start) 24%, transparent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 35px color-mix(in srgb, var(--dc-grad-start) 30%, transparent);
  filter: saturate(1.08);
}

.button:focus-visible, .nav-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--dc-blue) 25%, transparent);
  outline-offset: 4px;
}

.button-arrow { font-size: 1.35rem; line-height: 1; }

/* 02. HEADER / NAVIGATION */
.site-header {
  position: relative;
  z-index: 20;
  min-height: 82px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid color-mix(in srgb, var(--dc-blue) 6%, transparent);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--dc-blue) 18%, transparent);
}

.brand-name {
  color: var(--navy);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-name span { color: var(--blue-bright); }

.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }

.nav-link {
  color: #183c68;
  font-size: 0.91rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.nav-link:hover { color: var(--blue-bright); }

.nav-cta { min-height: 47px; padding-inline: 24px; margin-left: 9px; font-size: 0.91rem; }

.nav-org { color: #183c68; }
.nav-org:hover { color: var(--blue-bright); }

/* Mobile hamburger (hidden on desktop) */
.nav-toggle { display: none; }
.nav-toggle-bar {
  display: block;
  width: 25px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 200ms ease, opacity 160ms ease;
}

/* 03. HERO */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 615px;
  overflow: hidden;
  background: linear-gradient(160deg, #edf6fd 0%, #e5f2fd 55%, #dcedfb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  width: 530px;
  height: 440px;
  right: -95px;
  top: -95px;
  border-radius: 49% 51% 61% 39% / 39% 40% 60% 61%;
  background: #ffdf6b;
  opacity: 0.95;
  transform: rotate(-10deg);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 640px;
  height: 330px;
  left: 34%;
  bottom: -215px;
  border-radius: 50%;
  background: rgba(142, 211, 255, 0.32);
  transform: rotate(-5deg);
}

.hero-green-blob {
  position: absolute;
  z-index: -1;
  left: -90px;
  bottom: -170px;
  width: 260px;
  height: 260px;
  border-radius: 50% 42% 54% 46%;
  background: #c6eb78;
  transform: rotate(23deg);
}

.hero-inner {
  position: relative;
  min-height: 615px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: 40px;
  padding-top: 46px;
  padding-bottom: 46px;
}

.hero-copy { position: relative; z-index: 5; max-width: 555px; }

.hero h1 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(3rem, 5.2vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 .accent { display: block; color: #0878f7; }

.hero-description {
  max-width: 515px;
  margin-bottom: 28px;
  color: #486583;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.58;
}

.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }

.hero-button { min-width: 288px; }

.no-card {
  width: 288px;
  margin: 0;
  text-align: center;
  color: #5d7190;
  font-size: 0.83rem;
  font-weight: 600;
}

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

.hero-shot { position: relative; z-index: 1; width: 80%; height: auto; display: block; margin-left: auto; filter: drop-shadow(0 22px 26px rgba(8, 47, 86, 0.14)); }

.visual-blue-blob {
  position: absolute;
  z-index: 0;
  width: 445px;
  height: 390px;
  left: 70px;
  top: 63px;
  border-radius: 53% 47% 44% 56% / 51% 39% 61% 49%;
  background: linear-gradient(135deg, rgba(199, 233, 255, 0.88), rgba(159, 217, 255, 0.58));
  transform: rotate(-7deg);
}

.visual-yellow-blob {
  position: absolute;
  z-index: 0;
  width: 205px;
  height: 260px;
  right: -55px;
  bottom: -35px;
  border-radius: 55% 45% 50% 50% / 42% 56% 44% 58%;
  background: #ffe17b;
  transform: rotate(22deg);
}

.hero-phone {
  position: absolute;
  z-index: 4;
  width: min(288px, 50%);
  right: 8px;
  bottom: -34px;
}

.phone-frame {
  padding: 9px;
  background: #0b1220;
  border-radius: 42px;
  box-shadow: 0 30px 46px rgba(8, 47, 86, 0.30), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.phone-frame img {
  width: 100%;
  display: block;
  border-radius: 33px;
}

.hero-mascot {
  position: absolute;
  z-index: 3;
  width: min(300px, 49%);
  left: 1px;
  bottom: 0;
  /* mascot art is on a white background (no alpha) — multiply blends it onto the light hero */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 20px rgba(8, 47, 86, 0.13));
}

.hero-callout {
  position: absolute;
  z-index: 6;
  right: 430px;
  top: -30px;
  width: 122px;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.04;
  text-align: center;
  transform: rotate(-7deg);
}

.hero-callout::after {
  content: "";
  display: block;
  width: 58px;
  height: 16px;
  margin: 10px auto 0;
  border-bottom: 4px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.burst { position: absolute; z-index: 5; width: 54px; height: 54px; left: 36%; top: 60px; }

.burst span {
  position: absolute;
  width: 7px;
  height: 27px;
  left: 23px;
  top: 0;
  border-radius: 999px;
  background: #0878f7;
  transform-origin: 4px 48px;
}

.burst span:nth-child(1) { transform: rotate(-45deg); }
.burst span:nth-child(2) { transform: rotate(-18deg); }
.burst span:nth-child(3) { transform: rotate(13deg); }

/* 04. STATS / TRUST BAR */
.stats-wrap {
  position: relative;
  z-index: 10;
  margin-top: -1px;
  background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
}

.stats {
  position: relative;
  top: -18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dc-blue) 7%, transparent);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.stat {
  position: relative;
  min-height: 165px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-content: center;
  padding: 27px 26px;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 88px;
  right: 0;
  top: 50%;
  background: var(--line);
  transform: translateY(-50%);
}

.stat-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f3ff;
  color: #0878f7;
  font-size: 1.75rem;
  font-weight: 900;
}

.stat h3 { margin: 1px 0 8px; color: var(--navy); font-size: 1.16rem; font-weight: 900; line-height: 1.12; }

.stat p {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  color: #637895;
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.42;
}

/* 05. STORE LOGO STRIP */
.stores { padding: 26px 0 51px; background: #fff; }

.stores .eyebrow { margin-bottom: 24px; }

.logo-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 54px;
  width: max-content;
  animation: logo-scroll 55s linear infinite;
}

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

.store-logo { flex: 0 0 auto; width: auto; height: 46px; object-fit: contain; object-position: center; }

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

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 28px; }
  .logo-ticker { -webkit-mask-image: none; mask-image: none; }
  .logo-track [aria-hidden="true"] { display: none; }
}

/* 06. HOW IT WORKS */
.how-it-works {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 70px 0 79px;
  background: linear-gradient(110deg, #fff 0%, #fbfdff 48%, #f0f9ff 100%);
  border-top: 1px solid #eef5fa;
}

.how-it-works::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 520px;
  height: 520px;
  right: -190px;
  top: -95px;
  border-radius: 50%;
  background: rgba(194, 231, 255, 0.43);
}

.how-it-works::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 220px;
  right: 12%;
  bottom: -115px;
  border-radius: 50%;
  background: rgba(255, 224, 108, 0.3);
  transform: rotate(-8deg);
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 65px;
}

.how-copy h2 {
  max-width: 560px;
  margin: 0 0 15px;
  color: var(--navy);
  font-size: clamp(2.45rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.how-intro {
  max-width: 530px;
  margin-bottom: 32px;
  color: #5d7290;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}

.steps { position: relative; display: grid; gap: 22px; }

.steps::before {
  content: "";
  position: absolute;
  width: 2px;
  left: 21px;
  top: 31px;
  bottom: 31px;
  background: #d6e9fa;
}

.step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 17px;
  align-items: start;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--dc-blue-bright), var(--dc-blue));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--dc-blue) 17%, transparent);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.step h3 { margin: 1px 0 2px; color: var(--navy); font-size: 1rem; font-weight: 900; }

.step p { margin: 0; color: #687c98; font-size: 0.89rem; font-weight: 600; line-height: 1.45; }

.how-visual { position: relative; }

.how-shot { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 26px rgba(6, 49, 91, 0.14)); }

.how-blue-blob {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 340px;
  left: 37px;
  top: 48px;
  border-radius: 45% 55% 54% 46% / 50% 42% 58% 50%;
  background: linear-gradient(140deg, rgba(209, 238, 255, 0.92), rgba(171, 222, 255, 0.58));
  transform: rotate(12deg);
}

.how-yellow-blob {
  position: absolute;
  z-index: 0;
  width: 245px;
  height: 210px;
  right: 10px;
  bottom: 5px;
  border-radius: 45% 55% 39% 61% / 52% 41% 59% 48%;
  background: var(--yellow-soft);
  transform: rotate(-8deg);
}

.savings-phone {
  position: absolute;
  z-index: 3;
  width: min(315px, 54%);
  left: 28px;
  bottom: 0;
  filter: drop-shadow(0 28px 25px rgba(6, 49, 91, 0.2));
  transform: rotate(-5deg);
}

.grocery-card {
  position: absolute;
  z-index: 2;
  width: 270px;
  height: 190px;
  right: 0;
  bottom: 22px;
  border-radius: 34px 34px 48px 48px;
  background: linear-gradient(145deg, #0e74d2, #0755a2);
  box-shadow: 0 20px 35px color-mix(in srgb, var(--dc-blue) 20%, transparent);
  transform: rotate(3deg);
}

.grocery-card::before, .grocery-card::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 115px;
  top: 37px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.grocery-card::before { left: 52px; }
.grocery-card::after { right: 52px; }

.grocery-handle {
  position: absolute;
  z-index: 1;
  width: 190px;
  height: 92px;
  right: 39px;
  top: -59px;
  border: 16px solid #0a64ba;
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
}

.produce { position: absolute; z-index: 3; right: 16px; bottom: 145px; width: 235px; height: 105px; }

.produce span {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset -6px -7px 10px rgba(0, 0, 0, 0.06);
}

.produce .p1 { width: 72px; height: 72px; left: 0; background: #6bc84c; }
.produce .p2 { width: 68px; height: 68px; left: 49px; bottom: 8px; background: #f4ca33; }
.produce .p3 { width: 62px; height: 62px; left: 95px; background: #e95242; }
.produce .p4 { width: 74px; height: 74px; right: 15px; bottom: 6px; background: #70c653; }
.produce .p5 {
  width: 45px;
  height: 82px;
  right: 0;
  bottom: 11px;
  border-radius: 48% 48% 42% 42%;
  background: #f4d347;
  transform: rotate(18deg);
}

.how-callout {
  position: absolute;
  z-index: 5;
  right: 5px;
  top: 13px;
  width: 190px;
  color: var(--navy);
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  transform: rotate(-5deg);
}

.how-callout::after {
  content: "↓";
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 2.3rem;
  font-weight: 700;
  transform: rotate(22deg);
}

.accent-lines { position: absolute; z-index: 5; left: 8px; bottom: 155px; width: 55px; height: 55px; }

.accent-lines span {
  position: absolute;
  display: block;
  width: 7px;
  height: 27px;
  border-radius: 99px;
  background: #0878f7;
}

.accent-lines span:nth-child(1) { left: 4px; top: 23px; transform: rotate(70deg); }
.accent-lines span:nth-child(2) { left: 22px; top: 6px; transform: rotate(27deg); }
.accent-lines span:nth-child(3) { left: 38px; top: 20px; transform: rotate(-17deg); }

/* 07. FINAL CTA */
.final-cta-section { padding: 0 0 48px; background: #fff; }

.final-cta {
  position: relative;
  isolation: isolate;
  min-height: 165px;
  display: grid;
  grid-template-columns: 245px 1fr 245px;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: 28px 46px;
  border-radius: 27px;
  background:
    radial-gradient(circle at 12% 120%, rgba(39, 155, 255, 0.7), transparent 35%),
    linear-gradient(115deg, #086ac6 0%, #0752a3 100%);
  box-shadow: 0 20px 50px rgba(6, 73, 139, 0.17);
  color: #fff;
}

.final-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 270px;
  height: 270px;
  left: -120px;
  bottom: -190px;
  border-radius: 50%;
  background: rgba(73, 181, 255, 0.3);
}

.cta-mascot-wrap { position: relative; height: 120px; }

.cta-mascot {
  position: absolute;
  width: 135px;
  left: 0;
  bottom: -28px;
  filter: drop-shadow(0 13px 14px rgba(0, 31, 70, 0.18));
}

.cta-scribble {
  position: absolute;
  left: 152px;
  top: 2px;
  width: 135px;
  height: auto;
  display: block;
}

.cta-center { text-align: center; }

.cta-center h2 { margin: 0 0 4px; font-size: 1.45rem; font-weight: 900; }

.cta-center p {
  max-width: 430px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 600;
}

.cta-button {
  min-height: 45px;
  padding-inline: 24px;
  background: #fff;
  box-shadow: none;
  color: #0870d8;
  font-size: 0.88rem;
}

.cta-note {
  justify-self: end;
  width: 216px;
  height: auto;
  display: block;
}

/* 08. FOOTER */
.site-footer {
  background: #f5f9ff;
  border-top: 1px solid #e4eef7;
  padding: 52px 0 0;
  color: #5d7290;
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand { max-width: 300px; }

.footer-brand .brand { margin-bottom: 14px; }

.footer-tagline { margin: 0; color: #5d7290; font-size: 0.92rem; font-weight: 600; line-height: 1.55; }

/* Social icon row (partials/social.php): footer + Contact page */
.social-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #ffffff; border: 1px solid #e4eef7; color: #5d7290;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.social-row a:hover, .social-row a:focus-visible { color: var(--blue-bright); border-color: var(--blue-bright); transform: translateY(-1px); }
.social-row-lg { justify-content: center; gap: 24px; margin-top: 8px; }
.social-row-lg a { width: 46px; height: 46px; }
.social-row-lg svg { width: 22px; height: 22px; }

.footer-col h4 {
  margin: 4px 0 14px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: #5d7290;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.footer-col a:hover { color: var(--blue-bright); }

.footer-bottom {
  border-top: 1px solid #e4eef7;
  padding: 20px 0 40px;
  text-align: center;
  color: #7588a1;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 09. RESPONSIVE — TABLET */
@media (max-width: 1040px) {
  .container { width: min(calc(100% - 40px), var(--container)); }
  .desktop-nav { gap: 20px; }
  .hero-inner { grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr); gap: 10px; }
  .hero h1 { font-size: clamp(3rem, 5.7vw, 4.25rem); }
  .hero-callout { right: 0; font-size: 1.2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .how-grid { grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr); gap: 30px; }
  .final-cta { grid-template-columns: 180px 1fr 160px; padding-inline: 30px; }
  .cta-scribble { display: none; }
}

/* 10. RESPONSIVE — SMALL TABLET / MOBILE */
@media (max-width: 820px) {
  .site-header, .nav { min-height: 70px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  .desktop-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px 20px 18px;
    background: #fff;
    border-bottom: 1px solid color-mix(in srgb, var(--dc-blue) 8%, transparent);
    box-shadow: 0 22px 34px color-mix(in srgb, var(--dc-blue) 12%, transparent);
    display: none;
  }
  .desktop-nav.open { display: flex; }
  .desktop-nav .nav-link { display: none; }
  .desktop-nav.open .nav-link {
    display: block;
    padding: 14px 2px;
    font-size: 1.02rem;
    border-bottom: 1px solid color-mix(in srgb, var(--dc-blue) 7%, transparent);
  }
  .nav-cta { display: inline-flex; }
  .desktop-nav .nav-cta { margin: 16px 0 2px; justify-content: center; }
  .brand-name { font-size: 1.55rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: auto; }
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 58px;
    padding-bottom: 0;
    text-align: center;
  }
  .hero-copy { max-width: 650px; margin-inline: auto; }
  .hero .eyebrow { margin-bottom: 13px; }
  .hero h1 { max-width: 660px; margin-inline: auto; margin-bottom: 20px; font-size: clamp(3rem, 10vw, 4.8rem); }
  .hero-description { max-width: 570px; margin-inline: auto; margin-bottom: 27px; }
  .hero-actions { align-items: center; }
  .hero-visual { width: min(650px, 100%); min-height: 510px; margin-inline: auto; }
  .hero-phone { width: min(330px, 54%); right: 9%; }
  .hero-mascot { width: min(275px, 45%); left: 9%; }
  .hero-callout { right: 1%; top: 135px; }
  .visual-blue-blob { left: 19%; width: 57%; }
  .stats-wrap { padding-top: 35px; }
  .stats { top: 0; }
  .stores { padding-top: 52px; }
  .how-grid { grid-template-columns: 1fr; gap: 42px; }
  .how-copy { max-width: 620px; margin-inline: auto; }
  .how-visual { width: min(620px, 100%); margin-inline: auto; }
  .final-cta { grid-template-columns: 1fr; gap: 20px; padding: 38px 28px; text-align: center; }
  .cta-mascot-wrap { display: none; }
  .cta-note { justify-self: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

/* 11. RESPONSIVE — PHONES */
@media (max-width: 580px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .nav { gap: 10px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 1.35rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 8px; }
  .brand-mark::before { font-size: 20px; }
  .nav-cta { min-height: 41px; padding-inline: 15px; margin-left: 0; font-size: 0.77rem; }
  .hero-inner { padding-top: 46px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.75rem); line-height: 0.99; }
  .hero-description { font-size: 1rem; }
  .hero-button { width: min(100%, 315px); min-width: 0; }
  .no-card { width: auto; }
  .hero-visual { min-height: 390px; }
  .hero-phone { width: 58%; right: 2%; }
  .hero-mascot { width: 47%; left: 1%; }
  .visual-blue-blob { width: 72%; height: 300px; left: 9%; top: 65px; }
  .visual-yellow-blob { width: 150px; height: 180px; }
  .hero-callout { width: 105px; right: -4px; top: 93px; font-size: 0.95rem; }
  .burst { display: none; }
  .stats { grid-template-columns: 1fr; border-radius: 22px; }
  .stat { min-height: 125px; grid-template-columns: 52px 1fr; padding: 22px; }
  .stat:not(:last-child)::after {
    width: calc(100% - 44px);
    height: 1px;
    left: 22px;
    right: auto;
    top: auto;
    bottom: 0;
    transform: none;
  }
  .stat:nth-child(-n+2) { border-bottom: 0; }
  .stat p { grid-column: 2; margin-top: -22px; }
  .stat-icon { width: 50px; height: 50px; font-size: 1.5rem; }
  .logo-track { gap: 40px; }
  .store-logo { height: 42px; }
  .how-it-works { padding-top: 60px; }
  .how-copy h2 { font-size: clamp(2.35rem, 11vw, 3.25rem); }
  .how-visual { min-height: 390px; }
  .how-blue-blob { width: 75%; height: 280px; left: 4%; }
  .savings-phone { width: 55%; left: 3%; }
  .grocery-card { width: 49%; height: 145px; right: 0; bottom: 18px; }
  .grocery-handle { width: 70%; height: 70px; right: 15%; top: -45px; border-width: 12px; }
  .produce { right: -2%; bottom: 117px; transform: scale(0.72); transform-origin: right bottom; }
  .how-callout { width: 135px; right: 0; font-size: 1.05rem; }
  .final-cta { border-radius: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

/* 12. RESPONSIVE — VERY SMALL PHONES */
@media (max-width: 390px) {
  .container { width: calc(100% - 24px); }
  .brand-name { font-size: 1.2rem; }
  .nav-cta { padding-inline: 12px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-visual { min-height: 350px; }
  .hero-callout { display: none; }
  .how-visual { min-height: 350px; }
  .how-callout { top: 0; right: -7px; }
}

/* 13. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 14. GET-THE-APP SLIDE-IN PANEL */
.getapp[hidden] { display: none; }
.getapp { position: fixed; inset: 0; z-index: 100; }
.getapp-backdrop { position: absolute; inset: 0; background: rgba(7, 44, 97, 0.45); opacity: 0; transition: opacity 0.28s ease; }
.getapp-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(390px, 88vw);
  background: #fff; box-shadow: -20px 0 60px rgba(7, 44, 97, 0.25);
  padding: 62px 30px 34px; display: flex; flex-direction: column; gap: 14px;
  transform: translateX(100%); transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1); overflow-y: auto;
}
.getapp.open .getapp-backdrop { opacity: 1; }
.getapp.open .getapp-panel { transform: translateX(0); }
.getapp-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; background: #f0f5fb; color: #5d7290; font-size: 22px; line-height: 1; border-radius: 50%; cursor: pointer; }
.getapp-icon { width: 56px; height: 56px; border-radius: 14px; }
.getapp h2 { margin: 6px 0 0; color: var(--navy); font-size: 1.5rem; font-weight: 900; }
.getapp-sub { margin: 0 0 6px; color: #5d7290; font-weight: 600; font-size: 0.95rem; }
.getapp-btn { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 16px; background: #0b1220; color: #fff; font-weight: 700; transition: transform 0.15s ease, filter 0.15s ease; }
.getapp-btn:hover { transform: translateY(-2px); filter: brightness(1.14); }
.getapp-btn svg { width: 26px; height: 26px; flex: none; }
.getapp-btn .lbl { line-height: 1.15; }
.getapp-btn .lbl small { display: block; font-size: 0.72rem; font-weight: 600; opacity: 0.82; }
.getapp-btn .lbl b { font-size: 1.02rem; font-weight: 800; }
.getapp-btn-chrome { background: var(--dc-blue-bright); }

/* =========================================================
   INNER PAGES — shared components (new theme)
   ========================================================= */

.page-header {
  padding: 66px 0 42px;
  text-align: center;
  background: linear-gradient(160deg, #edf6fd 0%, #e5f2fd 55%, #dcedfb 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--dc-blue) 6%, transparent);
}
.page-header h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.content-section { padding: 56px 0; }
.content-section + .content-section { padding-top: 0; }

.content-section h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.content-section h3 {
  margin: 26px 0 10px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
}
.content-section p { margin: 0 0 16px; color: var(--text); line-height: 1.72; }
.content-section ul, .content-section ol { margin: 0 0 18px; padding-left: 22px; line-height: 1.72; }
.content-section li { margin-bottom: 8px; }
.content-section strong { color: var(--navy); font-weight: 800; }
.content-section a:not(.button):not(.btn):not(.btn-primary):not(.btn-secondary) {
  color: var(--blue-bright);
  font-weight: 700;
}
.content-section a:not(.button):not(.btn):not(.btn-primary):not(.btn-secondary):hover { text-decoration: underline; }

/* Button aliases used across legacy pages */
.btn, .btn-primary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dc-grad-start) 0%, var(--dc-grad-end) 100%);
  box-shadow: 0 13px 28px color-mix(in srgb, var(--dc-grad-start) 24%, transparent);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.btn:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 35px color-mix(in srgb, var(--dc-grad-start) 30%, transparent);
  filter: saturate(1.08);
}
.btn-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 26px;
  border: 2px solid color-mix(in srgb, var(--dc-blue) 28%, transparent);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}
.btn-secondary:hover { border-color: var(--blue-bright); transform: translateY(-2px); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

/* Stores page */
.stores-list-container { max-width: 960px; margin: 0 auto; }
.stores-count { text-align: center; font-size: 1.15rem; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.stores-count strong { color: var(--blue-bright); }
.stores-chrome-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; }
.chrome-icon-inline { display: inline-block; width: 18px; height: 18px; vertical-align: text-bottom; }
.stores-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.store-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(10, 62, 112, 0.05);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.store-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--dc-blue-bright) 40%, transparent);
  box-shadow: 0 12px 24px rgba(10, 62, 112, 0.1);
}
.chrome-badge {
  display: inline-block;
  width: 16px; height: 16px;
  margin-left: 8px;
  vertical-align: middle;
  background: url('/images/chrome.svg') no-repeat center / contain;
}

/* Generic section + FAQ accordion */
.section { padding: 56px 0; }

.faq-container { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(10, 62, 112, 0.05);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--navy);
}
.faq-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-bright);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 200ms ease;
}
.faq-item.faq-open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 320ms ease; }
.faq-item.faq-open .faq-answer { max-height: 640px; }
.faq-answer p { margin: 0; padding: 0 24px 22px; color: var(--text); line-height: 1.72; }

/* Tutorial / media */
.video-container {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0b1220;
}
.video-container video { display: block; width: 100%; height: auto; }
.content-container { max-width: 960px; margin: 0 auto; }

/* App-store badges (Stores page footer) */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.store-badge-link { display: inline-flex; align-items: center; }
.store-badges img { display: block; width: auto; }
.store-badges img[alt*="App Store"] { height: 44px; }
.store-badges img[alt*="Google Play"] { height: 64px; margin: -10px 0; }
