/* Rins AI Gateway — customer portal design system */
:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f3;
  --surface-3: #e6efee;
  --ink: #111c24;
  --ink-soft: #253946;
  --muted: #627482;
  --muted-2: #80909b;
  --line: #dfe8e9;
  --line-strong: #c9d7d9;
  --brand: #0f766e;
  --brand-dark: #0b5b55;
  --brand-soft: #e4f4f1;
  --brand-ink: #073d3a;
  --accent: #18a89d;
  --navy: #0b1d25;
  --navy-2: #102b34;
  --ok: #0f7a55;
  --ok-soft: #e6f6ee;
  --warn: #8a5a00;
  --warn-soft: #fff3d8;
  --bad: #a92f27;
  --bad-soft: #fcebea;
  --info: #2458a6;
  --info-soft: #eaf1fc;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 18px 48px rgba(17, 40, 51, 0.07);
  --shadow-soft: 0 7px 22px rgba(17, 40, 51, 0.05);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(800px 420px at 82% -10%, rgba(15, 118, 110, 0.08), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
  border-radius: 6px;
}
h1, h2, h3, p, dl, dd, dt { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 760; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.12rem, 5vw, 4.35rem); line-height: 1.02; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2.15rem); line-height: 1.12; }
h3 { font-size: 1.02rem; line-height: 1.3; }
.mono { font-family: var(--mono); }
.small { font-size: 0.82rem; }
.muted { color: var(--muted); }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.warn-text { color: var(--warn); }
.link { font-weight: 680; font-size: 0.86rem; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
[hidden] { display: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 247, 248, 0.86);
  border-bottom: 1px solid rgba(223, 232, 233, 0.9);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center;
  color: #eafffb; font-weight: 850; font-size: 1.02rem;
  background: linear-gradient(145deg, #0d6b63, #123c47);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 8px 18px rgba(11, 61, 58, 0.2);
  flex: 0 0 auto;
}
.brand strong { display: block; line-height: 1.12; font-size: 0.96rem; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 0.7rem; line-height: 1.3; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-toggle { display: none; }
.main-nav a {
  padding: 8px 11px; border-radius: 9px; color: #465d68; font-size: 0.86rem;
  font-weight: 620; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-note { color: var(--muted); font-size: 0.77rem; white-space: nowrap; }
.user-chip { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 0.8rem; }
.inline-form { display: inline-flex; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; font: inherit; font-size: 0.88rem;
  font-weight: 680; cursor: pointer; white-space: nowrap; transition: 150ms ease;
  text-decoration: none;
}
.btn:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--bad-soft); border-color: #ecc4c0; color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-disabled, .btn:disabled { opacity: 0.52; cursor: not-allowed; background: var(--surface-2); color: var(--muted); border-color: var(--line); transform: none; }
.btn-sm { padding: 7px 12px; font-size: 0.78rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* Layout and typography */
.main-content { padding: 34px 0 72px; min-height: 60vh; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-dark); font-size: 0.72rem; font-weight: 820; letter-spacing: 0.095em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(24, 168, 157, 0.12); display: inline-block; }
.lede { color: var(--muted); font-size: 1.04rem; max-width: 700px; margin-top: 10px; }

/* Hero */
.hero { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 54px; align-items: center; padding: 58px 0 38px; }
.hero-home { padding-top: 72px; }
.hero-eyebrow { background: var(--brand-soft); color: var(--brand-ink); padding: 7px 10px; border-radius: 999px; letter-spacing: 0.06em; }
.hero-copy { min-width: 0; }
.hero-copy h1 { margin: 18px 0 18px; max-width: 760px; overflow-wrap: anywhere; }
.hero-lede { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 610px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; color: var(--muted); font-size: 0.8rem; }
.hero-meta strong { color: var(--ink); font-weight: 750; }
.hero-code-card, .code-panel { min-width: 0;
  background: linear-gradient(155deg, #0d2730, #0a1c23);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px; padding: 18px; box-shadow: 0 26px 70px rgba(8, 28, 35, 0.24);
  color: #d9f1ee;
}
.code-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #a7c8c5; font-size: 0.76rem; font-weight: 720; padding-bottom: 13px; }
.status-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #c9e9e5; font-size: 0.68rem; font-weight: 700; }
.status-pill.muted { color: #a7c8c5; }
.hero-code {
  margin: 0; max-width: 100%; padding: 18px 0 18px; color: #d9f1ee; font-family: var(--mono);
  font-size: 0.78rem; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere;
  border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 13px; }
.code-card-foot div { display: grid; gap: 2px; min-width: 0; }
.code-card-foot code { color: #e3fffb; font-size: 0.76rem; overflow-wrap: anywhere; }
.hero-panel { background: linear-gradient(160deg, #0d2730, #0a1c23); color: #eaf6f5; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 13px; }
.hero-panel-row { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 11px; font-size: 0.88rem; }
.hero-panel-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-panel-row span { color: #a9c7c6; }
.hero-panel-row strong { text-align: right; }
.hero-panel .warn-text { color: #ffd27d; }

/* Status and notices */
.status-strip, .pilot-note, .alert, .promo-banner { border-radius: var(--radius-sm); }
.status-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: rgba(255,255,255,0.78); border: 1px solid var(--line); padding: 14px 17px; margin: 0 0 22px; }
.status-strip-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; }
.status-strip-label strong { font-size: 0.86rem; }
.status-chips { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.73rem; font-weight: 690; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.status-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status-operational .dot, .status-chip.status-operational .dot { background: var(--ok); }
.status-operational { color: var(--ok); }
.status-degraded { color: var(--warn); }
.status-degraded .dot, .status-chip.status-degraded .dot { background: var(--warn); }
.status-outage { color: var(--bad); }
.status-outage .dot, .status-chip.status-outage .dot { background: var(--bad); }
.status-unknown { color: var(--muted); }
.status-card .status-operational, .status-card .status-degraded, .status-card .status-outage, .status-card .status-unknown { font-size: 1.1rem; }
.status-card small { line-height: 1.4; }
.pilot-note { display: flex; align-items: flex-start; gap: 14px; background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 26px; }
.pilot-note-mark { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 850; font-size: 0.78rem; }
.pilot-note > div:nth-child(2) { flex: 1; }
.pilot-note strong { font-size: 0.88rem; }
.pilot-note p { margin-top: 3px; }
.alert { border: 1px solid var(--line); background: var(--surface); padding: 14px 16px; margin-bottom: 20px; font-size: 0.89rem; }
.alert.ok { background: var(--ok-soft); border-color: #bce6d2; }
.alert.warn { background: var(--warn-soft); border-color: #efd9a9; }
.alert.bad { background: var(--bad-soft); border-color: #edc8c4; }
.alert.info { background: var(--info-soft); border-color: #cbdaf3; }
.promo-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--brand-soft); border: 1px solid #b9e6df; padding: 18px 22px; margin-bottom: 26px; }
.promo-banner .eyebrow { margin-bottom: 3px; }
.promo-banner strong { display: block; }
.promo-banner .price { font-size: 1.5rem; }

/* Sections */
.section-block { margin: 66px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 24px; flex-wrap: wrap; }
.section-heading h2 { margin-top: 7px; }
.section-lede { color: var(--muted); max-width: 620px; margin-top: 8px; font-size: 0.94rem; }
.model-section { margin: 44px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); margin-bottom: 18px; min-width: 0; overflow-x: auto; }
.panel h2 { margin-bottom: 13px; }
.empty-state { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 44px 22px; }
.policy-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 34px; box-shadow: var(--shadow-soft); }
.policy-note p { color: var(--muted); margin-top: 10px; max-width: 950px; }
.policy-note > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* Model showcase */
.model-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 13px; box-shadow: var(--shadow-soft); transition: 180ms ease; }
.model-card:hover { transform: translateY(-3px); border-color: #c7dcda; box-shadow: var(--shadow); }
.model-card-top, .model-card-foot, .price-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.model-index { color: var(--muted-2); font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }
.model-card h3 { margin-top: 8px; font-size: 1.18rem; }
.model-card .mono { margin-top: -8px; }
.model-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.model-card-foot div { display: grid; gap: 1px; }
.model-card-foot strong { font-size: 1.04rem; }
.capability-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 9px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; font-size: 0.72rem; color: #455d68; white-space: nowrap; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; box-shadow: var(--shadow-soft); }
.step-number { color: var(--brand); font-family: var(--mono); font-size: 0.75rem; font-weight: 800; }
.step-card h3 { font-size: 1.02rem; }
.step-card .link { margin-top: 4px; }

/* Split / code */
.split-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 42px; align-items: center; }
.split-copy h2 { margin: 8px 0 10px; }
.code-panel { position: relative; padding: 18px; }
.code-panel .code-block { border: 0; background: transparent; padding: 14px 0 4px; color: #d9f1ee; }
.copy-floating { position: absolute; right: 16px; bottom: 14px; color: #d9f1ee; border-color: rgba(255,255,255,0.18); }
.copy-floating:hover { color: #fff; border-color: rgba(255,255,255,0.38); }
.hero-code-card .btn { color: #d9f1ee; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
.hero-code-card .btn:hover { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); }
.control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.control-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; display: grid; gap: 8px; }
.control-icon { color: var(--brand); font-size: 1.1rem; font-weight: 800; }
.control-card h3 { font-size: 0.94rem; }
.control-card p { font-size: 0.84rem; }

/* Catalog/package legacy components */
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.package-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 16px; }
.package-card.is-pilot { box-shadow: none; }
.package-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.package-top h3 { margin-bottom: 4px; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 720; white-space: nowrap; }
.badge.ok, .badge.paid { color: var(--ok); background: var(--ok-soft); border: 1px solid #bce6d2; }
.badge.muted { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.badge.pending { color: var(--warn); background: var(--warn-soft); border: 1px solid #efd9a9; }
.badge.processing { color: var(--info); background: var(--info-soft); border: 1px solid #cbdaf3; }
.badge.failed, .badge.expired { color: var(--bad); background: var(--bad-soft); border: 1px solid #edc8c4; }
.badge.sandbox { color: #6d3f00; background: #fff0d6; border: 1px solid #f0d3a0; }
.badge.severity-minor, .badge.minor { color: var(--warn); background: var(--warn-soft); border: 1px solid #efd9a9; }
.badge.major, .badge.critical { color: var(--bad); background: var(--bad-soft); border: 1px solid #edc8c4; }
.badge.maintenance { color: var(--info); background: var(--info-soft); border: 1px solid #cbdaf3; }
.badge.warn, .badge.open { color: var(--warn); background: var(--warn-soft); border: 1px solid #efd9a9; }
.price-block { display: grid; gap: 3px; }
.price { font-size: 2rem; font-weight: 820; letter-spacing: -0.045em; line-height: 1.08; }
.price-block.large .price { font-size: 2.4rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.discount { color: var(--brand-dark); font-size: 0.82rem; font-weight: 720; }
.spec-list { margin: 0; display: grid; gap: 9px; }
.spec-list div { display: flex; justify-content: space-between; gap: 14px; font-size: 0.84rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; text-align: right; font-weight: 680; }
.package-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.package-actions .btn { flex: 1; }

/* Price preview */
.price-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price-preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); }
.price-preview-head h3 { font-size: 1rem; }
.price-list { list-style: none; margin: 16px 0 12px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.price-list li span { color: var(--muted); }
.price-list li strong { font-variant-numeric: tabular-nums; }
.price-preview-card > .link { display: inline-block; margin-top: 12px; }

/* Detail */
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: 0.8rem; margin-bottom: 18px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 28px; align-items: start; }
.detail-main h1 { margin-bottom: 4px; }
.detail-side .sticky { position: sticky; top: 94px; }
.detail-main .panel { margin-top: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 14px 0; }
.stat-grid > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 11px 12px; display: grid; gap: 2px; }
.stat-grid span { color: var(--muted); font-size: 0.74rem; }
.stat-grid strong { font-size: 1.03rem; }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.simple-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.simple-table th, .simple-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.simple-table th { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.055em; font-weight: 760; }
.simple-table tr:last-child td { border-bottom: 0; }
.simple-table tbody tr:hover { background: #fbfcfc; }
.bullets { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 7px; color: #385064; font-size: 0.9rem; }
.bullets.tight { gap: 3px; }

/* Dashboard and forms */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 5px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; box-shadow: var(--shadow-soft); }
.stat-card span { color: var(--muted); font-size: 0.76rem; }
.stat-card strong { font-size: 1.4rem; letter-spacing: -0.035em; }
.active-panel { display: grid; gap: 14px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.fup-row { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fup-row:last-child { border-bottom: 0; }
.fup-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.progress { height: 7px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.form-stack { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; font-size: 0.88rem; }
.field > span:first-child, .field-label { font-weight: 720; color: #294256; }
.field input, .field select, .field textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fff; color: var(--ink); font: inherit; font-size: 0.92rem;
}
.field input:focus, input:focus { border-color: var(--brand); }
.hint { color: var(--muted); font-size: 0.76rem; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.inline-field { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.period-links { display: flex; gap: 6px; flex-wrap: wrap; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.captcha-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2); display: grid; gap: 8px; }
.checkbox-grid { display: grid; gap: 8px; }

/* Utility grids */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 0.86rem; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.check input { margin-top: 3px; accent-color: var(--brand); }
.badge.resolved { color: var(--ok); background: var(--ok-soft); border: 1px solid #bce6d2; }
.faq-section .section-heading { margin-bottom: 14px; }

/* Tables, orders, keys */
.table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; border-radius: var(--radius-sm); }
.bar-row { display: grid; grid-template-columns: 86px 1fr 150px; gap: 10px; align-items: center; padding: 4px 0; }
.bar-track { height: 9px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.order-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order-summary { display: flex; justify-content: space-between; gap: 14px; padding: 13px; background: var(--surface-2); border-radius: var(--radius-sm); }
.price-lines { margin: 10px 0 0; display: grid; gap: 9px; }
.price-lines div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.price-lines dt { color: var(--muted); }
.price-lines dd { margin: 0; font-weight: 720; font-variant-numeric: tabular-nums; }
.price-lines .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.07rem; }
.price-lines .discount { color: var(--brand-dark); }
.key-reveal { border-color: #e2c27a; background: #fffdf5; }
.key-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.key-row code { flex: 1; min-width: 240px; background: var(--navy); color: #d8edf5; padding: 12px 14px; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 0.84rem; overflow-wrap: anywhere; }
.code-block { background: var(--navy); color: #d8edf5; border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.code-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 14px; }
.code-row code { background: var(--navy); color: #d8edf5; padding: 9px 12px; border-radius: 9px; font-family: var(--mono); font-size: 0.84rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 13px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 720; }
.faq p { margin: 7px 0 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.faq-grid details { border-top: 1px solid var(--line); padding: 15px 0; }
.faq-grid details:nth-child(-n+2) { border-top: 0; }
.faq-grid summary { cursor: pointer; font-weight: 720; }
.faq-grid p { margin: 7px 0 0; font-size: 0.88rem; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow-x: hidden; background: radial-gradient(800px 430px at 50% -10%, #dff6f1, var(--bg) 62%); }
.auth-card { width: min(440px, calc(100vw - 48px)); max-width: calc(100vw - 28px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 30px 80px rgba(16, 42, 67, 0.12); }
.auth-card-wide { width: min(560px, 100%); }
.auth-brand { margin-bottom: 20px; }
.auth-card h1 { font-size: 1.65rem; margin-bottom: 4px; }
.auth-card > .muted { margin-bottom: 18px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,0.72); padding: 36px 0 30px; }
.footer-grid { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.footer-brand { max-width: 460px; display: grid; gap: 10px; }
.footer-brand .brand { margin-bottom: 3px; }
.footer-links { display: flex; gap: 42px; flex-wrap: wrap; }
.footer-links > div { display: grid; align-content: start; gap: 7px; min-width: 120px; }
.footer-links strong { font-size: 0.78rem; color: var(--ink); margin-bottom: 2px; }
.footer-links a, .footer-links span { color: var(--muted); font-size: 0.82rem; }
.footer-links a:hover { color: var(--brand-dark); }

/* Misc legacy */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 26px 0; }
.feature-grid .panel { margin: 0; }
.how-to { margin-top: 18px; }
.status-strip { align-items: flex-start; }
.status-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--surface); }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.notice-list { display: grid; gap: 10px; }
.section-note { color: var(--muted); font-size: 0.84rem; }

@media (max-width: 1080px) {
  .hero, .split-block, .detail-grid { grid-template-columns: 1fr; }
  .hero { gap: 30px; padding-top: 44px; }
  .model-showcase, .steps-grid, .price-preview-grid, .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-side .sticky { position: static; }
  .package-grid, .stat-grid, .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
  .main-nav { display: none; order: 3; flex: 0 0 100%; width: 100%; overflow: visible; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 6px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 11px; }
  .header-actions { margin-left: 0; }
  .main-content { padding: 24px 0 52px; }
  .hero-home { padding-top: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .model-showcase, .steps-grid, .price-preview-grid, .control-grid, .two-col, .package-grid, .feature-grid, .status-grid { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid details:nth-child(2) { border-top: 1px solid var(--line); }
  .simple-table { min-width: 620px; }
  .panel { padding: 18px; }
  .hero-code { font-size: 0.71rem; }
  .footer-links { gap: 28px; }
  .promo-banner { flex-direction: column; align-items: flex-start; }
  .price { font-size: 1.7rem; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  .stat-grid, .stat-grid.four { grid-template-columns: 1fr; }
  .header-note { display: none; }
  .main-nav a { padding: 7px 8px; }
  .hero-meta { display: grid; gap: 5px; }
  .auth-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
