/* =====================================================================
   dragdone — "Precíziós rajzasztal" design system
   Concept: ink on warm paper · measured grid · single ultramarine signal
   Type: DM Sans (display) · Inter (body) · IBM Plex Mono (technical)
   Motion: compositor-only, purpose-driven, reduced-motion safe
   ===================================================================== */

/* ---------- Typed custom properties (for interpolation) ---------- */
@property --draw {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}
@property --tilt {
  syntax: "<angle>";
  inherits: false;
  initial-value: 7deg;
}

/* ---------- Tokens · light = clean white ---------- */
:root {
  --paper:    #FFFFFF;
  --paper-2:  #F6F7F9;
  --panel:    #FFFFFF;
  --panel-2:  #F8F9FB;

  --ink:      #0C111D;
  --ink-2:    #475467;
  --ink-3:    #667085;
  --ink-4:    #98A2B3;

  --rule:     #EAECF0;
  --rule-2:   #D5D9E0;
  --rule-ink: #1018280F;

  --accent:   #0126CB;
  --accent-2: #1944F1;
  --on-accent:#FFFFFF;
  --signal-soft: rgba(1, 38, 203, 0.07);

  --success:  #1C7C4A;
  --warning:  #B26B05;
  --danger:   #C0391F;

  --grid-line: rgba(16, 24, 40, 0.035);
  --grid-line-strong: rgba(16, 24, 40, 0.06);

  --shadow-1: 0 1px 2px rgba(16,24,40,0.04);
  --shadow-2: 0 16px 40px -22px rgba(16,24,40,0.28);
  --shadow-lift: 0 40px 80px -44px rgba(16,24,40,0.40);

  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;

  --gut: 32px;
  --maxw: 1240px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.5, 0, 0.1, 1);

  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

:root[data-accent="electric"] { --accent: #2A22EE; --accent-2: #5A52F4; }
:root[data-accent="forest"]   { --accent: #0E6F50; --accent-2: #18936B; --signal-soft: rgba(14,111,80,0.09); }

/* ---------- Tokens · dark = blueprint ink ---------- */
[data-theme="dark"] {
  --paper:    #0B0C0F;
  --paper-2:  #101218;
  --panel:    #14161D;
  --panel-2:  #1A1D26;

  --ink:      #ECEAE0;
  --ink-2:    #A9A99E;
  --ink-3:    #74766C;
  --ink-4:    #565850;

  --rule:     #23262F;
  --rule-2:   #2E323D;

  --accent:   #6E86FF;
  --accent-2: #8EA0FF;
  --on-accent:#0B0C0F;
  --signal-soft: rgba(110, 134, 255, 0.12);

  --success:  #45C285;
  --warning:  #E0A53B;
  --danger:   #F0795E;

  --grid-line: rgba(255, 255, 255, 0.045);
  --grid-line-strong: rgba(255, 255, 255, 0.08);

  --shadow-2: 0 24px 60px -28px rgba(0,0,0,0.8);
  --shadow-lift: 0 50px 110px -50px rgba(0,0,0,0.9);
}
[data-theme="dark"][data-accent="electric"] { --accent: #8C84FF; --accent-2: #A39DFF; }
[data-theme="dark"][data-accent="forest"]   { --accent: #3FCB97; --accent-2: #5FD8AC; --signal-soft: rgba(63,203,151,0.14); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ---------- Mono technical label ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-feature-settings: "tnum";
}

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }

/* Registration-mark divider that draws on scroll */
.rule-mark {
  position: relative;
  height: 1px;
  background: var(--rule);
}
.rule-mark::before,
.rule-mark::after {
  content: "+";
  position: absolute;
  top: 50%;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink-4);
  transform: translateY(-50%);
}
.rule-mark::before { left: var(--gut); }
.rule-mark::after { right: var(--gut); }

/* ---------- Section head ---------- */
.head { max-width: 760px; }
.head--center { margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.head--center .eyebrow::before { display: none; }

.title {
  font-size: clamp(30px, 4.4vw, 52px);
  margin-top: 20px;
  white-space: pre-line;
  letter-spacing: -0.03em;
}
.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
  margin-top: 20px;
  max-width: 620px;
  text-wrap: pretty;
}
.head--center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--fg);
  position: relative;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { --bg: var(--accent); --fg: var(--on-accent); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid var(--rule-2);
}
.btn-secondary:hover { background: var(--panel); border-color: var(--ink-3); }

.btn-ghost { --bg: transparent; --fg: var(--ink-2); height: 44px; padding: 0 14px; }
.btn-ghost:hover { --fg: var(--ink); }

.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.nav-logo-mark {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  font-size: 19px;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.theme-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  color: var(--ink-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); transform: rotate(-12deg); }

@media (max-width: 880px) { .nav-links { display: none; } }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
  text-align: center;
  --mx: 50%;
  --my: 30%;
}
/* faint product grid behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 0 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 66% 58% at 50% 24%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 66% 58% at 50% 24%, #000 0%, transparent 76%);
  pointer-events: none;
}
/* soft signal that tracks the pointer */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(560px 440px at var(--mx) var(--my), var(--signal-soft), transparent 70%);
  pointer-events: none;
  transition: background 0.2s linear;
}
.hero > * { position: relative; z-index: 1; }

.hero-head { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--panel);
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 100px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-badge .ic-end { color: var(--ink-4); margin-left: -2px; }

.hero-title {
  font-size: clamp(38px, 5.6vw, 70px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-top: 26px;
  max-width: 17ch;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  margin-top: 22px;
  max-width: 580px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.hero-trust .check { color: var(--success); margin-right: 6px; vertical-align: -2px; }
.hero-trust .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

/* Hero entrance for left column blocks */
.hero-enter { opacity: 0; transform: translateY(16px); }
body.is-ready .hero-enter { animation: hero-fade 0.8s var(--ease) forwards; }
body.is-ready .hero-badge.hero-enter { animation-delay: 0.02s; }
body.is-ready .hero-title.hero-enter { animation-delay: 0.1s; }
body.is-ready .hero-sub.hero-enter { animation-delay: 0.2s; }
body.is-ready .hero-cta.hero-enter { animation-delay: 0.3s; }
body.is-ready .hero-trust.hero-enter { animation-delay: 0.4s; }
@keyframes hero-fade { to { opacity: 1; transform: translateY(0); } }

/* ---------- Hero showcase (dashboard framed below the headline) ---------- */
.hero-showcase {
  position: relative;
  max-width: 1160px;
  margin: clamp(48px, 6vw, 76px) auto 0;
  perspective: 2000px;
}
.hero-showcase-inner { position: relative; transform-origin: center top; }
.hero-showcase .inst { position: relative; z-index: 2; }
/* gentle perspective that settles flat as it scrolls into view */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-showcase-inner {
      animation: panel-settle linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 36%;
    }
    @keyframes panel-settle {
      from { transform: perspective(2000px) rotateX(7deg) translateY(26px) scale(0.985); }
      to   { transform: perspective(2000px) rotateX(0deg) translateY(0) scale(1); }
    }
  }
}

.stage--minimal .anno { display: none; }
.stage--glow::before {
  content: "";
  position: absolute;
  inset: -14% -10% -4%;
  z-index: 0;
  background: radial-gradient(closest-side, var(--signal-soft), transparent 72%);
  pointer-events: none;
}

/* annotation callouts (float around the framed dashboard) */
.anno {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  padding: 12px 14px;
  z-index: 5;
  width: 200px;
  text-align: left;
}
.anno--tl { top: 52px; left: -42px; }
.anno--br { bottom: 40px; right: -44px; width: 224px; }
.anno--r  { top: 30%; right: -58px; width: 192px; }
.anno--l  { top: 56%; left: -58px; width: 196px; }
@media (max-width: 1240px) {
  .anno--tl { left: 10px; } .anno--br { right: 10px; }
  .anno--r { right: 6px; } .anno--l { left: 6px; }
}
@media (max-width: 980px) { .anno { display: none; } }

.anno-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.anno-row {
  display: flex; align-items: center; gap: 10px;
}
.anno-ic {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
}
.anno-ic--ghost { background: var(--signal-soft); color: var(--accent); }
.anno-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.anno-value {
  font-family: var(--font-display);
  font-weight: 600; font-size: 19px; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.anno-bar {
  margin-top: 10px; height: 4px; border-radius: 100px;
  background: var(--paper-2); overflow: hidden;
}
.anno-bar > i { display: block; height: 100%; background: var(--accent); width: 64%; }
.anno-meta { margin-top: 8px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.anno-title { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--ink); margin-top: 2px; }
.anno-strong { color: var(--ink); font-weight: 600; }

/* floating subtle motion (reduced-motion disables) */
@media (prefers-reduced-motion: no-preference) {
  .anno--tl { animation: drift-a 7s ease-in-out infinite; }
  .anno--br { animation: drift-b 8s ease-in-out infinite; }
  .anno--r  { animation: drift-a 9s ease-in-out infinite -3s; }
  .anno--l  { animation: drift-b 8.5s ease-in-out infinite -2s; }
  @keyframes drift-a { 50% { transform: translateY(-9px); } }
  @keyframes drift-b { 50% { transform: translateY(-13px); } }
}

/* =====================================================================
   INSTRUMENT (app mock) — class-based, no inline styles
   ===================================================================== */
.inst {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.inst__bar {
  height: 52px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-2);
}
.inst__dots { display: flex; gap: 8px; flex: none; }
.inst__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--rule-2); }
.inst__dots i:nth-child(1) { background: #ED6A5E; }
.inst__dots i:nth-child(2) { background: #F4BF4F; }
.inst__dots i:nth-child(3) { background: #61C554; }
.inst__navbtns { display: flex; align-items: center; gap: 2px; flex: none; }
.inst__navbtns--end { margin-left: 4px; }
.inst__navbtn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.inst__navbtn:first-child { color: var(--ink-2); }
.inst__navbtn:hover { background: var(--rule); color: var(--ink); }
.inst__omnibox {
  flex: 1;
  height: 32px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 100px;
  min-width: 0;
}
.inst__lock { color: var(--success); flex: none; }
.inst__url {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 560px) { .inst__navbtns, .inst__navbtns--end { display: none; } }
.inst__body { display: grid; grid-template-columns: 212px 1fr; min-height: 480px; }
@media (max-width: 480px) { .inst__body { grid-template-columns: 1fr; } .inst__side { display: none; } }

.inst__side {
  border-right: 1px solid var(--rule);
  background: var(--panel-2);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.inst__brand {
  display: flex; align-items: baseline; gap: 0;
  padding: 6px 8px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink);
  letter-spacing: -0.03em;
}
.inst__brand .m { font-family: var(--font-mono); color: var(--accent); }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-2);
  font-family: var(--font-body);
}
.nav-item svg { color: var(--ink-3); }
.nav-item.is-active {
  background: var(--signal-soft); color: var(--accent); font-weight: 600;
}
.nav-item.is-active svg { color: var(--accent); }
.inst__user {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--rule);
}
.inst__user .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.inst__user .nm { font-size: 12px; font-weight: 600; color: var(--ink); }
.inst__user .pl { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; }

.inst__main { padding: 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.inst__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.inst__crumb { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.inst__h { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); margin-top: 4px; letter-spacing: -0.02em; }
.inst__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--rule-2); border-radius: var(--r-sm);
  color: var(--ink-2); background: var(--panel);
}
.btn-add {
  height: 32px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-sm); font-size: 12px; font-weight: 600;
  font-family: var(--font-display);
}

/* board */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.col__head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  padding: 2px 0 4px;
}
.col__head .n { margin-left: auto; color: var(--ink-3); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot--todo { background: var(--ink-4); }
.dot--doing { background: var(--accent); }
.dot--done { background: var(--success); }
.dot--szamlazz { background: #2A78D6; }
.dot--billingo { background: #E8642B; }
.dot--tars { background: #7B4FE0; }

.tcard {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 11px 12px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-1);
}
.tcard__t { font-size: 13px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.tcard.is-done .tcard__t { text-decoration: line-through; color: var(--ink-3); }
.tcard.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
  transform: rotate(-1.4deg);
}
.tcard__chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.col__add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3); border: 1px dashed var(--rule-2); border-radius: var(--r-sm);
}

/* chips / tags */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: var(--r-xs);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.chip--neutral { background: var(--panel-2); color: var(--ink-3); border: 1px solid var(--rule); }
.chip--accent { background: var(--signal-soft); color: var(--accent); }
.chip--success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.chip--warning { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
@media (prefers-reduced-motion: no-preference) {
  .live { animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
}

/* =====================================================================
   REVEAL (scroll) — generic
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-enter { animation: none !important; opacity: 1 !important; transform: none !important; }
  .anno { animation: none !important; }
  .hero-showcase-inner { animation: none !important; transform: none !important; }
  .btn, .nav-links a::after { transition: none !important; }
}

/* =====================================================================
   CAPABILITIES LEDGER (replaces feature cards)
   ===================================================================== */
.ledger { margin-top: 64px; border-top: 1px solid var(--rule); }
.lrow {
  display: grid;
  grid-template-columns: 88px minmax(220px, 1fr) 1.4fr;
  align-items: center;
  gap: 28px;
  padding: 30px var(--gut);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background-color 0.4s var(--ease);
}
.lrow::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.lrow:hover { background: var(--panel); }
.lrow:hover::before { transform: scaleY(1); }
.lrow__no { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.05em; }
.lrow__title { display: flex; align-items: center; gap: 16px; }
.lrow__ic {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--rule-2); border-radius: var(--r-md);
  color: var(--accent);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.lrow:hover .lrow__ic { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.lrow__title h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.lrow__desc { color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
@media (max-width: 860px) {
  .lrow { grid-template-columns: 1fr; gap: 12px; padding: 24px var(--gut); }
  .lrow__no { display: none; }
}

/* =====================================================================
   SHOWCASE (drafting sequence)
   ===================================================================== */
.showcase { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.srow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px dashed var(--rule-2);
}
.srow:last-child { border-bottom: none; }
.srow.flip .srow__text { order: 2; }
@media (max-width: 920px) {
  .srow { grid-template-columns: 1fr; gap: 36px; }
  .srow.flip .srow__text { order: 0; }
}
.srow__no {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent);
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  display: inline-block;
}
.srow__text h3 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; }
.srow__text > p { font-size: 18px; color: var(--ink-2); margin-top: 16px; text-wrap: pretty; }
.checks { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.checks svg { flex: none; margin-top: 3px; color: var(--accent); }

.viz {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-2);
  min-height: 320px;
}
.viz__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.viz__head .t { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.viz__head .t svg { color: var(--accent); }

/* mini kanban viz */
.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mini-col { background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.mini-col__h { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.mini-col__h .n { margin-left: auto; color: var(--ink-3); }
.mini-card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 8px 9px; font-size: 11px; color: var(--ink); font-weight: 500; }
.mini-card.is-active { border-color: var(--accent); transform: rotate(-1.2deg) translateY(-2px); box-shadow: var(--shadow-2); }
.mini-card__chips { display: flex; gap: 4px; margin-top: 6px; }
.viz-hint {
  margin-top: 12px; padding: 9px 11px;
  border: 1px dashed var(--accent); border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--accent);
}

/* timer viz */
.timer-hero {
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-md); padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.timer-hero .lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.82; }
.timer-hero .clk { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; }
.timer-hero .ctx { font-size: 13px; opacity: 0.92; margin-top: 8px; }
.timer-hero .pp { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--on-accent) 22%, transparent); color: var(--on-accent); flex: none; }
.tlist { margin-top: 14px; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.trow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 14px; }
.trow + .trow { border-top: 1px solid var(--rule); }
.trow .p { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.trow .c { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.04em; margin-top: 2px; }
.trow .d { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.trow .r { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--accent); }

/* dashboard viz */
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat { background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 12px; }
.stat .lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.stat .val { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; margin-top: 5px; line-height: 1.05; }
.stat .delta { font-family: var(--font-mono); font-size: 11px; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.stat .delta.up { color: var(--success); }
.stat .delta.wait { color: var(--warning); }
.dash-chart { background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px; margin-top: 10px; }
.dash-chart__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--ink); }
.dash-chart svg { width: 100%; height: 60px; display: block; }
.dash-days { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); margin-top: 6px; }
.dash-client { margin-top: 10px; background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
.dash-client .who { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: var(--ink); }
.dash-client .sw { width: 20px; height: 20px; border-radius: var(--r-xs); background: #E8642B; }
.dash-client .vals { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11px; }
.dash-client .vals .h { color: var(--ink-3); }
.dash-client .vals .m { color: var(--accent); font-weight: 600; }

/* =====================================================================
   INVOICING (pipeline)
   ===================================================================== */
.invoicing { position: relative; }
.invoicing-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .invoicing-inner { grid-template-columns: 1fr; gap: 44px; } }

.partner-logos { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.partner-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; background: var(--panel); border: 1px solid var(--rule-2);
  border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--ink);
}

/* invoice document mock */
.invoice {
  background: var(--panel); border: 1px solid var(--rule-2);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-2);
  max-width: 360px;
}
.invoice__top { display: flex; justify-content: space-between; align-items: flex-start; }
.invoice__no { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: 0.02em; }
.invoice__sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 3px; letter-spacing: 0.04em; }
.invoice__party { margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.invoice__party .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.invoice__party .v { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 3px; }
.invoice__lines { width: 100%; border-collapse: collapse; }
.invoice__lines td { padding: 5px 0; font-size: 12px; color: var(--ink-2); }
.invoice__lines td:last-child { text-align: right; font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.invoice__total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; }
.invoice__total .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.invoice__total .v { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }

.pipe { display: flex; flex-direction: column; gap: 10px; }
.pipe__node {
  display: flex; align-items: center; gap: 11px;
  background: var(--panel); border: 1px solid var(--rule-2); border-radius: var(--r-md);
  padding: 11px 14px; box-shadow: var(--shadow-1);
}
.pipe__node svg { color: var(--accent); flex: none; }
.pipe__node .nm { font-size: 13px; font-weight: 600; color: var(--ink); }
.invoice-stack { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
@media (max-width: 460px) { .invoice-stack { grid-template-columns: 1fr; } }

/* =====================================================================
   PRICING (ledger)
   ===================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 1080px; margin: 64px auto 0; border: 1px solid var(--rule-2); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 940px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; } }

.plan { padding: 34px 30px; display: flex; flex-direction: column; position: relative; background: var(--panel); }
.plan + .plan { border-left: 1px solid var(--rule); }
@media (max-width: 940px) { .plan + .plan { border-left: none; border-top: 1px solid var(--rule); } }
.plan--featured { background: var(--panel-2); }
.plan--featured::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent);
}
.plan__name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.plan--featured .plan__name { color: var(--accent); }
.plan__tag {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 100px; background: var(--accent); color: var(--on-accent);
}
.plan__tag--save { background: var(--success); }
.plan__amount { font-family: var(--font-display); font-weight: 600; font-size: 42px; letter-spacing: -0.04em; color: var(--ink); margin-top: 16px; line-height: 1; }
.plan__amount .unit { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.plan__strike-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.plan__strike { font-family: var(--font-mono); font-size: 14px; color: var(--ink-4); text-decoration: line-through; }
.plan__save { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--success); letter-spacing: 0.02em; }
.plan__tagline { font-size: 14px; color: var(--ink-2); margin-top: 12px; min-height: 40px; }
.plan__cta { margin-top: 22px; }
.plan__features { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.plan__features svg { flex: none; margin-top: 2px; color: var(--accent); }
.plan__features li.muted { color: var(--ink-4); }
.plan__features li.muted svg { color: var(--ink-4); }
.price-fine { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 28px; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-wrap { max-width: 800px; margin: 64px auto 0; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 40px 1fr 28px;
  align-items: center; gap: 14px;
  padding: 26px 4px;
  font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q .qno { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.04em; }
.faq-item.open .faq-q .qno { color: var(--accent); }
.faq-q .chev { justify-self: end; color: var(--ink-3); transition: transform 0.4s var(--ease), color 0.25s; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a__in { overflow: hidden; }
.faq-a__in p {
  white-space: pre-line;
  padding: 0 28px 28px 54px;
  font-size: 16px; color: var(--ink-2); line-height: 1.65; text-wrap: pretty;
}
@media (max-width: 600px) {
  .faq-q { grid-template-columns: 28px 1fr 22px; gap: 10px; font-size: 17px; }
  .faq-a__in p { padding-left: 38px; }
}

/* =====================================================================
   FINAL CTA (ink slab, no gradient)
   ===================================================================== */
.cta-slab {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(56px, 8vw, 100px) var(--gut);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
[data-theme="dark"] .cta-slab { background: var(--panel-2); border: 1px solid var(--rule-2); }
.cta-slab::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 78%);
}
.cta-slab .eyebrow { color: var(--accent-2); }
.cta-slab h2 {
  color: var(--paper);
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: -0.035em;
  white-space: pre-line;
  max-width: 760px; margin: 18px auto 0;
}
[data-theme="dark"] .cta-slab h2 { color: var(--ink); }
.cta-slab p { margin: 20px auto 0; max-width: 560px; font-size: 18px; color: rgba(255,255,255,0.7); text-wrap: pretty; }
[data-theme="dark"] .cta-slab p { color: var(--ink-2); }
.cta-buttons { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.btn-on-slab { background: var(--accent); color: var(--on-accent); }
.btn-on-slab-ghost { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,0.28); }
.btn-on-slab-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
[data-theme="dark"] .btn-on-slab-ghost { color: var(--ink); border-color: var(--rule-2); }
[data-theme="dark"] .btn-on-slab-ghost:hover { background: var(--panel); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { padding: 80px 0 36px; border-top: 1px solid var(--rule); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--ink-3); max-width: 300px; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--ink-2); transition: color 0.2s var(--ease); position: relative; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }

/* =====================================================================
   COOKIE BAR
   ===================================================================== */
.cookie-bar {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 60; width: calc(100% - 40px); max-width: 720px;
  background: var(--panel); border: 1px solid var(--rule-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: 16px 20px;
  display: flex; align-items: center; gap: 18px;
  font-size: 14px; color: var(--ink-2);
}
.cookie-bar p { flex: 1; line-height: 1.5; }
.cookie-bar a { color: var(--accent); font-weight: 600; }
.cookie-bar-actions { display: flex; gap: 8px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .cookie-bar { animation: cookie-in 0.5s var(--ease) 0.8s both; }
  @keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
}
@media (max-width: 620px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-bar-actions { justify-content: center; }
}
