/* CG Compute — site styles. Self-hosted fonts, no external requests. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-alt: #0b0c0f;
  --fg: #ecece8;
  --fg-strong: #ffffff;
  --muted: #a3a6ad;
  --subtle: #7c7f86;
  --line: #1b1d21;
  --line-strong: #2a2d33;
  --control-line: #62656c;      /* ≥3:1 against --bg for form-control boundaries (WCAG 1.4.11) */
  --accent: #ebb25f;            /* sRGB fallback for oklch(0.8 0.12 75) */
  --accent-soft: rgba(235, 178, 95, 0.35);
  --danger: #f08a7e;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 32px;
  --header-h: 66px;
}
@supports (color: oklch(0.8 0.12 75)) {
  :root {
    --accent: oklch(0.8 0.12 75);
    --accent-soft: oklch(0.8 0.12 75 / 0.35);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--fg); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--fg-strong); }
img, svg { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--bg);
  padding: 10px 16px; font-weight: 500;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section__inner { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 56px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--tight { gap: 10px; }

.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--subtle); letter-spacing: 0.08em; text-transform: uppercase; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 em, .h1 em { font-style: italic; }
.lede { font-size: 17px; line-height: 1.6; color: var(--muted); font-weight: 300; max-width: 440px; text-wrap: pretty; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { color: var(--bg); filter: brightness(1.06); }
.btn--ghost { border-color: var(--line-strong); font-weight: 400; background: transparent; }
.btn--ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-accent { color: var(--accent); font-size: 15px; }
.link-accent:hover { color: var(--fg-strong); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 9, 11, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 14px; letter-spacing: 0.28em; font-weight: 500; white-space: nowrap; }
@media (max-width: 380px) { .brand { letter-spacing: 0.2em; } .header-actions { gap: 12px; } }
.nav { display: flex; gap: 28px; font-size: 14px; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--fg-strong); }
.nav a.nav__cta { color: var(--accent); }
.nav a.nav__cta:hover { color: var(--fg-strong); }
.header-actions { display: none; align-items: center; gap: 20px; }
.menu-toggle {
  background: transparent; border: 1px solid var(--line-strong); padding: 7px 12px;
  font-size: 13px; font-family: var(--mono); letter-spacing: 0.08em; cursor: pointer; color: var(--fg);
}

@media (max-width: 860px) {
  .header-actions { display: flex; }
  .header-actions .nav__cta { font-size: 14px; white-space: nowrap; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.nav__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(96px, 14vw, 180px); padding-bottom: 120px; display: flex; flex-direction: column; gap: 40px; }
.h1 {
  max-width: 1040px; font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.025em; text-wrap: balance;
}
.h1 em { color: var(--accent); }
.hero__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: end; }
.hero__lede { max-width: 540px; font-size: 19px; line-height: 1.55; color: var(--muted); font-weight: 300; text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.ticker {
  font-family: var(--mono); font-size: 13px; color: var(--subtle); letter-spacing: 0.08em;
  display: flex; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px;
  list-style: none; padding-left: 0; margin: 0;
}
.ticker li + li::before { content: "·"; margin-right: 24px; }

/* ---------- Hardware ---------- */
.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.card { background: var(--bg); padding: 40px 32px; display: flex; flex-direction: column; gap: 24px; }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 40px; letter-spacing: -0.01em; }
.card__body { color: var(--muted); font-size: 16px; line-height: 1.55; font-weight: 300; }
.specs { margin-top: auto; display: flex; flex-direction: column; border-top: 1px solid var(--line); font-size: 15px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--subtle); }
.specs dd { text-align: right; }

.panel-net {
  border: 1px solid var(--line); padding: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; align-items: start;
}
.panel-net__title { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.net-item { display: flex; flex-direction: column; gap: 6px; }
.net-item__name { font-size: 17px; }
.net-item__desc { color: var(--muted); font-size: 15px; font-weight: 300; }

/* ---------- Availability ---------- */
.leadtimes { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.leadtimes div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.leadtimes dt { font-size: 20px; }
.leadtimes dd { font-family: var(--serif); font-size: 40px; font-weight: 300; line-height: 1; white-space: nowrap; }
.leadtimes dd.accent { color: var(--accent); }

/* ---------- Process ---------- */
.steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px; }
.step { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line-strong); padding-top: 28px; }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step__title { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.step__body { color: var(--muted); font-size: 16px; line-height: 1.6; font-weight: 300; }

/* ---------- Compliance ---------- */
.compliance-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; }
.compliance-head .lede { max-width: 520px; }
.grid-rules {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.rule { background: var(--bg-alt); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.rule__title { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.rule__body { color: var(--muted); font-size: 15px; line-height: 1.6; font-weight: 300; }
.kyc {
  border: 1px solid var(--accent-soft); padding: 36px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px;
}
.kyc .stack { gap: 12px; }
.kyc__title { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.dash-list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; }
.dash-list li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.dash-list li::before { content: "—"; color: var(--accent); }
.fineprint { font-size: 14px; line-height: 1.6; color: var(--subtle); max-width: 760px; }

/* ---------- Contact / quote form ---------- */
.contact { padding-top: 112px; padding-bottom: 128px; }
.contact__intro { display: flex; flex-direction: column; gap: 24px; }
.contact__email { font-family: var(--mono); font-size: 15px; color: var(--accent); align-self: flex-start; }
.contact__email:hover { color: var(--fg-strong); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label {
  font-size: 12px; color: var(--subtle); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.field__label .req { color: var(--accent); margin-left: 2px; }
.field__label .opt { text-transform: none; letter-spacing: 0; color: var(--subtle); margin-left: 4px; font-family: var(--sans); }
.control {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--control-line); border-radius: 0;
  padding: 10px 0; font-family: var(--sans); font-size: 16px; letter-spacing: 0; color: var(--fg);
  outline: none; transition: border-color 0.15s ease;
}
.control::placeholder { color: var(--subtle); opacity: 1; }
.control:hover { border-bottom-color: var(--subtle); }
.control:focus, .control:focus-visible { border-bottom-color: var(--accent); outline: none; box-shadow: 0 1px 0 0 var(--accent); }
select.control {
  appearance: none; -webkit-appearance: none; background-color: var(--bg); cursor: pointer;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a3a6ad' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
select.control option { background: var(--bg); color: var(--fg); }
textarea.control { resize: vertical; min-height: 96px; line-height: 1.5; }
.control[aria-invalid="true"] { border-bottom-color: var(--danger); }
.field__hint { font-size: 13px; line-height: 1.5; color: var(--subtle); }
.field__error { font-size: 13px; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }

.segmented { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.segmented legend { padding: 0; margin-bottom: 10px; }
.segmented__options { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented__option { position: relative; }
.segmented__option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented__option span {
  display: inline-block; padding: 10px 18px; font-size: 15px; border: 1px solid var(--line-strong); color: var(--muted);
  cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease;
}
.segmented__option input:hover + span { border-color: var(--muted); }
.segmented__option input:checked + span { border-color: var(--accent); color: var(--accent); }
.segmented__option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 2px 0 0;
  border: 1px solid var(--subtle); background: transparent; display: grid; place-content: center; cursor: pointer;
}
.check input::before { content: ""; width: 10px; height: 10px; background: var(--accent); transform: scale(0); transition: transform 0.12s ease; }
.check input:checked { border-color: var(--accent); }
.check input:checked::before { transform: scale(1); }
.check input[aria-invalid="true"] { border-color: var(--danger); }
.check a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.check a:hover { text-decoration-color: var(--fg); }

.form__privacy { font-size: 13px; line-height: 1.55; color: var(--subtle); }
.form__privacy a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.form__privacy a:hover { color: var(--fg); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.turnstile-slot.is-interactive { min-height: 65px; }
.turnstile-slot:not(.is-interactive) { margin-top: -20px; }

.form__status { font-size: 14px; line-height: 1.55; color: var(--danger); }
.form__status:empty { display: none; }
.form__status.is-info { color: var(--muted); }
.form__status a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.sent { border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; align-self: start; }
.sent[hidden] { display: none; }
.sent__title { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.sent__title:focus { outline: none; }
.sent__body { color: var(--muted); font-size: 16px; line-height: 1.6; }
.sent .btn { align-self: flex-start; padding: 10px 16px; font-size: 16px; font-weight: 400; }

.noscript-note { border: 1px solid var(--line-strong); padding: 16px 20px; color: var(--muted); font-size: 15px; grid-column: 1 / -1; }
.noscript-note a { color: var(--accent); }

@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; color: var(--accent); font-family: var(--mono); flex: none; }
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq summary:hover { color: var(--fg-strong); }
.faq p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.6; font-weight: 300; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  padding-top: 32px; padding-bottom: 32px;
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 13px; color: var(--subtle);
}
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--subtle); }
.site-footer a:hover { color: var(--fg); }

/* ---------- Prose pages (privacy, 404) ---------- */
.prose-page { padding-top: clamp(72px, 10vw, 128px); padding-bottom: 128px; }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.prose h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin-top: 28px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.7; font-weight: 300; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--fg-strong); }
.prose .meta { font-family: var(--mono); font-size: 13px; color: var(--subtle); letter-spacing: 0.06em; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .section__inner { padding-top: 80px; padding-bottom: 80px; gap: 44px; }
  .contact { padding-top: 80px; padding-bottom: 96px; }
  .hero { padding-bottom: 88px; }
  .hero__ctas { justify-content: flex-start; }
  .card { padding: 32px 24px; }
  .rule, .kyc { padding: 28px 24px; }
  .panel-net { padding: 24px; }
  .sent { padding: 28px 24px; }
  .leadtimes dt { font-size: 17px; }
  .leadtimes dd { font-size: 32px; }
  .faq summary { font-size: 18px; }
  .ticker { gap: 12px 16px; }
  .ticker li + li::before { margin-right: 16px; }
}
.form[hidden] { display: none; }
.prose a.btn--primary { color: var(--bg); }
.prose a.btn--primary:hover { color: var(--bg); }
.prose h1 em { font-style: italic; color: var(--accent); }
#quote-submit { padding: 15px 28px; border: 0; }
