/* =========================================================
   LEDGERLINE by Vantrel Consulting — Homepage styles
   Brand colours taken from the current site:
   warm charcoal #171614 · cream #ECE8E3 · gold #D8B478
   ========================================================= */

/* ---------- 0. TOKENS (edit colours & fonts here) ---------- */
:root {
  --bg: #171614;            /* site background */
  --bg-2: #1d1b19;
  --panel: #23211e;
  --panel-2: #2a2724;
  --line: rgba(236, 232, 227, .09);
  --line-2: rgba(236, 232, 227, .16);
  --text: #ece8e3;          /* site text */
  --muted: #a49d94;
  --gold: #d8b478;          /* site link colour */
  --gold-2: #e9cc98;
  --gold-soft: rgba(216, 180, 120, .14);
  --sage: #9fbf9a;          /* "approved" */
  --amber: #e7a35c;         /* "needs a person" */

  --display: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --container: 1200px;
  --radius: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
}

/* ---------- 1. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(159,191,154,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(159,191,154,0); } }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head > p:not(.kicker) { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }
.section-head.center { text-align: center; margin-inline: auto; }
.sub-strong { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .95rem !important; }
.sub-strong .icon { color: var(--gold); }

/* ---------- 2. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: #1a1714; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 3. HEADER ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: box-shadow .35s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(23, 22, 20, .6); backdrop-filter: blur(14px); transition: background .35s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled::before, .site-header.nav-open::before { background: rgba(23, 22, 20, .94); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 1.55rem; letter-spacing: .01em; }
.brand-text small { font-size: .7rem; color: var(--muted); letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a { font-size: .9rem; color: var(--muted); position: relative; padding: 6px 0; transition: color .3s; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--text); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.nav-cta { padding: 11px 20px; }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: .35s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- 4. HERO ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 70px) 0 70px; overflow: hidden; }
.ledger-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(216,180,120,.08) calc(50% - .5px), rgba(216,180,120,.08) calc(50% + .5px), transparent calc(50% + .5px)),
    repeating-linear-gradient(180deg, transparent 0 39px, var(--line) 39px 40px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  animation: ledgerScroll 30s linear infinite;
}
@keyframes ledgerScroll { to { background-position: 0 0, 0 400px; } }
.hero-glow { position: absolute; width: 720px; height: 720px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(216,180,120,.16), transparent 65%); filter: blur(20px); pointer-events: none; }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.9rem); line-height: 1.02; margin-bottom: 26px; }
.hero-lead { color: var(--muted); font-size: 1.12rem; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--gold); width: 16px; height: 16px; }

.hero-in { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease) var(--d), transform 1s var(--ease) var(--d); }
.is-loaded .hero-in { opacity: 1; transform: none; }

/* Approval queue card */
.queue {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-2);
  border-radius: 22px; padding: 22px; box-shadow: 0 40px 90px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.queue::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; background: linear-gradient(140deg, rgba(216,180,120,.55), transparent 40%, transparent 70%, rgba(216,180,120,.25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.queue-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.q-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.q-title .icon { color: var(--gold); }
.q-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; }

.queue-list { display: grid; gap: 10px; }
.q-item {
  position: relative; background: rgba(236,232,227,.03); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow: hidden;
  transition: border-color .5s, background .5s;
}
.is-loaded .q-item { animation: qIn .8s var(--ease) both; }
.is-loaded .q-item:nth-child(1) { animation-delay: .7s; }
.is-loaded .q-item:nth-child(2) { animation-delay: .9s; }
.is-loaded .q-item:nth-child(3) { animation-delay: 1.1s; }
@keyframes qIn { from { opacity: 0; transform: translateX(30px); } }
.q-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--amber); transition: background .5s; }
.q-item.is-alert::before { background: #e07a5f; }
.q-agent { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.q-item p { margin: 4px 0 10px; font-size: .92rem; }
.q-item b { font-weight: 600; }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-reason { font-size: .76rem; color: var(--muted); }
.q-actions { display: flex; gap: 6px; }
.q-btn { font-size: .75rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.q-btn.approve { background: var(--gold); border-color: var(--gold); color: #1a1714; font-weight: 500; }

/* "Decided by you" stamp */
.q-stamp {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(29, 35, 28, .9); color: var(--sage); font-weight: 600; font-size: .92rem;
  opacity: 0; transform: scale(1.04); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.q-stamp .icon { width: 22px; height: 22px; stroke-width: 2.2; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s var(--ease) .15s; }
.q-item.is-done { border-color: rgba(159,191,154,.4); }
.q-item.is-done::before { background: var(--sage); }
.q-item.is-done .q-stamp { opacity: 1; transform: none; }
.q-item.is-done .q-stamp .icon { stroke-dashoffset: 0; }

/* Mini 13-week forecast */
.queue-forecast { margin-top: 14px; padding: 14px 16px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(236,232,227,.02); }
.qf-head { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.qf-head span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.qf-head .icon { width: 15px; height: 15px; color: var(--gold); }
.qf-warn { color: var(--amber); font-weight: 500; }
.bars { display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; align-items: end; height: 64px; }
.bars i { display: block; height: var(--h); background: linear-gradient(180deg, rgba(216,180,120,.75), rgba(216,180,120,.2)); border-radius: 3px 3px 0 0; transform: scaleY(0); transform-origin: bottom; }
.bars i.low { background: linear-gradient(180deg, var(--amber), rgba(231,163,92,.25)); }
.is-loaded .bars i { animation: grow .9s var(--ease) both; }
.is-loaded .bars i:nth-child(1) { animation-delay: 1.3s; } .is-loaded .bars i:nth-child(2) { animation-delay: 1.35s; }
.is-loaded .bars i:nth-child(3) { animation-delay: 1.4s; } .is-loaded .bars i:nth-child(4) { animation-delay: 1.45s; }
.is-loaded .bars i:nth-child(5) { animation-delay: 1.5s; } .is-loaded .bars i:nth-child(6) { animation-delay: 1.55s; }
.is-loaded .bars i:nth-child(7) { animation-delay: 1.6s; } .is-loaded .bars i:nth-child(8) { animation-delay: 1.65s; }
.is-loaded .bars i:nth-child(9) { animation-delay: 1.7s; } .is-loaded .bars i:nth-child(10) { animation-delay: 1.75s; }
.is-loaded .bars i:nth-child(11) { animation-delay: 1.8s; } .is-loaded .bars i:nth-child(12) { animation-delay: 1.85s; }
.is-loaded .bars i:nth-child(13) { animation-delay: 1.9s; }
@keyframes grow { to { transform: scaleY(1); } }

.works-in { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 80px; padding-top: 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); background: rgba(236,232,227,.03); }
.chip .icon { color: var(--gold); }
.plus { color: var(--gold); font-family: var(--display); font-size: 1.5rem; line-height: 1; }

/* ---------- 5. AGENTS ---------- */
.agents { background: var(--bg-2); border-block: 1px solid var(--line); }
.agent-board { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
.agent-list { border-top: 1px solid var(--line); }
.agent-tab {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 15px 8px; background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer; color: var(--muted); font-size: 1rem; position: relative; transition: color .3s, padding .4s var(--ease);
}
.agent-tab .n { font-family: var(--mono); font-size: .74rem; color: var(--muted); opacity: .7; }
.agent-tab::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.agent-tab:hover { color: var(--text); padding-left: 14px; }
.agent-tab.is-active { color: var(--text); padding-left: 14px; }
.agent-tab.is-active .n { color: var(--gold); opacity: 1; }
.agent-tab.is-active::after { transform: scaleX(1); }

.agent-panel {
  position: relative; overflow: hidden; border-radius: 22px; padding: clamp(28px, 4vw, 52px);
  background: radial-gradient(circle at 100% 0, rgba(216,180,120,.14), transparent 50%), var(--panel);
  border: 1px solid var(--line-2); min-height: 420px; display: flex; flex-direction: column;
}
.agent-panel.swap > * { animation: panelIn .6s var(--ease) both; }
.agent-panel.swap > *:nth-child(2) { animation-delay: .05s; }
.agent-panel.swap > *:nth-child(3) { animation-delay: .1s; }
.agent-panel.swap > *:nth-child(4) { animation-delay: .15s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.ap-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.ap-num { font-family: var(--display); font-size: 4.5rem; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(216,180,120,.6); }
.ap-chip { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 6px 14px; }
.agent-panel h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05; margin-bottom: 18px; }
.agent-panel > p { color: #cfc9c1; font-size: 1.08rem; max-width: 620px; }
.ap-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.ap-checks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(236,232,227,.04); border: 1px solid var(--line); font-size: .88rem; }
.ap-checks .icon { color: var(--sage); width: 16px; height: 16px; }
.ap-rule { position: absolute; right: 0; bottom: 0; width: 46%; height: 60%; background: repeating-linear-gradient(180deg, transparent 0 27px, var(--line) 27px 28px); mask-image: linear-gradient(135deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000); pointer-events: none; }

/* ---------- 6. SAFEGUARDS ---------- */
.guard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.guard {
  position: relative; padding: 32px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease);
}
.guard:hover { border-color: rgba(216,180,120,.35); transform: translateY(-4px); }
.guard-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); color: var(--gold); margin-bottom: 20px; }
.guard-icon .icon { width: 22px; height: 22px; }
.guard h3 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.15; margin-bottom: 14px; }
.guard p { color: var(--muted); font-size: .96rem; }

/* Toggle visual */
.switch { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; gap: 12px; font-size: .84rem; }
.switch span { flex: 1; color: var(--text); }
.switch i { width: 40px; height: 22px; border-radius: 999px; background: rgba(236,232,227,.12); position: relative; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .5s var(--ease), background .5s; }
.switch.is-on i { background: rgba(159,191,154,.3); }
.guard.is-visible .switch.is-on i::after { transform: translateX(18px); background: var(--sage); transition-delay: .6s; }
.switch.is-locked i { background: rgba(224,122,95,.18); }
.switch.is-locked i::after { background: #e07a5f; }
.guard:hover .switch.is-locked i { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.switch b { font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 108px; text-align: right; }

.escalate {
  margin-top: 20px; display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(224,122,95,.14), rgba(224,122,95,.03)); border: 1px solid rgba(224,122,95,.35);
}
.escalate .icon { width: 28px; height: 28px; color: #e07a5f; }
.escalate p { margin: 0; color: #d9d2c9; }
.escalate strong { color: var(--text); font-weight: 600; }

/* ---------- 7. LIMIT DEMO ---------- */
.limit { background: var(--bg-2); border-block: 1px solid var(--line); }
.limit-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.limit-copy > p:not(.kicker) { color: var(--muted); font-size: 1.05rem; margin-top: 18px; }
.slider-box { margin-top: 34px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); display: grid; grid-template-columns: 1fr auto; gap: 14px 10px; align-items: center; }
.slider-box label { font-size: .9rem; color: var(--muted); }
.slider-box output { font-family: var(--mono); font-size: 1.5rem; color: var(--gold); }
.slider-box input { grid-column: 1 / -1; width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) var(--p, 12.5%), rgba(236,232,227,.12) var(--p, 12.5%)); outline: none; cursor: pointer; }
.slider-box input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--text); border: 5px solid var(--gold); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.slider-box input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 5px solid var(--gold); }
.slider-scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); font-family: var(--mono); }

.bill-card { border-radius: 22px; padding: 22px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.bill-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 14px; }
.bills li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 16px; border-radius: 12px; margin-bottom: 8px;
  background: rgba(236,232,227,.03); border: 1px solid var(--line); border-left: 3px solid var(--amber); transition: border-color .4s, background .4s;
}
.b-name { font-size: .95rem; }
.b-name small { display: inline-block; margin-left: 6px; font-size: .7rem; color: var(--amber); border: 1px solid rgba(231,163,92,.4); border-radius: 999px; padding: 1px 8px; }
.b-amt { font-family: var(--mono); font-size: .92rem; text-align: right; }
.b-state { grid-column: 1 / -1; font-size: .78rem; color: var(--amber); transition: color .4s; }
.bills li.is-auto { border-left-color: var(--sage); background: rgba(159,191,154,.06); }
.bills li.is-auto .b-state { color: var(--sage); }
.bills li[data-check="vendor"] { border-left-color: #e07a5f; }
.bills li[data-check="vendor"] .b-state { color: #e07a5f; }
.bill-sum { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- 8. SETUP ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .4; }
.step { position: relative; padding: 28px 26px 30px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; }
.step:hover { transform: translateY(-6px); border-color: rgba(216,180,120,.35); }
.step-n { position: absolute; top: 18px; right: 22px; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.step > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); color: var(--gold); margin-bottom: 22px; position: relative; }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- 9. DOCUMENTS ---------- */
.docs { padding-top: 0; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); position: relative; overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.doc::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(216,180,120,.2), transparent 70%); opacity: 0; transition: opacity .5s; }
.doc:hover { border-color: rgba(216,180,120,.4); transform: translateY(-4px); }
.doc:hover::after { opacity: 1; }
.doc > .icon { width: 28px; height: 28px; color: var(--gold); margin-bottom: 22px; }
.doc h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin-bottom: 8px; }
.doc p { color: var(--muted); font-size: .95rem; }
.doc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: .9rem; font-weight: 500; }
.doc-link .icon { transition: transform .35s var(--ease); }
.doc:hover .doc-link .icon { transform: translateX(5px); }

/* ---------- 10. CTA ---------- */
.cta { padding-top: 0; }
.cta-box { position: relative; overflow: hidden; text-align: center; padding: clamp(60px, 8vw, 100px) 24px; border-radius: 28px; border: 1px solid rgba(216,180,120,.3); background: radial-gradient(ellipse at 50% 0, rgba(216,180,120,.18), transparent 60%), var(--bg-2); }
.cta-box > * { position: relative; }
.cta-box h2 { max-width: 760px; margin: 0 auto 32px; }
.cta-mail { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: clamp(1rem, 2.4vw, 1.3rem); color: var(--gold); padding: 16px 28px; border: 1px solid var(--gold); border-radius: 999px; transition: background .35s, color .35s; }
.cta-mail:hover { background: var(--gold); color: #1a1714; }
.cta-meta { margin: 22px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- 11. FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-nav a { color: var(--muted); font-size: .9rem; transition: color .3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .82rem; }

/* ---------- 12. SCROLL REVEAL ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.guard-grid .guard:nth-child(2), .steps .step:nth-child(2), .doc-grid .doc:nth-child(2) { transition-delay: .1s; }
.guard-grid .guard:nth-child(3), .steps .step:nth-child(3), .doc-grid .doc:nth-child(3) { transition-delay: .2s; }
.guard-grid .guard:nth-child(4), .steps .step:nth-child(4) { transition-delay: .3s; }

/* ---------- 13. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 18px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 26px;
    padding: 24px 24px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .4s var(--ease);
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 14px 0; font-family: var(--display); font-size: 1.7rem; color: var(--text); }
  .main-nav ul a::after { display: none; }
  .nav-cta { justify-content: center; }

  .hero-grid, .limit-grid { grid-template-columns: 1fr; }
  .queue { max-width: 560px; }
  .agent-board { grid-template-columns: 1fr; }
  .agent-list { display: flex; gap: 8px; overflow-x: auto; border: 0; padding-bottom: 6px; scrollbar-width: none; }
  .agent-list::-webkit-scrollbar { display: none; }
  .agent-tab { white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font-size: .9rem; }
  .agent-tab:hover, .agent-tab.is-active { padding-left: 16px; }
  .agent-tab.is-active { background: var(--gold); border-color: var(--gold); color: #1a1714; }
  .agent-tab.is-active .n { color: #1a1714; }
  .agent-tab::after { display: none; }
  .agent-panel { min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .doc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .brand-text strong { font-size: 1.35rem; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .queue { padding: 16px; }
  .q-foot { flex-direction: column; align-items: flex-start; }
  .works-in { margin-top: 56px; }
  .works-in > span:first-child { width: 100%; text-align: center; }
  .plus { display: none; }
  .guard-grid { grid-template-columns: 1fr; }
  .guard { padding: 26px 22px; }
  .switch b { min-width: 0; }
  .escalate { flex-direction: column; align-items: flex-start; padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .ap-num { font-size: 3.4rem; }
  .cta-mail { padding: 14px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 14. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-in { opacity: 1; transform: none; }
  .bars i { transform: none; }
}
