/* ==========================================================================
   RxFlavor marketing site
   Design tokens are sampled directly from the logo artwork (see
   scripts/build-brand-assets.js) so the page and the mark share one palette.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand navy — the Rx and mortar ink */
  --navy-900: #041d38;
  --navy-800: #042e58;
  --navy-700: #0a3d70;
  --navy-600: #17548d;

  /* Primary action — the raspberry splash, darkened just enough that white
     button labels clear WCAG AA */
  --berry-600: #c9155a;
  --berry-500: #de1c60;
  --berry-050: #fdeaf1;

  /*
   * Flavor accents, used sparingly for icons, markers, tags and charts.
   * Each hue carries three roles:
   *   base — saturated, for fills and illustration only, never behind text
   *   ink  — darkened, for text and for white text sitting on top of it
   *   soft — tint, for icon tiles and pills
   */
  --flavor-pink: #ec1e64;
  --flavor-pink-ink: #cf1958;
  --flavor-pink-soft: #fdeaf1;
  --flavor-orange: #f6671c;
  --flavor-orange-ink: #b44b14;
  --flavor-orange-soft: #fdeee4;
  --flavor-yellow: #f6b427;
  --flavor-yellow-ink: #96650e;
  --flavor-yellow-soft: #fdf4e2;
  --flavor-green: #56a645;
  --flavor-green-ink: #3d7d2f;
  --flavor-green-soft: #ecf6e9;
  --flavor-purple: #7b439b;
  --flavor-purple-ink: #7b439b;
  --flavor-purple-soft: #f3ecf8;
  --flavor-blue: #1f79c8;
  --flavor-blue-ink: #1a6cb4;
  --flavor-blue-soft: #e8f2fb;

  /* Neutrals */
  --ink: #10243f;
  --ink-soft: #46586f;
  --ink-mute: #647386;
  --line: #dde4ee;
  --line-soft: #ebeff6;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-warm: #fbfaf8;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgb(4 46 88 / 0.06);
  --shadow-sm: 0 2px 8px rgb(4 46 88 / 0.06);
  --shadow-md: 0 10px 28px -12px rgb(4 46 88 / 0.18);
  --shadow-lg: 0 28px 64px -32px rgb(4 46 88 / 0.32);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --wrap: 1180px;
  --gutter: 24px;

  /* Default accent, overridden per card by the .accent-* helpers */
  --accent: var(--navy-800);
  --accent-fill: var(--navy-800);
  --accent-soft: #e9eff7;
}

/*
 * Accent helpers keep flavor colour semantic instead of decorative.
 * --accent      ink that must stay legible on white
 * --accent-soft tint for icon tiles and pills
 * --accent-lift brightened version for use on the navy surfaces
 */
.accent-pink {
  --accent: var(--flavor-pink-ink);
  --accent-fill: var(--flavor-pink);
  --accent-soft: var(--flavor-pink-soft);
  --accent-lift: #ff8fb4;
}
.accent-orange {
  --accent: var(--flavor-orange-ink);
  --accent-fill: var(--flavor-orange);
  --accent-soft: var(--flavor-orange-soft);
  --accent-lift: #ffa46a;
}
.accent-yellow {
  --accent: var(--flavor-yellow-ink);
  --accent-fill: var(--flavor-yellow);
  --accent-soft: var(--flavor-yellow-soft);
  --accent-lift: var(--flavor-yellow);
}
.accent-green {
  --accent: var(--flavor-green-ink);
  --accent-fill: var(--flavor-green);
  --accent-soft: var(--flavor-green-soft);
  --accent-lift: #8ed07f;
}
.accent-purple {
  --accent: var(--flavor-purple-ink);
  --accent-fill: var(--flavor-purple);
  --accent-soft: var(--flavor-purple-soft);
  --accent-lift: #c39ad9;
}
.accent-blue {
  --accent: var(--flavor-blue-ink);
  --accent-fill: var(--flavor-blue);
  --accent-soft: var(--flavor-blue-soft);
  --accent-lift: #79b7ec;
}
.accent-navy {
  --accent: var(--navy-700);
  --accent-fill: var(--navy-700);
  --accent-soft: #e9eff7;
  --accent-lift: #9dbcd8;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy-800);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.35rem + 2.9vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.75vw, 2.6rem);
}
h3 {
  font-size: 1.125rem;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

a {
  color: var(--navy-700);
  text-decoration-color: color-mix(in srgb, var(--navy-700) 35%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--berry-600);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--berry-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible {
  outline-color: #ffffff;
}

/* Legacy in-page anchors that no longer own a section of their own. */
.anchor-alias {
  display: block;
  height: 0;
  scroll-margin-top: 96px;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 7vw, 104px) 0;
  scroll-margin-top: 76px;
}

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

.section.warm {
  background: var(--surface-warm);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--berry-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.on-dark {
  color: #ffb0c9;
}

.section-lede {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.section-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--navy-700);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  --btn-bg: var(--berry-500);
  --btn-fg: #ffffff;
  --btn-border: var(--berry-500);
  box-shadow: 0 6px 18px -8px rgb(236 30 100 / 0.7);
}
.btn-primary:hover {
  --btn-bg: var(--berry-600);
  --btn-border: var(--berry-600);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgb(236 30 100 / 0.75);
}

.btn-outline {
  --btn-bg: #ffffff;
  --btn-fg: var(--navy-800);
  --btn-border: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  --btn-border: var(--navy-600);
  color: var(--navy-800);
}

.btn-quiet {
  --btn-fg: var(--ink-soft);
  padding-inline: 12px;
}
.btn-quiet:hover {
  --btn-fg: var(--navy-800);
  transform: none;
}

.btn-on-dark {
  --btn-bg: var(--berry-500);
  --btn-fg: #ffffff;
  --btn-border: var(--berry-500);
}
.btn-on-dark:hover {
  --btn-bg: var(--berry-600);
  --btn-border: var(--berry-600);
  color: #ffffff;
}

.btn-on-dark-outline {
  --btn-fg: #ffffff;
  --btn-border: rgb(255 255 255 / 0.42);
}
.btn-on-dark-outline:hover {
  --btn-bg: rgb(255 255 255 / 0.1);
  --btn-border: #ffffff;
  color: #ffffff;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.94);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 20px -8px rgb(4 46 88 / 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

/* Brand lockup: real logo artwork, never redrawn in CSS. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 34px;
}

.brand-word {
  width: auto;
  height: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--navy-800);
  background: var(--surface-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
}

/* Sticky mobile-friendly CTA that appears after the hero. */
.sticky-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  padding: 13px 22px;
  background: var(--berry-500);
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 16px 34px -14px rgb(236 30 100 / 0.85);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.sticky-cta.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta:hover {
  background: var(--berry-600);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(60px, 7vw, 96px);
  overflow: hidden;
}

/* One restrained wash instead of the old full-bleed lavender gradient. */
.hero::before {
  content: '';
  position: absolute;
  inset: -20% 45% 30% -15%;
  background: radial-gradient(closest-side, rgb(4 46 88 / 0.07), transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -10% -20% 40% 55%;
  background: radial-gradient(closest-side, rgb(236 30 100 / 0.06), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 5vw, 56px);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-lede {
  max-width: 56ch;
  font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.15rem);
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-trial-note {
  margin: 14px 0 0;
  max-width: 42ch;
  color: var(--ink-mute);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-mute);
  font-size: 0.875rem;
  font-weight: 600;
}

.cta-note svg {
  flex: none;
  color: var(--navy-600);
}

/* Credibility strip under the hero CTAs. */
.credibility-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 22px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.credibility-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.cred-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 9px;
}

/* --------------------------------------------------------------------------
   7b. Hero journey visual
   -------------------------------------------------------------------------- */

.journey-shot {
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.journey-shot-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.journey-shot-head strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.012em;
}

.journey-shot-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  background: var(--flavor-pink-soft);
  border-radius: 999px;
  color: var(--flavor-pink-ink);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journey-shot-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.journey-shot-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.journey-shot-steps li.is-done {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}

.journey-shot-steps li.is-active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--shadow-xs);
}

.journey-shot-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.journey-shot-steps li.is-done .journey-shot-icon {
  background: color-mix(in srgb, var(--accent) 14%, white);
}

.journey-shot-steps strong {
  display: block;
  color: var(--navy-800);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.journey-shot-steps small {
  display: block;
  margin-top: 2px;
  color: var(--ink-mute);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.journey-shot-flavor {
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--radius);
  text-align: center;
}

.journey-shot-flavor-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-mute);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.journey-shot-flavor strong {
  display: block;
  color: var(--navy-800);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.journey-shot-flavor .tag {
  display: inline-block;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   7c. Journey timeline & friction benefits
   -------------------------------------------------------------------------- */

.story-steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.journey-timeline {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.journey-stage {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.journey-stage:last-child {
  border-bottom: 0;
}

.journey-stage-day {
  display: inline-flex;
  align-self: start;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.journey-stage h3 {
  margin-bottom: 6px;
}

.journey-stage p {
  font-size: 0.9375rem;
}

.friction-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.friction-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.friction-benefits .icon-tile {
  margin-bottom: 0;
  flex: none;
}

.friction-benefits strong {
  display: block;
  color: var(--navy-800);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.final-note-link {
  color: rgb(255 255 255 / 0.88);
  text-decoration-color: rgb(255 255 255 / 0.35);
}

.final-note-link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Product mockups (shared by hero and proof section)
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
}

/* -- Pharmacy app frame -- */
.app-shot {
  display: grid;
  grid-template-columns: 132px 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.app-rail {
  padding: 18px 14px;
  background: var(--navy-800);
  color: rgb(255 255 255 / 0.66);
  font-size: 0.75rem;
}

.app-rail-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.app-rail-brand img {
  width: auto;
  height: 15px;
}

.app-rail ul {
  display: grid;
  gap: 3px;
}

.app-rail li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  font-weight: 600;
}

.app-rail li svg {
  flex: none;
  opacity: 0.8;
}

.app-rail li.is-active {
  background: rgb(255 255 255 / 0.12);
  color: #ffffff;
}

.app-body {
  padding: 20px 22px 22px;
}

/* Decorative headings inside the mockups: styled like headings, not marked up
   as ones, so they stay out of the document outline. */
.shot-title {
  color: var(--navy-800);
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.app-body .shot-title {
  margin-bottom: 18px;
  font-size: 1rem;
}

.field {
  margin-bottom: 15px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-mute);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-input {
  padding: 9px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.chip svg {
  flex: none;
  color: var(--navy-600);
}

.chip.is-on {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #ffffff;
}

.chip.is-on svg {
  color: #ffffff;
}

.app-footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* A real, scannable code (see scripts/build-qr-sample.js) rather than a
   checkerboard — at this size a fake pattern reads as a transparency swatch. */
.qr-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #ffffff url('/images/brand/qr-sample.svg') center / contain no-repeat;
  border: 1px solid var(--line);
}

.pseudo-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: var(--berry-500);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* -- Patient phone frame -- */
.phone-shot {
  padding: 14px 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.phone-bar {
  width: 44px;
  height: 4px;
  margin: 0 auto 14px;
  background: var(--line);
  border-radius: 999px;
}

.phone-step {
  margin-bottom: 4px;
  color: var(--berry-600);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.phone-shot .shot-title {
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.phone-hint {
  margin-bottom: 12px;
  color: var(--ink-mute);
  font-size: 0.75rem;
}

.flavor-list {
  display: grid;
  gap: 7px;
}

.flavor-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.flavor-list li.is-on {
  border-color: var(--berry-500);
  background: var(--berry-050);
}

.flavor-dot {
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--accent-fill);
  border-radius: 50%;
}

.flavor-check {
  margin-left: auto;
  color: var(--berry-600);
  display: inline-flex;
}

.phone-next {
  margin-top: 12px;
  padding: 10px;
  background: var(--berry-500);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}

/* -- Recommendation card -- */
.rec-shot {
  padding: 16px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.rec-eyebrow {
  color: var(--ink-mute);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rec-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
}

.rec-swatch {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  border-radius: 11px;
}

.rec-name {
  display: block;
  color: var(--navy-800);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  padding: 2px 9px;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 800;
}

.rec-why {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.rec-why-title {
  margin-bottom: 8px;
  color: var(--navy-800);
  font-size: 0.75rem;
  font-weight: 800;
}

.reason-list {
  display: grid;
  gap: 6px;
}

.reason-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.45;
}

.reason-list li svg {
  flex: none;
  margin-top: 2px;
  color: var(--flavor-green-ink);
}

.rec-alts {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.rec-alts-title {
  margin-bottom: 7px;
  color: var(--ink-mute);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rec-alts ol {
  display: grid;
  gap: 6px;
  counter-reset: alt 1;
}

.rec-alts li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  counter-increment: alt;
}

.rec-alts li::before {
  content: counter(alt) '.';
  color: var(--ink-mute);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   8. Positioning strip — the four-beat product promise
   -------------------------------------------------------------------------- */
.promise {
  padding: 26px 0;
  background: var(--navy-800);
  color: #ffffff;
}

.promise-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 28px;
  align-items: start;
}

.promise-inner li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.promise-num {
  color: var(--accent-lift, #ffffff);
  font-size: 0.8125rem;
  font-weight: 800;
}

.promise-text {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.promise-sub {
  display: block;
  margin-top: 2px;
  color: rgb(255 255 255 / 0.66);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Cost of getting flavor wrong
   -------------------------------------------------------------------------- */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cost-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.cost-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
}

.cost-card h3 {
  margin-bottom: 8px;
}

.cost-card p {
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   10. Workflow
   -------------------------------------------------------------------------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px 24px;
  counter-reset: step;
}

.workflow li {
  position: relative;
  counter-increment: step;
}

/* Connector rule between steps on wide layouts only. */
@media (min-width: 1024px) {
  .workflow li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(36px + 12px);
    right: -24px;
    height: 2px;
    background: var(--line);
  }
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  background: var(--accent);
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 800;
}

.workflow h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.workflow p {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   11. Why RxFlavor earns its place
   -------------------------------------------------------------------------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.benefit h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.benefit p {
  font-size: 0.9rem;
}

.trust-bar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 44px;
  padding: 24px 26px;
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  color: #ffffff;
}

.trust-bar .icon-tile {
  flex: none;
  margin-bottom: 0;
  background: rgb(255 255 255 / 0.12);
  color: #ffffff;
}

.trust-bar h3 {
  margin-bottom: 6px;
  color: #ffffff;
}

.trust-bar p {
  max-width: 78ch;
  color: rgb(255 255 255 / 0.76);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   12. Features, grouped by workflow stage
   -------------------------------------------------------------------------- */
.feature-group + .feature-group {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.feature-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.group-pip {
  width: 10px;
  height: 10px;
  background: var(--accent-fill);
  border-radius: 50%;
}

.feature-group-head h3 {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-800);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow-md);
}

.feature-card .icon-tile {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.feature-card h4 {
  margin: 0 0 8px;
  color: var(--navy-800);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.feature-card p {
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   12b. Professional Welcome Kit
   -------------------------------------------------------------------------- */
.welcome-kit-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.welcome-kit-copy .section-lede {
  margin-top: 14px;
}

.welcome-kit-intro {
  margin-top: 14px;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.welcome-kit-list-title {
  margin: 32px 0 14px;
  color: var(--navy-800);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  scroll-margin-top: 90px;
}

.welcome-kit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.welcome-kit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  color: var(--navy-800);
  font-size: 0.9375rem;
  font-weight: 600;
}

.welcome-kit-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.welcome-kit-callout {
  margin-top: 28px;
  padding: 22px 22px 20px;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: rgb(255 255 255 / 0.88);
}

.welcome-kit-callout-eyebrow {
  margin: 0 0 8px;
  color: #ffb0c9;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-kit-callout h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.welcome-kit-callout p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(255 255 255 / 0.84);
}

.welcome-kit-callout-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.welcome-kit-callout-points li {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.welcome-kit-cta {
  margin-top: 28px;
}

.welcome-kit-visual {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.welcome-kit-img {
  display: block;
  width: 100%;
  height: auto;
}

.welcome-kit-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}

@media (min-width: 640px) {
  .welcome-kit-list {
    grid-template-columns: 1fr 1fr;
  }

  .welcome-kit-benefits {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .welcome-kit-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }

  .welcome-kit-visual {
    position: sticky;
    top: 96px;
  }
}

@media (min-width: 1024px) {
  .welcome-kit-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   13. Built for trust
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  gap: clamp(32px, 4vw, 52px);
  align-items: start;
}

.trust-copy .section-head {
  margin-bottom: 24px;
}

.trust-points {
  display: grid;
  gap: 12px;
}

.trust-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.trust-points li svg {
  flex: none;
  margin-top: 3px;
  color: var(--flavor-green-ink);
}

.evidence-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.evidence-card .rec-head {
  margin-top: 10px;
}

.evidence-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.meter-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-mute);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meter-value {
  display: block;
  color: var(--navy-800);
  font-size: 0.9375rem;
  font-weight: 800;
}

.meter-track {
  display: flex;
  gap: 4px;
  margin-top: 7px;
}

.meter-track span {
  flex: 1;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
}

.meter-track span.is-filled {
  background: var(--flavor-yellow);
}

.evidence-fallback {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.evidence-fallback svg {
  flex: none;
  margin-top: 2px;
  color: var(--navy-600);
}

.evidence-fallback strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy-800);
  font-size: 0.8125rem;
}

.evidence-fallback p {
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   14. Product proof — three frames, one connected workflow
   -------------------------------------------------------------------------- */
.proof-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.proof-step {
  display: grid;
  gap: 16px;
}

.proof-caption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.proof-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--navy-800);
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 800;
}

.proof-caption h3 {
  margin-bottom: 5px;
  font-size: 0.9375rem;
}

.proof-caption p {
  font-size: 0.875rem;
}

.proof-frame {
  padding: 6px;
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.proof-frame > * {
  box-shadow: var(--shadow-sm);
}

.proof-frame .app-shot {
  grid-template-columns: 112px 1fr;
  font-size: 0.9em;
}

.proof-frame .app-rail {
  padding-inline: 11px;
  font-size: 0.6875rem;
}

.proof-frame .phone-shot {
  max-width: 240px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   15. Pricing
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.price-card.is-featured {
  border-color: var(--navy-800);
  border-width: 1.5px;
  box-shadow: var(--shadow-md);
}

.price-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--berry-050);
  border-radius: 999px;
  color: var(--berry-600);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 1.1875rem;
}

.price-amount {
  margin: 10px 0 4px;
  color: var(--navy-800);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-amount span {
  color: var(--ink-mute);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
}

.price-limit {
  color: var(--ink-mute);
  font-size: 0.875rem;
  font-weight: 600;
}

.price-desc {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.875rem;
}

.price-features {
  display: grid;
  gap: 9px;
  margin: 18px 0 24px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.price-features li svg {
  flex: none;
  margin-top: 3px;
  color: var(--flavor-green-ink);
}

.price-card .btn {
  margin-top: auto;
}

.price-trial-perks {
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.price-trial-perks li {
  font-weight: 700;
  color: var(--navy-800);
}

.price-note {
  margin-top: 22px;
  color: var(--ink-mute);
  font-size: 0.875rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  color: var(--navy-800);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--navy-600);
  border-bottom: 2px solid var(--navy-600);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq-item[open] summary {
  padding-bottom: 8px;
}

.faq-item > p {
  margin: 0;
  padding: 0 20px 18px;
  max-width: 72ch;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   17. Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  padding: clamp(56px, 6vw, 84px) 0;
  background: var(--navy-800);
  color: #ffffff;
  overflow: hidden;
  scroll-margin-top: 76px;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: -40% 60% 20% -20%;
  background: radial-gradient(closest-side, rgb(236 30 100 / 0.22), transparent 72%);
  pointer-events: none;
}

.final-inner {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

.final-inner h2 {
  color: #ffffff;
  max-width: 20ch;
}

.final-inner > div > p {
  max-width: 58ch;
  margin-top: 16px;
  color: rgb(255 255 255 / 0.78);
}

.final-inner .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.final-note {
  margin-top: 16px;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.875rem;
  font-weight: 600;
}

.final-art {
  justify-self: center;
}

.final-art img {
  width: clamp(150px, 20vw, 220px);
  height: auto;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(44px, 5vw, 64px) 0 32px;
  background: var(--navy-900);
  color: rgb(255 255 255 / 0.66);
  font-size: 0.875rem;
}

.footer-top {
  display: grid;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

/* Footer reuses the header lockup in its reversed form, one size larger. */
.footer-brand .brand-mark {
  height: 46px;
}

.footer-brand .brand-word {
  height: 22px;
}

.footer-tagline {
  margin-top: 16px;
  max-width: 34ch;
  color: rgb(255 255 255 / 0.66);
  font-size: 0.875rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 28px;
}

.footer-nav-end {
  display: grid;
  gap: 22px;
  grid-column: span 1;
}

.footer-nav-end-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-branding .footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.82);
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: rgb(255 255 255 / 0.16);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-nav h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 9px;
}

.footer-nav a {
  color: rgb(255 255 255 / 0.68);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 24px;
}

.footer-disclaimer {
  max-width: 74ch;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.footer-bottom small {
  color: rgb(255 255 255 / 0.5);
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .btn:hover,
  .cost-card:hover,
  .feature-card:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 48px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(220px, 1.35fr);
    align-items: start;
  }

  .footer-nav-end {
    grid-column: 3;
  }

  .final-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
  }
}

@media (min-width: 900px) {
  .trust-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
  }

  /* Overlap the three product frames into one composed shot. The padding
     reserves the space the absolutely positioned frames overhang into. */
  .hero-visual:has(.app-shot) {
    display: block;
    padding: 0 100px 206px 0;
  }

  .hero-visual:has(.journey-shot) {
    padding: 0;
  }

  /* Tall enough that the recommendation card lands on empty space rather than
     slicing through the form fields behind it. */
  .hero-visual .app-shot {
    position: relative;
    z-index: 1;
    min-height: 500px;
  }

  .hero-visual .phone-shot {
    position: absolute;
    top: 30px;
    right: 0;
    z-index: 3;
    width: 184px;
  }

  .hero-visual .rec-shot {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 320px;
  }
}

@media (max-width: 1023px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Mobile menu revealed by the header toggle. The toggle keeps order 0 so it
     stays on the first row beside the brand while the panels wrap beneath. */
  .site-header.nav-open .header-inner {
    flex-wrap: wrap;
    padding-bottom: 18px;
  }

  .site-header.nav-open .nav-links,
  .site-header.nav-open .nav-actions {
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }

  .site-header.nav-open .nav-links {
    order: 1;
  }

  .site-header.nav-open .nav-actions {
    order: 2;
  }

  .site-header.nav-open .nav-links a {
    padding: 10px 12px;
  }

  .site-header.nav-open .nav-actions .btn {
    flex: 1 1 140px;
  }

  .hero-visual {
    max-width: 480px;
    margin-inline: auto;
  }

  .journey-stage {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .phone-shot {
    max-width: 300px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  :root {
    --gutter: 18px;
  }

  /* Compact brand mark only in the nav — the wordmark crowds the toggle at
     this width. The footer keeps the full lockup. */
  .site-header .brand-word {
    display: none;
  }

  .site-header .brand-mark {
    height: 32px;
  }

  .hero .cta-row .btn,
  .final-inner .cta-row .btn {
    width: 100%;
  }

  .credibility-strip {
    grid-template-columns: 1fr;
  }

  .app-shot,
  .proof-frame .app-shot {
    grid-template-columns: 1fr;
  }

  .app-rail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
  }

  .app-rail-brand {
    margin-bottom: 0;
  }

  .app-rail ul {
    display: none;
  }

  .evidence-meta {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-cta {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.about-hero .about-hero-goal {
  margin-top: 0.85rem;
}

.about-split {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

@media (min-width: 900px) {
  .about-split {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  }

  .about-split .section-head {
    margin-bottom: 0;
  }
}

.about-callout {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.about-callout h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.about-callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-step-icon {
  margin: 0.85rem 0 0.35rem;
}

.about-feature-grid .feature-card p {
  margin: 0;
}

.about-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-commitment {
  max-width: 640px;
}

.about-contact {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

@media (min-width: 760px) {
  .about-contact {
    grid-template-columns: 1fr auto;
  }
}

.about-contact .section-head,
.about-contact h2 {
  margin-bottom: 0;
}

.about-contact .section-lede {
  margin-top: 12px;
  margin-bottom: 0;
}

.about-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-links a[aria-current='page'] {
  color: var(--navy-800);
  font-weight: 800;
}

.contact-hero {
  padding-bottom: clamp(40px, 5vw, 64px);
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
    gap: 2rem;
  }
}

.contact-form-card,
.contact-aside-card {
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form[hidden],
.contact-success[hidden],
.contact-alert[hidden] {
  display: none !important;
}

.contact-grid {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-field--full {
    grid-column: 1 / -1;
  }
}

.contact-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-800);
}

.contact-field .optional {
  font-weight: 600;
  color: var(--ink-mute);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid var(--berry-600);
  outline-offset: 1px;
}

.contact-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.contact-error {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c62348;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-note {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.contact-note a {
  color: var(--berry-600);
  font-weight: 700;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

.contact-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fdedef;
  border: 1px solid #f3c1c8;
  color: #9f1239;
  font-weight: 600;
}

.contact-success h2 {
  margin: 0 0 0.5rem;
  color: var(--navy-800);
}

.contact-success p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.contact-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-aside-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy-800);
}

.contact-aside-card p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
