/* ============================================
   HelloMaxx — style.css
   Brand: Amazica Holdings LLC portfolio
   Font: Inter
   Quality bar: TheMensRX v2.5
   ============================================ */

/* ---------- Brand tokens ---------- */
:root {
  /* Brand palette — DPR-inspired (dental blue + coral)
     Deep navy primary, coral accent, cyan highlight, slate inks.
     Variable names retained from the v1 palette so existing CSS continues to work. */
  --teal:        #0c2340;   /* deep navy — primary */
  --teal-dark:   #0e3460;
  --teal-darker: #081a30;
  --blue-700:    #0369a1;   /* mid blue — used for wordmark second word */
  --blue-600:    #0284c7;
  --blue-500:    #0891b2;
  --cyan:        #22d3ee;   /* highlight cyan — for hero "Maxx" word */
  --blue-100:    #e0f2fe;   /* pale blue tint */
  --blue-50:     #f0f9ff;   /* very pale blue background */
  --yellow:      #f97316;   /* coral — accent / CTAs */
  --yellow-soft: #FED7AA;
  --coral-dark:  #ea580c;
  --butter:      #FFEDD5;   /* warm soft tertiary */
  --butter-soft: #FFF7ED;
  --black:       #0f172a;
  --ink:         #0f172a;
  --ink-2:       #334155;
  --ink-3:       #64748b;
  --cream:       #f0f9ff;   /* cool pale background */
  --cream-deep:  #e0f2fe;
  --white:       #FFFFFF;
  --line:        #e2e8f0;
  --line-soft:   #f1f5f9;
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md:   0 4px 14px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg:   0 18px 44px rgba(15, 23, 42, 0.12), 0 6px 14px rgba(15, 23, 42, 0.06);
  --shadow-coral:0 12px 32px rgba(249, 115, 22, 0.30), 0 4px 12px rgba(15, 23, 42, 0.06);

  /* Type scale */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-med: 250ms ease;
  --t-slow: 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on, "cv11" on;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--teal-dark); }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
}

ul { list-style: none; }

::selection { background: var(--yellow); color: var(--black); }

/* Focus ring — accessible everywhere */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .section { padding: 2.75rem 0; }
}

@media (min-width: 1024px) {
  .section { padding: 3.5rem 0; }
}

.section-light  { background: var(--white); }
.section-cream  { background: var(--cream); }
.section-teal   { background: var(--teal); color: var(--white); }
.section-final  { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.eyebrow-light { color: var(--cyan); }

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
}

.section-teal .section-title { color: var(--white); }

.section-lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .section-lede { font-size: 1.25rem; }
}

.section-teal .section-lede { color: rgba(255, 255, 255, 0.9); }

/* ---------- Brand wordmark inline ---------- */
.brand-maxx {
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
}

.section-teal .btn-ghost {
  color: var(--white);
  border-color: var(--white);
}
.section-teal .btn-ghost:hover {
  background: var(--white);
  color: var(--teal);
}

.btn-sm  { padding: 0.625rem 1.125rem; font-size: 0.9375rem; }
.btn-lg  { padding: 1.0625rem 1.875rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 1.25rem;
}

@media (min-width: 768px) {
  .header-inner { padding: 0.75rem 2rem; }
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .logo-img { height: 42px; width: 42px; }
}

.logo-wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.logo-wordmark .lw-hello     { color: var(--black); }
.logo-wordmark .lw-maxx      { color: var(--blue-700); }
.logo-wordmark .lw-maxx-tail { color: var(--blue-700); }

@media (min-width: 768px) {
  .logo-wordmark { font-size: 1.375rem; }
}

.primary-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .primary-nav { display: flex; }
}

.primary-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  position: relative;
  padding: 0.25rem 0;
}
.primary-nav a:hover { color: var(--teal); }

.header-cta {
  display: none;
}
@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}
.mobile-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 0;
  font-size: 1.0625rem;
}

/* Honor the [hidden] HTML attribute (overrides display:flex above) */
[hidden] { display: none !important; }

/* Hide mobile nav entirely on desktop */
@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

/* ---------- Hero — DPR-style split: dark-left navy + clear-right photo ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--teal);
  min-height: 480px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-split {
    grid-template-columns: 1.1fr 1fr;
    min-height: 560px;
  }
}

.hero-left {
  background: var(--teal);
  color: var(--white);
  padding: 2.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-left { padding: 3rem 2rem 3.5rem; }
}

@media (min-width: 1024px) {
  .hero-left {
    padding: 4rem 4rem 4rem 5rem;
  }
}

@media (min-width: 1440px) {
  .hero-left {
    padding-left: max(5rem, calc((100vw - 1180px) / 2 + 2rem));
  }
}

.hero-left-inner {
  max-width: 540px;
  width: 100%;
}

.hero-right {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

@media (min-width: 1024px) {
  .hero-right { min-height: 0; }
}

.hero-right .hero-image-placeholder,
.hero-right img,
.hero-right video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(12, 35, 64, 0.04),
      rgba(12, 35, 64, 0.04) 12px,
      rgba(12, 35, 64, 0.08) 12px,
      rgba(12, 35, 64, 0.08) 24px
    ),
    var(--cream-deep);
  aspect-ratio: auto;
  max-height: none;
}

.hero-right img,
.hero-right video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  background: none;
}

.hero-photo {
  display: block;
}

@media (min-width: 1024px) {
  .hero-right img,
  .hero-right video {
    min-height: 0;
    height: 100%;
  }
}

/* Hero typography — light text on dark left panel */
.hero-headline {
  font-size: clamp(1.875rem, 3.8vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.125rem;
  color: var(--white);
  font-weight: 700;
}

.brand-maxx {
  color: var(--cyan);
  font-weight: 700;
}

.hero-subline {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--blue-100);
  margin-bottom: 1.75rem;
  max-width: 30em;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.875rem;
  }
}

.hero-trust {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* The hero CTA primary becomes coral against navy */
.hero-left .btn-primary {
  background: var(--yellow);
  color: var(--white);
  box-shadow: var(--shadow-coral);
}
.hero-left .btn-primary:hover {
  background: var(--coral-dark);
  color: var(--white);
}

/* Light ghost button — for the dark hero panel */
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  color: var(--white);
}

/* Hero photo placeholder special-case for split layout */
.hero-photo-split {
  width: 100%;
  aspect-ratio: auto;
  max-height: none;
  border-radius: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  box-shadow: none;
}

.placeholder-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-dark);
  line-height: 1.5;
}
.placeholder-label small {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-top: 0.5rem;
}

/* ---------- Feature grid (What is HelloMaxx) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}
.feature-card p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Steps grid (How it works) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med);
}

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

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  letter-spacing: 0;
}

.step-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Recall section (dido) ---------- */
.recall-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .recall-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

.recall-copy { max-width: 28em; }

.recall-lede {
  margin-bottom: 0;
}

.recall-bubbles {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.bubble {
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  max-width: 86%;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.bubble-from {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.bubble p {
  font-size: 1rem;
  line-height: 1.5;
}

.bubble-user {
  align-self: flex-end;
  background: var(--white);
  color: var(--ink);
  border-bottom-right-radius: 6px;
}

.bubble-maxx {
  align-self: flex-start;
  background: var(--butter);
  color: var(--black);
  border-bottom-left-radius: 6px;
}

/* ---------- For Families ---------- */
.families-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .families-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 4.5rem;
  }
}

.families-photo { aspect-ratio: 4 / 3; max-height: none; }

.families-photo-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}

.families-copy h2 { margin-bottom: 1.25rem; }
.families-copy > p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}

.families-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.families-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.families-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6 11.5L13 4.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.families-list li strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Persona grid ---------- */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .persona-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.persona-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.persona-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--yellow-soft);
  color: var(--coral-dark);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.persona-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.persona-card p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Memory ---------- */
.memory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .memory-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.memory-tier {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.memory-tier-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.memory-tier h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

.memory-tier p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.memory-note {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  background: var(--yellow-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--yellow);
}

.memory-note p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Trust grid ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.625rem;
}

.trust-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--teal-dark);
}

.trust-item p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Pricing ---------- */
.billing-toggle {
  display: flex;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 0 auto 2.5rem;
  width: fit-content;
}

.billing-option {
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.billing-option:hover { color: var(--ink); }

.billing-option.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.save-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--yellow-soft);
  color: var(--coral-dark);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.875rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med);
}

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

.pricing-card-featured {
  border: 2px solid var(--teal);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.22), var(--shadow-md);
}

@media (min-width: 768px) {
  .pricing-card-featured {
    transform: scale(1.04);
  }
  .pricing-card-featured:hover {
    transform: scale(1.04) translateY(-4px);
  }
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--white);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.30);
}

.tier-name {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.tier-tagline {
  font-size: 0.9375rem;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}

.tier-price {
  margin-bottom: 0.75rem;
  min-height: 5.5rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--ink-3);
  margin-left: 0.25rem;
}

.price-billed {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-top: 0.5rem;
}

.trial-badge {
  display: inline-block;
  background: var(--yellow-soft);
  color: var(--coral-dark);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.tier-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.tier-features li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6 11.5L13 4.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-fine-print {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-3);
  max-width: 640px;
  margin: 2.5rem auto 0;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.faq-item[open] {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 1.125rem 1.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform var(--t-fast);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--teal);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-more {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
}
.faq-more a {
  color: var(--teal);
  font-weight: 600;
}

/* ---------- Final CTA ---------- */
.final-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.signup-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.form-label .optional {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.875rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.18);
}

.signup-for {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .signup-for {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9375rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.radio-option:has(input:checked) {
  border-color: var(--teal);
  background: rgba(12, 35, 64, 0.05);
  color: var(--teal-dark);
  font-weight: 500;
}

.radio-option input[type="radio"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
}

.form-fine-print {
  font-size: 0.8125rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: 0.25rem;
  line-height: 1.5;
}

.form-message {
  font-size: 0.9375rem;
  text-align: center;
  min-height: 1.25rem;
}

.form-message.success {
  color: #0E8A4F;
  font-weight: 500;
}

.form-message.error {
  color: #C2362F;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.4fr 2fr;
    gap: 4rem;
  }
}

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

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  margin-bottom: 0;
}

.footer-wordmark {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.footer-wordmark .fw-hello     { color: var(--white); }
.footer-wordmark .fw-maxx      { color: var(--cyan); }
.footer-wordmark .fw-maxx-tail { color: var(--cyan); }

.footer-tagline {
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.footer-parent {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (min-width: 480px) {
  .footer-links { gap: 2rem; }
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  padding: 0.3125rem 0;
  transition: color var(--t-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom { padding: 1.5rem 2rem; }
}

/* ---------- Legal pages (privacy, terms, faq) ---------- */
.legal-page {
  padding: 4rem 0 5rem;
  background: var(--white);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .legal-content { padding: 0 2rem; }
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.9375rem;
  color: var(--ink-3);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--black);
}

.legal-content h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1rem 1.5rem;
  list-style: disc;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.legal-content a { color: var(--teal); text-decoration: underline; }
.legal-content a:hover { color: var(--teal-dark); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

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