/* Velocity Proxies
   ink      #1A2240  text, headings
   paper    #F4F6F9  page
   peacock  #0E7A83  actions, links
   deep     #0A5960  hover
   marigold #E3A21A  expiring / attention
   line     #D8DDE6  rules
*/
:root {
  --ink: #1A2240; --ink-2: #4E5873; --paper: #F4F6F9; --white: #fff;
  --peacock: #0E7A83; --deep: #0A5960; --peacock-tint: #E2F1F2;
  --marigold: #E3A21A; --marigold-tint: #FCF3DE; --red: #B4372B; --red-tint: #FBE9E7;
  --line: #D8DDE6;
  --k-ip: #0E7A83; --k-port: #6B4FBB; --k-user: #C2620E; --k-pass: #2E7D32;
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --r: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); }
a { color: var(--peacock); text-underline-offset: 2px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 700; margin-top: 1.75em; }
h3 { font-size: 1.0625rem; font-weight: 500; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .875rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.auth { max-width: 460px; }
.block { padding-top: 40px; padding-bottom: 40px; }
.muted { color: var(--ink-2); }
.fine { color: var(--ink-2); font-size: .875rem; }
.intro { color: var(--ink-2); max-width: 60ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 9; }

/* header / footer */
.notice { background: var(--ink); color: var(--white); text-align: center; padding: 8px 20px; font-size: .9375rem; }
header.site { background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.25rem var(--display); }
.brand-sub { font-weight: 500; color: var(--peacock); }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--k-ip) 0 25%, var(--k-port) 0 50%, var(--k-user) 0 75%, var(--k-pass) 0); }
header nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 8px 0; }
header nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
header nav a.on, header nav a:not(.btn):hover { color: var(--peacock); }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
.linklike:hover { color: var(--peacock); }
footer.site { border-top: 1px solid var(--line); margin-top: 40px; background: var(--white); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; color: var(--ink-2); font-size: .875rem; }
.foot p { margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-block; background: var(--peacock); color: var(--white); border: 1px solid var(--peacock); border-radius: var(--r);
  padding: 9px 16px; font: 600 .9375rem var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn.big { padding: 13px 22px; font-size: 1rem; }
.btn.small { padding: 7px 14px; }
.btn.tiny { padding: 4px 10px; font-size: .8125rem; }
.btn.ghost { background: transparent; color: var(--peacock); }
.btn.ghost:hover { background: var(--peacock-tint); color: var(--deep); }
.btn[disabled] { background: var(--line); border-color: var(--line); color: var(--ink-2); cursor: not-allowed; }
.danger-btn { background: var(--red); border-color: var(--red); }
.danger-btn:hover { background: #8E2A20; border-color: #8E2A20; }

/* hero: the proxy line is the centrepiece */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.05; max-width: 16ch; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.sample { margin: 0; background: var(--ink); color: #E8ECF5; border-radius: 10px; padding: 22px 24px 20px; }
.sample figcaption { font-size: .875rem; color: #A9B2CC; margin-bottom: 14px; }
.sample-lines code { display: block; font-size: clamp(.95rem, 1.9vw, 1.3rem); line-height: 1.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6C7695; }
.sample-lines code:first-child { color: #E8ECF5; }
.sample-lines code:first-child span { padding-bottom: 3px; border-bottom: 3px solid; }
.sample-lines code:not(:first-child) span { color: inherit; }
.s-ip { color: #5CC8CF; border-color: #5CC8CF; } .s-port { color: #B6A2F0; border-color: #B6A2F0; }
.s-user { color: #F2A65A; border-color: #F2A65A; } .s-pass { color: #7FD08A; border-color: #7FD08A; }
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #2F3858; }
.legend dt { font-weight: 600; font-size: .875rem; display: flex; align-items: center; gap: 6px; color: var(--white); }
.legend dd { margin: 2px 0 0; font-size: .8125rem; color: #A9B2CC; }
.legend i { width: 10px; height: 3px; display: inline-block; }
.k-ip { background: #5CC8CF; } .k-port { background: #B6A2F0; } .k-user { background: #F2A65A; } .k-pass { background: #7FD08A; }
@media (prefers-reduced-motion: no-preference) {
  .sample-lines code:first-child span { animation: mark .5s ease-out backwards; }
  .sample-lines code:first-child span:nth-child(2) { animation-delay: .15s; }
  .sample-lines code:first-child span:nth-child(3) { animation-delay: .3s; }
  .sample-lines code:first-child span:nth-child(4) { animation-delay: .45s; }
  @keyframes mark { from { border-bottom-color: transparent; } }
}

/* facts strip */
.facts dl { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.facts dl > div { padding: 22px 16px 22px 0; }
.facts dt { font-size: .8125rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* pricing table */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 8px; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: .8125rem; font-weight: 500; color: var(--ink-2); background: var(--paper); }
.price-table tbody th { font: 700 1.25rem var(--display); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price { font: 700 1.25rem var(--display); }
.price-table .act { text-align: right; }
.price-table form { margin: 0; }

/* steps (real sequence) */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font: 700 2rem/1 var(--display); color: var(--peacock); display: block; margin-bottom: 10px; }
.steps p { color: var(--ink-2); margin: 0; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); max-width: 720px; }
.faq summary { padding: 16px 0; font-weight: 600; cursor: pointer; }
.faq details p { color: var(--ink-2); }
.prose h2 { font-size: 1.125rem; }

/* messages */
.flash, .ok, .pending, .warn, .error { padding: 12px 16px; border-radius: var(--r); border-left: 4px solid; }
.flash, .ok { background: var(--peacock-tint); border-color: var(--peacock); margin-top: 20px; }
.ok { margin-top: 0; }
.pending, .warn { background: var(--marigold-tint); border-color: var(--marigold); }
.error { background: var(--red-tint); border-color: var(--red); }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: 10px; padding: 32px; text-align: center; }

/* forms */
.form { display: grid; gap: 16px; margin-bottom: 20px; }
.form.wide { max-width: 760px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.hint { font-weight: 400; font-size: .8125rem; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 1px solid #BFC6D3; border-radius: var(--r); padding: 10px 12px; width: 100%; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--peacock); padding: 0; }
textarea { font-family: var(--mono); font-size: .875rem; }
input:focus, select:focus, textarea:focus { border-color: var(--peacock); outline: 2px solid var(--peacock-tint); }
.form .btn { justify-self: start; }
.search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.search input { flex: 1 1 260px; width: auto; } .search select { width: auto; }

/* tables */
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; }
.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
table.data { width: 100%; border-collapse: collapse; }
.data th, .data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data thead th { font-size: .8125rem; font-weight: 500; color: var(--ink-2); background: var(--paper); }
.data tbody tr:last-child td { border-bottom: 0; }
.data .chk { width: 40px; }
.pline { font-size: .9rem; white-space: nowrap; }
.exp { white-space: nowrap; }
.days { display: block; font-size: .8125rem; color: var(--ink-2); }
tr.soon { background: var(--marigold-tint); } tr.soon .days { color: #8A5A00; font-weight: 600; }
tr.expired { background: var(--red-tint); } tr.expired .days { color: var(--red); font-weight: 600; }
.renew-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.renew-bar p { margin: 0; }
table.kv { border-collapse: collapse; margin: 8px 0 20px; }
.kv th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 6px 24px 6px 0; vertical-align: top; }
.kv td { padding: 6px 0; }
.plist, .cmd { background: var(--ink); color: #E8ECF5; padding: 14px 16px; border-radius: var(--r); overflow-x: auto; }
.cmd { margin: 8px 0 12px; }
[data-copy-text] { cursor: copy; position: relative; }
code[data-copy-text] { padding-right: 64px; }
.cmd.copied::after, [data-copy-text].copied::after { content: 'Copied'; position: absolute; right: 10px; top: 10px; font: 600 .75rem var(--body); color: #7FD08A; }
.status { font: 600 .75rem var(--body); padding: 3px 8px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); vertical-align: middle; }
.s-paid { background: var(--marigold-tint); border-color: var(--marigold); }
.s-delivered { background: var(--peacock-tint); border-color: var(--peacock); }
.s-cancelled { background: var(--red-tint); border-color: var(--red); }

/* admin */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; padding-top: 16px; }
.subnav a, .tabs a { padding: 7px 14px; border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 500; }
.subnav a.on, .tabs a.on { background: var(--ink); color: var(--white); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.stats > div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.stats > div.hot { border-color: var(--marigold); }
.stats > div.hot { background: var(--marigold-tint); }
.stats dt { font-size: .8125rem; color: var(--ink-2); }
.stats dd { margin: 4px 0 0; font: 700 1.625rem var(--display); }
.todo { padding-left: 20px; max-width: 760px; } .todo li { margin-bottom: 10px; }
details.danger, .block:not(.faq) > details { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }
details > summary { cursor: pointer; font-weight: 600; }
details.danger > summary { color: var(--red); }
ul.plain { padding-left: 18px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .facts dl { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { border: 0; padding: 4px 0; }
  .price-table td.muted { grid-row: 2; }
  .price-table .act { grid-column: 1 / -1; text-align: left; padding-top: 10px; }
  .price-table .act .btn { width: 100%; text-align: center; }
}
