/* CTAurl premium homepage — Slack-pattern editorial layout, real product screens, brand-green CTAs */
@font-face {
  font-family: Inter;
  src: url("../assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-latin);
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
ul, ol { list-style: none; margin: 0; padding: 0; }

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

.wrap {
  width: calc(100% - 64px);
  max-width: 1160px;
  margin-inline: auto;
}

.section-space { margin-top: var(--section-gap-major); }
.section-pad { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  line-height: 1.5;
  color: var(--text-secondary);
}

.section-intro {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-intro .eyebrow,
.section-heading .eyebrow { margin-bottom: var(--space-4); }

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: var(--space-5) auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-workspace-control);
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--motion-hover) var(--ease-standard),
    box-shadow var(--motion-hover) var(--ease-standard),
    color var(--motion-hover) var(--ease-standard),
    border-color var(--motion-hover) var(--ease-standard);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--brand) 28%, transparent);
}

.btn-sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: 0.8125rem; }

.btn-on-creative {
  background: var(--on-creative-iris);
  color: #fff;
  border-radius: var(--radius-workspace-control);
}
.btn-on-creative:hover { background: var(--text-primary); }

.text-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.5;
  color: var(--text-primary);
}
.text-action:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  color: var(--link);
}
.text-action--on-dark { color: #DDF7E7; }
.text-action--on-dark:hover { color: #fff; }
.text-action--on-creative { color: var(--on-creative-iris); }
.text-action--on-creative:hover { color: var(--on-creative-iris); opacity: 0.85; }

.play {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
}

/* Skip + header */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 16px;
  background: var(--bg-surface);
  color: var(--link);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0b0f0d;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, #000 28%, transparent);
  color: #f5f7f6;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}
/* Hide on scroll down / reveal on scroll up (not permanently occupying top) */
.site-header.is-header-hidden {
  transform: translateY(-110%);
  box-shadow: none;
}
.site-header.is-header-top {
  transform: translateY(0);
}
.site-header .logo {
  color: #fff;
}
.site-header .logo-dot {
  color: var(--brand);
}
.site-header .nav-links > a,
.site-header .nav-item > a {
  color: color-mix(in srgb, #fff 78%, transparent);
}
.site-header .nav-links > a:hover,
.site-header .nav-item > a:hover {
  color: #fff;
  background: color-mix(in srgb, #fff 10%, transparent);
}
.site-header .nav-login {
  color: color-mix(in srgb, #fff 86%, transparent);
}
.site-header .nav-login:hover {
  color: #fff;
}
.site-header .btn-ghost,
.site-header .btn-ghost.btn-sm {
  border-color: color-mix(in srgb, #fff 38%, transparent);
  color: #fff;
  background: transparent;
}
.site-header .btn-ghost:hover,
.site-header .btn-ghost.btn-sm:hover {
  border-color: #fff;
  color: #fff;
  background: color-mix(in srgb, #fff 10%, transparent);
}
.site-header .btn-primary,
.site-header .btn-primary.btn-sm {
  /* keep brand green CTAs readable on black */
  box-shadow: none;
}
.site-header .menu-toggle span {
  background: #fff;
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--creative-jade) 100%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--on-brand) 12%, transparent);
}
.logo-dot { color: var(--link); }

.logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(148px, 42vw);
}
.site-header .logo-img {
  height: 28px;
}
.site-footer .logo-img,
.logo-img--on-light {
  /* Desktop lockup is green-on-transparent; fine on light footer too */
  height: 28px;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  flex: 1;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover,
.nav-login:hover { color: var(--link); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-login { font-size: 0.875rem; font-weight: 650; }
.menu-toggle { display: none; }

/* —— Product frames (soft elevated chrome + mat inset) —— */
.product-frame {
  position: relative;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-muted) 55%, var(--bg-surface)),
      var(--bg-surface) 42%
    );
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--text-primary));
  border-radius: 16px;
  overflow: hidden;
  padding: 0 12px 12px;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text-primary) 4%, transparent),
    0 10px 28px color-mix(in srgb, var(--text-primary) 7%, transparent),
    0 32px 72px color-mix(in srgb, var(--text-primary) 11%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 45%, transparent) inset;
}

.product-frame--hero {
  border-radius: 18px;
  padding: 0 14px 14px;
  transform: perspective(1400px) rotateY(-2deg) rotateX(1.5deg);
  box-shadow:
    0 2px 4px color-mix(in srgb, var(--text-primary) 4%, transparent),
    0 14px 36px color-mix(in srgb, var(--text-primary) 8%, transparent),
    0 44px 88px color-mix(in srgb, var(--text-primary) 12%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 50%, transparent) inset;
}

.product-frame--inset {
  border-radius: 16px;
  height: 100%;
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--text-primary) 8%, transparent),
    0 28px 56px color-mix(in srgb, var(--text-primary) 11%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 40%, transparent) inset;
}

.product-frame--on-dark {
  background: linear-gradient(180deg, #152019, #101B15 48%);
  border-color: color-mix(in srgb, #fff 14%, transparent);
  box-shadow:
    0 4px 14px color-mix(in srgb, #000 22%, transparent),
    0 28px 72px color-mix(in srgb, #000 42%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 10%, transparent) inset;
}

.product-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 -12px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-muted) 75%, var(--bg-surface)),
    color-mix(in srgb, var(--bg-muted) 30%, var(--bg-surface))
  );
}
.product-frame--hero .product-chrome { margin: 0 -14px 14px; }

.product-chrome--dark {
  background: linear-gradient(180deg, #1A2420, #121C17);
  border-bottom-color: color-mix(in srgb, #fff 8%, transparent);
}

.chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--border-strong) 70%, transparent);
  opacity: 0.7;
}
.chrome-dot:nth-child(1) { background: #E8A0A0; opacity: 0.85; }
.chrome-dot:nth-child(2) { background: #E8D08A; opacity: 0.85; }
.chrome-dot:nth-child(3) { background: #A8D9B0; opacity: 0.85; }

.chrome-label {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-chrome--dark .chrome-label { color: #94A39A; }

.product-shot {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 55%, transparent) inset;
}

.product-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.product-shot--hero {
  aspect-ratio: 16 / 10;
}

.product-shot--how {
  aspect-ratio: 16 / 10;
}

.product-shot--use {
  aspect-ratio: 16 / 10.25;
  min-height: 340px;
}

.product-shot--qr {
  aspect-ratio: 16 / 10;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  padding-top: clamp(var(--space-16), 7vw, var(--space-24));
  padding-bottom: clamp(var(--space-16), 6vw, var(--space-20));
  align-items: center;
  overflow: hidden; /* contain hero-blobs — negative inset + blur was causing x-scroll */
}

.hero-blobs {
  position: absolute;
  inset: 0 0 auto 28%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.55;
  animation: blob-drift 18s ease-in-out infinite;
  will-change: transform;
}
.blob--mint {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  background: color-mix(in srgb, var(--brand) 38%, #E8FFF0);
  top: 4%;
  right: 8%;
}
.blob--iris {
  width: min(320px, 42vw);
  height: min(320px, 42vw);
  background: color-mix(in srgb, var(--creative-iris) 50%, #F4ECF2);
  top: 38%;
  right: 38%;
  animation-delay: -6s;
  opacity: 0.45;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -10px) scale(1.03); }
  66% { transform: translate(-8px, 8px) scale(0.98); }
}

.hero-copy,
.hero-stage { position: relative; z-index: 1; }

.hero-copy > .eyebrow { margin-bottom: var(--space-6); }

h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.042em;
  font-weight: 800;
  max-width: min(18ch, 100%);
  color: var(--text-primary);
}
h1 .accent { color: var(--text-primary); }
.hero-copy h1 .accent { color: var(--text-primary); }

h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.875rem);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.038em;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 42ch;
  margin-top: var(--space-6);
  color: var(--text-secondary);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero-lead--domains {
  max-width: 48ch;
  font-variant-ligatures: none;
  white-space: normal;
}

.hero-actions {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.hero-note {
  font-size: 0.75rem;
  max-width: 420px;
  margin-top: var(--space-5);
  color: var(--text-muted);
}

.hero-stage { scroll-margin-top: 112px; }

.under-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  margin-top: var(--space-5);
  color: var(--text-secondary);
}

/* Trust strip — quieter, editorial */
.trust-strip {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-8);
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.trust-strip > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.trust-strip > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Pain band */
.pain-band { background: var(--bg-muted); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
}

.pain-card {
  border-top: 1px solid var(--border-strong);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.story-number {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.pain-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  min-height: 2.8em;
}

.pain-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex: 1;
}

.story-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-6);
  color: var(--text-secondary);
}

/* How: editorial split rows with real product screens */
.how-section {
  /* Match section-pad token rhythm — avoid major gap + huge raise stacking */
  scroll-margin-top: 96px;
  margin-top: 0;
  padding-block: clamp(var(--space-16, 4rem), 8vw, var(--space-24, 6rem));
}

.how-intro {
  text-align: left;
  max-width: 26rem;
  margin-bottom: var(--space-4);
}

.how-intro .eyebrow { margin-bottom: var(--space-4); }

.how-intro h2 {
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: min(28ch, 100%);
}

.how-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-row {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.32fr);
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: start;
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  border-top: 1px solid var(--border);
}

.how-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.how-row--reverse {
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.78fr);
}
.how-row--reverse .how-copy { order: 2; }
.how-row--reverse .how-visual { order: 1; }

.how-row--soft {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding-block: clamp(var(--space-12), 5vw, var(--space-16));
  padding-inline: 0;
  margin-block: var(--space-6);
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.32fr);
}
.how-row--soft.how-row--reverse {
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.78fr);
}
.how-row--soft::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(var(--space-4) * -1);
  background: var(--bg-muted);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: var(--radius-card);
}
@media (min-width: 901px) {
  .how-row--soft::before {
    inset: 0 calc(var(--space-8) * -1);
  }
}

.how-copy {
  position: relative;
  padding-left: var(--space-6);
  border-left: 3px solid var(--creative-tide);
  max-width: 28rem;
}

.how-index {
  display: block;
  font-size: clamp(3.25rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: color-mix(in srgb, var(--text-primary) 10%, transparent);
  margin-bottom: var(--space-5);
  user-select: none;
}

.how-copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 750;
  margin-bottom: var(--space-4);
}

.how-copy p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36ch;
}

.how-copy strong {
  color: var(--text-primary);
  font-weight: 650;
}

.how-visual { min-width: 0; }
/*
 * Durable how-intro ↔ first how-visual (no glyph/mock overlap):
 * Shared --how-copy-col + --how-gap so intro width === first-row left column.
 * Raise only within the reserved visual column (minmax(0,1fr)); overflow:clip
 * on the copy column + z-index keeps craft edits from reintroducing collision.
 * Dev assert (optional): in home.js, if intro.getBoundingClientRect().right >
 * visual.getBoundingClientRect().left + 2 → console.warn('[how] overlap').
 */
.how-section {
  --how-copy-col: min(24rem, 40vw);
  --how-gap: clamp(3rem, 5vw, 4rem);
  --how-raise: clamp(2.25rem, 4vw, 3.5rem); /* locked: clear intro vs 01 */
}
@media (min-width: 1000px) {
  /* Shared 2-col stage: intro + raised visual cannot share x-space */
  .how-section > .wrap {
    display: grid;
    grid-template-columns: minmax(0, var(--how-copy-col)) minmax(0, 1fr);
    column-gap: var(--how-gap);
    align-items: start;
  }
  .how-section .how-intro {
    grid-column: 1;
    grid-row: 1;
    width: auto !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 2;
    min-width: 0;
    overflow: clip;
    padding-inline-end: 0.15rem;
  }
  .how-section .how-intro h2 {
    max-width: 100% !important;
    overflow-wrap: normal;
  }
  .how-section .how-stack {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-top: var(--how-raise); /* reserve raise room in flow; visual pulls back */
  }
  .how-stack > .how-row:first-child {
    grid-template-columns: minmax(0, var(--how-copy-col)) minmax(0, 1fr) !important;
    gap: 0 var(--how-gap) !important;
    column-gap: var(--how-gap) !important;
    align-items: start;
  }
  .how-stack > .how-row:first-child .how-copy {
    /* locked how-copy clear intro */
    padding-top: clamp(0.5rem, 1.5vw, 1rem);
    min-width: 0;
    overflow: clip;
  }
  .how-stack > .how-row:first-child .how-visual {
    margin-top: calc(-1 * var(--how-raise));
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
  }
}

/* Use cases / product tour */
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: flex-end;
  margin-bottom: var(--space-10);
}

.use-tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--bg-muted);
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.use-tabs .tab {
  background: none;
  border: 0;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
}
.use-tabs .tab[aria-selected="true"] {
  background: var(--text-primary);
  color: var(--bg-surface);
}

.use-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.35fr);
  gap: var(--space-10);
  align-items: center;
  min-height: 0;
}

.use-copy {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.use-copy h3 {
  font-size: clamp(1.75rem, 2.8vw, 2.125rem);
  margin-block: var(--space-4) var(--space-5);
  letter-spacing: -0.035em;
}
.use-copy p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 38ch;
}
.use-link {
  display: flex;
  gap: var(--space-3);
  font-size: 1.125rem;
  color: var(--link);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-top: var(--space-6);
}
.use-copy .text-action { margin-top: var(--space-6); }

.use-visual {
  min-height: 0;
  background: transparent;
}

.use-panel.is-swapping .use-copy {
  animation: tab-fade 0.28s var(--ease-standard);
}
@keyframes tab-fade {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* QR deep band */
.qr-band {
  background: var(--on-brand);
  color: #F3F8F3;
}
.qr-band .eyebrow { color: color-mix(in srgb, var(--creative-iris) 55%, #fff); }
.qr-band h2 { color: #F3F8F3; }
.qr-band .accent-brand { color: var(--brand); }
.qr-band .qr-copy > p:not(.eyebrow) {
  margin-top: var(--space-5);
  font-size: 0.9375rem;
  max-width: 44ch;
  color: #C2D0C6;
}

.qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
}

.qr-stage { min-width: 0; }

.qr-timeline {
  margin-top: var(--space-10);
  max-width: 320px;
}
.qr-timeline li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  position: relative;
  padding-block: var(--space-4);
}
.qr-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 48px;
  bottom: -12px;
  width: 1px;
  background: color-mix(in srgb, #fff 22%, transparent);
}
.qr-timeline span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 650;
}
.qr-timeline em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: #94A39A;
}
.qr-timeline strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 2px;
  color: #F3F8F3;
}

/* Comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: var(--space-16);
  align-items: center;
}
.comparison .section-lead { margin-inline: 0; }
.comparison-links > .compare-row {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--border);
}
.comparison-links code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: -0.045em;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.comparison-links p {
  font-size: 0.8125rem;
  margin-top: var(--space-2);
  color: var(--text-muted);
}
.compare-winner {
  background: var(--brand-subtle);
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-control);
  margin-top: var(--space-3);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}
.compare-winner code {
  color: var(--link);
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Trust rail */
.trust-rail {
  background: var(--bg-raised);
  padding-block: var(--space-12);
}
.trust-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  font-weight: 600;
}
.trust-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.75;
  flex-shrink: 0;
}

/* FAQ */
.faq-list { max-width: 800px; margin: auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-6);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform var(--motion-hover) var(--ease-standard);
}
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p {
  padding-bottom: var(--space-6);
  padding-right: var(--space-12);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Closing */
.closing {
  text-align: center;
  background: var(--creative-iris);
  color: var(--on-creative-iris);
}
.closing .eyebrow { color: var(--on-creative-iris); }
.closing h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  margin: var(--space-5) auto var(--space-5);
  font-weight: 800;
  letter-spacing: -0.045em;
  max-width: 18ch;
}
.closing-lead {
  max-width: 520px;
  margin: 0 auto var(--space-8);
  color: color-mix(in srgb, var(--on-creative-iris) 82%, transparent);
}
.closing-actions { justify-content: center; margin-top: 0; }

/* Dark bands: force light/muted-light text + light ghost borders sitewide */
.closing.closing--story .section-lead,
.closing.closing--story .closing-lead,
.qr-band .section-lead,
.band-deep .section-lead,
[data-craft="closing"] .section-lead {
  color: color-mix(in srgb, #fff 72%, transparent) !important;
}
.closing.closing--story .btn-ghost,
.closing .btn-ghost:not(.btn-ghost--on-light),
.qr-band .btn-ghost:not(.btn-ghost--on-light),
.band-deep .btn-ghost,
[data-craft="closing"] .btn-ghost {
  border-color: color-mix(in srgb, #fff 42%, transparent) !important;
  color: #f5f7f6 !important;
  background: transparent !important;
}
.closing.closing--story .btn-ghost:hover,
.closing .btn-ghost:not(.btn-ghost--on-light):hover,
.qr-band .btn-ghost:hover,
.band-deep .btn-ghost:hover,
[data-craft="closing"] .btn-ghost:hover {
  border-color: #fff !important;
  color: #fff !important;
  background: color-mix(in srgb, #fff 10%, transparent) !important;
}

/* Footer */
.site-footer { padding-top: var(--space-16); padding-bottom: var(--space-10); }
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}
.footer-main > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.footer-main h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: var(--space-5);
}
.footer-main > div > a:not(.logo) {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-block: var(--space-2);
}
.footer-main a:hover { text-decoration: underline; }
.footer-main p {
  font-size: 0.875rem;
  margin-top: var(--space-5);
  color: var(--text-secondary);
}
.prototype-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-4);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-6);
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

/* Reveal */
[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(8px);
}
[data-reveal="shown"] {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--motion-entrance) var(--ease-standard),
    transform var(--motion-entrance) var(--ease-standard);
}
[data-reveal="shown"][style*="--i"] {
  transition-delay: calc(var(--i) * var(--motion-stagger));
}

/* Responsive */
@media (max-width: 1100px) {
  .hero { gap: var(--space-8); }
  .qr-layout { gap: var(--space-8); }
  .product-frame--hero { transform: none; }
}

@media (max-width: 899px) {
  .wrap { width: calc(100% - 48px); }
  .nav { height: 64px; gap: var(--space-4); }
  .nav-actions { margin-left: auto; }
  .nav-login { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: none;
    order: 3;
  }
  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #0b0f0d;
    backdrop-filter: none;
    border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
    padding: var(--space-6);
    box-shadow: 0 16px 24px color-mix(in srgb, #000 35%, transparent);
  }
  .site-header .nav-links a {
    color: color-mix(in srgb, #fff 86%, transparent);
  }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding-top: var(--space-12);
  }
  .hero-copy { text-align: center; }
  h1 { margin-inline: auto; max-width: 14ch; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { margin-inline: auto; }
  .hero-blobs { inset: auto 0 0; height: 50%; }
  .hero-stage { max-width: 640px; width: 100%; margin-inline: auto; }
  .trust-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .pain-grid { gap: var(--space-8); }
  .how-row {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .how-row--reverse .how-copy,
  .how-row--reverse .how-visual { order: unset; }
  .how-intro { max-width: none; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .use-panel { grid-template-columns: 1fr; gap: var(--space-8); }
  .use-copy { padding: 0; }
  .qr-layout { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  .wrap { width: calc(100% - 32px); }
  .br-desk { display: none; }
  h1 { font-size: 2.625rem; max-width: 16ch; }
  .hero-actions .text-action { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-card h3 { min-height: 0; }
  .how-row,
  .how-row--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .how-row--reverse .how-copy,
  .how-row--reverse .how-visual { order: unset; }
  .how-copy { max-width: none; }
  .how-copy p { max-width: none; }
  .use-tabs { width: 100%; }
  .use-tabs .tab { flex: 1; padding-inline: var(--space-2); }
  .use-copy h3 { font-size: 1.75rem; }
  .comparison-links code { font-size: 1rem; }
  .closing h2 { max-width: none; }
  .product-shot--hero,
  .product-shot--how,
  .product-shot--qr { aspect-ratio: 16 / 11; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .blob { opacity: 0.35; }
  .product-frame--hero { transform: none; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— CreateTool hero card —— */
.hero {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
}
.hero-lead--tight { margin-top: var(--space-3); max-width: 480px; }

.tool-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  justify-self: end;
  scroll-margin-top: 112px;
}

.tool-card {
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--border) 80%, #fff);
  border-radius: var(--radius-card);
  box-shadow:
    0 2px 4px color-mix(in srgb, var(--text-primary) 4%, transparent),
    0 12px 32px color-mix(in srgb, var(--text-primary) 8%, transparent),
    0 36px 72px color-mix(in srgb, var(--text-primary) 10%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 55%, transparent) inset;
  overflow: hidden;
}

.tool-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding-inline: var(--space-8);
  gap: var(--space-3);
  background: color-mix(in srgb, var(--bg-muted) 55%, var(--bg-surface));
}
.tool-tabs button {
  font-size: 0.8125rem;
  font-weight: 650;
  min-height: 52px;
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  padding: var(--space-3) 0;
  margin-bottom: -1px;
}
.tool-tabs button span { margin-right: var(--space-2); opacity: 0.75; }
.tool-tabs button[aria-selected="true"] {
  border-color: var(--brand);
  color: var(--link);
}

.tool-body {
  padding: var(--space-8) var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.field { display: block; margin-bottom: 0; }
.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
}
.field-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  padding: 14px 16px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color var(--motion-hover) var(--ease-standard),
    box-shadow var(--motion-hover) var(--ease-standard);
}
.field-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23355247' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  font-weight: 650;
}

.field-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4);
  margin: 0;
}

.link-preview {
  background: linear-gradient(135deg, var(--bg-muted), color-mix(in srgb, var(--brand-subtle) 55%, var(--bg-muted)));
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: var(--space-5) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0;
}
.preview-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.preview-url {
  display: block;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--link);
  word-break: break-all;
}

.icon-chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
}
.icon-chip--tide { background: var(--brand); color: var(--text-on-brand, #062912); }
.icon-chip--brand { background: var(--brand); color: #062912; }

.tool-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  cursor: pointer;
}
.tool-check input {
  margin-top: 3px;
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}

.btn-block { width: 100%; }

.tool-note {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: var(--space-2);
  line-height: 1.5;
}
.under-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  margin-top: var(--space-4);
  color: var(--text-secondary);
}

/* —— Product shots: natural marketing crops (no CSS zoom) —— */
.product-shot--how,
.product-shot--use,
.product-shot--qr {
  aspect-ratio: 16 / 10;
}
.product-shot--use { min-height: 360px; }

.product-shot img {
  object-fit: cover;
  object-position: center top;
  transform: none;
  transform-origin: center top;
}

.how-visual .product-frame,
.use-visual .product-frame,
.qr-stage .product-frame {
  max-width: none;
  width: 100%;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .tool-stage {
    justify-self: center;
    max-width: 480px;
    width: 100%;
    order: -1;
  }
  .field-row { grid-template-columns: 1fr; }
  .product-shot--how,
  .product-shot--use,
  .product-shot--qr {
    aspect-ratio: 16 / 11;
    min-height: 0;
  }
  .product-frame { padding: 0 10px 10px; }
  .product-chrome { margin: 0 -10px 10px; }
  .product-shot { border-radius: 8px; }
  .product-shot img {
    transform: none;
    transform-origin: center top;
  }
  .how-row--soft::before {
    inset: 0 calc(var(--space-2) * -1);
  }
}


/* ===== Multi-accent marketing system (Slack-pattern) ===== */
.eyebrow--tide { color: var(--creative-tide); }
.eyebrow--coral { color: var(--creative-coral); }
.eyebrow--amber { color: var(--creative-amber); }
.eyebrow--plum { color: var(--creative-plum); }
.eyebrow--iris { color: color-mix(in srgb, var(--creative-iris) 35%, var(--creative-plum)); }
.eyebrow--mint { color: var(--link); }

.blob--amber {
  width: min(280px, 38vw);
  height: min(280px, 38vw);
  background: color-mix(in srgb, var(--creative-amber) 48%, #FFF6E8);
  top: 58%;
  right: -2%;
  animation-delay: -11s;
  opacity: 0.5;
}

.accent-iris {
  color: color-mix(in srgb, var(--creative-iris) 40%, #F4E8F0);
}

/* Trust strip multi-color dots */
.trust-strip > span[data-accent="mint"]::before { background: var(--brand); }
.trust-strip > span[data-accent="tide"]::before { background: var(--creative-tide); }
.trust-strip > span[data-accent="amber"]::before { background: var(--creative-amber); }
.trust-strip > span[data-accent="plum"]::before { background: var(--creative-plum); }
.trust-strip > span[data-accent="coral"]::before { background: var(--creative-coral); }
.trust-strip > span[data-accent="iris"]::before { background: var(--creative-iris); }

.trust-item[data-accent="mint"]::before { background: var(--brand); }
.trust-item[data-accent="tide"]::before { background: var(--creative-tide); box-shadow: 0 0 8px color-mix(in srgb, var(--creative-tide) 40%, transparent); }
.trust-item[data-accent="amber"]::before { background: var(--creative-amber); box-shadow: 0 0 8px color-mix(in srgb, var(--creative-amber) 40%, transparent); }
.trust-item[data-accent="plum"]::before { background: var(--creative-plum); box-shadow: 0 0 8px color-mix(in srgb, var(--creative-plum) 40%, transparent); }

/* How indexes colored per row — override muted default */
.how-row[data-accent="tide"] .how-index {
  background: none;
  -webkit-text-fill-color: color-mix(in srgb, var(--creative-tide) 78%, transparent);
  color: color-mix(in srgb, var(--creative-tide) 78%, transparent);
}
.how-row[data-accent="amber"] .how-index {
  background: none;
  -webkit-text-fill-color: color-mix(in srgb, var(--creative-amber) 82%, transparent);
  color: color-mix(in srgb, var(--creative-amber) 82%, transparent);
}
.how-row[data-accent="plum"] .how-index {
  background: none;
  -webkit-text-fill-color: color-mix(in srgb, var(--creative-plum) 78%, transparent);
  color: color-mix(in srgb, var(--creative-plum) 78%, transparent);
}
.how-row[data-accent="tide"] .how-copy { border-left-color: var(--creative-tide); }
.how-row[data-accent="amber"] .how-copy { border-left-color: var(--creative-amber); }
.how-row[data-accent="plum"] .how-copy { border-left-color: var(--creative-plum); }

/* Pain story numbers pick up accent */
.pain-card[data-accent="coral"] .story-number { color: var(--creative-coral); }
.pain-card[data-accent="amber"] .story-number { color: var(--creative-amber); }
.pain-card[data-accent="tide"] .story-number { color: var(--creative-tide); }

/* QR band iris highlight + timeline */
.qr-band .eyebrow--iris { color: color-mix(in srgb, var(--creative-iris) 55%, #fff); }
.qr-band .accent-iris {
  color: color-mix(in srgb, var(--creative-iris) 50%, #fff);
}
.qr-timeline li[data-accent="iris"] span {
  border-color: color-mix(in srgb, var(--creative-iris) 70%, transparent);
  color: color-mix(in srgb, var(--creative-iris) 70%, #fff);
  background: color-mix(in srgb, var(--creative-iris) 18%, transparent);
}
.qr-timeline li[data-accent="plum"] span {
  border-color: color-mix(in srgb, var(--creative-plum) 70%, transparent);
  color: color-mix(in srgb, var(--creative-plum) 75%, #fff);
  background: color-mix(in srgb, var(--creative-plum) 18%, transparent);
}
.qr-timeline li[data-accent="amber"] span {
  border-color: color-mix(in srgb, var(--creative-amber) 70%, transparent);
  color: color-mix(in srgb, var(--creative-amber) 80%, #fff);
  background: color-mix(in srgb, var(--creative-amber) 18%, transparent);
}


/* —— Stitch-sharp centered hero —— */
.hero--stitch {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: clamp(var(--space-8), 4vw, var(--space-12));
  /* Extra top air under sticky header (was flush — space-18/28 undefined) */
  padding-top: clamp(5.5rem, 11vw, 8rem);
  padding-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}
.hero--stitch .hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border, #D6E1D8) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border, #D6E1D8) 70%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 72%);
  opacity: 0.55;
}
.hero--stitch .hero-blobs {
  inset: 10% 10% auto 10%;
  height: 70%;
  opacity: 0.55;
}
.hero--stitch .hero-copy {
  width: min(100%, 40rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero--stitch .hero-copy h1 {
  max-width: 28ch;
  margin-inline: auto;
  margin-bottom: 0;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero--stitch .hero-domain {
  margin: var(--space-5) 0 var(--space-8);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  font-variant-ligatures: none;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}
/* Parent never fades — only .domain-accent morphs so /your_link stays put */
.hero--stitch .hero-domain .domain-accent {
  color: var(--brand);
  white-space: nowrap;
  display: inline-block;
  transition: opacity 0.38s ease, transform 0.38s ease, filter 0.38s ease;
  will-change: opacity, transform;
}
.hero--stitch .hero-domain .domain-accent.is-morphing {
  opacity: 0;
  transform: translateY(0.28em);
  filter: blur(2px);
}
.hero--stitch .hero-domain .domain-path {
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-block;
}
.hero--stitch .hero-actions {
  justify-content: center;
}
.hero--stitch .hero-note {
  margin-top: var(--space-4);
  max-width: 36rem;
}
.hero--stitch .tool-stage {
  width: min(100%, 960px);
  max-width: 960px;
  margin-inline: auto;
  justify-self: center;
}
@media (max-width: 900px) {
  .hero--stitch { gap: var(--space-8); }
  .hero--stitch .hero-copy h1 { max-width: none; }
}

/* Hero domain examples — never hyphenate mid-token */
.hero-lead--domains .domain-ex {
  display: inline;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 650;
}

/* —— Mega-nav contrast on dark header (durable) ——
   Top-level links stay light on #0b0f0d.
   Open mega panel is a light surface — dark readable text.
   Never let .site-header .nav-links a paint mega links white-on-white. */
.site-header .nav-links > a,
.site-header .nav-item > a {
  color: color-mix(in srgb, #fff 78%, transparent);
}
.site-header .nav-links > a:hover,
.site-header .nav-item > a:hover,
.site-header .nav-links > a:focus-visible,
.site-header .nav-item > a:focus-visible {
  color: #fff;
  background: color-mix(in srgb, #fff 10%, transparent);
}
.site-header .nav-links > a.is-active,
.site-header .nav-item > a.is-active,
.site-header .nav-item:focus-within > a {
  color: #fff;
  background: color-mix(in srgb, #fff 12%, transparent);
}
.site-header .mega,
.site-header .mega--2 {
  background: #FFFEFB !important;
  color: var(--text-primary, #121816) !important;
  border: 1px solid color-mix(in srgb, var(--border, #d7ddd8) 90%, #0b0f0d) !important;
  box-shadow:
    0 4px 14px color-mix(in srgb, #0b0f0d 10%, transparent),
    0 24px 48px color-mix(in srgb, #0b0f0d 14%, transparent) !important;
}
.site-header .mega-label {
  color: var(--text-muted, #6b736e) !important;
}
.site-header .mega a,
.site-header .mega-col a,
.site-header .nav-links .mega a {
  color: var(--text-secondary, #3d4650) !important;
  background: transparent !important;
}
.site-header .mega a:hover,
.site-header .mega-col a:hover,
.site-header .nav-links .mega a:hover,
.site-header .mega a:focus-visible {
  color: var(--text-primary, #121816) !important;
  background: var(--bg-muted, #f3f5f3) !important;
}

/* —— CJK / body sentence UI (durable) ——
   Keep words intact (廣告 not 廣|告。). Prefer keep-all + strict line-break
   on body/lead so single-character orphans like 「告。」 do not sit alone.
   Heads already use keep-all; extend to section leads and paragraphs. */
html[lang="zh-Hant"] body,
html[lang="ja"] body,
html[lang="ko"] body,
html[lang="th"] body {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere; /* long URLs/latin still wrap */
}
html[lang="zh-Hant"] .section-lead,
html[lang="zh-Hant"] .how-copy p,
html[lang="zh-Hant"] .feat-body p,
html[lang="zh-Hant"] .pain-card p,
html[lang="zh-Hant"] .promise-list li,
html[lang="zh-Hant"] p,
html[lang="ja"] .section-lead,
html[lang="ja"] .how-copy p,
html[lang="ja"] p,
html[lang="ko"] .section-lead,
html[lang="ko"] .how-copy p,
html[lang="ko"] p {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word; /* was anywhere — mid-domain breaks */
  text-wrap: pretty;
}
.how-copy .domain-keep,
.feat-body .domain-keep {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
.section-lead,
.how-copy p,
.feat-body > p,
.pain-card > p {
  text-wrap: pretty;
}


.how-section.section-space,
.how-section.section-pad {
  margin-top: 0;
}


/* Locked: CJK how-intro must clear first-row 01 watermark (multi-line titles) */
html[lang="zh-Hant"] .how-section,
html[lang="ja"] .how-section,
html[lang="ko"] .how-section,
html[lang="th"] .how-section {
  --how-copy-col: min(26rem, 44vw);
  --how-raise: clamp(5rem, 10vw, 8rem);
}
@media (min-width: 1000px) {
  html[lang="zh-Hant"] .how-stack > .how-row:first-child .how-copy,
  html[lang="ja"] .how-stack > .how-row:first-child .how-copy,
  html[lang="ko"] .how-stack > .how-row:first-child .how-copy,
  html[lang="th"] .how-stack > .how-row:first-child .how-copy {
    padding-top: 0.5rem;
  }
}

.phrase-keep { white-space: nowrap; }
@media (max-width: 999px) {
  .phrase-keep { white-space: normal; }
  .how-intro h2 .br-desk { display: none; }
}

/* —— Mega-nav hover lock (2026-09-29, locked; DESIGN.md catch #13) ——
   Hover opens on FIRST hover (no prior click); keyboard focus opens too; leave closes.
   ::before bridge spans the 8px visual gap so moving the pointer into the panel keeps it
   open (homepage + secondary). Homepage has no site.css, so its base mega layout is
   scoped to #nav-links (homepage-only id) and never touches secondary nav-panel rules. */
.site-header .nav-item.has-menu { position: relative; }
.site-header .mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
#nav-links .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
#nav-links .mega {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  min-width: 520px;
  padding: var(--space-5, 1.25rem);
  border-radius: var(--radius-card, 16px);
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4, 1rem);
  z-index: 60;
  text-align: left;
}
#nav-links .mega--2 { grid-template-columns: repeat(2, 1fr); min-width: 400px; }
#nav-links .nav-item:hover > .mega,
#nav-links .nav-item:focus-within > .mega { display: grid; }
#nav-links .mega-label {
  margin: 0 0 var(--space-3, 0.75rem);
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#nav-links .mega-col a {
  display: block;
  min-height: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 899px) {
  /* Mobile stacked menu: top-level links navigate; panels stay out of the drawer */
  #nav-links .nav-item { display: flex; }
  #nav-links .mega,
  #nav-links .nav-item:hover > .mega,
  #nav-links .nav-item:focus-within > .mega { display: none; }
}
