/* ============================================================
   Lingyuns — storefront theme
   "Signal paper" light design:
   warm bone canvas, vermilion→amber accents, teal secondary,
   dark inverted terminal/footer surfaces, mono labels.
   ============================================================ */

:root {
  --paper:      #f4f1e8;
  --paper-2:    #ece8db;
  --panel:      #ffffff;
  --panel-2:    #fbf9f3;
  --panel-3:    #f5f2e9;
  --line:       rgba(38, 31, 18, .14);
  --line-soft:  rgba(38, 31, 18, .08);
  --text:       #262117;
  --muted:      #6e6653;
  --muted-2:    #9c937c;
  --accent:     #e4501e;
  --accent-2:   #c23f0e;
  --teal:       #0d7568;
  --amber:      #f2a33c;
  --rose:       #d64550;
  --grad:       linear-gradient(96deg, #e4501e 0%, #f07f1f 52%, #f5b53a 100%);
  --ink-dark:   #241e12;
  --ink-dark-2: #2c2517;
  --d-line:     rgba(240, 230, 210, .13);
  --d-text:     #f1ecdf;
  --d-muted:    #b3a88d;
  --d-muted-2:  #8f866e;
  --d-mint:     #4fd8c4;
  --radius:     14px;
  --radius-lg:  22px;
  --mono:       'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --disp:       'Sora', 'Public Sans', system-ui, sans-serif;
  --body:       'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow:     0 24px 60px -30px rgba(80, 55, 20, .38);
  --wrap:       1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(228, 80, 30, .16); }

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- top strip ---------------- */
.topbar {
  border-bottom: 1px solid var(--d-line);
  background: var(--ink-dark);
  font-size: 13px;
}
.topbar-in { display: flex; align-items: center; gap: 10px; height: 38px; }
.topbar-text { color: var(--d-muted); }
.topbar-text strong { color: var(--d-text); font-weight: 600; }
.topbar-link { margin-left: auto; color: var(--amber); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.topbar-link:hover { text-decoration: underline; }

.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--d-mint);
  box-shadow: 0 0 0 0 rgba(79,216,196,.6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,216,196,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(79,216,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,216,196,0); }
}

/* ---------------- header ---------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 232, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.head-in { display: flex; align-items: center; gap: 26px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--disp); font-weight: 700; letter-spacing: .22em; font-size: 16px; }
.brand-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--accent-2); border: 1px solid rgba(228,80,30,.38);
  padding: 2px 7px; border-radius: 99px; text-transform: uppercase;
  background: rgba(228,80,30,.06);
}

.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  padding: 8px 13px; border-radius: 9px; font-size: 14.5px; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(38,31,18,.05); }
.nav a.on { color: var(--accent-2); background: rgba(228,80,30,.1); font-weight: 600; }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.credit-chip {
  font-family: var(--mono); font-size: 12px;
  border: 1px solid rgba(13,117,104,.35); border-radius: 99px; padding: 5px 12px;
  color: var(--teal); background: rgba(13,117,104,.07);
}
.credit-chip:hover { border-color: rgba(13,117,104,.5); }

.menu-btn {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-btn span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; display: block; }

.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line-soft); background: var(--panel); padding: 8px 24px 16px; }
.mobile-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); padding: 13px 22px;
  cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff7ef;
  box-shadow: 0 12px 30px -14px rgba(228,80,30,.7);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 18px 38px -14px rgba(228,80,30,.8); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(38,31,18,.03); }
.btn-ghost:hover { border-color: rgba(38,31,18,.32); background: rgba(38,31,18,.07); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------- flash ---------------- */
.flash-stack { margin-top: 18px; display: grid; gap: 10px; }
.flash {
  border-radius: var(--radius); padding: 13px 16px; font-size: 14.5px;
  border: 1px solid var(--line); background: var(--panel);
}
.flash-success { border-color: rgba(13,117,104,.45); background: rgba(13,117,104,.08); color: #0b5c50; }
.flash-error   { border-color: rgba(214,69,80,.45); background: rgba(214,69,80,.08); color: #b03040; }
.flash-key     { border-color: rgba(228,80,30,.5); background: rgba(228,80,30,.07); }
.flash-key-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.key-reveal { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.key-reveal code {
  background: var(--ink-dark); border: 1px solid var(--d-line); border-radius: 9px;
  padding: 9px 12px; font-size: 13px; color: var(--d-mint); word-break: break-all;
}

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-a { width: 520px; height: 520px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(228,80,30,.4), transparent 65%); }
.orb-b { width: 460px; height: 460px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(13,117,104,.3), transparent 65%); }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(38,31,18,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(38,31,18,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }

.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2);
  border: 1px solid rgba(228,80,30,.32); background: rgba(228,80,30,.06);
  padding: 6px 12px; border-radius: 99px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 20px; }
.lede { font-size: 18px; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; margin: 30px 0 38px; flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 560px; }
.stat {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel);
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(38,31,18,.04);
}
.stat b { display: block; font-family: var(--disp); font-size: 26px; font-weight: 700; }
.stat span { font-size: 12.5px; color: var(--muted-2); }

/* console mock */
.hero-console { position: relative; }
.console {
  border: 1px solid #201a0f; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-dark-2), var(--ink-dark));
  box-shadow: var(--shadow); overflow: hidden;
}
.console-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--d-line); font-family: var(--mono); font-size: 12px; color: var(--d-muted-2);
}
.cdot { width: 9px; height: 9px; border-radius: 50%; background: rgba(240,230,210,.25); }
.cdot.r { background: #ff8a5c; } .cdot.y { background: var(--amber); } .cdot.g { background: var(--d-mint); }
.console-body { margin: 0; padding: 18px; font-size: 12.6px; line-height: 1.85; overflow-x: auto; color: #e8e0cf; }
.console-body .c-k { color: #ffb26b; }
.console-body .c-s { color: var(--d-mint); }
.console-body .c-n { color: var(--amber); }
.console-body .c-c { color: var(--d-muted-2); }
.console-badge {
  position: absolute; right: -10px; bottom: -16px;
  font-family: var(--mono); font-size: 12px; color: #fff7ec;
  background: var(--grad);
  padding: 8px 14px; border-radius: 99px;
  box-shadow: 0 16px 40px -16px rgba(228,80,30,.7);
}

/* ---------------- sections ---------------- */
.sec { padding: 72px 0; }
.sec-tight { padding: 48px 0; }
.sec-head { max-width: 720px; margin-bottom: 38px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; display: block; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 16.5px; }

.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(38,31,18,.04);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card-num { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 14px; display: block; }

/* model marquee */
.marquee-sec { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 22px 0; overflow: hidden; background: var(--paper-2); }
.marquee { display: flex; gap: 14px; width: max-content; animation: slide 46s linear infinite; }
.marquee-sec:hover .marquee { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chip {
  border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px;
  font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--panel);
}
.chip b { color: var(--text); font-weight: 500; }
.chip em { font-style: normal; color: var(--teal); font-size: 12px; }

/* ---------------- plans (tokens) ---------------- */
.plan-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 28px 26px;
  box-shadow: 0 1px 2px rgba(38,31,18,.04);
}
.plan-card.hot {
  border-color: rgba(228,80,30,.55);
  background: linear-gradient(180deg, rgba(228,80,30,.07), rgba(242,163,60,.045));
  box-shadow: 0 30px 60px -40px rgba(228,80,30,.6);
}
.plan-badge {
  position: absolute; top: -13px; left: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--grad); color: #fff7ec; padding: 5px 12px; border-radius: 99px;
}
.plan-name { font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--mono); }
.plan-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.plan-price b { font-family: var(--disp); font-size: 44px; font-weight: 700; letter-spacing: -.02em; }
.plan-price span { color: var(--muted-2); font-size: 14px; }
.plan-credits { font-family: var(--mono); font-size: 13px; color: var(--teal); margin-bottom: 16px; }
.plan-tagline { color: var(--muted); font-size: 14.5px; min-height: 44px; margin-bottom: 18px; }
.plan-feats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.plan-feats li { display: flex; gap: 10px; }
.plan-feats li::before { content: "▹"; color: var(--accent); flex: none; }
.plan-card .btn { margin-top: auto; }
.plan-rate { font-size: 12.5px; color: var(--muted-2); margin-top: 12px; text-align: center; font-family: var(--mono); }

/* ---------------- gpu cards ---------------- */
.gpu-card { display: flex; flex-direction: column; gap: 16px; }
.gpu-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gpu-name { font-family: var(--disp); font-size: 22px; font-weight: 600; }
.gpu-vram { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.gpu-price b { font-family: var(--disp); font-size: 30px; font-weight: 700; }
.gpu-price span { color: var(--muted-2); font-size: 13.5px; }
.gpu-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; font-size: 13px; }
.gpu-specs div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line-soft); padding-bottom: 6px; }
.gpu-specs span { color: var(--muted-2); }
.gpu-specs b { font-weight: 500; font-family: var(--mono); font-size: 12.5px; }

/* ---------------- tables ---------------- */
.table-wrap { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th {
  text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 500;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel-3);
}
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(228,80,30,.05); }
.data-table .num { font-family: var(--mono); font-size: 13.5px; }
.data-table .muted { color: var(--muted-2); }
.tbl-scroll { overflow-x: auto; }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted);
}
.badge-hot { border-color: rgba(228,80,30,.5); color: var(--accent-2); background: rgba(228,80,30,.1); }
.badge-new { border-color: rgba(13,117,104,.45); color: #0b5f53; background: rgba(13,117,104,.09); }
.badge-ok { border-color: rgba(13,117,104,.45); color: #0b5f53; background: rgba(13,117,104,.09); }
.badge-warn { border-color: rgba(194,132,24,.5); color: #96650f; background: rgba(242,163,60,.14); }
.badge-danger { border-color: rgba(214,69,80,.5); color: #b03040; background: rgba(214,69,80,.09); }
.badge-muted { color: var(--muted-2); }

/* filter pills */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-pill {
  border: 1px solid var(--line); border-radius: 99px; padding: 8px 15px;
  font-size: 13.5px; color: var(--muted); transition: all .15s;
  background: var(--panel);
}
.filter-pill:hover { color: var(--text); border-color: rgba(38,31,18,.3); }
.filter-pill.on { color: var(--accent-2); border-color: rgba(228,80,30,.6); background: rgba(228,80,30,.1); font-weight: 600; }

/* ---------------- forms ---------------- */
.form-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 30px;
  box-shadow: 0 1px 2px rgba(38,31,18,.04);
}
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%; background: #fffdf8; border: 1px solid var(--line); border-radius: 11px;
  color: var(--text); font: 400 15px/1.5 var(--body); padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(228,80,30,.7);
  box-shadow: 0 0 0 3px rgba(228,80,30,.14);
}
.textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { border: 1px solid rgba(214,69,80,.45); background: rgba(214,69,80,.07); color: #b03040; border-radius: 11px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.form-note { font-size: 13px; color: var(--muted-2); }

/* ---------------- auth pages ---------------- */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 64px 24px 80px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-size: 32px; margin-bottom: 10px; }
.auth-head p { color: var(--muted); font-size: 15px; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14.5px; }
.auth-alt a { color: var(--teal); }

/* ---------------- docs ---------------- */
.docs-grid { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
.docs-side { position: sticky; top: 96px; display: grid; gap: 4px; font-size: 14.5px; }
.docs-side a { color: var(--muted); padding: 7px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.docs-side a:hover { color: var(--text); background: rgba(38,31,18,.05); }
.docs-side .grp { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); padding: 16px 12px 6px; }
.docs-body h2 { font-size: 27px; margin: 44px 0 14px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 18px; margin: 28px 0 10px; }
.docs-body p, .docs-body li { color: var(--muted); font-size: 15.5px; }
.docs-body ul { padding-left: 20px; }
.code-block {
  position: relative; border: 1px solid #201a0f; border-radius: var(--radius);
  background: var(--ink-dark); overflow: hidden; margin: 0 0 20px;
}
.code-block .code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-bottom: 1px solid var(--d-line);
  font-family: var(--mono); font-size: 11.5px; color: var(--d-muted-2);
}
.code-block pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 12.8px; line-height: 1.75; color: #e8e0cf; }
.code-block .k { color: #ffb26b; } .code-block .s { color: var(--d-mint); } .code-block .n { color: var(--amber); } .code-block .c { color: var(--d-muted-2); }
.copy-btn { background: transparent; border: 1px solid var(--d-line); color: var(--d-muted); border-radius: 7px; font-family: var(--mono); font-size: 11px; padding: 4px 10px; cursor: pointer; }
.copy-btn:hover { color: var(--d-text); border-color: rgba(240,230,210,.35); }

/* ---------------- estimator ---------------- */
.estimator {
  border: 1px solid rgba(228,80,30,.35); border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(228,80,30,.08), rgba(242,163,60,.05) 60%, transparent);
  padding: 32px;
}
.est-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.est-out { text-align: center; }
.est-out .big { font-family: var(--disp); font-size: clamp(38px, 5vw, 56px); font-weight: 700; }
.est-out .sub { color: var(--muted); font-size: 14px; }
.est-out .per { font-family: var(--mono); font-size: 13px; color: var(--teal); margin-top: 8px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ---------------- dashboard ---------------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding: 40px 0 70px; align-items: start; }
.dash-side { position: sticky; top: 96px; display: grid; gap: 4px; }
.dash-user { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--panel); }
.dash-user b { display: block; font-size: 15px; }
.dash-user span { font-size: 12.5px; color: var(--muted-2); word-break: break-all; }
.dash-side nav { display: grid; gap: 3px; }
.dash-side nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: 10px; color: var(--muted); font-size: 14.5px;
}
.dash-side nav a:hover { background: rgba(38,31,18,.05); color: var(--text); }
.dash-side nav a.on { background: rgba(228,80,30,.11); color: var(--accent-2); font-weight: 600; }
.dash-side nav a i { font-style: normal; opacity: .7; width: 18px; display: inline-block; text-align: center; }

.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-head h1 { font-size: 30px; }
.dash-head p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.kpi { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); padding: 18px; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted-2); margin-bottom: 8px; }
.kpi b { font-family: var(--disp); font-size: 25px; font-weight: 700; }
.kpi em { font-style: normal; font-size: 12px; color: var(--teal); font-family: var(--mono); }

.panel { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--panel); margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 22px; border-bottom: 1px solid var(--line-soft); }
.panel-head h3 { font-size: 16.5px; }
.panel-body { padding: 22px; }
.panel-body.p0 { padding: 0; }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--accent), rgba(242,163,60,.6)); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .92; }
.spark-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-top: 10px; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted-2); }
.empty b { display: block; color: var(--muted); font-size: 16px; margin-bottom: 6px; font-family: var(--disp); }

/* ---------------- checkout / order ---------------- */
.checkout-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: start; padding: 44px 0 70px; }
.summary { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel-2); padding: 26px; position: sticky; top: 96px; }
.summary h3 { font-size: 17px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); color: var(--muted); }
.sum-row b { color: var(--text); font-weight: 600; font-family: var(--mono); font-size: 13.5px; }
.sum-total { display: flex; justify-content: space-between; margin-top: 16px; font-family: var(--disp); }
.sum-total b { font-size: 27px; }

.steps { display: grid; gap: 14px; counter-reset: st; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step::before {
  counter-increment: st; content: counter(st);
  flex: none; width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12.5px;
  background: rgba(228,80,30,.12); color: var(--accent-2); border: 1px solid rgba(228,80,30,.45);
}
.step b { display: block; font-size: 14.5px; }
.step span { font-size: 13px; color: var(--muted-2); }

/* ---------------- prose pages ---------------- */
.prose { max-width: 780px; margin: 0 auto; padding: 56px 0 80px; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.prose .updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-bottom: 30px; }
.prose h2 { font-size: 21px; margin: 34px 0 12px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose a { color: var(--teal); }
.prose ul { padding-left: 20px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 840px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--disp); font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------------- CTA band ---------------- */
.cta-band {
  border: 1px solid rgba(228,80,30,.4); border-radius: 26px;
  background: linear-gradient(120deg, rgba(228,80,30,.1), rgba(242,163,60,.07) 70%, transparent);
  padding: 46px 42px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------------- footer ---------------- */
.site-foot { border-top: 1px solid #201a0f; background: var(--ink-dark); padding: 56px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-blurb { color: var(--d-muted); font-size: 14.5px; margin: 16px 0 14px; max-width: 34ch; }
.foot-status { font-family: var(--mono); font-size: 12.5px; color: var(--d-mint); display: flex; gap: 9px; align-items: center; margin: 0; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--d-muted-2); font-weight: 500; margin-bottom: 4px; }
.foot-col a { color: var(--d-muted); font-size: 14.5px; }
.foot-col a:hover { color: var(--d-text); }
.foot-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--d-line); margin-top: 42px; padding-top: 22px;
  font-size: 13px; color: var(--d-muted-2);
}
.foot-base p { margin: 0; }

/* ---------------- segmented control (checkout) ---------------- */
.seg { display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: #fffdf8; }
.seg-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px; font-size: 14px; color: var(--muted); cursor: pointer;
}
.seg-item input { accent-color: var(--accent); margin: 0; }
.seg-item:has(input:checked) { background: rgba(228,80,30,.12); color: var(--text); }

.qty-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-top: 8px; }

/* small utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.small { font-size: 13.5px; }

/* ---------------- docs extras ---------------- */
.docs-note { border-left: 2px solid var(--accent); padding-left: 14px; font-size: 14.5px !important; }
.docs-steps { list-style: none; padding: 0 !important; display: grid; gap: 11px; counter-reset: ds; margin: 16px 0 4px; }
.docs-steps li { display: flex; gap: 12px; align-items: baseline; }
.docs-steps li::before {
  counter-increment: ds; content: "0" counter(ds);
  font-family: var(--mono); font-size: 11.5px; color: var(--accent); flex: none;
}
.callout { border: 1px solid rgba(194,132,24,.4); background: rgba(242,163,60,.1); border-radius: var(--radius); padding: 15px 18px; margin: 18px 0 4px; }
.callout p { margin: 0; color: #8a5f10; font-size: 14.5px; }
.callout strong { color: #6d4a0c; }

/* ---------------- order / checkout extras ---------------- */
.meta-list { margin: 0; }
.meta-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14.5px; color: var(--muted); }
.meta-row:last-child { border-bottom: 0; }
.meta-row b { color: var(--text); font-family: var(--mono); font-size: 13px; font-weight: 500; text-align: right; word-break: break-word; }
.pay-box {
  border: 1px solid #201a0f; border-radius: var(--radius); background: var(--ink-dark);
  padding: 20px 22px; font-size: 14.5px; color: var(--d-muted); line-height: 1.9;
}
.pay-box strong { color: var(--d-text); }
.plan-mini { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); padding: 16px 18px; margin-bottom: 22px; }
.plan-mini .pm-body { display: grid; gap: 5px; }
.plan-mini b { font-size: 16px; font-family: var(--disp); }
.plan-mini span { font-size: 13.5px; color: var(--muted); }
.plan-mini em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--teal); }

/* ---------------- auth extras ---------------- */
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 { font-size: 28px; margin-bottom: 8px; }
.auth-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--teal); }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
.contact-aside { display: grid; gap: 16px; }

/* ---------------- 404 ---------------- */
.nf { text-align: center; padding: 92px 0 104px; }
.nf .code { font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em; color: var(--teal); text-transform: uppercase; }
.nf h1 { font-size: clamp(34px, 6vw, 58px); margin: 14px 0 12px; }
.nf p { color: var(--muted); max-width: 48ch; margin: 0 auto 28px; }

.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-inline { display: inline; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-side nav { display: flex; flex-wrap: wrap; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-side { position: static; display: flex; flex-wrap: wrap; }
  .docs-side .grp { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .only-wide { display: none; }
  .g-3 { grid-template-columns: 1fr; }
  .g-2 { grid-template-columns: 1fr; }
  .est-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 44px; }
  .sec { padding: 52px 0; }
  .console-badge { right: 12px; bottom: -14px; }
}

@media (max-width: 560px) {
  .g-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 30px 24px; }
  .wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  .dot-live { animation: none; }
  html { scroll-behavior: auto; }
}
