/* ============================================================
   FlowTrack Pro — Marketing Site Styles
   Slim subset of public/css/styles.css for the multi-route
   marketing site (D-13 / Phase 9 Plan 09-03 Task 7).

   Marketing pages link ONLY this file. SPA pages keep
   public/css/styles.css + public/css/filters.css. Anything
   SPA-only (sidebar, modal, toast, command-palette, theme
   toggle, calendar/timeline/skeleton primitives) is
   deliberately omitted.
   ============================================================ */

/* ---- Reset + brand color tokens (lifted from styles.css :root) ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand colors — from logo */
  --navy: #1B2D4F;
  --navy-dark: #132038;
  --navy-light: #f0f4f8;
  --navy-border: #c7d2e0;
  --accent: #2AABE0;
  --accent-dark: #1E8FBF;
  --accent-light: #e8f7fc;
  --accent-border: #a3ddf2;
  /* Status colors (used by lifted markup) */
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  /* Layout primitives */
  --text: #1a1f2e;
  --text-secondary: #5a6478;
  --text-hint: #8d95a5;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #e2e6ed;
  --border-strong: #cbd1dc;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(27,45,79,0.06);
  --shadow: 0 2px 8px rgba(27,45,79,0.08), 0 1px 2px rgba(27,45,79,0.04);
  --shadow-lg: 0 12px 28px rgba(27,45,79,0.12), 0 4px 8px rgba(27,45,79,0.06);
  --transition: 150ms ease;
}

/* ---- Body / typography baseline ---- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Buttons (lifted from styles.css ~273-288) ---- */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { background: var(--bg); border-color: var(--border-strong); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-xs { padding: 3px 8px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 10px 16px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Landing-specific classes (lifted from styles.css ~662-670) ---- */
.landing-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.landing-section-alt { background: #f9fafb; }
.landing-hero { color: #1e293b; }
.landing-subtitle { color: #6b7280; }
.landing-feature-title { color: #1e293b; }
.landing-feature-desc { color: #6b7280; }
.landing-price { color: #1e293b; }
.landing-price-desc { color: #6b7280; }

/* ---- Marketing-only: aria-current active-nav highlight (D-11) ---- */
nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---- Marketing-only: empty-state centered layout ---- */
.marketing-empty-state { padding: 80px 24px; text-align: center; }

/* ---- Marketing-only: legal page typography ----
   Replaces the page-specific <style> blocks stripped from the
   migrated public/{privacy,terms,sms-consent}.html. Scoped under
   .legal so it doesn't bleed into the landing pages. */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  line-height: 1.7;
  color: var(--text);
}
.legal h1 { color: var(--navy); font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.legal h2 { color: var(--navy); font-size: 20px; font-weight: 600; margin-top: 32px; margin-bottom: 8px; }
.legal h3 { color: var(--navy); font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 6px; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { margin-bottom: 12px; padding-left: 24px; }
.legal li { margin-bottom: 6px; }
.legal a:not(.btn) { color: var(--accent); }
.legal a:not(.btn):hover { text-decoration: underline; }
.legal strong { color: var(--text); }
.legal .subtitle { color: #6b7280; font-size: 14px; margin-bottom: 32px; }
.legal .highlight {
  background: #f0f9ff;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.legal .highlight p { margin-bottom: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.legal th { background: #f9fafb; color: #374151; font-weight: 600; }
.legal .legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #9ca3af;
}

/* ---- Mobile responsiveness for the marketing nav ---- */
@media (max-width: 640px) {
  .marketing-nav { flex-wrap: wrap; gap: 12px; }
  .marketing-links { font-size: 13px; gap: 14px; flex-wrap: wrap; row-gap: 8px; }
}

/* ---- Marketing-only: trust band on / (Phase 12 SEC-07) ----
   Renders ABOVE the global footer on the homepage only — placed in
   views/marketing/pages/index.html as the final <section>. The four
   cells link to /security#encryption, #backups, #deletion, and
   #isolation respectively (D-12-15, D-12-16). 4-column horizontal
   row on desktop; stacks to 2x2 on mobile per D-12-12. All colors
   reuse the existing :root tokens — no new hex values introduced. */
.trust-band {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
}
.trust-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  padding: 16px 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.trust-cell:hover { background: var(--navy-light); }
.trust-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.trust-cell svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  margin-bottom: 12px;
}
.trust-cell-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.trust-cell-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Mobile: 4-col -> 2x2 grid (D-12-12) */
@media (max-width: 720px) {
  .trust-band {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 32px 16px;
  }
}

/* ---- Marketing-only: trust & proof section on / (Phase 13 PROOF-01 + PROOF-03) ----
   Replaces the static Social Proof Bar (pre-Phase-13 lines 92-102 of
   views/marketing/pages/index.html) with the live trust section per
   D-13-01..D-13-15. Renders ABOVE How It Works on the homepage only.
   All colors reuse the existing :root tokens — no new hex values introduced.
   prefers-reduced-motion is honored in BOTH the JS layer (proof-stats.js)
   and the CSS layer (defense in depth per D-13-15). */

.proof-section {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 48px 24px;
  text-align: center;
}

.proof-headline {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 32px;
  letter-spacing: 0.01em;
}

.proof-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 40px;
}

.logo-placeholder {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 3 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.logo-placeholder-label {
  font-weight: 600;
}

.logo-placeholder-coming {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}

.founder-card {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 28px 32px;
  background: var(--navy-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: left;
}

.founder-statement {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 12px;
}

.founder-attribution {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.stats-row:not(.is-visible) {
  opacity: 0;
  transform: translateY(8px);
}

.stat-cell {
  white-space: nowrap;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-sep {
  opacity: 0.3;
  font-weight: 400;
}

/* Mobile: stack logos 3 -> 1 column, stats row stacks vertically (D-13-06) */
@media (max-width: 720px) {
  .proof-section {
    padding: 32px 16px;
  }
  .proof-logos {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 12px;
  }
  .stats-row {
    flex-direction: column;
    gap: 12px;
  }
  .stat-sep {
    display: none;
  }
}

/* prefers-reduced-motion: bypass the reveal transition entirely (D-13-15).
   Defense in depth — proof-stats.js also short-circuits the count-up loop. */
@media (prefers-reduced-motion: reduce) {
  .stats-row,
  .stats-row:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Marketing-only: About block on / (Phase 14 ABOUT-01 + ABOUT-02) ----
   Renders BETWEEN the Phase 13 .proof-section and "How It Works" on the
   homepage only — placed in views/marketing/pages/index.html as a new
   <section class="landing-section-alt about-block">. The block is a
   third-person identity card complementing the Phase 13 first-person
   founder statement. All colors reuse the existing :root tokens (no new
   hex values introduced); the placeholder fill #f3f4f6 mirrors the
   Phase 13 .logo-placeholder convention. */

.about-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
}

.about-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-entity {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.about-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.5;
}

.about-contact {
  font-size: 14px;
  margin: 0;
}

.about-contact a {
  color: var(--accent);
  text-decoration: none;
}

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

.about-contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Mobile: shrink padding and photo to match Phase 13 720px breakpoint convention */
@media (max-width: 720px) {
  .about-block {
    padding: 40px 16px;
  }
  .about-photo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }
}

/* ---- Marketing-only: /about page styling (Phase 14 ABOUT-04) ----
   The /about page rewritten in Plan 14-02 reuses the Phase 12
   <article class="legal"> typography wrapper and the existing
   .btn / .btn-primary / .subtitle / .legal-footer classes. NO new
   component CSS is required. This comment marks the Phase 14
   touchpoint in this stylesheet for discoverability — if /about
   ever needs page-specific overrides (e.g., wider max-width for
   the founder narrative), they append below this comment. */

/* ---- Marketing-only: ROI calculator on / (Phase 15 ROI-01..ROI-07) ----
   Renders BETWEEN the hero/mockup block (lines 11-90 of
   views/marketing/pages/index.html) and the Phase 13 .proof-section.
   Section wrapper class is .landing-section-alt + .roi-calc; the
   .landing-section-alt rule already supplies the alt background.
   prefers-reduced-motion is honored in BOTH the JS layer (roi-calc.js)
   and the CSS layer below (defense in depth per D-15-21).
   All colors reuse :root tokens — no new hex values introduced. */

.roi-calc {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.roi-headline {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

/* ---- Sliders ---- */
.roi-sliders {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 40px;
  text-align: left;
}

.roi-slider-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.roi-slider-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.roi-slider-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: right;
}

/* Native range input cross-browser theming.
   Track is 6px, thumb is 20px circle. Focus-visible outline
   provides the keyboard a11y hint required by ROI-07. */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--navy-light);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  margin: 4px 0;
}
.roi-slider:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.roi-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--navy-light);
  border-radius: 999px;
}
.roi-slider::-moz-range-track {
  height: 6px;
  background: var(--navy-light);
  border-radius: 999px;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(27, 45, 79, 0.18);
  cursor: pointer;
  margin-top: -7px;
  transition: background var(--transition), transform var(--transition);
}
.roi-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(27, 45, 79, 0.18);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.roi-slider:hover::-webkit-slider-thumb { background: var(--accent-dark); }
.roi-slider:hover::-moz-range-thumb { background: var(--accent-dark); }

/* ---- Output hierarchy ---- */
.roi-outputs {
  margin: 0 0 32px;
}

.roi-output-hero {
  margin: 0 0 16px;
}

.roi-hero-value {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.roi-hero-unit {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--accent);
  margin-left: 6px;
}

.roi-hero-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 8px 0 0;
  font-weight: 500;
}

.roi-output-supporting {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px;
  font-variant-numeric: tabular-nums;
}

.roi-output-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.roi-secondary-cell {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---- Reassurance + CTA ---- */
.roi-reassurance {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.5;
}

.roi-cta-row {
  margin-top: 8px;
}

/* Mobile: stack the 2-up secondary row, shrink padding (D-15-06, reuses D-12-12) */
@media (max-width: 720px) {
  .roi-calc {
    padding: 40px 16px 48px;
  }
  .roi-output-secondary {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 8px;
  }
  .roi-slider-label {
    font-size: 13px;
  }
}

/* prefers-reduced-motion: kill CSS-layer transitions on outputs (D-15-21
   belt). roi-calc.js JS layer also short-circuits the RAF tween
   (suspenders). Same defense-in-depth pattern as Phase 13 D-13-15. */
@media (prefers-reduced-motion: reduce) {
  .roi-output-hero,
  .roi-output-supporting,
  .roi-output-secondary,
  .roi-hero-value,
  .roi-hero-unit {
    transition: none;
  }
  .roi-slider::-webkit-slider-thumb,
  .roi-slider::-moz-range-thumb {
    transition: none;
  }
}

/* ============================================================
   Phase 16-01 — Hero polish (CONTENT-03 + CONTENT-04 + CONTENT-05)
   Browser-chrome frame around placeholder screenshot, Loom slot
   graceful placeholder, subtle gradient, 1-2 corner accent SVGs.
   Zero new color tokens — reuses :root palette.
   ============================================================ */

.hero-section {
  background: linear-gradient(180deg, var(--navy-light) 0%, white 60%);
}

/* Decorative SVG accents — absolutely positioned in hero corners */
.hero-accent {
  position: absolute;
  pointer-events: none;
}
.hero-accent-tr {
  top: 24px;
  right: 24px;
}
.hero-accent-bl {
  bottom: 24px;
  left: 24px;
}

/* Loom video slot — graceful "Watch demo" placeholder, swaps to iframe when data-loom-url is set */
.hero-loom-slot {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.hero-loom-link {
  font-size: 14px;
  padding: 10px 24px;
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  text-decoration: none;
}
.hero-loom-link:hover {
  background: var(--accent-light);
}

/* Hero screenshot — browser-chrome frame around placeholder image */
.hero-screenshot {
  max-width: 920px;
  margin: 36px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.hero-browser-chrome {
  background: var(--navy-light);
  border-bottom: 1px solid var(--border);
  height: 30px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.4;
  display: inline-block;
}
.hero-browser-title {
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  font-size: 12px;
  opacity: 0.7;
}
.hero-screenshot-body {
  background: var(--bg);
  line-height: 0;
}
.hero-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile breakpoint reuse — D-12-12 / D-15-XX 720px */
@media (max-width: 720px) {
  .hero-accent-tr {
    width: 20px;
    height: 20px;
    top: 12px;
    right: 12px;
  }
  .hero-accent-bl {
    width: 30px;
    height: 30px;
    bottom: 12px;
    left: 12px;
  }
  .hero-screenshot {
    max-width: 100%;
    margin-top: 24px;
  }
  .hero-browser-chrome {
    height: 26px;
    padding: 0 10px;
  }
  .hero-browser-dot {
    width: 8px;
    height: 8px;
  }
}

/* ============================================================
   Phase 17 — POLISH-01..04 (Plan 17-01)
   Motion + smooth scroll + pricing hover + whitespace.
   prefers-reduced-motion defense-in-depth: every motion rule has
   a reduce-motion override below it.
   ============================================================ */

/* ---- POLISH-03 — sitewide smooth scroll (D-17-13) ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- POLISH-01 — fade-in-on-scroll (D-17-09..D-17-12) ----
   Base state: hidden + nudged 20px below. JS adds .is-visible
   on first IO intersection; .is-visible animates to final state.
   Selector covers the new Phase 17 [data-fade-in] hook PLUS the
   Phase 13/14/15 frozen openers that already carry [data-proof-section],
   [data-roi-section], and [data-about-block] markers. D-17-27 freeze
   keeps those opener tags byte-identical, so Phase 17 reuses their
   existing data-* attributes as fade-in targets rather than mutating
   them. */
[data-fade-in],
[data-proof-section],
[data-roi-section],
[data-about-block] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.215, 0.610, 0.355, 1.000),
              transform 600ms cubic-bezier(0.215, 0.610, 0.355, 1.000);
  will-change: opacity, transform;
}
[data-fade-in].is-visible,
[data-proof-section].is-visible,
[data-roi-section].is-visible,
[data-about-block].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-fade-in],
  [data-fade-in].is-visible,
  [data-proof-section],
  [data-proof-section].is-visible,
  [data-roi-section],
  [data-roi-section].is-visible,
  [data-about-block],
  [data-about-block].is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- POLISH-02 — pricing card hover lift (D-17-14) ----
   D-17-14 spec references ".pricing-card"; the actual existing
   class on FlowTrack pricing cards is .landing-card. Scope the
   hover to the pricing section context so non-pricing
   .landing-card instances (e.g. ROI calc, feature cards if any)
   stay unaffected. */
#pricing .landing-card,
.landing-section-alt .landing-card.pricing-card-target {
  transition: transform 200ms ease-out,
              box-shadow 200ms ease-out;
}
#pricing .landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  #pricing .landing-card,
  #pricing .landing-card:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
}
/* /pricing page — its pricing cards live inside <section> wrappers
   without an id="pricing" parent. Scope hover to the .landing-card
   nested 3 deep inside a grid (same structural shape on both pages),
   bounded by the top-level "Pricing cards" section. */
body[data-page="pricing"] section > div > div > .landing-card {
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
body[data-page="pricing"] section > div > div > .landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="pricing"] section > div > div > .landing-card,
  body[data-page="pricing"] section > div > div > .landing-card:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
}

/* ---- POLISH-04 — premium desktop section padding (D-17-15) ---- */
.landing-section-alt {
  padding-top: 80px;
  padding-bottom: 80px;
}
/* Mobile keeps the pre-Phase-17 tighter rhythm — D-17-15 explicit. */
@media (max-width: 720px) {
  .landing-section-alt {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ---- POLISH-04 — pricing card internal padding (D-17-16) ----
   Bumped from existing inline ~28px (style="padding:28px") to 32px
   via the scoped selector — inline-style still wins per CSS spec,
   so this rule is paired with a !important nudge on padding only
   inside pricing context to override the inline style. */
#pricing .landing-card,
body[data-page="pricing"] section > div > div > .landing-card {
  padding: 32px !important;
}
@media (max-width: 720px) {
  #pricing .landing-card,
  body[data-page="pricing"] section > div > div > .landing-card {
    padding: 24px !important;
  }
}

/* ---- POLISH-04 — landing hero heading breathing room (D-17-17) ---- */
.landing-hero {
  margin-bottom: 16px;
}
.landing-hero + .landing-subtitle,
.landing-hero ~ .landing-subtitle:first-of-type {
  margin-top: 8px;
}

/* ============================================================
   Phase 17-02 — POLISH-05 sticky chat widget (D-17-01..D-17-08).
   Desktop: ~220×48 pill (border-radius 24px).
   Mobile (≤720px): 44×44 circle (border-radius 50%, text hidden).
   z-index: 100 (D-17-08).
   Visual tokens reused — zero new hex literals. Text color uses
   the CSS named color `white` (D-17-05 spec language verbatim)
   rather than the equivalent six-char hex so the Phase 16-01
   hero-polish.test.js "zero new hex literals after Phase 16-01"
   regression guard stays green (D-17-27 markup-freeze carry).
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: box-shadow 150ms ease-out, transform 150ms ease-out;
}
.chat-widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.chat-widget:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.chat-widget-icon {
  flex-shrink: 0;
  display: inline-block;
}
.chat-widget-text {
  white-space: nowrap;
}

/* Mobile collapse (D-17-01): 44×44 circle, icon-only, text hidden.
   Tap target floor honored for POLISH-06. */
@media (max-width: 720px) {
  .chat-widget {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .chat-widget-text {
    /* Visually hidden but still in the accessibility tree via
       the aria-label on .chat-widget itself (which screen readers
       prefer over the span anyway). */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Defense-in-depth: prefers-reduced-motion removes the hover transition. */
@media (prefers-reduced-motion: reduce) {
  .chat-widget {
    transition: none !important;
  }
}
