/* ============================================================
   CatDogTor — Main stylesheet
   Gentle Guardian Web DS v3.0 — static implementation
   ============================================================ */

@import url('./tokens.css');

/* ──────────────── Reset ──────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-scaffold);
  color: var(--color-text-primary);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* ──────────────── Paper grain overlay (cozy warmth) ──────────────── */
/* A barely-visible fractal noise layered above content with multiply blend.
   Registers unconsciously — the page feels printed on paper, not rendered. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.24  0 0 0 0 0.36  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
@media (prefers-reduced-transparency: reduce) {
  body::after { display: none; }
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--color-brand-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ──────────────── Typography ──────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.1;
}

.display-xl { font-size: clamp(52px, 8vw, 88px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.display-lg { font-size: clamp(40px, 5.5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.title-lg   { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.005em; font-family: var(--font-sans); }
.title-md   { font-size: 18px; line-height: 26px; font-weight: 600; font-family: var(--font-sans); }
.body-lg    { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; font-family: var(--font-text); }
.body-md    { font-size: 16px; line-height: 26px; font-family: var(--font-text); }
.body-sm    { font-size: 14px; line-height: 22px; font-family: var(--font-text); }
.eyebrow    {
  font-family: var(--font-sans);
  font-size: 13px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-brand-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}
/* Editorial section mark — tiny serif flourish before every eyebrow */
.eyebrow::before {
  content: "§";
  font-family: var(--font-accent), 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: var(--color-brand-400);
  letter-spacing: normal;
  text-transform: none;
  transform: translateY(-1px);
}

.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  position: relative;
  padding: 0 0.08em;
}
/* Cozy highlighter swash behind accent-italic word — one warm stroke per section.
   Sits behind the text via z-index, clipped to a rough oval for a hand-painted feel. */
.accent-italic::before {
  content: "";
  position: absolute;
  left: -0.06em; right: -0.06em;
  top: 45%; bottom: -0.08em;
  background: var(--color-paper-deep);
  z-index: -1;
  border-radius: 60% 40% 55% 45% / 60% 50% 60% 40%;
  transform: rotate(-1.2deg);
  opacity: 0.85;
  pointer-events: none;
}
.accent-italic { z-index: 0; }
/* When accent-italic appears on dark gradient (final CTA), swap for a softer white wash */
.final-cta .accent-italic::before {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.text-secondary { color: var(--color-text-secondary); }
.text-tertiary  { color: var(--color-text-tertiary); }

/* ──────────────── Layout helpers ──────────────── */

.container {
  width: 100%;
  max-width: var(--content-max-w);
  margin-inline: auto;
  padding-inline: var(--page-pad-x);
  position: relative;
}

.container-narrow {
  max-width: var(--narrow-max-w);
  margin-inline: auto;
  padding-inline: var(--page-pad-x);
}

section { position: relative; padding-block: var(--section-pad-y); }
section > .container { position: relative; z-index: 1; }

.wash {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.wash--periwinkle { background: var(--wash-periwinkle); }
.wash--mint       { background: var(--wash-mint); }

.sprig {
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
}

.bg-surface-low     { background: var(--color-surface-low); }
.bg-surface-variant { background: var(--color-surface-variant); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sr-only:focus-visible {
  position: fixed !important; top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 10px 18px;
  margin: 0; clip: auto;
  background: var(--color-brand-600); color: #fff;
  border-radius: var(--radius-button);
  z-index: 1000;
}

/* ──────────────── Focus ring ──────────────── */

:focus-visible {
  outline: 2px solid var(--color-brand-600);
  outline-offset: 3px;
  border-radius: inherit;
}

/* ──────────────── Nav ──────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 92px;
  z-index: 100;
  background: transparent;
  transition: background var(--dur-state) ease,
              backdrop-filter var(--dur-state) ease,
              box-shadow var(--dur-state) ease,
              border-color var(--dur-state) ease;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--color-brand-800);
  font-family: var(--font-sans); font-weight: 700; font-size: 25px;
  letter-spacing: -0.028em;
  text-decoration: none;
  line-height: 1;
}
.nav__logo:hover { text-decoration: none; }
.nav__logo:hover .nav__logo-icon {
  transform: rotate(-4deg) scale(1.05);
}
.nav__logo-word {
  display: inline-block;
  padding-top: 2px;
}
.nav__logo sup {
  font-size: 0.42em;
  font-weight: 600;
  margin-left: 5px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.06em;
  vertical-align: super;
  opacity: 0.55;
}
.nav__logo-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-state) var(--ease-standard),
              filter var(--dur-state) ease;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(70, 92, 156, 0.22));
}
.nav__logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.nav__links {
  display: flex; gap: 36px;
  font-family: var(--font-sans); font-weight: 600; font-size: 17px;
  letter-spacing: -0.005em;
}
.nav__links a {
  color: var(--color-text-primary);
  text-decoration: none;
  opacity: 0.75;
  position: relative;
  transition: opacity var(--dur-hover) ease, color var(--dur-hover) ease;
}
.nav__links a:hover { opacity: 1; text-decoration: none; color: var(--color-brand-600); }
/* A short wavy underline appears on hover — quiet editorial touch */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6' preserveAspectRatio='none'><path d='M0 3 Q 5 0 10 3 T 20 3 T 30 3 T 40 3' fill='none' stroke='%23465C9C' stroke-width='1.3' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 20px 6px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity var(--dur-hover) ease, transform var(--dur-hover) ease;
}
.nav__links a:hover::after { opacity: 0.9; transform: translateY(0); }

.nav.is-scrolled {
  background: rgba(248, 249, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(184, 197, 237, 0.4);
}

@media (max-width: 767px) {
  .nav__links { display: none; }
}

/* ──────────────── Buttons ──────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-hover) var(--ease-standard),
              box-shadow var(--dur-hover) ease,
              background var(--dur-hover) ease,
              border-color var(--dur-hover) ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { text-decoration: none; }
.btn--sm { height: 44px; padding: 0 22px; font-size: 15px; }

.btn--primary {
  background: var(--gradient-signature);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(70, 92, 156, 0.42); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--color-brand-600);
  border: 1.5px solid var(--color-brand-200);
}
.btn--ghost:hover { background: var(--color-brand-50); border-color: var(--color-brand-400); }

.btn--white {
  background: #fff;
  color: var(--color-brand-600);
  box-shadow: var(--shadow-md);
}
.btn--white:hover { transform: translateY(-1px); }

.btn--ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn--ghost-white:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.8); }

.btn.is-disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn__soon-tag {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-tertiary);
  letter-spacing: 0;
  text-transform: none;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center;
}

/* ──────────────── Cards ──────────────── */

.card {
  background: var(--color-surface-lowest);
  border-radius: var(--radius-card);
  padding: 32px;
  /* Paper-stack effect: the primary shadow + a tiny downstroke that reads as
     the edge of a sheet resting on another. Gives cards a tactile, printed feel. */
  box-shadow:
    var(--shadow-sm),
    0 1px 0 rgba(43, 61, 91, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform var(--dur-state) var(--ease-standard),
              box-shadow var(--dur-state) ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-md),
    0 2px 0 rgba(43, 61, 91, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* ──────────────── Hero ──────────────── */

.hero {
  padding-block: calc(var(--section-pad-y) + 92px) var(--section-pad-y);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero__trust {
  margin-top: 40px;
  color: var(--color-text-secondary);
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}
.hero__halo {
  position: absolute; inset: -10%;
  background: radial-gradient(closest-side, rgba(184,197,237,0.7) 0%, rgba(248,249,255,0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero__mockup {
  position: relative;
  width: 100%; height: 100%;
  z-index: 1;
}

.float-card {
  position: absolute;
  background: var(--color-surface-lowest);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  z-index: 2;
  transition: transform 400ms var(--ease-standard);
  font-family: var(--font-sans);
}
.float-card--top {
  top: 8%; right: -12%;
  animation: floatIn 900ms var(--ease-standard) 500ms both;
}
.float-card--bottom {
  bottom: 10%; left: -16%;
  animation: floatIn 900ms var(--ease-standard) 700ms both;
}
.float-card__dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.float-card__dot--ok { background: var(--color-success-badge); }
.float-card__dot--info { background: var(--color-brand-600); }
.float-card__title { font-weight: 600; font-size: 13px; color: var(--color-text-primary); }
.float-card__meta { font-weight: 400; font-size: 12px; color: var(--color-text-secondary); }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  .hero__visual { max-height: 560px; }
  .float-card { display: none; }
}

.hero-fadeup { opacity: 0; transform: translateY(12px); animation: fadeUp 500ms var(--ease-standard) forwards; }
.hero-fadeup.d-0 { animation-delay: 0ms; }
.hero-fadeup.d-1 { animation-delay: 100ms; }
.hero-fadeup.d-2 { animation-delay: 200ms; }
.hero-fadeup.d-3 { animation-delay: 300ms; }
.hero-fadeup.d-4 { animation-delay: 400ms; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ──────────────── Section heads ──────────────── */

.section-head {
  max-width: 800px;
  margin-bottom: 64px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--color-text-secondary); margin: 0; }

/* ──────────────── Features ──────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1199px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-card__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card__title { margin: 0 0 8px; }
.feature-card__body  { color: var(--color-text-secondary); margin: 0; }

/* Icon palettes per feature (spec §6.2) */
.icon-vaccination { background: #EDE8F7; color: #7B5EC0; }
.icon-fvrcp       { background: #EAF1FF; color: #6C8FD6; }
.icon-vet-visit   { background: #E8F2FB; color: #3A8ABF; }
.icon-note        { background: #EEF2F7; color: #5A6585; }

/* ──────────────── How it works ──────────────── */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
@media (max-width: 1023px) { .how-grid { grid-template-columns: 1fr; gap: 48px; } }

.how-step {
  position: relative;
  text-align: left;
}
.how-step__illustration {
  width: 120px; height: 120px;
  border-radius: 32px;
  background: var(--color-surface-variant);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  position: relative; z-index: 1;
}
.how-step__number {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--color-brand-600);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.how-step__title { margin: 0 0 8px; }
.how-step__body  { color: var(--color-text-secondary); margin: 0; max-width: 32ch; }

/* Dashed connector — desktop only */
@media (min-width: 1024px) {
  .how-grid::before {
    content: "";
    position: absolute;
    top: 60px; left: 8%; right: 8%;
    height: 1.5px;
    background-image: linear-gradient(to right, var(--color-brand-200) 50%, transparent 50%);
    background-size: 12px 1.5px;
    background-repeat: repeat-x;
    z-index: 0;
  }
}

/* ──────────────── Screenshots carousel ──────────────── */

.carousel-wrap {
  position: relative;
  margin-inline: calc(-1 * var(--page-pad-x));
  padding-inline: var(--page-pad-x);
}
.carousel {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--page-pad-x);
  scrollbar-width: none;
  padding-block: 24px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: center; flex-shrink: 0; }

.screen-frame {
  width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: #0C1220;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.screen-frame__inner {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--color-surface-lowest);
  display: flex;
}
.screen-frame__inner > svg { width: 100%; height: 100%; }

.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 16px;
  background: var(--color-surface-lowest);
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-brand-600);
  transition: transform var(--dur-hover) ease, box-shadow var(--dur-hover) ease;
}
.carousel-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.carousel-controls {
  display: flex; gap: 12px; justify-content: flex-end;
  margin-top: 24px;
}
@media (max-width: 767px) { .carousel-controls { display: none; } }

/* Fade edges on carousel (desktop) */
@media (min-width: 1024px) {
  .carousel-wrap::before,
  .carousel-wrap::after {
    content: "";
    position: absolute; top: 0; bottom: 0; width: 80px;
    z-index: 2; pointer-events: none;
  }
  .carousel-wrap::before { left: 0;  background: linear-gradient(to right, var(--color-scaffold), rgba(248,249,255,0)); }
  .carousel-wrap::after  { right: 0; background: linear-gradient(to left,  var(--color-scaffold), rgba(248,249,255,0)); }
}

/* ──────────────── Pricing ──────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin-inline: auto;
  align-items: stretch;
}
@media (max-width: 767px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  border-radius: var(--radius-card);
  padding: 40px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card--free {
  background: var(--color-surface-variant);
}
.price-card--pro {
  background: var(--color-surface-lowest);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--color-brand-200);
}
@media (min-width: 1024px) {
  .price-card--pro { transform: scale(1.02); }
}
.price-card__badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-success-bg);
  color: var(--color-success-badge);
}
.price-card__name { font-family: var(--font-sans); font-weight: 700; font-size: 28px; color: var(--color-text-primary); margin: 0 0 6px; letter-spacing: -0.02em; }
.price-card__sub  { color: var(--color-text-secondary); margin: 0 0 24px; font-size: 15px; }
.price-card__price { font-family: var(--font-sans); font-weight: 700; font-size: 40px; color: var(--color-text-primary); letter-spacing: -0.02em; line-height: 1.1; }
.price-card__price-meta { color: var(--color-text-tertiary); font-size: 14px; margin-top: 4px; margin-bottom: 28px; }
.price-card__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.price-card__list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--color-text-primary);
  font-size: 15px;
}
.price-card__check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--color-success-bg);
  color: var(--color-success-badge);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.price-card .btn { align-self: stretch; }
.pricing-disclaimer {
  text-align: center;
  color: var(--color-text-tertiary);
  margin-top: 32px;
  font-size: 14px;
}

/* ──────────────── FAQ accordion ──────────────── */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-surface-high);
}
.faq-item:first-child { border-top: 1px solid var(--color-surface-high); }
.faq-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 600; line-height: 26px;
  color: var(--color-text-primary);
}
.faq-trigger__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-brand-600);
  transition: transform var(--dur-state) ease;
}
.faq-item[open] .faq-trigger__icon,
.faq-trigger[aria-expanded="true"] .faq-trigger__icon {
  transform: rotate(45deg);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-state) ease;
}
.faq-panel > div { overflow: hidden; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel__inner {
  padding: 0 0 24px;
  color: var(--color-text-secondary);
  font-family: var(--font-text);
  font-size: 16px; line-height: 26px;
  max-width: 65ch;
}
.faq-panel__inner a { color: var(--color-brand-600); }

/* ──────────────── Final CTA ──────────────── */

.final-cta {
  background: var(--gradient-signature);
  color: #fff;
  overflow: hidden;
  position: relative;
  padding-block: clamp(72px, 10vw, 120px);
}
.final-cta::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.final-cta > .container { text-align: center; max-width: 720px; position: relative; z-index: 1; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, 0.85); }
.final-cta .cta-row { justify-content: center; }
.final-cta__meta { color: rgba(255, 255, 255, 0.7); margin-top: 24px; font-size: 14px; }

/* ──────────────── Footer ──────────────── */

.footer {
  background: var(--color-surface-low);
  padding-block: 64px;
  color: var(--color-text-secondary);
}
.footer a { color: var(--color-brand-600); }
/* The footer shares .nav__logo styles but should read one step smaller to keep
   the brand mark felt-top on the page, not competing with the header. */
.footer .nav__logo { font-size: 20px; gap: 10px; }
.footer .nav__logo-icon {
  width: 46px; height: 46px;
  filter: drop-shadow(0 3px 8px rgba(70, 92, 156, 0.18));
}
.footer__row1 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}
.footer__tagline { margin: 12px 0 0; max-width: 38ch; font-size: 15px; }
.footer__links {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  text-align: right;
}
@media (max-width: 767px) {
  .footer__row1 { grid-template-columns: 1fr; }
  .footer__links { text-align: left; }
}
.footer__row2 {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-size: 13px;
  padding-top: 32px;
  /* tonal shift instead of 1px line */
  background:
    linear-gradient(to bottom, rgba(230, 233, 244, 0.6), transparent 1px, transparent);
}
@media (max-width: 767px) {
  .footer__row2 { flex-direction: column; align-items: flex-start; }
}
.footer__badges { display: flex; gap: 12px; }
.footer__badges img { height: 40px; }

/* ──────────────── Download modal ──────────────── */

.modal {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 440px;
  width: calc(100% - 40px);
}
.modal::backdrop {
  background: rgba(43, 61, 91, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal[open] {
  animation: modalIn 260ms var(--ease-standard);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.modal__body {
  background: var(--color-surface-lowest);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--color-text-secondary);
  transition: background var(--dur-hover) ease, color var(--dur-hover) ease;
}
.modal__close:hover { background: var(--color-surface-variant); color: var(--color-text-primary); }

.modal__qr {
  width: 160px; height: 160px;
  border-radius: 24px;
  margin: 0 auto 24px;
  display: block;
}
.modal__title { font-family: var(--font-sans); font-weight: 700; font-size: 20px; margin: 0 0 4px; color: var(--color-text-primary); letter-spacing: -0.015em; }
.modal__subtitle { color: var(--color-text-secondary); margin: 0 0 24px; font-size: 14px; }
.modal__stores { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.modal__stores img { height: 44px; }

/* ──────────────── Reveal-on-scroll ──────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease-standard),
              transform var(--dur-reveal) var(--ease-standard);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .hero-fadeup,
  .float-card--top,
  .float-card--bottom {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ──────────────── Legal layout ──────────────── */

.legal {
  padding-block: calc(var(--section-pad-y) + 24px);
}
.legal__title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--color-text-primary);
  line-height: 1.1;
}
.legal__meta {
  color: var(--color-text-tertiary);
  font-size: 14px;
  margin: 0 0 48px;
}
.legal__body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-primary);
}
.legal__body h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
  line-height: 1.2;
}
.legal__body h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  line-height: 1.3;
}
.legal__body h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal__body p  { margin: 0 0 16px; }
.legal__body ul, .legal__body ol { padding-left: 1.4em; margin: 0 0 20px; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--color-brand-600); text-decoration: underline; text-decoration-color: var(--color-brand-200); text-underline-offset: 3px; }
.legal__body a:hover { text-decoration-color: var(--color-brand-600); }
.legal__body strong { color: var(--color-text-primary); font-weight: 600; }
.legal__body hr {
  border: 0;
  height: 1px;
  background: var(--color-surface-high);
  margin: 48px 0;
}
.legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.legal__body th, .legal__body td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-surface-high);
}
.legal__body th {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface-variant);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.legal__body blockquote {
  border-left: 3px solid var(--color-brand-200);
  padding: 8px 20px;
  margin: 20px 0;
  background: var(--color-surface-variant);
  border-radius: 0 var(--radius-inner) var(--radius-inner) 0;
  color: var(--color-text-secondary);
}
.legal__body code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--color-surface-variant);
  border-radius: 6px;
  color: var(--color-brand-800);
}

.legal__toc {
  background: var(--color-surface-variant);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin: 0 0 48px;
}
.legal__toc h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-600);
  margin: 0 0 16px;
}
.legal__toc ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: toc;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px;
}
.legal__toc li {
  counter-increment: toc;
  margin: 0;
  font-size: 15px;
}
.legal__toc li::before {
  content: counter(toc, decimal-leading-zero) " · ";
  color: var(--color-text-tertiary);
  font-family: var(--font-sans);
}
.legal__toc a { color: var(--color-text-primary); text-decoration: none; }
.legal__toc a:hover { color: var(--color-brand-600); text-decoration: underline; }
@media (max-width: 639px) {
  .legal__toc ol { grid-template-columns: 1fr; }
}

.callout {
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 24px 0;
}
.callout--info {
  background: var(--color-brand-50);
  color: var(--color-text-primary);
}
.callout--danger {
  background: var(--color-danger-bg);
  color: var(--color-text-primary);
  border-left: 4px solid var(--color-danger-fg);
}
.callout__title {
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 16px;
}

/* Support page FAQ mirror shares faq-list styles */

/* ──────────────── Utilities ──────────────── */

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ──────────────── Manifesto (delta v1.0) ──────────────── */

.manifesto {
  background: var(--color-surface-variant);
  padding-block: 120px;
}
.manifesto__container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 32px;
}
.manifesto__header {
  max-width: 640px;
  margin: 0 0 88px;
}
.manifesto__eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin: 0 0 20px;
}
.manifesto__headline {
  font-family: 'Instrument Serif', Georgia, 'Iowan Old Style', serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0 0 24px;
}
.manifesto__intro {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

.manifesto__beliefs {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.manifesto__belief {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: center;
}
.manifesto__belief--right {
  grid-template-columns: 1fr 360px;
}
.manifesto__belief--right .manifesto__figure { order: 2; }
.manifesto__belief--right .manifesto__body   { order: 1; }

.manifesto__figure {
  margin: 0;
  width: 360px;
}
.manifesto__figure img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--color-surface-high);
}
.manifesto__figure figcaption {
  margin-top: 12px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-tertiary);
}

.manifesto__belief-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0 0 14px;
}
.manifesto__belief-text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 520px;
}

.manifesto__close {
  margin: 72px 0 0;
  max-width: 480px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-tertiary);
}

/* Stagger the fade-in of each belief (reuses global [data-reveal] system) */
.manifesto__belief { transition-delay: 0ms; }
.manifesto__belief.in-view:nth-child(1) { transition-delay: 0ms; }
.manifesto__belief.in-view:nth-child(2) { transition-delay: 80ms; }
.manifesto__belief.in-view:nth-child(3) { transition-delay: 160ms; }
.manifesto__belief.in-view:nth-child(4) { transition-delay: 240ms; }

@media (min-width: 768px) and (max-width: 1023px) {
  .manifesto { padding-block: 96px; }
  .manifesto__belief          { grid-template-columns: 280px 1fr; gap: 40px; }
  .manifesto__belief--right   { grid-template-columns: 1fr 280px; }
  .manifesto__figure          { width: 280px; }
  .manifesto__figure img      { height: 280px; }
  .manifesto__beliefs         { gap: 64px; }
}

@media (max-width: 767px) {
  .manifesto { padding-block: 72px; }
  .manifesto__container { padding-inline: 20px; }
  .manifesto__header { margin-bottom: 56px; }
  .manifesto__headline { font-size: 28px; }
  .manifesto__intro { font-size: 16px; }
  .manifesto__beliefs { gap: 48px; }

  .manifesto__belief,
  .manifesto__belief--right {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .manifesto__belief--right .manifesto__figure,
  .manifesto__belief--right .manifesto__body { order: initial; }

  .manifesto__figure { width: 100%; max-width: 400px; align-self: flex-start; }
  .manifesto__figure img { height: auto; aspect-ratio: 1 / 1; }
  .manifesto__belief-title { font-size: 22px; }
  .manifesto__belief-text { font-size: 15px; }
  .manifesto__close { margin-top: 48px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto__belief.in-view,
  .manifesto__belief { transition-delay: 0ms !important; }
}

/* Small store badge wrappers with aria-labels */
.store-badges {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-top: 8px;
}
.store-badges img { height: 56px; }
.store-badges--sm img { height: 40px; }

/* ──────────────── Wavy botanical divider (between sections) ──────────────── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(28px, 4vw, 48px);
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.divider__line {
  flex: 1;
  max-width: 260px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'><path d='M0 5 Q 10 1 20 5 T 40 5 T 60 5 T 80 5 T 100 5 T 120 5' fill='none' stroke='%23B8C5ED' stroke-width='1.3' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 60px 10px;
  opacity: 0.75;
}
.divider__mark {
  width: 44px; height: 44px;
  margin: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-400);
  flex-shrink: 0;
}

/* Section of the landing that should host a divider gets this helper */
.section-bridge {
  background: var(--color-scaffold);
  padding-block: 0;
}

/* ──────────────── Footer signature flourish ──────────────── */
.footer__signature {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text-tertiary);
}
.footer__signature-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.footer__signature-line span {
  font-family: var(--font-accent), Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.footer__signature-line::before,
.footer__signature-line::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-brand-200), transparent);
}
.footer__signature svg { color: var(--color-brand-400); opacity: 0.7; }

/* ──────────────── Subtle paper tone for specific sections ──────────────── */
.bg-paper {
  background: var(--color-paper);
}

/* Fraunces is used in several spots as an italic accent — apply everywhere the
   utility class appears (hero already has it; now also Pricing/FAQ/CTA/Manifesto) */
.section-head h2 .accent-italic,
.final-cta h2 .accent-italic,
.manifesto__headline .accent-italic {
  white-space: nowrap;
}

/* Inside the Manifesto the headline is already Instrument Serif; keep the
   italic accent in the same family rather than switching to Fraunces so the
   swash reads as one breath instead of two fonts. */
.manifesto__headline .accent-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
}

