/* ============================================================
   OHANASECURE — Brand-derived design system
   Palette: coral-to-indigo gradient from logo
   Dark-first, with light mode toggle
   ============================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Brand gradient anchors (extracted from logo) */
  --brand-coral:    #f08769;
  --brand-rose:     #e17896;
  --brand-mauve:    #c87ab4;
  --brand-indigo:   #8c87dc;
  --brand-teal:     #5ab4d2;

  /* Gradient definitions */
  --gradient-brand: linear-gradient(135deg, var(--brand-coral) 0%, var(--brand-rose) 35%, var(--brand-mauve) 65%, var(--brand-indigo) 100%);
  --gradient-brand-text: linear-gradient(135deg, #f0a569 0%, #e17896 40%, #b478c8 70%, #7878dc 100%);
  --gradient-glow: radial-gradient(ellipse at center, oklch(0.62 0.18 350 / 0.25) 0%, transparent 70%);

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(2.75rem,  1rem    + 5.5vw,  6rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px oklch(0 0 0 / 0.2);
  --shadow-md:    0 4px 16px oklch(0 0 0 / 0.3);
  --shadow-lg:    0 12px 40px oklch(0 0 0 / 0.45);
  --shadow-glow:  0 0 60px oklch(0.62 0.18 350 / 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 180ms var(--ease-out);

  /* Layout */
  --content-narrow:  640px;
  --content-default: 980px;
  --content-wide:    1200px;
}

/* ── DARK MODE (default) ─────────────────────────────────────── */
:root, [data-theme="dark"] {
  --color-bg:              #0c0b0f;
  --color-surface:         #121118;
  --color-surface-2:       #17161e;
  --color-surface-card:    #1a1924;
  --color-border:          #2a2836;
  --color-border-subtle:   #1f1d2a;

  --color-text:            #e8e6f0;
  --color-text-muted:      #8b8a9e;
  --color-text-faint:      #4a4858;

  --color-primary:         #c87ab4;
  --color-primary-hover:   #d990c8;
  --color-cta-bg:          var(--gradient-brand);
}

/* ── LIGHT MODE ──────────────────────────────────────────────── */
[data-theme="light"] {
  --color-bg:              #faf9fc;
  --color-surface:         #f3f1f8;
  --color-surface-2:       #ede9f5;
  --color-surface-card:    #ffffff;
  --color-border:          #ddd8ec;
  --color-border-subtle:   #eae6f4;

  --color-text:            #1a1825;
  --color-text-muted:      #5c5972;
  --color-text-faint:      #9d9ab0;

  --color-primary:         #9a3d9a;
  --color-primary-hover:   #7a2a7a;
  --color-cta-bg:          var(--gradient-brand);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:              #faf9fc;
    --color-surface:         #f3f1f8;
    --color-surface-2:       #ede9f5;
    --color-surface-card:    #ffffff;
    --color-border:          #ddd8ec;
    --color-border-subtle:   #eae6f4;
    --color-text:            #1a1825;
    --color-text-muted:      #5c5972;
    --color-text-faint:      #9d9ab0;
    --color-primary:         #9a3d9a;
    --color-primary-hover:   #7a2a7a;
  }
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; }
p, li { text-wrap: pretty; max-width: 68ch; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
ul[role="list"] { list-style: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── UTILITIES ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

.gradient-text {
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: var(--space-3);
}

.centered { text-align: center; }
.centered.section-label { display: block; }
p.centered { margin-inline: auto; }

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  margin-bottom: var(--space-10);
  max-width: 60ch;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6em 1.4em;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-lg {
  padding: 0.75em 2em;
  font-size: var(--text-base);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 2px 20px oklch(0.62 0.18 350 / 0.35);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 28px oklch(0.62 0.18 350 / 0.5);
}

.btn-outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--brand-mauve);
  color: var(--brand-mauve);
  background: oklch(0.62 0.1 320 / 0.07);
}

.btn-ghost {
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border-subtle);
}
.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-border);
}

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: box-shadow var(--transition);
}
.nav--scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.nav-logo-img { width: 36px; height: 36px; object-fit: contain; }
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-4);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface); }

.nav-mobile-toggle { display: none; }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) clamp(var(--space-5), 5vw, var(--space-12)) var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border-subtle);
}
.nav-mobile-menu .btn { margin-top: var(--space-3); align-self: flex-start; }

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav-actions { margin-left: 0; }
  .nav-actions .theme-toggle { display: flex; }
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, oklch(0.55 0.2 350 / 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 30% 70%, oklch(0.55 0.18 260 / 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-pixel-logo {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 560px);
  opacity: 0.12;
  filter: blur(1px);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  background: var(--color-surface);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.hero-heading {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  max-width: 14ch;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-trust {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}
.trust-pill svg { color: var(--brand-coral); flex-shrink: 0; }

/* ── PROBLEM ──────────────────────────────────────────────────── */
.problem {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.problem-text h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.problem-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stat-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ── SERVICES ────────────────────────────────────────────────── */
.services {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.service-card {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--brand-mauve);
  box-shadow: 0 0 40px oklch(0.62 0.15 320 / 0.15);
}

.service-card--featured {
  border-color: transparent;
  background: linear-gradient(var(--color-surface-card), var(--color-surface-card)) padding-box,
              var(--gradient-brand) border-box;
  box-shadow: 0 4px 40px oklch(0.62 0.18 350 / 0.2);
}
.service-card--featured:hover {
  box-shadow: 0 8px 60px oklch(0.62 0.18 350 / 0.3);
}

.service-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-coral);
}

.service-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: calc(-1 * var(--space-2));
}

.service-card > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.service-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}
.service-includes li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}
.service-includes li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

.service-card .btn {
  margin-top: var(--space-2);
  justify-content: center;
  width: 100%;
}

.services-addon {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.services-addon strong { color: var(--color-text); }

@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .service-card--featured { order: -1; }
}

/* ── HOW IT WORKS ─────────────────────────────────────────────── */
.how {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface);
}

.how h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-12);
  letter-spacing: -0.02em;
}

.steps {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: 900px;
  margin-inline: auto;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}

.step-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.step h3 {
  font-size: var(--text-base);
  font-weight: 700;
}

.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 28ch;
}

.step-divider {
  color: var(--color-border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .steps { flex-direction: column; }
  .step-divider { transform: rotate(90deg); }
  .step p { max-width: 40ch; }
}

/* ── LIFELINE ─────────────────────────────────────────────────── */
.lifeline {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
}
.lifeline-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, oklch(0.55 0.2 320 / 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.lifeline-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
}
.lifeline-text h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}
.lifeline-text > p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}
.lifeline-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.lifeline-plan {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.lifeline-plan--featured {
  border-color: transparent;
  background: linear-gradient(var(--color-surface-card), var(--color-surface-card)) padding-box,
              var(--gradient-brand) border-box;
}
.lifeline-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lifeline-plan-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.lifeline-plan-price span {
  font-size: var(--text-sm);
  font-weight: 500;
  -webkit-text-fill-color: var(--color-text-muted);
  color: var(--color-text-muted);
}
.lifeline-plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}
.lifeline-plan-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.lifeline-btn {
  display: block;
  margin-top: 1.25rem;
  text-align: center;
  width: 100%;
}
.lifeline-note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  max-width: none;
}
@media (max-width: 600px) {
  .lifeline-plans { grid-template-columns: 1fr; }
}

/* ── TRUST ────────────────────────────────────────────────────── */
.trust {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface);
}
.trust h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-12);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-coral);
}
.trust-item h3 {
  font-size: var(--text-base);
  font-weight: 700;
}
.trust-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.faq-inner {
  max-width: 720px;
}
.faq h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-10);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] {
  border-color: var(--brand-mauve);
}
.faq-item summary {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--brand-coral);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item > p {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
}

/* ── BOOK CTA ─────────────────────────────────────────────────── */
.book-cta {
  position: relative;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
  overflow: hidden;
  background: var(--color-surface);
  text-align: center;
}
.book-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, oklch(0.55 0.2 350 / 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.book-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.book-cta-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: var(--space-2);
}
.book-cta h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.book-cta > .book-cta-inner > p:first-of-type {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 40ch;
}
.book-cta-note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  max-width: none;
}
.book-cta-note a {
  color: var(--brand-coral);
  text-decoration: underline;
  text-decoration-color: oklch(0.65 0.18 30 / 0.4);
  text-underline-offset: 3px;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border-subtle);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-logo-img { width: 28px; height: 28px; object-fit: contain; }
.footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}
.footer-nap {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 720px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-text); }
.footer-links span { color: var(--color-border); }
.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: none;
}

/* ── FOCUS VISIBLE ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand-mauve);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   TIER QUIZ
   ============================================================ */
.quiz-shell {
  margin-top: 2rem;
  width: 100%;
  max-width: 520px;
}

.quiz-step {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  animation: quizFadeIn 0.25s ease;
}

.quiz-step.active {
  display: flex;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-coral);
  margin-bottom: -0.25rem;
}

.quiz-prompt {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.quiz-opt {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}

.quiz-opt:hover {
  background: rgba(240,135,105,0.12);
  border-color: rgba(240,135,105,0.5);
  transform: translateY(-1px);
}

/* Result screen */
.quiz-result {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  gap: 0.75rem;
}

.quiz-tier-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0.15rem 0 0.5rem;
  line-height: 1.5;
}

.quiz-tier-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  line-height: 1.2;
}

.quiz-tier-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.quiz-tier-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Remote / In-Person toggle */
.quiz-mode-toggle {
  display: flex;
  gap: 0.375rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 0.25rem;
}

.quiz-mode-btn {
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.quiz-mode-btn.active {
  background: var(--gradient-brand);
  color: #fff;
}

.quiz-book-btn {
  width: 100%;
  text-align: center;
  margin-top: 0.25rem;
}

.quiz-restart {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.quiz-restart:hover { color: var(--text-muted); }

.quiz-all-link {
  font-size: 0.82rem;
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiz-all-link:hover { color: var(--text-muted); }

[data-theme="light"] .quiz-opt {
  border-color: rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .quiz-result {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .quiz-mode-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}

/* ============================================================
   LINEAR-INSPIRED UX UPGRADE
   Scroll animations, statement sections, trust bar, booking CTA
   ============================================================ */

/* Scroll reveal — elements fade up on entry */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero entrance animation (runs once on page load) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge   { animation: heroFadeUp 0.5s 0.1s both cubic-bezier(0.16, 1, 0.3, 1); }
.hero-heading { animation: heroFadeUp 0.6s 0.2s both cubic-bezier(0.16, 1, 0.3, 1); }
.hero-sub-new { animation: heroFadeUp 0.6s 0.35s both cubic-bezier(0.16, 1, 0.3, 1); }
.hero-cta-row { animation: heroFadeUp 0.6s 0.5s both cubic-bezier(0.16, 1, 0.3, 1); }
.hero-trust   { animation: heroFadeUp 0.6s 0.65s both cubic-bezier(0.16, 1, 0.3, 1); }

/* Statement typography sections (Linear-inspired section breaks) */
.statement-section {
  padding-block: clamp(5rem, 10vw, 9rem);
  text-align: center;
}
.statement-section .statement-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 1.5rem;
}
.statement-headline {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(2.2rem, 1rem + 3.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-inline: auto;
  color: var(--color-text);
}
.statement-headline .accent {
  background: linear-gradient(135deg, #f08769 0%, #e17896 35%, #c87ab4 65%, #8c87dc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.statement-sub {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin: 1.5rem auto 0;
  line-height: 1.7;
}

/* Social proof / trust bar */
.trust-bar {
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding-block: 1.5rem;
  margin-block: 0;
}
.trust-bar-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-bar-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  white-space: nowrap;
}
.trust-bar-items {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.trust-bar-item svg {
  color: var(--brand-teal);
  flex-shrink: 0;
}

/* Feature 3-column row (like Linear's feature trio) */
.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 768px) {
  .feature-trio { grid-template-columns: 1fr; }
}
.feature-trio-item {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-trio-item:last-child { border-right: none; }
@media (max-width: 768px) {
  .feature-trio-item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .feature-trio-item:last-child { border-bottom: none; }
}
.feature-trio-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, oklch(0.55 0.18 350 / 0.12), oklch(0.55 0.15 260 / 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mauve);
}
.feature-trio-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}
.feature-trio-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Enhanced card hover (more depth) */
.guide-card {
  transition: border-color 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.guide-card:hover {
  border-color: var(--brand-mauve) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px oklch(0 0 0 / 0.35), 0 0 0 1px oklch(0.62 0.1 320 / 0.15) !important;
}
.trust-category {
  transition: border-color 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.trust-category:hover {
  border-color: var(--brand-indigo);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.3);
}

/* Booking CTA section */
.booking-cta {
  position: relative;
  margin-block: clamp(4rem, 8vw, 8rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 6vw, 5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: center;
}
.booking-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, oklch(0.55 0.18 350 / 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.booking-cta h2 {
  font-size: clamp(1.8rem, 1rem + 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  position: relative;
}
.booking-cta p {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}
.booking-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.btn-cal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f08769 0%, #e17896 35%, #c87ab4 65%, #8c87dc 100%);
  color: #fff;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 24px oklch(0.62 0.18 350 / 0.4);
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn-cal:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 4px 32px oklch(0.62 0.18 350 / 0.55);
}
.booking-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  position: relative;
}
.booking-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.booking-badge svg { color: var(--brand-teal); }

/* Eliminate dead-zone gap between guides → section-divider → tools */
.section-divider-container {
  padding-block: 0;
  margin-block: 0;
}
/* Tighten section padding on mobile */
@media (max-width: 640px) {
  .hero { min-height: 70vh; }
}

/* Smooth progress indicator on sticky nav */
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #f08769, #e17896, #c87ab4, #8c87dc);
  width: 0%;
  transition: width 0.1s linear;
}

/* ── MOBILE NAV BUTTON FIX ─────────────────────────────────────── */
/* Prevent "Open Source" from wrapping on mobile */
@media (max-width: 768px) {
  .btn-github {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  /* Hide the label text, keep the icon */
  .btn-github span { display: none; }
}

/* Hide the GitHub nav button entirely on mobile — it appears in the dropdown menu */
@media (max-width: 768px) {
  .nav-actions .btn-github { display: none; }
}

/* ── Guide card CTA link ── */
.guide-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-4);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-indigo);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s, gap 0.2s;
}
.guide-card-cta:hover {
  color: var(--brand-mauve);
  gap: 0.55rem;
}

/* ── Mobile menu GitHub link ── */
.nav-mobile-github {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-3);
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-top: 1px solid var(--color-border-subtle);
  transition: color 0.2s;
}
.nav-mobile-github:hover {
  color: var(--color-text);
}
.nav-mobile-github svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════
   LINEAR UX REBUILD — additions
   ══════════════════════════════════════════════════════════ */

/* ── Hero animated graphic ── */
.hero-graphic {
  position: absolute;
  right: clamp(2rem, 8vw, 12rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 22vw, 320px);
  opacity: 0;
  animation: heroFadeUp 0.8s 0.4s both cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.hero-shield {
  width: 100%;
  height: auto;
  animation: shieldFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px oklch(0.55 0.18 320 / 0.35));
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(calc(-50% + 20px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}
@keyframes shieldFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(0.5deg); }
  66%       { transform: translateY(-5px) rotate(-0.5deg); }
}
.orbit-dot {
  transform-origin: 100px 110px;
  animation: orbitSpin 8s linear infinite;
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.particle { animation: particleFloat 4s ease-in-out infinite; }
.p1 { animation-duration: 4.2s; animation-delay: 0s; }
.p2 { animation-duration: 5.1s; animation-delay: 0.8s; }
.p3 { animation-duration: 3.8s; animation-delay: 1.4s; }
.p4 { animation-duration: 4.7s; animation-delay: 0.3s; }
.p5 { animation-duration: 5.5s; animation-delay: 1.1s; }
@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.5; }
  50%       { transform: translateY(-8px) translateX(3px); opacity: 1; }
}
/* On mobile, tuck the graphic behind text or hide */
@media (max-width: 768px) {
  .hero-graphic { display: none; }
}

/* ── Clip-path heading reveal ── */
.reveal-heading {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-heading.visible {
  clip-path: inset(0 0% 0 0);
}

/* ── Tools section mobile horizontal scroll ── */
@media (max-width: 768px) {
  .trust-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: var(--space-4) !important;
    padding-bottom: var(--space-4) !important;
    scrollbar-width: none !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    align-items: flex-start !important;
  }
  .trust-grid::-webkit-scrollbar { display: none; }
  .trust-category {
    min-width: calc(88vw - 2rem) !important;
    max-width: calc(88vw - 2rem) !important;
    width: calc(88vw - 2rem) !important;
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Clamp text inside tool cards so nothing overflows */
  .trust-category * {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .trust-category .tool-desc,
  .trust-category p {
    white-space: normal !important;
    overflow: hidden !important;
  }
  /* Remove large blank bottom gap in tool cards */
  .trust-category {
    height: auto !important;
    align-self: flex-start !important;
  }
}

/* ── Checklists section mobile horizontal scroll ── */
@media (max-width: 768px) {
  .checklist-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: var(--space-4) !important;
    padding-bottom: var(--space-4) !important;
    scrollbar-width: none !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    align-items: flex-start !important;
  }
  .checklist-grid::-webkit-scrollbar { display: none; }
  .checklist-card, .checklist-item {
    min-width: calc(88vw - 2rem) !important;
    max-width: calc(88vw - 2rem) !important;
    width: calc(88vw - 2rem) !important;
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Clamp text inside checklist items */
  .checklist-card li,
  .checklist-item li,
  .checklist-card p,
  .checklist-item p {
    white-space: normal !important;
    overflow: hidden !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}

/* ── Active nav link on scroll (scroll spy) ── */
.nav-links a.nav-link--active {
  color: var(--color-text);
  opacity: 1;
}
.nav-links a {
  transition: color 0.2s, opacity 0.2s;
}

/* ── Guide card hover pulse (Linear active-state) ── */
.guide-card:hover {
  box-shadow: 0 0 0 1px oklch(0.62 0.1 320 / 0.5), 0 16px 48px oklch(0 0 0 / 0.35) !important;
  animation: cardPulse 2s ease-in-out infinite;
}
@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 0 1px oklch(0.62 0.1 320 / 0.3), 0 16px 48px oklch(0 0 0 / 0.35); }
  50%       { box-shadow: 0 0 0 2px oklch(0.62 0.1 320 / 0.7), 0 20px 60px oklch(0 0 0 / 0.4); }
}

/* ── Gradient glow under section labels ── */
.section-label {
  position: relative;
  display: inline-block;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #f08769, #c87ab4, #8c87dc);
  opacity: 0.6;
}

/* ── Mobile: disable clip-path reveal animation (shows correctly without it) ── */
@media (max-width: 768px) {
  .reveal-heading {
    clip-path: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
  .reveal-heading.visible {
    clip-path: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   UI/UX AUDIT FIXES — 2026-07-03
   1. Hero: contain pixel-scatter so it never bleeds past viewport
   2. Hero: badge sits above h1 cleanly (ensure no absolute overlap)
   3. Hero: mobile text properly padded, no right bleed
   4. Trust-bar: removed from HTML — clean up residual CSS
   5. Tools mobile: eliminate dead space below last card row
   ══════════════════════════════════════════════════════════════ */

/* 1 — Pixel scatter: hard-clip so the blurred logo never escapes the hero */
.hero-pixel-scatter {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* 2 — Hero inner: always above scatter layer, proper mobile padding */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

/* 3 — Hero badge: ensure it is always in normal flow above h1, never overlaps */
.hero-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  margin-bottom: var(--space-4);
}

/* 4 — Hero heading: cap width on mobile so gradient text never bleeds right */
@media (max-width: 768px) {
  .hero {
    overflow: hidden;
  }
  .hero-inner {
    padding-inline: clamp(1.25rem, 5vw, 2rem);
    max-width: 100%;
  }
  .hero-heading {
    font-size: clamp(2.4rem, 10vw, var(--text-hero));
    max-width: 100%;
    word-break: break-word;
  }
  .hero-sub-new,
  .hero-sub {
    font-size: var(--text-base);
    max-width: 100%;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .hero-trust {
    gap: var(--space-2);
  }
  /* Pixel logo: tuck it in, reduce size so it never bleeds */
  .hero-pixel-logo {
    right: -10%;
    width: clamp(180px, 55vw, 280px);
    opacity: 0.08;
  }
}

/* 5 — Tools section: kill the dead space at the bottom of the scroll container */
@media (max-width: 768px) {
  #tools {
    padding-bottom: var(--space-8) !important;
  }
  .trust-grid {
    /* Snap to the tallest card — don't stretch the container */
    align-items: flex-start !important;
    height: auto !important;
  }
  /* Each card: auto height only, no implicit stretch */
  .trust-category {
    height: auto !important;
    min-height: unset !important;
    align-self: flex-start !important;
  }
}

/* Trust-bar: residual cleanup (element removed from HTML) */
.trust-bar, .trust-bar-inner, .trust-bar-label, .trust-bar-items, .trust-bar-item {
  display: none !important;
}

/* ── Hero badge/heading overlap fix ──
   On mobile the hero section min-height + padding-block compresses the
   content. The badge and h1 stack too close together. Add breathing room. */
@media (max-width: 768px) {
  .hero {
    padding-top: clamp(4rem, 12vw, 6rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
    min-height: unset;
    align-items: flex-start;
  }
  .hero-badge {
    margin-top: 0;
    margin-bottom: var(--space-5);
    /* Ensure badge is never behind h1 */
    position: relative;
    z-index: 4;
    display: block;
    width: fit-content;
  }
  .hero-heading {
    margin-top: 0;
    position: relative;
    z-index: 3;
  }
}

/* ══ DEFINITIVE HERO FIX ══════════════════════════════════════════
   Badge overlap: badge uses translateY(20px) animation same as h1,
   causing them to share the same Y during animation fill-backwards.
   Solution: badge gets a fade-only animation. h1 keeps its slide-up.
   Desktop: hero-inner needs a max-width that leaves room for graphic.
   ════════════════════════════════════════════════════════════════ */

@keyframes heroBadgeFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-badge {
  animation: heroBadgeFade 0.4s 0s both ease-out !important;
  /* Force it to paint before the h1 and never overlap */
  display: block;
  width: fit-content;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 5;
}

/* Desktop: constrain hero text column so the shield graphic has clear space */
@media (min-width: 769px) {
  .hero-inner {
    max-width: 54%;
    padding-right: 0;
  }
  .hero-heading {
    font-size: clamp(3rem, 4.5vw, 5.5rem);
    max-width: 14ch;
  }
  .hero-graphic {
    right: clamp(1rem, 4vw, 6rem);
    width: clamp(200px, 28vw, 380px);
  }
  .hero-pixel-logo {
    right: 0;
    width: clamp(260px, 32vw, 480px);
    opacity: 0.1;
  }
}

/* Mobile: hero has enough top padding so badge starts well above h1 */
@media (max-width: 768px) {
  .hero {
    padding-top: clamp(5rem, 14vw, 7rem) !important;
  }
  .hero-badge {
    margin-bottom: var(--space-6) !important;
    margin-top: 0 !important;
  }
}

/* ══ FINAL HERO OVERLAP FIX ══════════════════════════════════════
   The heroFadeUp `fill: both` puts h1 at translateY(20px) at t=0
   which visually overlaps the badge sitting above it.
   Solution: remove all entrance animations. The page loads fast
   enough that no animation is needed for above-the-fold content.
   ════════════════════════════════════════════════════════════════ */
.hero-badge,
.hero-heading,
.hero-sub-new,
.hero-cta-row,
.hero-trust {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Desktop hero: true two-column layout, badge sits cleanly above h1 */
@media (min-width: 769px) {
  .hero-inner {
    max-width: 600px !important;
    padding-top: clamp(2rem, 4vw, 4rem);
  }
  .hero-badge {
    display: block !important;
    width: fit-content !important;
    margin-bottom: var(--space-5) !important;
  }
}

/* ── Desktop hero: tighten top space, push shield fully right ── */
@media (min-width: 769px) {
  .hero {
    min-height: 80vh;
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    align-items: center;
  }
  /* Shield: push it further right so it doesn't bleed into text column */
  .hero-graphic {
    right: clamp(2rem, 6vw, 8rem) !important;
    width: clamp(180px, 22vw, 300px) !important;
    /* Drop opacity slightly so it reads as decorative behind text */
    opacity: 0.85;
  }
  /* Pixel scatter logo: keep it purely decorative, right-anchored */
  .hero-pixel-logo {
    right: -2% !important;
    width: clamp(200px, 28vw, 380px) !important;
    opacity: 0.08 !important;
  }
  /* Text column: firm left lane, doesn't extend into shield zone */
  .hero-inner {
    max-width: 52% !important;
    padding-right: 2rem;
  }
}

/* ── OPEN SOURCE SECTION ─────────────────────────────────────────────────── */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.oss-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.oss-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(135deg, #f08769 0%, #e17896 35%, #c87ab4 65%, #8c87dc 100%);
  opacity: 0;
  transition: opacity 200ms;
}
.oss-card:hover {
  border-color: rgba(200,122,180,0.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  transform: translateY(-3px);
}
.oss-card:hover::before { opacity: 1; }
.oss-card--ghost {
  border-style: dashed;
  opacity: 0.7;
}
.oss-card--ghost:hover { opacity: 1; }
.oss-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}
.oss-card-icon {
  width: 40px; height: 40px;
  background: rgba(200,122,180,0.12);
  border: 1px solid rgba(200,122,180,0.25);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mauve);
  flex-shrink: 0;
}
.oss-card-icon--dim { color: var(--text-faint, #5a5870); background: rgba(255,255,255,0.04); border-color: var(--border-subtle); }
.oss-card-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.oss-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.oss-badge-lang { background: rgba(140,135,220,0.12); color: var(--brand-indigo); border: 1px solid rgba(140,135,220,0.25); }
.oss-badge-license { background: rgba(90,180,210,0.1); color: var(--brand-teal); border: 1px solid rgba(90,180,210,0.2); }
.oss-badge-free { background: rgba(240,135,105,0.1); color: var(--brand-coral); border: 1px solid rgba(240,135,105,0.2); }
.oss-badge-soon { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.oss-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}
.oss-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}
.oss-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}
.oss-card-repo {
  font-family: 'SFMono-Regular', 'Menlo', monospace;
  font-size: 0.75rem;
  color: var(--text-faint, #5a5870);
}
.oss-ext-arrow { color: var(--text-muted); font-size: 1rem; }
.oss-card:hover .oss-ext-arrow { color: var(--brand-mauve); }

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