/* AutoHedging public site. One stylesheet, no outside fonts or scripts, so every page is a single fast request set.
   Dark graphite with a green accent; red and green are otherwise kept for loss and gain in the illustrations. */
:root {
  --bg: #0a0f15;
  --bg-2: #0e151d;
  --panel: #121a24;
  --panel-2: #172231;
  --line: #233041;
  --ink: #e8eef5;
  --muted: #93a1b3;
  --accent: #37d3a2;
  --accent-ink: #04221a;
  --blue: #5aa9ff;
  --down: #f0705e;
  --warn: #e8b84a;
  --radius: 12px;
  --wrap: 1160px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 650; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0 0 14px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 15, 21, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 600 15px var(--font); cursor: pointer; }
.btn:hover { text-decoration: none; border-color: #35475e; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.big { padding: 14px 22px; font-size: 16px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.nav .btn { padding: 8px 14px; color: var(--ink); }
.nav .btn.primary { color: var(--accent-ink); }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: 8px 10px; font: 600 14px var(--font); }

/* hero */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 420px at 78% 8%, rgba(55, 211, 162, 0.13), transparent 60%), radial-gradient(700px 380px at 8% 0%, rgba(90, 169, 255, 0.10), transparent 60%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; }
.hero p.lead { font-size: 19px; color: #c3cedb; max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.ticks li::before { content: '✓'; color: var(--accent); margin-right: 7px; font-weight: 700; }

/* illustration card */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.shot { padding: 0; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.shot .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); font-size: 13px; color: var(--muted); }
.shot .bar b { color: var(--ink); font-weight: 600; }
.shot .bar span.tag { margin-left: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-size: 11.5px; }
.shot .body { padding: 16px; }
.legs { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.legs th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.legs td { padding: 7px 8px; border-bottom: 1px solid rgba(35, 48, 65, 0.6); font-variant-numeric: tabular-nums; }
.legs td.blank { color: #5c6b7e; }
.cap { font-size: 12px; color: var(--muted); padding: 0 16px 14px; }

/* sections */
section.band { padding: 72px 0; border-bottom: 1px solid var(--line); }
section.band.alt { background: var(--bg-2); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.head { max-width: 760px; margin-bottom: 36px; }
.head p { color: var(--muted); font-size: 17px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat { padding: 22px; }
.feat .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(55, 211, 162, 0.12); display: grid; place-items: center; margin-bottom: 14px; }
.feat .ico svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat p { color: var(--muted); font-size: 15px; margin: 0; }
.feat ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.steps { counter-reset: s; }
.step { padding: 22px; position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
table.cmp th, table.cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { color: var(--muted); font-weight: 600; font-size: 13.5px; }
table.cmp tbody th { font-weight: 600; width: 24%; }
table.cmp td:last-child { color: var(--ink); }
table.cmp td:nth-child(2) { color: var(--muted); }
.tablewrap { overflow-x: auto; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 80ch; }
.ctaBand { text-align: center; padding: 72px 0; }
.ctaBand p { color: var(--muted); max-width: 60ch; margin: 0 auto 22px; }
.notice { border: 1px solid rgba(232, 184, 74, 0.4); background: rgba(232, 184, 74, 0.07); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #e9d9ae; }

/* footer */
footer.foot { padding: 44px 0 56px; color: var(--muted); font-size: 13.5px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 28px; }
.foot h4 { color: var(--ink); font-size: 14px; margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.disclose { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; font-size: 12.5px; line-height: 1.55; }
.disclose p { margin: 0; }

/* sign-in */
.auth { min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
.auth .form { padding: 48px 40px; border-right: 1px solid var(--line); background: var(--bg-2); }
.auth .side { padding: 48px 48px; }
.tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin: 22px 0; }
.tabs button { flex: 1; padding: 9px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 600 14.5px var(--font); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--panel-2); color: var(--ink); }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input[type='email'], input[type='password'], input[type='text'] { width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 16px var(--font); }
input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13.5px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.auth .btn { width: 100%; margin-top: 8px; }
.flow { display: grid; gap: 14px; margin: 24px 0; max-width: 620px; }
.flow .row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; }
.flow .n { width: 34px; height: 34px; border-radius: 50%; background: rgba(55, 211, 162, 0.14); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.flow p { margin: 0; color: var(--muted); font-size: 15px; }
.flow h3 { margin-bottom: 4px; font-size: 16.5px; }
.diagram { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; font-size: 13.5px; }
.diagram .node { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 10px 14px; }
.diagram .node b { display: block; color: var(--ink); }
.diagram .arrow { color: var(--accent); font-size: 20px; }

/* legal */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal p, .legal li { color: #c3cedb; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* app template */
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.app aside { border-right: 1px solid var(--line); background: var(--bg-2); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.app aside .brand { padding: 4px 8px 16px; }
.app aside nav { display: grid; gap: 2px; }
.app aside nav button { text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 500 14.5px var(--font); cursor: pointer; }
.app aside nav button:hover { color: var(--ink); background: var(--panel); }
.app aside nav button[aria-current='page'] { color: var(--ink); background: var(--panel-2); }
.app aside .sep { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #5c6b7e; padding: 14px 12px 6px; }
.app main { padding: 0 24px 40px; min-width: 0; }
.appbar { display: flex; align-items: center; gap: 14px; height: 60px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.appbar h1 { font-size: 20px; margin: 0; }
.appbar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.conn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: #5c6b7e; }
.banner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; }
.banner p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1 1 320px; }
.view { display: none; }
.view.on { display: block; }
.view > p.what { color: var(--muted); max-width: 90ch; margin-bottom: 18px; }
.panels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.panel { grid-column: span 6; padding: 0; min-height: 200px; display: flex; flex-direction: column; }
.panel.w12 { grid-column: span 12; }
.panel.w4 { grid-column: span 4; }
.panel.w8 { grid-column: span 8; }
.panel header { padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; gap: 10px; }
.panel header span { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 26px 18px; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: #b9c5d3; font-weight: 600; margin-bottom: 4px; }
.cols { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0; padding: 9px 14px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid rgba(35, 48, 65, 0.6); }
.ghost { padding: 10px 14px; display: grid; gap: 9px; }
.ghost i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #17212e, #1c2838); }
.ticket { padding: 14px; display: grid; gap: 10px; }
.ticket .field { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.ticket .field div { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: var(--bg); color: #5c6b7e; }

@media (max-width: 980px) {
  .hero .wrap, .auth { grid-template-columns: minmax(0, 1fr); }
  .auth .form { border-right: 0; border-bottom: 1px solid var(--line); }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel, .panel.w4, .panel.w8 { grid-column: span 12; }
}
@media (max-width: 720px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; }
  .nav .btn { margin-top: 8px; }
  .hero { padding: 44px 0 40px; }
  section.band { padding: 52px 0; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .auth .form, .auth .side { padding: 32px 20px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app aside { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .app aside nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .app aside nav button { white-space: nowrap; }
  .app aside .sep { display: none; }
  .app main { padding: 0 16px 32px; }
  .appbar .conn { display: none; }
  table.cmp tbody th { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
