/* ============================================================
   deflation.ai — homepage (def-os design system)
   Single file, no build step. Warm off-white, monochrome ink,
   green = live/safe, amber = waiting on you. Same tokens as the
   product, so the page IS the product.
   ============================================================ */

:root {
  --bg:           #fafaf8;
  --bg-deep:      #f1f0ec;
  --surface:      #ffffff;
  --surface-soft: #f4f3ef;
  --line:         #eae9e4;
  --line-strong:  #dcdad3;
  --ink:          #14130f;
  --ink-soft:     #35332d;
  --muted:        #6f6d66;
  --faint:        #a4a19a;

  --green:       #1a7f5a;
  --green-soft:  #e4f2ea;
  --amber:       #b45309;
  --amber-soft:  #f9ecd8;
  --red:         #d64535;

  --accent:         #14130f;
  --accent-strong:  #000000;
  --accent-soft:    #efeeea;
  --primary:        #14130f;
  --primary-strong: #000000;

  --shadow-sm: 0 1px 2px rgba(20,19,15,.04);
  --shadow-md: 0 6px 20px rgba(20,19,15,.06), 0 2px 6px rgba(20,19,15,.04);
  --shadow-lg: 0 20px 48px rgba(20,19,15,.10), 0 6px 16px rgba(20,19,15,.05);

  --wrap: 1180px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 8px;
  --r-xl: 8px;

  --sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: #efeeea; color: #000; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(3.75rem, 6vw, 6rem) 0; }
.section--soft { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #c9c7c0; }

.sec-head { max-width: 660px; margin: 0 auto clamp(2.6rem, 5vw, 4rem); text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--faint);
}
.section--ink .eyebrow { color: #8d8b83; }

h1 {
  font-size: 4.4rem;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}
h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.h-soft { color: var(--muted); font-weight: 500; }

.sec-head h2 { margin-top: .7rem; }
.sec-head p { margin-top: 1.05rem; font-size: 1.12rem; line-height: 1.6; color: var(--muted); }
.section--ink .sec-head h2 { color: #faf9f5; }
.section--ink .sec-head p { color: #a5a39b; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-size: .96rem; font-weight: 600;
  padding: .85rem 1.4rem; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn--primary { background: var(--ink); color: #faf9f5; }
.btn--primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20,19,15,.18); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #faf9f5; color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; font-size: .94rem; color: var(--ink);
  text-decoration: none;
}
.arrow-link svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); }
.nav__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  height: 66px; display: flex; align-items: center; gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.08rem; color: var(--ink);
  text-decoration: none; letter-spacing: 0;
}
.logo__mark {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--ink); color: #faf9f5;
  border-radius: 7px; font-size: .8rem;
}
.logo__dot { color: var(--muted); }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.nav__cta) { text-decoration: none; font-size: .94rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__sep { width: 1px; height: 18px; background: var(--line-strong); }
.nav__lang { display: flex; gap: .55rem; font-size: .84rem; font-weight: 600; }
.nav__lang a { color: var(--faint); }
.nav__lang .is-active { color: var(--ink); }
.nav__cta { font-size: .9rem !important; padding: .58rem 1rem; }
.nav__burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; text-align: center; }
.hero__in { position: relative; padding: clamp(2.6rem, 5vw, 4.5rem) 0 0; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .85rem; border: 1px solid var(--line-strong);
  border-radius: 100px; background: var(--surface);
  font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 { margin: 1.4rem auto .3rem; max-width: 880px; }
.hero__sub {
  margin: 1.4rem auto 0; max-width: 52ch;
  font-size: 1.16rem; line-height: 1.6; color: var(--muted);
}
.hero__cta { margin-top: 2rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero__micro {
  margin-top: 1.6rem; display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
  font-size: .85rem; color: var(--faint); font-weight: 500;
}
.hero__micro span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__micro svg { width: 14px; height: 14px; color: var(--green); }

/* ============================================================
   OS FRAME — the REAL product components, verbatim from the
   def-os design system (builder-dashboard/src/components/def-os):
   sidebar/nav-list, pin-head, ad-tabs, af-row, pin-card, trace-card.
   Scoped under .def-os so marketing classes (.btn, .badge, .eyebrow,
   .icon-tile) never collide — same firewall pattern as the app.
   ============================================================ */
.showcase { padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5.5rem); }
.showcase .sec-head { margin-bottom: 2.2rem; }
.os-frame {
  max-width: 980px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.os-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem .95rem; border-bottom: 1px solid var(--line); background: var(--surface-soft);
}
.os-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.os-url {
  margin: 0 auto; padding: .22rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 7px; font-family: var(--mono); font-size: .72rem; color: var(--muted);
}
.os-body { display: grid; grid-template-columns: 192px 1fr; }
.os-main { padding: 20px 26px 26px; background: var(--bg); min-width: 0; }
.os-note {
  max-width: 980px; margin: 1.1rem auto 0; text-align: center;
  font-size: .88rem; color: var(--faint);
}
.os-note b { color: var(--muted); font-weight: 600; }

/* ---- def-os primitives (verbatim) ---- */
.def-os { font-size: 14px; line-height: 1.5; color: var(--ink); }
.def-os .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 11px; font-weight: 680;
  text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 9px;
}
.def-os .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-sm); padding: 8px 14px;
  font-size: 12.5px; font-weight: 600; border: 1px solid transparent;
  white-space: nowrap; cursor: default;
}
.def-os .btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.def-os .btn.secondary { background: var(--surface); color: var(--ink-soft); border-color: var(--line-strong); }
.def-os .btn.sm { padding: 6px 11px; font-size: 12px; }
.def-os .badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-style: normal; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
  color: var(--muted); background: var(--surface-soft);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px 8px;
}
.def-os .badge > i { width: 6px; height: 6px; border-radius: 999px; background: var(--ink); flex: none; }
.def-os .badge.live > i, .def-os .badge.online > i, .def-os .badge.operating > i { background: var(--green); }
.def-os .badge.proposed > i, .def-os .badge.building > i, .def-os .badge.dev > i { background: var(--amber); }
.def-os .badge.paused > i, .def-os .badge.error > i { background: var(--red); }
.def-os .icon-tile {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-soft);
  display: grid; place-items: center; color: var(--ink-soft); flex: none;
}
.def-os .tool-icon { color: inherit; }
.def-os .avatar {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none;
}
.def-os .pin-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--faint); flex: none; }
.def-os .pin-dot.live, .def-os .pin-dot.online, .def-os .pin-dot.operating { background: var(--green); }
.def-os .pin-dot.live { box-shadow: 0 0 0 3px rgba(26, 127, 90, 0.15); }
.def-os .pin-dot.proposed, .def-os .pin-dot.building, .def-os .pin-dot.dev { background: var(--amber); }
.def-os .pin-dot.paused, .def-os .pin-dot.error { background: var(--red); }
.def-os .pin-attn { width: 7px; height: 7px; border-radius: 999px; background: var(--ink); flex: none; }

/* ---- app shell: sidebar + nav-list (verbatim) ---- */
.def-os .sidebar {
  display: flex; flex-direction: column;
  background: #fafbfd; border-right: 1px solid var(--line);
  padding: 14px 10px 12px; min-width: 0; overflow: hidden; white-space: nowrap;
}
.def-os .brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 16px; }
.def-os .brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: white; font-size: 14px; font-weight: 800;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.def-os .brand-text { min-width: 0; }
.def-os .brand strong, .def-os .brand span { display: block; }
.def-os .brand strong { font-size: 13px; }
.def-os .brand span { color: var(--muted); font-size: 11px; }
.def-os .nav-list { display: grid; gap: 2px; margin-top: 12px; }
.def-os .nav-list button {
  appearance: none; border: 0; width: 100%;
  display: grid; grid-template-columns: 20px 1fr auto; gap: 11px; align-items: center;
  background: transparent; border-radius: 8px; padding: 8px 10px;
  color: var(--ink-soft); text-align: left; font-size: 13.5px; font-weight: 560;
  font-family: inherit; cursor: default;
}
.def-os .nav-list button.active { background: var(--surface-soft); color: var(--ink); font-weight: 680; }
.def-os .nav-list em { color: var(--faint); font-size: 11px; font-style: normal; font-weight: 600; }
.def-os .nav-list button.active em { color: var(--muted); }
.def-os .nav-icon { color: var(--faint); flex: none; }
.def-os .nav-list button.active .nav-icon { color: var(--ink); }

/* ---- pin-head + activity tabs + af-rows (verbatim) ---- */
.def-os .pin-head { margin: 0 0 8px; }
.def-os .pin-head h1 { margin: 5px 0 0; font-size: 26px; line-height: 1.1; letter-spacing: 0; font-weight: 760; }
.def-os .pin-head p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 540px; }
.def-os .ad-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.def-os .ad-tabs button {
  border: 0; background: transparent; color: var(--muted);
  padding: 10px 12px; font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: inherit; cursor: default;
}
.def-os .ad-tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.def-os .av-tabs { margin: 20px 0 2px; }
.def-os .av-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 7px;
  border-radius: 999px; background: var(--ink); color: var(--surface);
  font-size: 10.5px; font-weight: 700; vertical-align: middle;
}
.def-os .av-list { display: flex; flex-direction: column; }
.def-os .af-row {
  display: grid; grid-template-columns: 62px 30px 1fr auto; gap: 12px;
  align-items: start; padding: 15px 6px; border-top: 1px solid var(--line);
}
.def-os .af-row:first-child { border-top: 0; }
.def-os .af-when { font-size: 11.5px; color: var(--faint); padding-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.def-os .af-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.def-os .af-top { display: flex; align-items: center; gap: 8px; }
.def-os .af-top strong { font-size: 13px; letter-spacing: 0; }
.def-os .af-kind { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.def-os .af-what { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.def-os .af-meta { display: flex; align-items: center; gap: 8px; min-height: 22px; flex-wrap: wrap; }
.def-os .af-system {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px 0 4px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft);
  color: var(--ink-soft); font-size: 10.5px; font-weight: 650; line-height: 1;
}
.def-os .af-system i {
  width: 14px; height: 14px; border-radius: 3px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--ink); color: #fff; font-size: 8px;
  font-weight: 800; font-style: normal; letter-spacing: 0;
}
.def-os .af-system--bexio i { background: #d94b3d; }
.def-os .af-system--google-calendar i { background: #3478d4; }
.def-os .af-effect { display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); }
.def-os .af-effect .pin-attn { margin-right: 6px; }
.def-os .af-actions { display: flex; align-items: center; gap: 8px; padding-top: 2px; }

/* ---- pin-cards: the fleet pinboard (verbatim) ---- */
.def-os .pin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.def-os .pin-card {
  text-align: left; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 148px; box-shadow: var(--shadow-sm); color: var(--ink);
}
.def-os .pin-card.architect { grid-column: 1 / -1; border-color: var(--ink); min-height: 0; }
.def-os .pin-card-top { display: flex; align-items: center; gap: 11px; }
.def-os .pin-id { min-width: 0; }
.def-os .pin-id strong { display: block; font-size: 14.5px; letter-spacing: 0; }
.def-os .pin-id em { font-style: normal; font-size: 11px; color: var(--muted); }
.def-os .pin-card-top .badge { margin-left: auto; }
.def-os .pin-brief { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.def-os .pin-role { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.def-os .pin-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 4px; font-size: 12px; color: var(--muted);
}
.def-os .pin-open { color: var(--ink); font-weight: 600; white-space: nowrap; }
.def-os .pin-stats { display: flex; gap: 24px; margin-top: 2px; }
.def-os .pin-stats span { display: flex; flex-direction: column; gap: 1px; font-size: 11px; color: var(--muted); }
.def-os .pin-stats b { font-size: 17px; font-weight: 650; color: var(--ink); letter-spacing: 0; }
.def-os .pin-waiting {
  margin-top: auto; display: flex; align-items: center; gap: 9px;
  background: var(--surface-soft); border-radius: var(--r-sm);
  padding: 9px 11px; font-size: 12.5px; color: var(--ink-soft);
}
.def-os .pin-waiting-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.def-os .pin-review { margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }
.def-os .pin-card.proposed { border-style: dashed; }
.def-os .pin-card.add {
  align-items: flex-start; justify-content: center; gap: 7px;
  border-style: dashed; background: transparent; box-shadow: none;
}
.def-os .pin-add-plus { font-size: 20px; line-height: 1; color: var(--ink); }
.def-os .pin-card.add strong { font-size: 14px; }
.def-os .pin-card.add > span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---- trace-card: the turn summary (verbatim) ---- */
.def-os .trace-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
}
.def-os .trace-card.open { border-color: var(--line-strong); }
.def-os .trace-card.attn .icon-tile { border-color: var(--ink); background: var(--ink); color: #fff; }
.def-os .tc-summary {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 13px 15px;
  display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center;
}
.def-os .tc-lead { display: flex; align-items: center; gap: 11px; min-width: 0; }
.def-os .tc-meta { display: flex; flex-direction: column; gap: 2px; }
.def-os .tc-meta em { font-style: normal; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.def-os .tc-kind { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.def-os .tc-what { font-size: 13.5px; line-height: 1.45; color: var(--ink); min-width: 0; }
.def-os .tc-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.def-os .tc-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ink); flex: none; }
.def-os .tc-check { color: var(--ink); font-weight: 700; }
.def-os .tc-detail {
  border-top: 1px solid var(--line); padding: 14px 15px;
  display: grid; gap: 12px; background: var(--surface-soft);
}
.def-os .tcd-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.def-os .tcd-row > span {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); padding-top: 3px;
}
.def-os .tc-detail p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.def-os .tcd-effects { display: grid; gap: 7px; }
.def-os .tcd-effect { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.def-os .tcd-effect .tool-icon { color: var(--muted); flex: none; }
.def-os .tcd-artifact {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); padding: 9px 11px;
}
.def-os .tcd-artifact > .tool-icon { color: var(--ink-soft); flex: none; }
.def-os .tcd-art-text { flex: 1; min-width: 0; }
.def-os .tcd-art-text strong { display: block; font-size: 12.5px; }
.def-os .tcd-art-text em { font-style: normal; font-size: 11px; color: var(--muted); }
.def-os .tc-cta { display: flex; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--line); background: var(--surface); }

/* ---------- trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip__in { padding: 2rem 0; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.strip__label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.strip__items { display: flex; gap: 1.5rem 2.3rem; flex-wrap: wrap; justify-content: center; }
.strip__items span { font-size: 1.16rem; font-weight: 600; letter-spacing: 0; color: var(--ink); opacity: .5; }

/* ============================================================
   PRINZIP — split: copy + turn-summary trace card
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.split__copy h2 { margin: .7rem 0 1.2rem; }
.split__copy > p { font-size: 1.06rem; color: var(--muted); }
.split__points { margin-top: 1.6rem; display: grid; gap: .95rem; }
.split__point { display: flex; gap: .8rem; align-items: flex-start; }
.split__point svg { width: 19px; height: 19px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.split__point span { color: var(--muted); }
.split__point b { color: var(--ink); font-weight: 600; }

/* trace card = .def-os .trace-card (verbatim block above) */

/* ============================================================
   ROLLEN
   ============================================================ */
.roles { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.role {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 1.8rem;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.role:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.role__top { display: flex; align-items: center; gap: .8rem; }
.icon-tile {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--ink); color: #faf9f5;
}
.icon-tile svg { width: 20px; height: 20px; }
.role__num { margin-left: auto; font-family: var(--mono); font-size: .76rem; color: var(--faint); }
.role h3 { margin-top: 1.05rem; font-size: 1.24rem; font-weight: 700; letter-spacing: 0; }
.role__tag { margin-top: .45rem; font-size: .98rem; color: var(--muted); flex-grow: 1; }
.role__keys { margin-top: 1.05rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.role__keys span { font-size: .74rem; font-weight: 500; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; padding: .18rem .5rem; }
.role__go { margin-top: 1.25rem; }
.roles-note { margin-top: 1.7rem; text-align: center; font-size: 1rem; color: var(--muted); }
.roles-note b { color: var(--ink); }

/* ============================================================
   ABLAUF — 3 steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.step { position: relative; }
.step__num {
  font-family: var(--mono); font-size: .92rem; font-weight: 500;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface);
}
.step h3 { margin: 1.05rem 0 .5rem; font-size: 1.14rem; }
.step p { font-size: .98rem; color: var(--muted); }
.step__line { position: absolute; top: 19px; left: 50px; right: -1.4rem; height: 1px; background: var(--line-strong); }
.step:last-child .step__line { display: none; }

/* ============================================================
   VORTEILE — 6 cards
   ============================================================ */
.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem 2.4rem; }
.benefit { padding-top: .3rem; }
.benefit .icon-tile { width: 38px; height: 38px; border-radius: 8px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--ink); }
.benefit h3 { margin: 1rem 0 .45rem; font-size: 1.06rem; }
.benefit p { font-size: .96rem; color: var(--muted); }

/* ============================================================
   TRUST BAND — Swiss credibility
   ============================================================ */
.band { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.band h2 { margin: .7rem 0 1rem; }
.band p { color: var(--muted); font-size: 1.04rem; }
.badges { display: grid; gap: .75rem; }
.badge {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: .95rem 1.15rem; box-shadow: var(--shadow-sm);
}
.badge__ico { width: 38px; height: 38px; border-radius: 8px; background: var(--ink); color: #faf9f5; display: grid; place-items: center; flex-shrink: 0; }
.badge__ico svg { width: 20px; height: 20px; }
.badge b { display: block; color: var(--ink); font-size: .98rem; }
.badge span { font-size: .86rem; color: var(--muted); }

/* ============================================================
   PREISE
   ============================================================ */
.price-solo { max-width: 560px; margin: 0 auto; }
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(1.8rem,3.5vw,2.6rem); box-shadow: var(--shadow-md);
}
.price-card__label { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.price-card__big { font-size: 3.3rem; font-weight: 760; letter-spacing: 0; color: var(--ink); line-height: 1.05; margin-top: .5rem; }
.price-card__sub { font-size: .9rem; color: var(--faint); }
.price-card__rule { height: 1px; background: var(--line); margin: 1.5rem 0; }
.price-card__then { color: var(--muted); }
.price-card__then b { color: var(--ink); }
.price-list { margin: 1.3rem 0 1.6rem; display: grid; gap: .6rem; list-style: none; }
.price-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; color: var(--muted); }
.price-list svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   RECHNER — interactive cost calculator
   ============================================================ */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 980px; margin: 0 auto; }
.calc__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.6rem,3.5vw,2.4rem); }
.calc__field { margin-bottom: 1.9rem; }
.calc__field:last-of-type { margin-bottom: 1.2rem; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .85rem; }
.calc__label span { font-size: .93rem; color: var(--muted); }
.calc__label b { font-size: 1.3rem; font-weight: 700; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--bg-deep); border: 1px solid var(--line); cursor: pointer; }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(20,19,15,.4); cursor: pointer; }
.calc__range::-moz-range-thumb { width: 19px; height: 19px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(20,19,15,.4); cursor: pointer; }
.calc__note { font-size: .8rem; line-height: 1.55; color: var(--faint); }
.calc__result { background: var(--ink); color: #c9c7c0; border-radius: var(--r-xl); padding: clamp(1.6rem,3.5vw,2.4rem); display: flex; flex-direction: column; }
.calc__line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.calc__line span { font-size: .9rem; color: #8d8b83; }
.calc__line b { font-size: 1.35rem; font-weight: 600; color: #faf9f5; white-space: nowrap; letter-spacing: 0; }
.calc__save { margin-top: auto; padding-top: 1.7rem; }
.calc__save span { font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #8d8b83; }
.calc__save strong { display: block; font-size: 3.5rem; font-weight: 760; letter-spacing: 0; color: #fff; line-height: 1.05; margin: .35rem 0 .2rem; }
.calc__save em { font-style: normal; font-size: .96rem; font-weight: 600; color: #7fd0b2; }
.calc-bridge { text-align: center; margin: 2.6rem auto 1.4rem; max-width: 560px; font-size: 1.02rem; color: var(--muted); }
.calc-bridge::before, .calc-bridge::after { content: "—"; opacity: .35; margin: 0 .6em; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 0; font-family: var(--sans); font-size: 1.06rem; font-weight: 600;
  color: var(--ink); text-align: left;
}
.faq__q .pm { margin-left: auto; flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq__q .pm::before, .faq__q .pm::after {
  content: ''; position: absolute; background: var(--faint);
  left: 50%; top: 50%; transition: transform .25s var(--ease);
}
.faq__q .pm::before { width: 14px; height: 1.6px; transform: translate(-50%,-50%); }
.faq__q .pm::after { width: 1.6px; height: 14px; transform: translate(-50%,-50%); }
.faq__item.is-open .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .3s var(--ease); }
.faq__a p { padding: 0 0 1.35rem; font-size: 1rem; max-width: 64ch; color: var(--muted); }

/* ============================================================
   KONTAKT — final CTA + form
   ============================================================ */
.kontakt { text-align: center; }
.form-card {
  max-width: 620px; margin: 2.4rem auto 0; text-align: left;
  background: var(--surface); border-radius: var(--r-xl);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 50px 90px -50px rgba(0,0,0,.6);
}
.field { margin-bottom: 1.05rem; }
.field:last-of-type { margin-bottom: 1.4rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .42rem; }
.field label .opt { color: var(--faint); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: .98rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: .78rem .9rem; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20,19,15,.08);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-card .btn--primary { width: 100%; justify-content: center; }
.form-card .btn--primary[disabled] { opacity: .6; cursor: progress; }
.form-error {
  margin-top: .9rem; font-size: .9rem; color: #a8401f;
  background: #f9ecd8; border: 1px solid #ecd3b3; border-radius: var(--r-sm); padding: .6rem .8rem;
}
.fineprint { margin-top: 1rem; font-size: .84rem; color: var(--faint); text-align: center; }
.form-or { margin: 1.5rem 0; text-align: center; position: relative; }
.form-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.form-or span { position: relative; background: var(--surface); padding: 0 .9rem; font-size: .84rem; color: var(--faint); }
.form-success { text-align: center; padding: 1.5rem 0; }
.form-success .ok {
  width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 1.5rem;
}
.form-success h3 { font-weight: 700; font-size: 1.35rem; letter-spacing: 0; }
.form-success p { margin-top: .6rem; font-size: .94rem; color: var(--muted); }
.form-success code { font-family: var(--mono); background: var(--surface-soft); padding: .15rem .45rem; border-radius: 5px; font-size: .84rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0d0c09; color: #8d8b83; padding: clamp(3.5rem,6vw,5rem) 0 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand .logo { color: #faf9f5; }
.footer__brand .logo__mark { background: #faf9f5; color: var(--ink); }
.footer__brand p { margin-top: 1rem; font-size: .9rem; max-width: 30ch; }
.footer__col h4 { color: #faf9f5; font-size: .76rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col a { display: block; text-decoration: none; font-size: .92rem; color: #8d8b83; padding: .26rem 0; transition: color .15s; }
.footer__col a:hover { color: #faf9f5; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .84rem;
}

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .split, .band__in { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: repeat(2,1fr); }
  .calc { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .os-body { grid-template-columns: 1fr; }
  .def-os .sidebar { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; }
  .def-os .brand { padding: 0 10px 0 0; }
  .def-os .nav-list { display: flex; margin-top: 0; }
  .def-os .nav-list button { width: auto; display: flex; gap: 7px; }
  .def-os .pin-grid { grid-template-columns: 1fr; }
}

@media (max-height: 760px) and (min-width: 721px) {
  .hero__in { padding-top: 1.25rem; }
  .hero h1 { margin-top: .6rem; font-size: 3.6rem; }
  .hero__sub { margin-top: .8rem; }
  .hero__cta { margin-top: 1rem; }
  .hero__micro { margin-top: .8rem; }
  .showcase { padding-top: .5rem; }
}
@media (max-width: 720px) {
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2rem; }
  .price-card__big { font-size: 2.4rem; }
  .calc__save strong { font-size: 2.5rem; }
  .hero__in { padding-top: 1.5rem; }
  .hero h1 { margin-top: .75rem; }
  .hero__sub { margin-top: .85rem; }
  .hero__cta { margin-top: 1.25rem; }
  .hero__micro { margin-top: 1.1rem; }
  .showcase { padding-top: .25rem; }
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__burger {
    display: grid; margin-left: auto; gap: 5px; cursor: pointer;
    background: none; border: 0; padding: 8px;
  }
  .nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1.5rem 28px 2rem;
  }
  .nav.is-open .nav__sep { display: none; }
  .roles, .steps, .benefits, .field-grid { grid-template-columns: 1fr; }
  .step__line { display: none; }
  .strip__in { gap: 1rem; }
  .def-os .af-row { grid-template-columns: 30px 1fr; }
  .def-os .af-when { display: none; }
  .def-os .af-actions { grid-column: 2; padding-top: 4px; }
  .def-os .pin-head h1 { font-size: 22px; }
  .def-os .tc-summary { grid-template-columns: 1fr; gap: 9px; }
  .def-os .tcd-row { grid-template-columns: 1fr; gap: 4px; }
}
