/* FreeSaaS public site — light tokens aligned with admin (core.css light theme) */
:root {
  --bg0: #f4f7fa;
  --bg1: #ffffff;
  --bg2: #e8eef4;
  --bg-elev: rgba(15, 20, 25, 0.03);
  --bg-panel: rgba(255, 255, 255, 0.96);
  --line: rgba(15, 30, 45, 0.12);
  --text: #15202b;
  --muted: #5a6b7c;
  --accent: #0d9488;
  --accent-2: #0284c7;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --accent-ring: rgba(13, 148, 136, 0.18);
  --warn: #b45309;
  --danger: #e11d48;
  --ok: #059669;
  --btn-primary-fg: #ffffff;
  --shadow: 0 20px 50px rgba(15, 30, 45, 0.12);
  --grad-a: rgba(13, 148, 136, 0.1);
  --grad-b: rgba(2, 132, 199, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", "DM Sans", sans-serif;
  --radius: 14px;
  --header-h: 4rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --saas-locked: #64748b;
  --saas-bg: #e2e8f0;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
[id] { scroll-margin-top: calc(var(--header-h) + 0.75rem); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--grad-a), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, var(--grad-b), transparent 50%),
    linear-gradient(180deg, #eef3f7 0%, var(--bg0) 28%, var(--bg0) 100%);
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg1);
  color: var(--text);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(244, 247, 250, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-free { color: var(--accent); }
.logo-saas { color: var(--text); }
.logo:hover .logo-free { color: #0f766e; }
.logo:hover .logo-saas { color: var(--text); }
.brand-mark {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark .logo-free { color: var(--accent); }
.brand-mark .logo-saas { color: inherit; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1.5rem;
  flex: 1;
}
.nav-desktop > a,
.nav-desktop .nav-drop > summary {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  list-style: none;
}
.nav-desktop > a:hover,
.nav-desktop .nav-drop > summary:hover { background: var(--bg-elev); }
.nav-drop { position: relative; }
.nav-drop > summary { cursor: pointer; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop[open] > summary { background: var(--accent-soft); color: var(--accent); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 16rem;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 60;
}
.nav-drop-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-drop-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-drop-menu .soon {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
}
.lang-switch:hover { color: var(--text); background: var(--bg-elev); }
.github-link {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 2.25rem;
  overflow: visible;
}
.github-link svg {
  width: 20px !important;
  height: 20px !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  flex: none;
  aspect-ratio: 1;
}
.github-link:hover { background: var(--bg-elev); }
.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg1);
  color: var(--text);
}
.btn-menu span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}
.btn-menu span::before,
.btn-menu span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.btn-menu span::before { top: -5px; }
.btn-menu span::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--btn-primary-fg);
}
.btn-primary:hover { background: #0f766e; color: var(--btn-primary-fg); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-cta-header {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}
.btn-cta-mobile-extra { display: none; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(244, 247, 250, 0.98);
  padding: 1.25rem;
  z-index: 40;
  overflow: auto;
  flex-direction: column;
  gap: 0.35rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 1rem; width: 100%; }
.nav-mobile .sub {
  font-weight: 500;
  font-size: 1rem;
  padding-left: 1rem;
  color: var(--muted);
  border-bottom: none;
}

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .github-link { display: inline-flex; }
  .btn-cta-header { padding: 0.65rem 1.15rem; font-size: 0.95rem; }
  .btn-menu { display: none; }
}

/* ——— Layout ——— */
main { min-height: 60vh; }
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.scene {
  min-height: min(78vh, 48rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.scene:last-of-type { border-bottom: none; }
.scene-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 40rem;
}
.scene-head h1,
.scene-head h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.scene-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
}
.page-hero {
  padding: clamp(2rem, 6vh, 3.5rem) 0 1.25rem;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 0.75rem;
  line-height: 1.08;
}
.page-hero p { margin: 0; color: var(--muted); max-width: 36rem; font-size: 1.05rem; }
.page-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding-bottom: 4rem;
}
.page-shell .page-hero,
.page-shell .page-section {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ——— Home hero (first viewport) ——— */
.home-hero {
  box-sizing: border-box;
  min-height: calc(100svh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 0.35rem 0 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.home-hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.85rem, 2.2vh, 1.35rem);
  padding: clamp(0.65rem, 2vh, 1.25rem) 0 clamp(2.4rem, 5vh, 3rem);
  position: relative;
  min-height: 0;
}
.home-hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-size: clamp(1.85rem, 5.6vw, 3.55rem);
  max-width: 22ch;
}
.home-hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.4;
  max-width: 38rem;
}
.home-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  align-self: center;
}
.home-hero__cta {
  width: min(100%, 28rem);
  min-height: 3.1rem;
  justify-content: center;
  background: #15202b;
  color: #fff;
  border-color: #15202b;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
}
.home-hero__cta:hover {
  background: #0f1720;
  color: #fff;
  border-color: #0f1720;
}
.home-hero__see {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.3;
}
.home-hero__see-arrow {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.05rem;
  background: currentColor;
  clip-path: polygon(50% 100%, 0 35%, 28% 35%, 28% 0, 72% 0, 72% 35%, 100% 35%);
}
.home-hero__see:hover { color: var(--accent); }
.home-hero__stats {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.home-hero__stat {
  margin: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.home-hero__stat strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.home-hero__stat span {
  color: var(--muted);
  font-size: clamp(0.72rem, 1.9vw, 0.88rem);
  line-height: 1.3;
}
@media (max-width: 720px) {
  .home-hero {
    /* Leave a peek of the next block + room under sticky header */
    min-height: calc(100svh - var(--header-h) - 1.25rem);
    max-height: calc(100svh - var(--header-h) - 1.25rem);
  }
  .home-hero__title {
    max-width: none;
    font-size: clamp(1.55rem, 7.2vw, 2rem);
  }
  .home-hero__lead {
    font-size: 0.92rem;
    line-height: 1.35;
  }
  .home-hero__cta { width: 100%; max-width: none; }
  .home-hero__stats { gap: 0.4rem; }
  .home-hero__stat {
    padding: 0.55rem 0.5rem;
    border-radius: 12px;
  }
  .home-hero__stat strong { font-size: 1.05rem; }
  .home-hero__stat span { font-size: 0.68rem; }
  .home-hero__inner {
    gap: 0.75rem;
    padding: 0.5rem 0 1.5rem;
  }
}

@media (max-width: 380px) {
  .home-hero__title { font-size: 1.45rem; }
  .home-hero__lead { font-size: 0.86rem; }
  .home-hero__stat { padding: 0.45rem 0.4rem; }
  .home-hero__stat strong { font-size: 0.98rem; }
  .home-hero__stat span { font-size: 0.64rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__see-arrow {
    animation: home-hero-nudge 1.6s var(--ease) infinite;
  }
}
@keyframes home-hero-nudge {
  0%, 100% { transform: translateY(-2px); opacity: 0.75; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* ——— Why presentation ——— */
.why-demo-head {
  margin-bottom: 1rem;
  max-width: none;
}
.why-demo-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.why-transport {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg1) 88%, var(--bg-elev));
}
.why-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.45rem;
  min-height: 2.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
}
.why-ico:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.why-replay-ico {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}
.why-preso {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}
.why-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 auto 1.25rem;
  max-width: 48rem;
}
.why-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  border: none;
  background: transparent;
  padding: 0.35rem 0.25rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: 10px;
}
.why-nav-item:hover { color: var(--text); }
.why-nav-item.is-active { color: var(--text); }
.why-nav-label {
  font-size: clamp(0.72rem, 2.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}
.why-progress {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--bg2);
  overflow: hidden;
}
.why-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent);
  transition: transform 0.35s var(--ease);
}
.why-nav-item.is-done .why-progress-fill { background: var(--accent); }
.why-nav-item.is-active .why-progress { box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.2); }

.why-stage {
  position: relative;
  min-height: min(32rem, 78vh);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(15, 30, 45, 0.08);
  overflow: hidden;
}
.why-slide {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  min-height: min(32rem, 78vh);
}
.why-slide.is-active { display: flex; }
.why-slide-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  line-height: 1.1;
}
.why-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: flex-start;
  min-height: 18rem;
}
.why-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-elev) 55%, var(--bg1));
}
.why-chat__log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.9rem 1rem 0.55rem;
  min-height: 14rem;
  max-height: min(28rem, 52vh);
  scroll-behavior: smooth;
}
.why-chat .why-canvas {
  flex: none;
  min-height: 0;
  gap: 0.85rem;
}
.why-chat__form {
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
  flex-shrink: 0;
  padding: 0.75rem 0.9rem 0.9rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg1) 82%, transparent);
  backdrop-filter: blur(8px);
}
.why-chat__form[hidden] {
  display: none !important;
}
.why-chat__input {
  flex: 1;
  min-height: 2.85rem;
  max-height: min(42vw, 11rem);
  height: 2.85rem;
  resize: none;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--bg1);
  color: var(--text);
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  font: inherit;
  line-height: 1.4;
  outline: none;
  field-sizing: content;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, height 0.12s ease;
}
.why-chat__form.is-typing .why-chat__input {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
@media (max-width: 640px) {
  .why-chat__input {
    max-height: min(38vh, 12rem);
  }
}
.why-chat__send {
  flex-shrink: 0;
  min-height: 2.85rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}
.why-chat__send.is-armed {
  opacity: 1;
}
.why-chat__send.is-sending {
  opacity: 1;
  transform: scale(0.96);
}
.why-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}
.why-next {
  margin-left: auto;
}
.why-finish {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
@media (max-width: 640px) {
  .why-next,
  .why-finish {
    margin-left: 0;
    width: 100%;
  }
  .why-finish .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
.why-toolbar [hidden],
.why-canvas[hidden],
.why-slide[hidden] {
  display: none !important;
}
.why-note {
  margin: 0.9rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.why-step:not(.is-on) {
  display: none !important;
}
.why-step.is-on {
  animation: why-step-in 0.35s var(--ease) both;
  pointer-events: auto;
}
.why-part {
  opacity: 0;
  transform: translateY(0.55rem);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.why-part.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@keyframes why-step-in {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .why-step.is-on {
    animation: none !important;
  }
  .why-part,
  .why-progress-fill {
    transition: none !important;
  }
  .why-chat__log { scroll-behavior: auto; }
}

.why-msg {
  max-width: min(92%, 34rem);
  margin: 0;
}
.why-msg--user { margin-left: auto; align-self: flex-end; }
.why-msg--assistant { margin-right: auto; align-self: flex-start; }
.why-msg__who {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
  padding: 0 0.35rem;
}
.why-msg--user .why-msg__who { text-align: right; }
.why-msg__body {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--bg1);
}
.why-msg--user .why-msg__body {
  border-radius: 16px 16px 4px 16px;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg1));
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}
.why-msg--assistant .why-msg__body {
  border-radius: 16px 16px 16px 4px;
  background: color-mix(in srgb, var(--bg-elev) 70%, var(--bg1));
}
.why-msg--strong .why-msg__body {
  font-weight: 700;
}

.why-action {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  align-self: flex-start;
  max-width: min(34rem, 100%);
  margin-left: 0.15rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg1);
  font-size: 0.9rem;
  line-height: 1.35;
}
.why-action__mark {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.why-price {
  align-self: stretch;
  text-align: center;
  padding: 0.75rem 0.5rem;
}
.why-price__zero {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 4.5rem);
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
}

.why-viz {
  align-self: stretch;
  max-width: min(36rem, 100%);
  margin-left: 0.15rem;
}
.launch-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--bg1));
}
.launch-ok {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
}
.launch-card strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.launch-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.audio-card {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg1);
}
.audio-card > strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}
.audio-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.audio-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  font-size: 0.88rem;
}
.audio-row span { color: var(--muted); font-size: 0.78rem; }
.audio-open {
  color: var(--accent) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
}
.why-stagger {
  opacity: 0;
  transform: translateY(0.4rem);
}
.why-step.is-on .why-stagger {
  animation: why-stagger-in 0.4s var(--ease) forwards;
}
.why-step.is-on .why-stagger:nth-child(1) { animation-delay: 0.05s; }
.why-step.is-on .why-stagger:nth-child(2) { animation-delay: 0.16s; }
.why-step.is-on .why-stagger:nth-child(3) { animation-delay: 0.27s; }
.why-step.is-on .why-stagger:nth-child(4) { animation-delay: 0.38s; }
@keyframes why-stagger-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .why-stagger,
  .why-step.is-on .why-stagger {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
.api-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.api-flow span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg1);
  font-weight: 700;
  font-size: 0.85rem;
}
.api-flow span:not(:last-child)::after {
  content: "";
}
.api-flow span + span::before {
  content: "→";
  margin-right: 0.45rem;
  color: var(--muted);
  font-weight: 600;
}
.test-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: var(--bg2);
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.test-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
}
.why-viz.test.is-on .test-bar span {
  animation: why-fill 0.9s var(--ease) forwards;
}
@keyframes why-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .why-viz.test.is-on .test-bar span { width: 100%; animation: none; }
}
.why-viz.test p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.equip-grid,
.cand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.45rem;
}
.equip-card,
.cand-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg1);
  padding: 0.65rem 0.7rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.cand-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cand-card span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}
.shift-card {
  display: inline-flex;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.08);
  font-weight: 700;
  font-size: 0.92rem;
}
.why-badge span {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}
.ai-mod-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ai-mod {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}
.why-viz.summary {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg1);
}
.why-viz.summary strong {
  display: block;
  font-family: var(--display);
  margin-bottom: 0.25rem;
}
.why-viz.summary p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Data principle */
.why-data-scene { width: 100%; max-width: 40rem; }
.data-stage {
  position: relative;
  min-height: 16rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(13, 148, 136, 0.12), transparent 60%),
    var(--bg1);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.data-host {
  justify-self: start;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.08);
  font-weight: 700;
  font-size: 0.82rem;
}
.data-core {
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 0.9rem;
  display: grid;
  gap: 0.65rem;
  background: rgba(13, 148, 136, 0.05);
}
.data-db {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
}
.data-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.data-mod {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--bg1);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}
.data-gate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.key-ico { width: 1rem; height: 1rem; }
.data-exts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.data-ext {
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  border: 1px dashed #94a3b8;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.why-data-final {
  margin: 0.85rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: -0.03em;
}

/* Tariffs */
.why-bill {
  width: min(28rem, 100%);
  margin: 0 auto;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg1);
  box-shadow: var(--shadow);
}
.bill-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}
.bill-head strong {
  font-family: var(--display);
  font-size: 1.15rem;
}
.bill-head span { color: var(--muted); font-size: 0.8rem; }
.why-bill-table { width: 100%; border-collapse: collapse; }
.why-bill-table th,
.why-bill-table td {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}
.why-bill-table th { text-align: left; font-weight: 500; color: var(--muted); }
.why-bill-table td { text-align: right; font-family: var(--display); font-weight: 800; }
.why-bill .amt.zero { display: none; color: var(--accent); }
.why-bill.is-zero .amt.paid {
  text-decoration: line-through;
  color: var(--muted);
  margin-right: 0.35rem;
  font-weight: 600;
}
.why-bill.is-zero .amt.zero { display: inline; }
.bill-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.75rem;
  font-weight: 700;
}
.bill-q {
  margin: 1rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
}
.bill-finale {
  display: none;
  text-align: center;
  padding: 1.25rem 0 0.35rem;
}
.why-bill.is-finale .why-bill-table,
.why-bill.is-finale .bill-sum,
.why-bill.is-finale .bill-q,
.why-bill.is-finale .bill-head { display: none; }
.why-bill.is-finale .bill-finale { display: block; }
.zero-huge {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 4.5rem);
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 1;
}
.forever {
  margin: 0.35rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Keep AI dialog toggle styles */
.toggle-track {
  width: 3.5rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg2);
  position: relative;
  margin-top: 0.35rem;
  padding: 0;
  transition: background 0.35s var(--ease);
}
.toggle-track[data-ai-toggle][aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--bg1);
  box-shadow: 0 2px 8px rgba(15, 30, 45, 0.2);
  transition: transform 0.35s var(--ease);
}
.toggle-track[data-ai-toggle][aria-checked="true"] .toggle-thumb {
  transform: translateX(1.45rem);
}

@media (max-width: 720px) {
  .why-stage,
  .why-slide { min-height: 28rem; }
  .why-nav { gap: 0.35rem; max-width: none; }
  .why-nav-label { font-size: 0.7rem; }
  .why-bubble.agent,
  .why-viz { margin-left: 0; }
  .why-canvas { min-height: 16rem; }
}

@media (max-width: 420px) {
  .why-nav-label { letter-spacing: 0; }
  .why-nav-item { padding: 0.25rem 0.1rem; }
}

/* ——— Capabilities ——— */
.scene--capabilities {
  min-height: 0;
  justify-content: flex-start;
  padding: clamp(3rem, 8vh, 6rem) 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg2) 55%, transparent) 0%, transparent 42%),
    linear-gradient(165deg, rgba(2, 132, 199, 0.05) 0%, transparent 38%),
    color-mix(in srgb, var(--bg0) 70%, #e4edf5);
  border-bottom: 1px solid var(--line);
}
.cap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.cap-head__text {
  max-width: 42rem;
}
.cap-head__text h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.cap-head__text p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40rem;
}
.cap-reset {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--accent-2);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.cap-reset:hover { color: var(--accent); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
button.cap-tile {
  appearance: none;
  font: inherit;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 9.25rem; /* 148px */
  margin: 0;
  padding: 1rem 0.95rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(15, 30, 45, 0.03);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease),
    background-color 0.28s var(--ease),
    filter 0.28s var(--ease);
  cursor: pointer;
  user-select: none;
}
button.cap-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 30, 45, 0.1);
}
button.cap-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.cap-tile.is-off {
  background: color-mix(in srgb, var(--bg1) 72%, var(--bg2));
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
  filter: saturate(0.35);
  opacity: 0.92;
}
.cap-tile.is-off .cap-tile__icon {
  opacity: 0.45;
  color: var(--saas-locked);
}
.cap-tile.is-on {
  filter: none;
  opacity: 1;
}
.cap-tile.is-on .cap-tile__icon {
  opacity: 1;
  color: var(--accent);
}
.cap-tile.is-open {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.cap-tile.is-dep {
  filter: none;
  opacity: 1;
  border-style: dashed;
  border-color: var(--accent);
  border-width: 1.5px;
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg1));
}
.cap-tile.is-dep .cap-tile__icon {
  opacity: 1;
  color: var(--accent);
}
.cap-tile.is-landing {
  animation: cap-tile-land 0.42s var(--ease);
}
@keyframes cap-tile-land {
  0% { transform: translateY(-5px); }
  60% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}
.cap-tile__icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  margin: 0.15rem 0 0.15rem;
}
.cap-tile__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cap-tile__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cap-tile__dot {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  box-sizing: border-box;
}
.cap-tile.is-off .cap-tile__dot {
  background: transparent;
  border: 1.5px solid #94a3b8;
}
.cap-tile.is-on .cap-tile__dot {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 2px;
}
.cap-tile__pull {
  position: absolute;
  top: 0.55rem;
  right: 1.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--bg1);
  border: 1px dashed var(--accent);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  line-height: 1.2;
  max-width: 6.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cap-tile__ai {
  position: absolute;
  top: 0.55rem;
  left: 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  line-height: 1.2;
  z-index: 1;
}
.cap-tile:has(.cap-tile__ai) {
  padding-top: 1.55rem;
}

.cap-panel {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  box-shadow: 0 12px 36px rgba(15, 30, 45, 0.08);
}
.cap-panel[hidden] { display: none !important; }
.cap-panel.is-enter {
  animation: cap-panel-in 0.32s var(--ease);
}
@keyframes cap-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cap-panel__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  border-radius: 8px;
}
.cap-panel__close:hover { color: var(--text); background: var(--bg-elev); }
.cap-panel__pain {
  margin: 0 1.75rem 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text);
  font-weight: 600;
}
.cap-panel__chat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cap-msg {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  max-width: 36rem;
  line-height: 1.4;
}
.cap-msg__who {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  color: var(--muted);
}
.cap-msg--you {
  background: var(--bg2);
  align-self: flex-end;
}
.cap-msg--max {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  align-self: flex-start;
}
.cap-result {
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--bg0));
  max-width: 40rem;
}
.cap-result__title {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.cap-result__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.cap-result__table th,
.cap-result__table td {
  text-align: left;
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid var(--line);
}
.cap-result__table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}
.cap-result__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cap-result__steps li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.35;
}
.cap-result__n {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.cap-panel__deps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.cap-panel__deps-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.cap-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cap-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px dashed var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.cap-panel__demo {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-size: 0.92rem;
}
.cap-panel__demo[hidden] {
  display: none !important;
}

.demo-page h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 1.75rem 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.demo-page__missing,
.demo-page__see {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--text);
}
.demo-page__see li {
  margin: 0.45rem 0;
}
.demo-page__see a {
  font-weight: 700;
  margin-right: 0.45rem;
}
.demo-page__see span {
  color: var(--muted);
}
.demo-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0.75rem;
}
.demo-page__bridge {
  margin: 0.5rem 0;
}
.demo-page__later {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cap-core {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.65rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg2) 78%, #cfd9e4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.cap-core .cap-tile__icon,
.cap-core > svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.cap-core__title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.cap-core__desc {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--muted);
}
.cap-core__dot {
  margin-left: auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex-shrink: 0;
}

.cap-after {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 40rem;
}
.cap-after__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}
.cap-after__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
}
.cap-after__link {
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--accent-2);
}
.cap-after__link:hover { color: var(--accent); }

@media (max-width: 720px) {
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .scene--capabilities { padding: 3rem 0; }
  .cap-head { flex-direction: column; gap: 0.5rem; }
  .cap-head__text h2 { font-size: clamp(1.85rem, 7vw, 2.6rem); }
  .cap-reset { margin-top: 0; align-self: flex-start; }
  button.cap-tile {
    min-height: 7.5rem;
    padding: 0.8rem 0.7rem 0.75rem;
  }
  .cap-tile__icon { width: 2rem; height: 2rem; }
  .cap-tile__title { font-size: 1rem; }
  .cap-tile__desc { font-size: 0.8125rem; }
  .cap-tile__pull {
    right: 0.55rem;
    top: auto;
    bottom: 0.45rem;
    max-width: calc(100% - 1.1rem);
  }
  .cap-panel { padding: 1rem 0.85rem 1.1rem; }
  .cap-panel__pain { font-size: 0.98rem; margin-right: 1.5rem; }
  .cap-msg { max-width: 100%; font-size: 0.88rem; }
  .cap-core {
    align-items: flex-start;
    padding: 0.85rem 0.9rem;
  }
  .cap-core__dot { margin-top: 0.35rem; }
  .cap-after__text { font-size: 0.98rem; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .cap-grid { gap: 0.9rem; }
  button.cap-tile { min-height: 8.5rem; padding: 0.9rem 0.8rem; }
  .cap-tile__title { font-size: 1.05rem; }
  .cap-tile__desc { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cap-tile.is-landing,
  .cap-panel.is-enter { animation: none; }
  button.cap-tile:hover { transform: none; }
}
.ai-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg0);
  margin: 0.85rem 0 0.5rem;
  width: fit-content;
}
.ai-toggle-wrap strong {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.92rem;
}
.ai-toggle-wrap .toggle-track { margin: 0; }
.dialog-demo {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg0);
  overflow: hidden;
  position: relative;
  display: grid;
  min-height: 14rem;
}
.dialog-demo .demo-label {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  z-index: 2;
}
.dialog-demo .demo-ui,
.dialog-demo .demo-ai {
  grid-area: 1 / 1;
  padding: 1rem;
  min-height: 14rem;
}
.dialog-demo .demo-ai {
  visibility: hidden;
  pointer-events: none;
}
body[data-ai="on"] .dialog-demo .demo-ui {
  visibility: hidden;
  pointer-events: none;
}
body[data-ai="on"] .dialog-demo .demo-ai {
  visibility: visible;
  pointer-events: auto;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
}
.module-tile {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg1);
  border-radius: var(--radius);
  padding: 1rem 0.65rem 0.85rem;
  text-align: center;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.module-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}
.module-tile.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.module-tile .icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.55rem;
  color: var(--accent);
}
.module-tile .label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}


.channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.channel-pills button {
  border: 1px solid var(--line);
  background: var(--bg0);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.channel-pills button.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.chat-bubble {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  max-width: 95%;
}
.chat-bubble.user {
  background: var(--bg2);
  margin-left: auto;
}
.chat-bubble.agent {
  background: var(--accent-soft);
  border: 1px solid rgba(13, 148, 136, 0.2);
}
.result-card {
  margin-top: 0.85rem;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(13, 148, 136, 0.05);
}
.result-card strong { display: block; margin-bottom: 0.25rem; font-size: 0.9rem; }
.result-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Fake admin UI bits */
.ui-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.ui-topbar b { color: var(--text); font-family: var(--display); }
.ui-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ui-table th, .ui-table td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
}
.ui-table th { color: var(--muted); font-weight: 600; }
.ui-chip {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.ui-form-row { display: grid; gap: 0.35rem; margin-bottom: 0.75rem; }
.ui-form-row label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.ui-fake-input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: var(--bg0);
  font-size: 0.9rem;
}
.ui-fake-input.changed {
  border-color: var(--accent);
  background: rgba(13, 148, 136, 0.08);
}

/* ——— Start scene ——— */
.start-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.provider-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.1rem 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.provider-btn:hover, .provider-btn:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}
.provider-btn:active { transform: translateY(1px); }
.provider-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  box-sizing: border-box;
}
.provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: none;
}
.provider-name { line-height: 1.2; text-align: center; }
.provider-note { font-weight: 500; font-size: 0.75rem; color: var(--muted); line-height: 1.25; text-align: center; }
.provider-logo.codex { background: #10a37f; }
.provider-logo.claude { background: #d97757; }
.provider-logo.deepseek { background: #4d6bfe; }
.provider-logo.opencode { background: #211e1e; }
.provider-logo.cursor { background: #26251e; }
.provider-logo.other { background: var(--text); }
.provider-logo.alice { background: #ffffff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
#copy-status {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--ok);
}

/* ——— Earn scene ——— */
.earn {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}
@media (min-width: 800px) {
  .earn { grid-template-columns: 1.4fr auto; }
}
.earn h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.earn p { margin: 0 0 0.75rem; color: var(--muted); max-width: 32rem; font-size: 1.1rem; }
.earn .tagline {
  font-family: var(--display);
  font-weight: 700;
  color: var(--text);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

/* ——— Dialog ——— */
dialog.module-dialog {
  border: none;
  border-radius: calc(var(--radius) + 4px);
  padding: 0;
  max-width: min(40rem, calc(100vw - 2rem));
  width: 100%;
  box-shadow: var(--shadow);
  background: var(--bg1);
}
dialog.module-dialog::backdrop { background: rgba(15, 20, 25, 0.45); }
.dialog-inner { padding: 1.5rem 1.5rem 1.35rem; }
.dialog-inner h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}
.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg2);
  color: var(--muted);
}
.badge.alpha { background: #fef3c7; color: #92400e; }
.badge.beta { background: #e0f2fe; color: #075985; }
.badge.release { background: #d1fae5; color: #065f46; }
.dialog-inner p { margin: 0 0 0.75rem; color: var(--muted); }
.dialog-inner ul { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--text); }
.dialog-inner li { margin-bottom: 0.35rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg0);
  font-size: 1.25rem;
  line-height: 1;
}

/* ——— Inner pages ——— */
.page-section { padding: 1.25rem 0 0; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  align-items: center;
}
.filters input[type="search"],
.filters select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: var(--bg1);
  font: inherit;
  min-width: 10rem;
}
.filters-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: auto;
}
.view-toggle button {
  border: none;
  background: transparent;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.view-toggle button.is-active {
  background: var(--accent);
  color: var(--btn-primary-fg);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.85rem;
}
.catalog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--bg1);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.catalog-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.catalog-card h3.biz-only {
  font-family: var(--display);
}
.catalog-card h3.tech-only {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1rem;
}
.catalog-card .muted { font-size: 0.82rem; color: var(--muted); }
.catalog-card .tech { font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; color: var(--muted); }
.catalog-card p { margin: 0; font-size: 0.92rem; color: var(--muted); flex: 1; }
.catalog-card .tech-only { display: none; }
body[data-view="tech"] .catalog-card .biz-only { display: none; }
body[data-view="tech"] .catalog-card .tech-only { display: block; }
.group-heading {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 2rem 0 0.85rem;
  grid-column: 1 / -1;
}

.solution-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .solution-grid { grid-template-columns: repeat(3, 1fr); }
}
.solution-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem;
  background: var(--bg1);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.solution-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: inherit;
}
.solution-card h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.solution-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.limit-box {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.95rem;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0 0.85rem;
}
.pill-list span,
.pill-list a.pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.pill-list a.pill:hover {
  background: var(--accent);
  color: var(--btn-primary-fg);
}
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.task-list > li {
  margin: 0 0 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.task-list > li:last-child { border-bottom: none; }
.task-list strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

/* ——— Solution pages: TOC, team flows, tasks, cases, rollout notes ——— */
@media (min-width: 800px) {
  .solution-grid.solution-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.sol-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0 0.5rem;
}
.sol-toc a {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg1);
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}
.sol-toc a:hover { border-color: var(--accent); color: var(--accent); }
.sol-section { padding-top: 2.25rem; }
.page-section.sol-section > h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 0.75rem;
}
.sol-section.prose p { color: var(--text); }
.sol-lead { color: var(--muted); max-width: 44rem; margin: 0 0 1.1rem; }

.flow-list, .task-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.flow-row,
.task-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  padding: 1rem 1.15rem;
}
.flow-role { display: block; font-size: 1.05rem; margin-bottom: 0.5rem; }
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.flow-step {
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: var(--bg2);
  font-size: 0.86rem;
  font-weight: 600;
}
.flow-arrow { color: var(--muted); font-size: 0.85rem; }
.flow-row p, .task-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (min-width: 720px) {
  .task-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .task-grid { grid-template-columns: repeat(3, 1fr); }
}
.task-card strong { display: block; margin-bottom: 0.35rem; }
.task-card .pill-list { margin-bottom: 0; }

.case-list { display: grid; gap: 1.25rem; }
.case-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg1);
  padding: clamp(1.15rem, 3vw, 1.75rem);
  max-width: 52rem;
}
.case-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-card h3 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}
.case-situation { margin: 0 0 1rem; }
.case-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-prompts { margin-bottom: 1rem; }
.case-prompts blockquote {
  margin: 0 0 0.5rem;
  padding: 0.7rem 0.95rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  font-style: italic;
}
.case-how ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.case-how li { margin-bottom: 0.4rem; }
.case-figure { margin: 0 0 1rem; }
.case-figure img {
  width: 100%;
  max-width: 30rem;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.case-figure figcaption { margin-top: 0.4rem; color: var(--muted); font-size: 0.85rem; }
.case-tip {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  background: var(--bg2);
  font-size: 0.95rem;
}
.case-decision { margin: 0 0 0.35rem; }

.sol-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.demo-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28rem;
}
.contact-topics {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}
.contact-topics a {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.contact-topics a:hover { border-color: var(--accent); color: var(--accent); }
.contact-topics a small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.88rem;
}
.doc-links {
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}
.doc-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.doc-links a:hover { border-color: var(--accent); color: var(--accent); }
.prose { max-width: 40rem; }
.prose h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
  margin: 2rem 0 0.65rem;
}
.prose p { color: var(--muted); }
.prose ul { color: var(--text); }
.onboarding pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  background: #eef3f7;
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin-bottom: 2rem;
}
.footer-grid h3 {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.footer-grid a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2rem 0;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-bottom .logo { font-size: 1.1rem; }
.footer-bottom__meta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.1rem;
}
.theme-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.theme-switcher__label { opacity: 0.72; }
.theme-switcher__sep { opacity: 0.4; }
.theme-switcher__item {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.78;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a.theme-switcher__item:hover {
  color: var(--text);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.theme-switcher__item.is-active {
  color: var(--text);
  opacity: 0.92;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
.cookie-reopen {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  padding: 0;
}
.cookie-reopen:hover { color: var(--accent); }

/* ——— Cookie banner ——— */
.cookie-banner {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0));
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(15, 30, 45, 0.12);
}
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}
.cookie-banner__text a { color: var(--accent); }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.cookie-banner__actions .btn { font-size: 0.9rem; padding: 0.55rem 0.95rem; }
@media (max-width: 640px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-bottom__meta { margin-left: 0; width: 100%; }
  .cookie-reopen { margin-left: 0; text-align: left; }
}

/* Empty / hidden helpers */
.is-hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Prompt fallback panel (clipboard blocked / Show prompt) */
.prompt-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
}
.prompt-panel[hidden] { display: none !important; }
.prompt-panel-inner {
  width: min(40rem, 100%);
  max-height: min(80vh, 36rem);
  overflow: auto;
  background: var(--bg1);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.prompt-panel-inner h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
}
.prompt-panel-inner pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  max-height: 50vh;
  overflow: auto;
}
.prompt-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.prompt-hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.provider-btn-show {
  border-style: dashed;
}

/* ——— #missing strip + site forms ——— */
.scene--missing {
  padding: 2.25rem 0;
  background:
    linear-gradient(180deg, rgba(13, 148, 136, 0.06), rgba(2, 132, 199, 0.04)),
    var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.missing-strip {
  display: grid;
  gap: 1.25rem;
}
.missing-copy h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}
.missing-copy p { margin: 0 0 0.75rem; color: var(--text); max-width: 42rem; line-height: 1.5; }
.missing-fine { color: var(--muted) !important; font-size: 0.9rem; }
.missing-form-wrap { max-width: 36rem; }
.missing-back { margin: 0 0 0.75rem; font-size: 0.95rem; }
.missing-back a { color: var(--muted); text-decoration: none; }
.missing-back a:hover { color: var(--accent); }

.site-form {
  position: relative;
  display: grid;
  gap: 0.55rem;
}
.site-form label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.35rem;
}
.site-form input[type="text"],
.site-form input[type="email"],
.site-form input[type="search"],
.site-form input:not([type]):not([hidden]),
.site-form select,
.site-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
}
.site-form input[name="business_other"],
.site-form input[name="contact"],
.site-form input[name="name"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
}
.site-form textarea { resize: vertical; min-height: 6rem; }
.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus {
  outline: 2px solid var(--accent-ring);
  border-color: var(--accent);
}
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 500 !important;
  line-height: 1.4;
}
.form-consent input { margin-top: 0.2rem; flex: 0 0 auto; width: auto; }
.form-note {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
.form-note a { color: var(--accent); }
.form-status {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--ok);
}
.form-error {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.22);
  color: var(--danger);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}


/* ——— «One day» comic: strip on the home page + rack of issue covers (shared with /day/) ———
   Own palette on purpose: the strip is a poster, it stays loud in every skin. */
.daystrip,
.dayrack {
  --day-ink: #14161c;
  --day-paper: #fffdf5;
  --day-display: "Oswald", "Arial Narrow", "DM Sans", system-ui, sans-serif;
}
.daystrip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(2.6rem, 6vw, 4.8rem);
  color: #f4efff;
  background:
    radial-gradient(60% 70% at 8% 0%, rgba(255, 92, 157, 0.42), transparent 62%),
    radial-gradient(55% 70% at 96% 100%, rgba(34, 211, 238, 0.3), transparent 60%),
    #170f36;
  border-block: 4px solid var(--day-ink);
}
.daystrip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 42%, transparent 62%, #000 100%);
  mask-image: linear-gradient(115deg, #000 0%, transparent 42%, transparent 62%, #000 100%);
  pointer-events: none;
}
.daystrip__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.8rem);
}
.daystrip__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--day-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb347;
}
.daystrip__kicker::before {
  content: "";
  width: 2.2rem;
  height: 4px;
  background: currentColor;
}
.daystrip__title {
  margin: 0.7rem 0 0;
  font-family: var(--day-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #f4efff;
  text-shadow: 0.055em 0.055em 0 #ff5c9d;
}
.daystrip__title .brand-mark {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0.05em 0.05em 0 var(--day-ink);
}
.daystrip__title .brand-mark .logo-free { color: #ffb347; }
.daystrip__lead {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.45;
  color: rgba(244, 239, 255, 0.82);
}
.daystrip__all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem 0.64rem;
  font-family: var(--day-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--day-ink);
  background: #ffb347;
  border: 3px solid var(--day-ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--day-ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.daystrip__all:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--day-ink);
}

.dayrack {
  --lap: clamp(0.15rem, 0.5vw, 0.5rem);
  display: flex;
  justify-content: center;
  width: min(84rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.4rem 0 1.6rem;
  list-style: none;
}
.dayrack__item {
  position: relative;
  flex: 0 0 calc((100% + 6 * var(--lap)) / 7);
  min-width: 0;
  margin: 0;
  padding: 0;
  container-type: inline-size;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), filter 0.25s ease;
  transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), 0s;
}
.dayrack__item + .dayrack__item { margin-left: calc(-1 * var(--lap)); }
.dayrack__item:nth-child(even) { top: clamp(0.5rem, 1.5vw, 1.4rem); }
.dayrack__item:hover,
.dayrack__item:focus-within { z-index: 5; }
.dayrack__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--a);
  border: 3px solid var(--day-ink);
  border-radius: 7px;
  box-shadow: 0 0 0 3px var(--day-paper), 9px 9px 0 3px var(--b), 0 1.4rem 2.2rem rgba(5, 2, 20, 0.45);
  transform: rotate(var(--r));
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
a.dayrack__cover:hover,
a.dayrack__cover:focus-visible {
  transform: translateY(-5%) rotate(0deg) scale(1.08);
  box-shadow: 0 0 0 3px var(--day-paper), 12px 12px 0 3px var(--b), 0 2rem 2.6rem rgba(5, 2, 20, 0.55);
  outline: none;
}
.dayrack__item.is-soon .dayrack__cover:hover {
  transform: translateY(-2%) rotate(calc(var(--r) * 0.4));
}
.dayrack:has(.dayrack__cover:hover) .dayrack__item:not(:hover) { filter: brightness(0.72) saturate(0.85); }
.dayrack__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dayrack__mast {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 5cqw 7cqw 0 6cqw;
  font-family: var(--day-display);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
}
.dayrack__brand {
  font-size: 13.5cqw;
  letter-spacing: -0.01em;
  color: var(--day-paper);
  -webkit-text-stroke: 0.035em var(--day-ink);
  paint-order: stroke fill;
  text-shadow: 0.06em 0.06em 0 var(--day-ink);
}
.dayrack__no {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 2.1em;
  height: 2.1em;
  padding: 0 0.3em;
  font-size: 7.4cqw;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--day-ink);
  background: var(--day-paper);
  border: 0.22em solid var(--day-ink);
  border-radius: 999px;
  transform: rotate(8deg);
}
.dayrack__foot {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  justify-items: start;
  gap: 2.2cqw;
  padding: 22cqw 6cqw 6cqw;
  font-family: var(--day-display);
  background: linear-gradient(to top, rgba(12, 8, 30, 0.94) 0%, rgba(12, 8, 30, 0.8) 46%, transparent 100%);
}
.dayrack__day {
  padding: 0.22em 0.5em 0.28em;
  font-size: 6.6cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--day-ink);
  background: var(--b);
  border: 0.16em solid var(--day-ink);
  transform: rotate(-3deg) skewX(-8deg);
}
.dayrack__issue {
  font-size: 12cqw;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0.06em 0.06em 0 var(--day-ink);
  overflow-wrap: anywhere;
}
.dayrack__who {
  font-family: var(--font);
  font-size: 5.4cqw;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.86);
}
.dayrack__tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  justify-self: stretch;
}
.dayrack__read,
.dayrack__soon {
  padding: 0.24em 0.5em 0.3em;
  font-weight: 700;
  font-size: 6.2cqw;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 0.16em solid var(--day-ink);
  transform: rotate(4deg);
}
.dayrack__read {
  color: var(--day-ink);
  background: #ffe14d;
  box-shadow: -0.2em 0.2em 0 var(--day-ink);
  transition: transform 0.25s var(--ease);
}
.dayrack__read::after { content: " →"; }
.dayrack__item.is-done .dayrack__read { background: #ffffff; }
.dayrack__item.is-done .dayrack__read::after { content: " ✓"; }
a.dayrack__cover:hover .dayrack__read { transform: rotate(-4deg) scale(1.14); }
.dayrack__soon {
  color: var(--day-paper);
  background: var(--day-ink);
  border-color: var(--day-paper);
  border-style: dashed;
}
@container (max-width: 150px) {
  .dayrack__who { display: none; }
  .dayrack__foot { padding-bottom: 7cqw; }
}

/* Fan-in when the home strip scrolls into view (site.js arms it; without JS the rack is simply there). */
.dayrack.is-armed .dayrack__item {
  opacity: 0;
  transform: translateY(3.5rem) rotate(calc(var(--r) * -2));
}
.dayrack.is-armed.is-in .dayrack__item {
  opacity: 1;
  transform: none;
}
/* On the /day/ cover the rack is on the first screen: it deals itself on load. */
.dayrack--cover .dayrack__item { animation: dayrack-deal 0.75s var(--ease) both; animation-delay: calc(0.12s + var(--i) * 70ms); }
@keyframes dayrack-deal {
  from { opacity: 0; transform: translateY(3.5rem) rotate(calc(var(--r) * -2)); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .daystrip__head { grid-template-columns: 1fr; align-items: start; }
  .daystrip__lead { max-width: 34rem; }
  .dayrack {
    justify-content: flex-start;
    gap: 1.5rem;
    width: 100%;
    padding: 1.4rem max(1.25rem, calc(50% - min(31vw, 9.5rem))) 2rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .dayrack::-webkit-scrollbar { display: none; }
  .dayrack__item {
    flex: 0 0 min(62vw, 19rem);
    scroll-snap-align: center;
    transition-delay: 0s;
  }
  .dayrack__item + .dayrack__item { margin-left: 0; }
  .dayrack__item:nth-child(even) { top: 0; }
  .dayrack__cover { transform: rotate(calc(var(--r) * 0.5)); }
  .dayrack--cover .dayrack__item { animation-delay: 0.1s; }
  .dayrack:has(.dayrack__cover:hover) .dayrack__item:not(:hover) { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dayrack__item,
  .dayrack__cover,
  .dayrack__read,
  .daystrip__all { transition: none; }
  .dayrack--cover .dayrack__item { animation: none; }
  .dayrack.is-armed .dayrack__item { opacity: 1; transform: none; }
  a.dayrack__cover:hover,
  a.dayrack__cover:focus-visible { transform: rotate(var(--r)); }
}
