/* ==========================================================================
   Komma AI — main stylesheet
   All colours, fonts and radii come from tokens.css.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { display: block; overflow-x: clip; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-strong); text-underline-offset: 3px; }

[hidden] { display: none !important; }

img, svg { max-width: 100%; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--brand) 60%, white);
  outline-offset: 2px;
  border-radius: 6px;
}

.muted { color: var(--text-subtle); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--white { background: var(--surface); }
.section--sand { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #dfe5ef; overflow: clip; }

/* ---------- Type helpers ---------- */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.07em;
  line-height: 1;
  padding-right: 0.08em;
  background: var(--aurora-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aurora);
}
.eyebrow--light { color: #b9c6ff; }

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 1.25rem + 3.1vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.section-head .lead { max-width: 640px; margin: 1.25rem auto 0; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head--left .lead { margin-inline: 0; }

@media (min-width: 720px) {
  .section-head { margin-bottom: 64px; }
}

.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .accent { background: var(--aurora); -webkit-background-clip: text; background-clip: text; }
.section--ink .lead { color: #aeb8ca; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 600 0.95rem/1.1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn--primary:hover { background: var(--cta-bg-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-soft); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--lg { padding: 1rem 1.5rem; font-size: 1rem; }
.btn--sm { padding: 0.62rem 1rem; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.2s;
}
.link-arrow:hover { border-color: var(--ink); gap: 0.6rem; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink);
  color: #e6ebf5;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.55rem var(--gutter);
}
.announce a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}
.announce a:hover span:not(.announce__tag) { text-decoration: underline; text-underline-offset: 3px; }
.announce__tag {
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--aurora-strong);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font: 700 1.5rem/1 var(--font-display);
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
}
.logo__comma {
  color: var(--brand);
  font-size: 1.15em;
  margin-left: 0.02em;
}
.logo__ai {
  align-self: center;
  margin-left: 0.5rem;
  padding: 0.28rem 0.42rem;
  border-radius: 6px;
  background: var(--aurora-strong);
  color: #fff;
  font: 700 0.62rem/1 var(--font-body);
  letter-spacing: 0.08em;
}

@media (max-width: 359px) {
  .header .logo__ai { display: none; }
  .header .btn--sm { padding-inline: 0.85rem; }
}

.nav { display: none; }
.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.nav__external { display: inline-flex; align-items: center; gap: 0.35rem; }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.header__link {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.header__link:hover { color: var(--ink); }

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.menu-btn .i { width: 20px; height: 20px; grid-area: 1 / 1; }
.menu-btn__close { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__open { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__close { opacity: 1; }

/* Mobile menu panel */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px var(--gutter) 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(16, 23, 39, 0.25);
}
.nav.is-open a { padding: 0.85rem 0.5rem; border-radius: 10px; font-size: 1.05rem; color: var(--ink); }

@media (min-width: 1000px) {
  .nav, .nav.is-open {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    margin-left: 0.75rem;
    gap: 0.1rem;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav.is-open a { padding: 0.5rem 0.75rem; font-size: 0.93rem; color: var(--text-muted); }
  .nav__external { display: none; }
  .menu-btn { display: none; }
}
@media (min-width: 1180px) {
  .header__link { display: inline-flex; }
}

/* ---------- Pills & small UI atoms ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pill:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.pill__arrow { color: var(--text-subtle); transition: transform 0.2s; }
.pill:hover .pill__arrow { transform: translateX(2px); }

.karma-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--aurora);
  color: #fff;
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--aurora-2) 70%, transparent);
}
.karma-mark .i { width: 58%; height: 58%; }
.karma-mark--xs { width: 22px; height: 22px; border-radius: 50%; }
.karma-mark--sm { width: 24px; height: 24px; border-radius: 8px; }
.karma-mark--lg { width: 44px; height: 44px; border-radius: 13px; }
.karma-mark--xl { width: 56px; height: 56px; border-radius: 16px; }

.avatar {
  --a: var(--brand);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--a) 16%, white);
  color: color-mix(in oklab, var(--a) 72%, black);
  font: 700 0.7rem/1 var(--font-body);
  letter-spacing: 0.02em;
}
.avatar--xs { width: 20px; height: 20px; font-size: 0.55rem; }
.avatar--sm { width: 28px; height: 28px; font-size: 0.64rem; }
.avatar--lg { width: 48px; height: 48px; font-size: 0.95rem; }

.tag, .draft__mod {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--m, var(--brand)) 12%, white);
  color: color-mix(in oklab, var(--m, var(--brand)) 75%, black);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.dot {
  --m: var(--brand);
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--m);
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.flag .i { width: 12px; height: 12px; }
.flag--ok { background: var(--ok-soft); border-color: transparent; color: color-mix(in oklab, var(--ok) 85%, black); }
.flag--warn { background: var(--warn-soft); border-color: transparent; color: color-mix(in oklab, var(--warn) 80%, black); }
.flag--danger { background: var(--danger-soft); border-color: transparent; color: color-mix(in oklab, var(--danger) 85%, black); }

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem 0.25rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--aurora-strong);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.ai-badge .i { width: 12px; height: 12px; }
.ai-badge--soft {
  background: var(--aurora-soft);
  color: color-mix(in oklab, var(--aurora-3) 70%, black);
}

.btn-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.78rem/1.1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
}
.btn-ui--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.btn-ui--ghost { background: transparent; }
button.btn-ui, a.btn-ui { cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 0.15s; }
button.btn-ui--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
a.btn-ui--ghost:hover { border-color: var(--ink); }
button.btn-ui:active { transform: translateY(1px); }

.link-ui {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-strong);
  font: 600 0.78rem/1 var(--font-body);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ui-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }

/* ---------- Product UI shell ---------- */
.ui {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow: hidden;
  text-align: left;
}
.ui p { margin: 0; }
.ui b { font-weight: 600; color: var(--ink); }

.ui__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.ui__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ui__title > span { color: var(--text-subtle); overflow: hidden; text-overflow: ellipsis; }
.ui__title .i { color: var(--text-subtle); width: 16px; height: 16px; }

.mock { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
@media (min-width: 720px) { .hero { padding: 88px 0 104px; } }

.hero__glow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(1200px, 160vw);
  height: 700px;
  transform: translateX(-50%);
  background:
    radial-gradient(38% 46% at 22% 52%, color-mix(in oklab, var(--aurora-1) 34%, transparent), transparent 70%),
    radial-gradient(40% 50% at 52% 42%, color-mix(in oklab, var(--aurora-2) 28%, transparent), transparent 70%),
    radial-gradient(36% 48% at 80% 58%, color-mix(in oklab, var(--aurora-3) 30%, transparent), transparent 70%);
  filter: blur(34px);
  opacity: 0.7;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; max-width: 960px; text-align: center; }

.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.7rem, 1.35rem + 6.2vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.047em;
}
.hero__title .accent { padding-bottom: 0.08em; }

.hero__lead { max-width: 690px; margin: 1.5rem auto 0; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (max-width: 519px) {
  .hero__ctas { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.hero__proof li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__proof .i { color: var(--ok); stroke-width: 2.4; }

/* Hero demo */
.hero-demo {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 48px auto 0;
}
@media (min-width: 720px) { .hero-demo { margin-top: 64px; } }

.ui--app {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
}

.ui__chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-subtle);
  font-size: 0.78rem;
}
.ui__dots { display: flex; gap: 6px; flex: none; }
.ui__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ui__crumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__crumbs span { margin-inline: 0.3rem; opacity: 0.6; }
.ui__crumbs b { color: var(--ink); font-weight: 600; }
.ui__search {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  padding: 0.35rem 0.75rem;
  min-width: 220px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 760px) { .ui__search { display: inline-flex; } }

.app { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
@media (min-width: 1000px) { .app { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.15fr); } }

.app__rail {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}
@media (min-width: 1000px) { .app__rail { display: flex; } }
.app__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: 700 1rem/1 var(--font-display);
  letter-spacing: -0.04em;
}
.app__logo span { color: color-mix(in oklab, var(--brand) 55%, white); }
.rail-i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text-subtle);
}
.rail-i .i { width: 18px; height: 18px; }
.rail-i.is-active { background: var(--brand-soft); color: var(--brand-strong); }

.app__record {
  display: none;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}
@media (min-width: 760px) { .app__record { display: block; } }

.person { display: flex; align-items: center; gap: 0.85rem; }
.person__text { min-width: 0; }
.person__name { font: 600 1.1rem/1.2 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.person__meta { color: var(--text-subtle); font-size: 0.82rem; }
.status {
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem 1rem;
  margin: 1.4rem 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.fields dt { color: var(--text-subtle); font-size: 0.72rem; }
.fields dd { margin: 0.1rem 0 0; font-weight: 600; color: var(--ink); font-size: 0.82rem; }

.app__label {
  margin-bottom: 0.6rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
.mod-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 500;
  transition: background-color 0.4s, border-color 0.4s;
}
.mod-list li .i { color: var(--m); width: 16px; height: 16px; }
.mod-list li b {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: var(--radius-pill);
  background: var(--warn-soft);
  color: color-mix(in oklab, var(--warn) 80%, black);
  font-size: 0.7rem;
  transition: background-color 0.4s, color 0.4s;
}
.hero-demo.is-approved .mod-list li { background: color-mix(in oklab, var(--ok) 5%, white); border-color: color-mix(in oklab, var(--ok) 22%, white); }
.hero-demo.is-approved .mod-list li b { background: var(--ok-soft); color: color-mix(in oklab, var(--ok) 85%, black); font-size: 0; }
.hero-demo.is-approved .mod-list li b::after { content: "✓"; font-size: 0.72rem; }

/* Karma panel */
.karma {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, var(--brand-softer), var(--surface) 45%);
}
.karma__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.karma__name { font-weight: 600; color: var(--ink); }
.karma__mode {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.karma__mode::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  transition: background-color 0.3s;
}
.hero-demo.is-approved .karma__mode::before { background: var(--ok); }

.karma__thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.1rem;
}
@media (min-width: 760px) { .karma__thread { min-height: 452px; } }

.msg { max-width: 92%; padding: 0.7rem 0.9rem; border-radius: 16px; }
.msg--user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.msg--karma {
  align-self: stretch;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-left-radius: 5px;
  box-shadow: var(--shadow-sm);
}
.msg--typing {
  display: none;
  align-self: flex-start;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-left-radius: 5px;
}
.msg--typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-subtle);
  animation: typing 1s ease-in-out infinite;
}
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.drafts { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
.draft {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: background-color 0.4s, border-color 0.4s, opacity 0.35s, transform 0.35s;
}
.draft__mod { min-width: 6.4rem; justify-content: center; }
.draft__text { min-width: 0; flex: 1; color: var(--text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft__text b { margin-left: 0.3rem; }
.draft__state {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
  color: transparent;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.draft__state .i { width: 12px; height: 12px; stroke-width: 2.6; }
@media (max-width: 519px) {
  .draft { flex-wrap: wrap; row-gap: 0.35rem; padding: 0.55rem 0.6rem; }
  .draft__mod { min-width: 0; }
  .draft__state { margin-left: auto; }
  .draft__text { order: 3; flex-basis: 100%; white-space: normal; overflow: visible; }
}
.hero-demo.is-approved .draft { background: color-mix(in oklab, var(--ok) 6%, white); border-color: color-mix(in oklab, var(--ok) 25%, white); }
.hero-demo.is-approved .draft__state { border: 0; background: var(--ok); color: #fff; }

.karma__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.hero-demo.is-approved [data-approve] { background: var(--ok); border-color: var(--ok); cursor: default; }

.msg--log {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  align-self: stretch;
  max-width: 100%;
  background: var(--ok-soft);
  color: color-mix(in oklab, var(--ok) 70%, black);
  border-radius: 12px;
  font-size: 0.8rem;
}
.msg--log .i { width: 18px; height: 18px; }
.msg--log b { color: inherit; }

.karma__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 1.1rem 1.1rem;
  padding: 0.6rem 0.6rem 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-subtle);
}
.karma__send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
}
.karma__send .i { width: 15px; height: 15px; }

/* Demo states (driven by main.js). Without JS everything is visible. */
.js .hero-demo:not(.is-live) .msg--karma { opacity: 0; animation: demo-failsafe 0.4s ease 2.5s forwards; }
@keyframes demo-failsafe { to { opacity: 1; } }
.hero-demo.is-live .msg--karma { opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s; }
.hero-demo.is-live.show-reply .msg--karma { opacity: 1; transform: none; }
.hero-demo.is-live.show-typing .msg--typing { display: inline-flex; }
.hero-demo.is-live .draft { opacity: 0; transform: translateY(6px); }
.hero-demo.is-live .draft.is-in { opacity: 1; transform: none; }

/* Floating chips around the demo */
.float-chip { display: none; }
@media (min-width: 1180px) {
  .float-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-muted);
  }
  .float-chip b { color: var(--ink); font-weight: 600; }
  .float-chip--left { left: -44px; bottom: 30px; animation: float-y 7s ease-in-out infinite; }
  .float-chip--right { right: 44px; top: -28px; animation: float-y 7s ease-in-out -3.5s infinite; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-chip__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.float-chip__icon--ok { background: var(--ok-soft); color: var(--ok); }
.float-chip__icon .i { width: 17px; height: 17px; }

.demo-note {
  margin: 1.1rem 0 0;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.8rem;
}

/* ---------- Proof strip ---------- */
.proof { padding: 0; }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}
@media (min-width: 900px) { .proof__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.25rem;
  background: var(--surface);
}
@media (min-width: 720px) { .stat { padding: 1.75rem 1.6rem; } }
.stat__num {
  font: 600 clamp(2.1rem, 1.6rem + 2vw, 3.1rem)/1 var(--font-display);
  letter-spacing: -0.045em;
  color: var(--ink);
}
.stat__label { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; }

/* ---------- Operating layer diagram ---------- */
.layers {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 720px) { .layers { padding: 28px; } }

.layers__label {
  margin: 0 0 0.75rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.layers__modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .layers__modules { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
.layers__modules li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: color-mix(in oklab, var(--m) 7%, white);
  border: 1px solid color-mix(in oklab, var(--m) 18%, white);
  color: color-mix(in oklab, var(--m) 55%, var(--ink));
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}
.layers__modules .i { width: 20px; height: 20px; color: var(--m); }

.layers__flow {
  display: flex;
  justify-content: space-around;
  height: 36px;
  padding-inline: 12%;
}
.layers__flow i {
  position: relative;
  width: 2px;
  height: 100%;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 8px);
}
.layers__flow i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--aurora-2);
  box-shadow: 0 0 8px var(--aurora-2);
  animation: flow 2.6s linear infinite;
  animation-delay: calc(var(--d, 0) * 0.55s);
}
.layers__flow:nth-of-type(2n) i::after { animation-direction: reverse; background: var(--aurora-1); box-shadow: 0 0 8px var(--aurora-1); }
@keyframes flow {
  0% { top: -6px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.layers__karma {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--aurora) border-box;
  color: #c9d2e3;
  box-shadow: 0 16px 40px -18px color-mix(in oklab, var(--aurora-2) 70%, transparent);
}
@media (min-width: 720px) { .layers__karma { padding: 1.2rem 1.4rem; } }
.layers__karma-title { margin: 0; font: 600 1.1rem/1.2 var(--font-display); color: #fff; }
.layers__karma-text { margin: 0.15rem 0 0; font-size: 0.9rem; line-height: 1.45; }

.layers__record {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1.5px dashed var(--line-strong);
  background: var(--paper);
}
.layers__record-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font: 600 1rem/1.2 var(--font-display);
  color: var(--ink);
}
.layers__record-title .i { width: 20px; height: 20px; color: var(--brand); }
.layers__record ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}
.layers__record li {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 48px; }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; } }
.point { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.point h3 { margin-bottom: 0.5rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.point p { margin: 0; color: var(--text-muted); }

/* ---------- Tabs ---------- */
.tabs__list {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  scroll-snap-type: x proximity;
}
.tabs__list::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .tabs__list { margin-bottom: 48px; } }

[role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font: 600 0.9rem/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: center;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
[role="tab"] .i { width: 17px; height: 17px; }
[role="tab"]:hover { color: var(--ink); }
[role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
[role="tab"][aria-selected="true"] .i { color: var(--brand); }

.tabs__panel:focus-visible { outline-offset: 6px; border-radius: var(--radius-lg); }
/* Without JavaScript every panel is shown in sequence and the tab bar is hidden. */
html:not(.js) .tabs__list, html:not(.js) .menu-btn { display: none; }
html:not(.js) .tabs__panel + .tabs__panel { margin-top: 72px; }
.js .tabs__panel:not([hidden]) { animation: panel-in 0.4s ease; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 56px; } }
.feature__copy h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.feature__copy > p { margin-top: 0.9rem; color: var(--text-muted); font-size: 1.05rem; }

.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.65rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--ink-2); }
.checks .i {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  stroke-width: 3;
}

.feature__visual {
  position: relative;
  padding: 10px;
  border-radius: var(--radius-xl);
  background: var(--aurora-soft);
}
@media (min-width: 720px) { .feature__visual { padding: 28px; } }

/* Recruitment mock */
.mock-recruit__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
@media (min-width: 640px) { .mock-recruit__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); padding: 16px; } }
.cands { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.cand { padding: 0.75rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cand--top { border-color: color-mix(in oklab, var(--ok) 30%, white); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 8%, transparent); }
.cand__row { display: flex; align-items: center; gap: 0.65rem; }
.cand__main { flex: 1; min-width: 0; }
.cand__name { font-weight: 600; color: var(--ink); }
.cand__meta { color: var(--text-subtle); font-size: 0.75rem; }
.score {
  --s: 50;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(var(--ok) calc(var(--s) * 1%), var(--line) 0);
}
.score span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  font: 700 0.78rem/1 var(--font-display);
  color: var(--ink);
}
.skills { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.45rem; margin: 0.75rem 0 0; padding: 0.75rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.skills li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.76rem; color: var(--text-muted); }
.meter { position: relative; width: 44%; height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 6px; background: var(--aurora); }
.yes { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--ok); font-weight: 600; }
.yes .i { width: 13px; height: 13px; stroke-width: 2.6; }

.jobad { padding: 0.9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.jobad__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.7rem; font-size: 0.74rem; }
.jobad__title { margin-bottom: 0.4rem !important; font: 600 0.98rem/1.25 var(--font-display); color: var(--ink); }
.jobad p { color: var(--text-muted); font-size: 0.78rem; }
.jobad__sub { margin-top: 0.7rem !important; font-weight: 600; color: var(--ink) !important; }
.jobad ul { margin: 0.35rem 0 0; padding-left: 1.05rem; color: var(--text-muted); font-size: 0.78rem; }
.jobad li { margin-bottom: 0.15rem; }

/* Shift mock */
.rota {
  display: grid;
  grid-template-columns: 2.9rem repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 12px 12px 4px;
}
@media (min-width: 640px) { .rota { padding: 16px 16px 6px; gap: 5px; grid-template-columns: 3.4rem repeat(7, minmax(0, 1fr)); } }
.rota__day { text-align: center; color: var(--text-subtle); font-size: 0.7rem; font-weight: 600; }
.rota__day.is-today { color: var(--brand-strong); }
.rota__slot { display: flex; align-items: center; color: var(--text-subtle); font-size: 0.68rem; font-weight: 600; }
.rota__cell {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 2px;
  min-height: 42px;
  padding: 3px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.rota__cell i {
  --a: var(--brand);
  display: grid;
  place-items: center;
  width: 20px;
  height: 17px;
  border-radius: 5px;
  background: color-mix(in oklab, var(--a) 16%, white);
  color: color-mix(in oklab, var(--a) 72%, black);
  font: 700 0.54rem/1 var(--font-body);
  font-style: normal;
}
@media (min-width: 640px) { .rota__cell i { width: 24px; height: 18px; font-size: 0.58rem; } }
.rota__cell--gap {
  border: 1.5px dashed var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.62rem;
  animation: gap-pulse 2.2s ease-in-out infinite;
}
.rota__cell--gap b { color: inherit; font-weight: 700; }
@keyframes gap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--danger) 30%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in oklab, var(--danger) 0%, transparent); }
}

.suggest {
  margin: 10px 12px 12px;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .suggest { margin: 10px 16px 16px; } }
.suggest__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem; }
.suggest__head span:not(.karma-mark) { display: block; color: var(--text-subtle); font-size: 0.74rem; }
.suggest__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.suggest__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.suggest__list li > div { flex: 1; min-width: 0; }
.suggest__list li > div b { display: block; }
.suggest__list li > div span { display: block; color: var(--text-subtle); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__list li.is-best { background: color-mix(in oklab, var(--ok) 6%, white); border-color: color-mix(in oklab, var(--ok) 28%, white); }

/* Absence mock */
.absence { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
@media (min-width: 640px) { .absence { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; } }
.chart { padding: 0.9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.chart__title { color: var(--text-subtle); font-size: 0.74rem; font-weight: 600; }
.chart__bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 150px; margin-top: 0.8rem; padding-bottom: 1.3rem; position: relative; }
.chart__bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1.3rem; height: 1px; background: var(--line); }
.chart__day { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.chart__day > span { position: absolute; bottom: -1.3rem; color: var(--text-subtle); font-size: 0.68rem; font-weight: 600; }
.chart__day.is-hot > span { color: var(--m-shift); }
.chart__note {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: var(--m-shift);
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
  z-index: 1;
}
.chart__pair { display: flex; align-items: flex-end; gap: 3px; width: 100%; height: 100%; justify-content: center; }
.chart__pair i { width: 38%; max-width: 16px; height: var(--h); border-radius: 5px 5px 2px 2px; background: color-mix(in oklab, var(--m-org) 30%, white); }
.chart__pair i:last-child { background: var(--line-strong); }
.chart__day.is-hot .chart__pair i:first-child { background: var(--m-shift); }
.chart__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.8rem; color: var(--text-subtle); font-size: 0.7rem; }
.chart__legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.chart__legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--line-strong); }
.chart__legend i.is-team { background: color-mix(in oklab, var(--m-org) 30%, white); }

.insight {
  display: flex;
  flex-direction: column;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box;
  box-shadow: var(--shadow);
}
.insight__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.insight p { color: var(--text-muted); font-size: 0.82rem; }
.insight p + p { margin-top: 0.5rem; }
.insight .muted { color: var(--text-subtle); }
.insight__foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto !important;
  padding-top: 0.8rem;
  color: var(--text-subtle) !important;
  font-size: 0.72rem !important;
}
.insight__foot .i { width: 14px; height: 14px; }

/* Review mock */
.review { padding: 12px; }
@media (min-width: 640px) { .review { padding: 16px; } }
.inputs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.input-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
}
.summary {
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box;
  box-shadow: var(--shadow);
}
.summary__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.8rem; font-size: 0.74rem; }
.summary__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
@media (min-width: 520px) { .summary__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.summary__h { margin-bottom: 0.3rem !important; color: var(--ink); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.summary ul { margin: 0; padding-left: 1rem; color: var(--text-muted); font-size: 0.8rem; }
.summary li { margin-bottom: 0.2rem; }
.summary__talk { margin-top: 0.8rem; padding: 0.7rem 0.8rem; border-radius: 10px; background: var(--brand-softer); border: 1px solid color-mix(in oklab, var(--brand) 14%, white); }
.summary__talk p:last-child { color: var(--ink-2); font-size: 0.82rem; }

/* Field-by-field change mock */
.mock-change { padding: 12px; }
@media (min-width: 640px) { .mock-change { padding: 18px; } }
.mock-change__prompt { display: flex; align-items: flex-end; justify-content: flex-end; gap: 0.5rem; margin-bottom: 12px; }
.mock-change__prompt .msg--user { order: -1; max-width: 80%; }
.diff { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.diff__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.7rem 0.8rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.74rem; }
.diff__table { font-size: 0.78rem; }
.diff__row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.diff__row > span { min-width: 0; overflow-wrap: anywhere; }
.diff__row > span:first-child { display: flex; align-items: center; gap: 0.45rem; color: var(--ink-2); font-weight: 500; }
.diff__row > span:nth-child(2) { color: var(--text-subtle); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--danger) 55%, white); }
.diff__row > span:nth-child(3) {
  justify-self: start;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: var(--ok-soft);
  color: color-mix(in oklab, var(--ok) 80%, black);
  font-weight: 600;
}
.diff__row--head { padding-block: 0.45rem; background: var(--surface); color: var(--text-subtle); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.diff__row--head > span:nth-child(2), .diff__row > span.is-empty { text-decoration: none; }
.diff__row--head > span:nth-child(3) { padding: 0; background: none; color: inherit; font-weight: 600; }
.diff__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0.8rem; font-size: 0.74rem; }
.diff__foot .muted { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1000px) { .how { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; } }

.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font: 600 0.82rem/1 var(--font-display);
  color: var(--ink);
}
.step h3 { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.2rem; font-size: 1.05rem; }
.step h3 .i { width: 18px; height: 18px; color: var(--brand); }
.step p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }
.step--final { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box; border: 1.5px solid transparent; }
.step--final .step__num { background: var(--ink); border-color: var(--ink); color: #fff; }

.how__visual { padding: 10px; border-radius: var(--radius-xl); background: var(--aurora-soft); }
@media (min-width: 720px) { .how__visual { padding: 28px; } }

.audit { margin: 0; padding: 8px 12px 12px; list-style: none; }
@media (min-width: 640px) { .audit { padding: 10px 18px 16px; } }
.audit__item {
  position: relative;
  display: grid;
  grid-template-columns: 3.9rem auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.audit__item:last-child { border-bottom: 0; }
.audit__time { padding-top: 0.35rem; color: var(--text-subtle); font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.audit__body { min-width: 0; padding-top: 0.2rem; }
.audit__body p { color: var(--text-muted); font-size: 0.82rem; }
.audit__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.45rem; }
.audit__item.is-approve { margin-inline: -0.6rem; padding-inline: 0.6rem; border-radius: 12px; background: color-mix(in oklab, var(--ok) 6%, white); border-bottom-color: transparent; }
.audit__item.is-approve .audit__time { color: var(--ok); }
.audit__item.is-discard .audit__body p { color: var(--text-subtle); }

/* ---------- Roadmap tracks ---------- */
.tracks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .tracks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; } }
.track {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 720px) { .track { padding: 24px 24px 32px; } }
.track__visual {
  display: grid;
  place-items: center;
  min-height: 250px;
  margin-bottom: 1.5rem;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}
@media (min-width: 900px) { .track__visual { height: 310px; } }
.track__kicker {
  margin: 0 0 0.45rem;
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.track h3 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem); letter-spacing: -0.03em; line-height: 1.15; }
.track > p:last-child { margin-top: 0.7rem; color: var(--text-muted); }

.orbit { position: relative; width: 100%; max-width: 440px; aspect-ratio: 5 / 3; }
.orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__lines ellipse { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.orbit__lines line { stroke: color-mix(in oklab, var(--brand) 30%, white); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.orbit__lines line.is-next { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.orbit__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--aurora-2) 70%, transparent);
}
.orbit__center .i { width: 16px; height: 16px; }
.orbit__node {
  --m: var(--brand);
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(30px, 8vw, 40px);
  height: clamp(30px, 8vw, 40px);
  border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--m) 40%, white);
  background: var(--surface);
  color: var(--m);
  box-shadow: var(--shadow-sm);
}
.orbit__node .i { width: 46%; height: 46%; }
.orbit__node.is-next { border-style: dashed; border-color: var(--line-strong); background: var(--paper); color: var(--text-subtle); box-shadow: none; }

.flow { width: 100%; max-width: 460px; }
.flow__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8rem;
}
.flow__head b { display: block; color: var(--ink); font-weight: 600; }
.flow__head span:not(.avatar) { display: block; color: var(--text-subtle); font-size: 0.72rem; }
.flow__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; position: relative; }
.flow__steps::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 22px;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--line-strong) 0 5px, transparent 5px 9px);
}
.flow__step {
  --m: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.74rem;
}
.flow__step b { color: var(--ink); font-weight: 600; line-height: 1.2; }
.flow__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1.5px solid color-mix(in oklab, var(--m) 35%, white);
  background: var(--surface);
  color: var(--m);
  box-shadow: var(--shadow-sm);
}
.flow__icon .i { width: 20px; height: 20px; }
.flow__ok {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
}
.flow__ok .i { width: 12px; height: 12px; stroke-width: 2.6; }
.flow__step.is-pending .flow__ok { background: var(--warn-soft); color: var(--warn); }
.flow__step.is-pending .flow__ok .i { stroke-width: 2.2; }
.flow__plan {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box;
  color: var(--text-muted);
  font-size: 0.8rem;
  box-shadow: var(--shadow);
}
.flow__plan b { color: var(--ink); font-weight: 600; }

.fineprint { margin: 1.5rem 0 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Trust (dark) ---------- */
.trust__glow {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 70%;
  height: 70%;
  background:
    radial-gradient(40% 50% at 60% 40%, color-mix(in oklab, var(--aurora-3) 28%, transparent), transparent 70%),
    radial-gradient(40% 50% at 30% 60%, color-mix(in oklab, var(--aurora-1) 18%, transparent), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.section--ink .container { position: relative; }
.trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1080px) { .trust { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: start; } }
.trust__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .trust__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tcard {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s, background-color 0.2s;
}
.tcard:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.055); }
.tcard__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.tcard__icon .i { width: 20px; height: 20px; }
.tcard h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.tcard p { margin: 0; color: #aeb8ca; font-size: 0.93rem; }

@media (min-width: 1080px) { .trust__visual { position: sticky; top: 100px; } }
.mock-access .ui__title .i { color: var(--brand); }
.access { padding: 14px; }
@media (min-width: 640px) { .access { padding: 16px 18px 18px; } }
.access__intro { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.8rem !important; }
.access__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.access__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.access__list li > span:first-child { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--ink-2); }
.seg { display: inline-flex; flex: none; padding: 2px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.seg i { padding: 0.2rem 0.45rem; border-radius: 6px; color: var(--text-subtle); font-size: 0.66rem; font-style: normal; font-weight: 600; }
.seg i.is-on { background: var(--surface); color: var(--ok); box-shadow: var(--shadow-sm); }
.seg i.is-limited { background: var(--surface); color: var(--warn); box-shadow: var(--shadow-sm); }
.seg i.is-off { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.access__rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 0.9rem; }
.access__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.access__row > span:first-child { display: flex; align-items: center; gap: 0.45rem; }
.access__row .i { width: 15px; height: 15px; color: var(--text-subtle); }
.toggle {
  flex: none;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
}
.toggle--on { background: var(--ok-soft); color: color-mix(in oklab, var(--ok) 85%, black); }
.toggle--locked { background: var(--ink); color: #fff; }

/* ---------- Nordic payroll ---------- */
.nordic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1080px) { .nordic { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; align-items: center; } }

.payflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
}
@media (min-width: 720px) { .payflow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; padding: 20px; gap: 12px; } }
.payflow__col { padding: 1.1rem; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.payflow__col--komma { background: var(--brand-softer); border-color: color-mix(in oklab, var(--brand) 20%, white); }
.payflow__col--engine { background: var(--surface-2); }
.payflow__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.55rem;
  margin: 0 0 0.9rem;
  font: 600 1rem/1.25 var(--font-display);
  color: var(--ink);
}
.payflow__logo { font-weight: 700; letter-spacing: -0.04em; }
.payflow__logo span { color: var(--brand); }
.payflow__sub { width: 100%; color: var(--text-subtle); font: 500 0.78rem/1.3 var(--font-body); }
.payflow__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.payflow__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink-2);
}
.payflow__list .i { width: 16px; height: 16px; color: var(--brand); stroke-width: 2.2; }
.payflow__list li.is-validated { border-color: color-mix(in oklab, var(--ok) 30%, white); background: color-mix(in oklab, var(--ok) 5%, white); }
.payflow__list li.is-validated .i { color: var(--ok); }
.payflow__list li.is-validated .flag { margin-left: auto; }
.payflow__list--plain li { color: var(--text-muted); }
.payrun {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1.5px dashed color-mix(in oklab, var(--brand) 35%, white);
  background: var(--surface);
}
.payrun b { display: block; color: var(--ink); font-weight: 600; }
.payrun span:not(.btn-ui) { display: block; color: var(--text-subtle); font-size: 0.74rem; }
.payflow__arrow {
  display: grid;
  place-items: center;
  color: var(--text-subtle);
}
.payflow__arrow .i {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transform: rotate(90deg);
}
@media (min-width: 720px) { .payflow__arrow .i { transform: none; } }
.payflow__engines-label { margin: 1rem 0 0.5rem; color: var(--text-subtle); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.engines { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.engines li {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 600;
}

.nordic__points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.paytrans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--paper-2);
}
@media (min-width: 720px) { .paytrans { padding: 36px; margin-top: 64px; } }
@media (min-width: 1000px) { .paytrans { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; padding: 48px; } }
.paytrans__copy h3 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.15; letter-spacing: -0.03em; }
.paytrans__copy > p:last-child { margin-top: 0.8rem; color: var(--text-muted); }

.bands { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
@media (min-width: 640px) { .bands { padding: 20px; } }
.band { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); align-items: center; gap: 0.6rem; }
.band__label { color: var(--text-subtle); font-size: 0.74rem; font-weight: 700; }
.band__track { position: relative; height: 24px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); }
.band__range {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: var(--from);
  right: calc(100% - var(--to));
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--brand) 14%, white);
  border: 1px solid color-mix(in oklab, var(--brand) 24%, white);
}
.p {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(16, 23, 39, 0.2);
}
.p--a { background: var(--m-review); }
.p--b { background: var(--brand); }
.bands__axis {
  display: flex;
  justify-content: space-between;
  margin-left: 2.5rem;
  color: var(--text-subtle);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}
.bands__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.3rem; color: var(--text-muted); font-size: 0.72rem; }
.bands__legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.bands__legend .p { position: static; margin: 0; }
.bands__legend .muted { margin-left: auto; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: end; }
@media (min-width: 1000px) { .story { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); gap: 64px; } }
.quote { position: relative; margin: 0; }
.quote__mark {
  display: block;
  height: 0.62em;
  font: 400 6rem/1 var(--font-accent);
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  font: 400 clamp(1.85rem, 1.15rem + 2.7vw, 3.5rem)/1.1 var(--font-accent);
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.quote figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.quote__logo { font: 700 1.1rem/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink); }
.quote__logo span { color: var(--brand); }
.story__copy p { color: var(--text-muted); }
.story__copy .link-arrow { margin-top: 0.5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1000px) { .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } }
.faq .section-head { margin-bottom: 16px; }
.faq .section-head h2 { font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem); }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  list-style: none;
  cursor: pointer;
  font: 600 1.06rem/1.4 var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .i {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s, background-color 0.25s;
}
.faq__list details[open] summary .i { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq__list summary:hover { color: var(--brand-strong); }
.faq__list details p { max-width: 64ch; margin: 0 0 1.3rem; padding-right: 2.5rem; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 var(--section-y); background: var(--paper); }
.cta__card {
  position: relative;
  overflow: hidden;
  padding: 56px 20px;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: #fff;
  text-align: center;
}
@media (min-width: 720px) { .cta__card { padding: 96px 48px; } }
.cta__glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 120%;
  height: 100%;
  transform: translateX(-50%);
  background:
    radial-gradient(30% 60% at 25% 0%, color-mix(in oklab, var(--aurora-1) 40%, transparent), transparent 70%),
    radial-gradient(30% 60% at 55% 0%, color-mix(in oklab, var(--aurora-2) 40%, transparent), transparent 70%),
    radial-gradient(30% 60% at 80% 0%, color-mix(in oklab, var(--aurora-3) 40%, transparent), transparent 70%);
  filter: blur(30px);
  opacity: 0.8;
  pointer-events: none;
}
.cta__card > *:not(.cta__glow) { position: relative; }
.cta__card .karma-mark { margin-bottom: 1.5rem; }
.cta h2 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.8rem); line-height: 1.04; letter-spacing: -0.04em; }
.cta p { max-width: 560px; margin: 1.1rem auto 0; color: #c3cbda; font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 24px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__brand { grid-column: auto; } }
.footer__brand p { margin: 1rem 0 0; color: var(--text-muted); }
.footer__brand .footer__motto { margin-top: 0.25rem; font-family: var(--font-accent); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.footer__col h3 {
  margin-bottom: 0.9rem;
  color: var(--text-subtle);
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer__col a { display: block; padding: 0.3rem 0; color: var(--ink-2); font-size: 0.95rem; text-decoration: none; }
.footer__col a:hover { color: var(--brand-strong); }
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 48px;
  padding-top: 24px;
  color: var(--text-subtle);
  font-size: 0.85rem;
}
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

/* ---------- Scroll reveal (only once main.js has run) ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .layers__flow i::after { display: none; }
}

/* ---------- Picture export mode (scripts/export-pictures.mjs) ---------- */
.export-mode .float-chip,
.export-mode .demo-note,
.export-mode [class*="glow"] { display: none !important; }
.export-mode,
.export-mode body,
.export-mode main,
.export-mode .section,
.export-mode .hero,
.export-mode .proof,
.export-mode .cta { background: transparent !important; }
