/* style.css — MultiDeskKore cloud frontend (v23).
   Shared by the marketing site (/) and the management app (/app).
   Design tokens (audit, applied site + portal):
     page #081525, surface #102338, elevated #16304A,
     primary text #F4F7FB, secondary text #B8C7D9, muted #8CA3BC,
     primary action #22C7E8 with dark text #061522,
     gold accent #F5BD3A, borders #29445F,
     green (success) #34D399, red (destructive) #F87171.
   One sans-serif family, no unusual letter spacing.
   Desktop content width ~1440px with responsive gutters.
   Hero 48-60px desktop (34-40px mobile), section headings 28-36px,
   body 16-18px, secondary labels 14px+, body line height ~1.5-1.65.
   Static files only: no framework, no CDN, no external fonts,
   no external JavaScript, system fonts only. */

* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  scrollbar-color: #29445F transparent;
  --page: #081525;
  --surface: #102338;
  --elevated: #16304A;
  --text: #F4F7FB;
  --secondary: #B8C7D9;
  --muted: #8CA3BC;
  --cyan: #22C7E8;
  --cyan-dark: #061522;
  --gold: #F5BD3A;
  --border: #29445F;
  --green: #34D399;
  --red: #F87171;
  --blue: #1B9BD8;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #29445F; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #3A5A7D; border: 3px solid transparent; background-clip: content-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.gold { color: var(--gold); }
.cyan { color: var(--cyan); }

h1 { font-size: 52px; margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: 30px; margin: 0 0 10px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 20px; margin: 0 0 8px; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 12px; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.wrap.wide { max-width: 1440px; }

/* --- Brand --- */
.wordmark { font-size: 24px; font-weight: 700; color: #fff; line-height: 1.15; white-space: nowrap; }
.wordmark.big { font-size: 44px; }
.byline { color: var(--muted); font-size: 14px; margin-top: 2px; }
.logo-mark { display: block; }
.logo-mark.nav { width: 40px; height: auto; }
.logo-mark.auth { width: 96px; height: auto; margin-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .wordmark { font-size: 22px; }

/* --- Top bar (marketing) --- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 21, 37, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.topbar nav { display: flex; gap: 28px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--secondary); font-size: 15px; }
.topbar nav a:hover { color: #fff; text-decoration: none; }
.topbar nav a.active { color: var(--cyan); border-bottom: 2px solid var(--cyan); padding-bottom: 3px; }
/* --- Buttons, inputs, forms --- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px; text-align: center;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: var(--cyan-dark); text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
/* One primary button treatment: dark text on the cyan gradient.
   Gold is reserved for emphasis (gold buttons, prices, accents).
   White text on the blue-to-cyan gradient failed contrast (below
   4.5:1), so .btn-blue is the same dark-text treatment as .btn. */
.btn-blue { background: linear-gradient(90deg, var(--blue), var(--cyan)); color: var(--cyan-dark); }
.btn-blue:hover { filter: brightness(1.08); }
.btn-gold { background: var(--gold); color: var(--cyan-dark); }
.btn-gold:hover { background: #FFC94D; }
.btn-outline {
  background: transparent; border: 1px solid var(--cyan); color: var(--cyan);
}
.btn-outline:hover { background: rgba(34, 199, 232, 0.12); text-decoration: none; }
.btn.secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.14); }
.btn.danger { background: rgba(248, 113, 113, 0.15); color: #FCA5A5; border-color: rgba(248, 113, 113, 0.4); }
.btn.danger:hover { background: rgba(248, 113, 113, 0.28); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-block { display: block; width: 100%; }

input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; -webkit-text-fill-color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
label .req { color: var(--red); }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* --- Cards / panels --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* --- Pills / status (colour always paired with a text label) --- */
.pill {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.pill.active { background: rgba(52, 211, 153, 0.15); color: #6EE7B7; border-color: rgba(52, 211, 153, 0.4); }
.pill.pending { background: rgba(245, 189, 58, 0.15); color: #FCD34D; border-color: rgba(245, 189, 58, 0.4); }
.pill.closed, .pill.muted-pill { background: rgba(140, 163, 188, 0.15); color: var(--muted); border-color: rgba(140, 163, 188, 0.4); }
.pill.paid { background: rgba(52, 211, 153, 0.15); color: #6EE7B7; border-color: rgba(52, 211, 153, 0.4); }
.pill.unpaid { background: rgba(245, 189, 58, 0.15); color: #FCD34D; border-color: rgba(245, 189, 58, 0.4); }
.pill.open { background: rgba(34, 199, 232, 0.15); color: #67E8F9; border-color: rgba(34, 199, 232, 0.4); }

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: none; }
td.mono, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; word-break: break-all; }
.table-wrap { overflow-x: auto; }

/* --- Notices --- */
.notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 14px; }
.notice.error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: #FCA5A5; }
.notice.ok { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: #6EE7B7; }
.notice.info { background: rgba(34, 199, 232, 0.10); border: 1px solid rgba(34, 199, 232, 0.35); color: #A5F3FC; }
.notice.warn { background: rgba(245, 189, 58, 0.10); border: 1px solid rgba(245, 189, 58, 0.4); color: #FDE68A; }

/* --- Sections --- */
section.block { padding: 56px 0; }
section.block + section.block { border-top: 1px solid rgba(41, 68, 95, 0.6); }
section.block.tight { padding: 40px 0; }
.section-head { text-align: center; }
.section-head h2 { font-size: 32px; }
.section-head .section-intro { margin: 0 auto 36px; }
.section-intro { color: var(--secondary); max-width: 680px; margin-bottom: 24px; }
.cta-center { text-align: center; }
.cta-center h2 { font-size: 30px; }
.cta-center .section-intro { margin-left: auto; margin-right: auto; }

/* --- Hero --- */
.hero { padding: 72px 0 56px; }
.hero-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow {
  color: var(--cyan); font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 18px;
}
.hero-title { font-size: 56px; line-height: 1.05; }
.hero-title .gold-line { display: block; color: var(--gold); }
.hero-lede { color: var(--secondary); font-size: 18px; max-width: 520px; margin: 20px 0 28px; }
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* --- Console preview (illustrative; NOT real customer data) --- */
.console-preview {
  background: #0B1E33;
  border: 1px solid rgba(34, 199, 232, 0.45);
  border-radius: 16px; overflow: hidden; font-size: 13px;
  box-shadow: 0 0 60px rgba(34, 199, 232, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(6, 21, 34, 0.5);
}
.console-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; }
.console-brand img { width: 30px; height: auto; }
.console-brand small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.console-head-right { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.console-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 5px; }
.console-admin { color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.console-body { display: grid; grid-template-columns: 132px 1fr; }
.console-side {
  border-right: 1px solid var(--border);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(6, 21, 34, 0.35);
}
.console-side span {
  padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 12.5px;
  display: flex; align-items: center; gap: 8px;
}
.console-side span.active { background: rgba(27, 155, 216, 0.25); color: #fff; }
.console-main { padding: 16px 18px 14px; min-width: 0; }
.console-main h3 { font-size: 17px; margin: 0; }
.console-sub { color: var(--muted); font-size: 12px; margin: 2px 0 14px; }
.console-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.console-stat {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; background: rgba(255, 255, 255, 0.03);
}
.console-stat span { display: block; color: var(--muted); font-size: 11.5px; }
.console-stat strong { font-size: 19px; color: #fff; }
.console-stat.gold-edge { border-left: 2px solid var(--gold); }
.console-stat.cyan-edge { border-left: 2px solid var(--cyan); }
.console-stat.green-edge { border-left: 2px solid var(--green); }
.console-table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.console-table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.03);
}
.console-actions { display: flex; gap: 8px; }
.console-btn {
  font-size: 11.5px; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--secondary);
}
.console-btn.primary { background: #1D7FD6; border-color: #1D7FD6; color: #061522; }
.console-table { font-size: 11.5px; width: 100%; border-collapse: collapse; }
.console-table th { padding: 7px 10px; font-size: 10.5px; text-transform: uppercase; }
.console-table td { padding: 8px 10px; }
.console-note { color: var(--muted); font-size: 12px; margin: 10px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.console-illus-tag { color: var(--muted); font-size: 12px; text-align: right; padding: 10px 16px; border-top: 1px solid var(--border); font-style: italic; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 5px; }

/* --- Benefit rows --- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.benefit { border-left: 1px solid var(--border); padding-left: 28px; }
.benefit:first-child { border-left: none; padding-left: 0; }
.benefit-icon { margin-bottom: 14px; }
.benefit h3 { font-size: 19px; margin-bottom: 8px; }
.benefit p { color: var(--secondary); margin: 0; font-size: 15px; }

/* --- Steps --- */
.steps-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; position: relative; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(27, 155, 216, 0.18); color: #7DD3FC;
  border: 1px solid rgba(27, 155, 216, 0.6); font-weight: 700; font-size: 17px;
}
.step-icon { color: var(--muted); flex: none; margin-top: 4px; }
.step-item h3 { font-size: 17px; margin: 2px 0 6px; }
.step-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* --- Banners --- */
.banner-gold {
  border: 1px solid rgba(245, 189, 58, 0.65);
  border-radius: 16px; padding: 28px 32px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(245, 189, 58, 0.09), rgba(245, 189, 58, 0.02));
}
.banner-gold .banner-copy { flex: 1; min-width: 260px; }
.banner-gold h2 { font-size: 28px; margin: 0 0 6px; }
.banner-gold h2 .gold { color: var(--gold); }
.banner-gold p { color: var(--secondary); margin: 0; }
.banner-renew {
  border: 1px solid rgba(34, 199, 232, 0.45);
  border-radius: 16px; padding: 24px 32px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: var(--surface);
}
.banner-renew .banner-copy { flex: 1; min-width: 260px; }
.banner-renew h3 { font-size: 20px; margin: 0 0 6px; }
.banner-renew p { color: var(--secondary); margin: 0; }
.banner-renew .banner-side { color: var(--secondary); font-size: 15px; border-left: 1px solid var(--border); padding-left: 28px; max-width: 300px; }
.banner-icon { flex: none; }

/* --- Pricing --- */
.pricing-hero { text-align: center; padding: 64px 0 8px; }
.pricing-hero h1 { font-size: 48px; }
.pricing-hero .lede { color: var(--secondary); font-size: 18px; max-width: 640px; margin: 14px auto 0; }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px 28px; display: flex; flex-direction: column;
}
.price-card.cyan-card { border-color: rgba(34, 199, 232, 0.6); }
.price-card.gold-card { border-color: rgba(245, 189, 58, 0.7); }
.price-card-head { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 8px; }
.price-card-head h3 { font-size: 21px; margin: 0; }
.price-card-head .plan-icon { flex: none; }
.price-amount { font-size: 52px; font-weight: 800; color: #fff; line-height: 1; margin: 14px 0 4px; }
.price-suffix { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.price-features { list-style: none; padding: 0; margin: 0 0 24px; }
.price-features li { padding: 6px 0 6px 30px; position: relative; color: var(--secondary); font-size: 15px; }
.price-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.price-card.gold-card .price-features li::before { color: var(--gold); }
.price-card .btn { margin-top: auto; }

/* Calculator */
.calc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 32px; max-width: 880px; margin: 20px auto 0;
}
.calc-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.calc-head h2 { font-size: 26px; margin: 0; }
.calc-head p { color: var(--muted); margin: 4px 0 0; }
.calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 20px; }
.stepper { display: flex; align-items: stretch; max-width: 300px; }
.stepper button {
  width: 56px; font-size: 26px; font-weight: 700; cursor: pointer;
  background: var(--elevated); color: var(--cyan); border: 1px solid var(--border);
}
.stepper button:first-child { border-radius: 10px 0 0 10px; }
.stepper button:last-child { border-radius: 0 10px 10px 0; }
.stepper button:hover { background: #1D4266; }
.stepper input {
  text-align: center; font-size: 26px; font-weight: 800; color: #fff;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  border-left: none; border-right: none; border-radius: 0; background: var(--surface);
  padding: 8px 4px;
}
.calc-lines { width: 100%; }
.calc-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; color: var(--secondary); font-size: 15px; border-bottom: 1px solid var(--border); }
.calc-line.total { border-bottom: none; border-top: 1px solid var(--border); padding-top: 14px; color: var(--text); font-weight: 700; font-size: 17px; }
.calc-line.total .calc-total-amount { color: var(--gold); font-size: 22px; }
.calc-renew { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.calc-reco { margin: 14px 0 0; }
.calc-continue { margin-top: 22px; text-align: center; }
.calc-continue .btn { min-width: 320px; }

/* Maintenance columns */
.maint-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 960px; margin: 0 auto; }
.maint-col { border-left: 1px solid var(--border); padding-left: 28px; }
.maint-col:first-child { border-left: none; padding-left: 0; }
.maint-col h3 { font-size: 18px; margin-bottom: 8px; }
.maint-col p { color: var(--muted); font-size: 14px; margin: 0; }
.maint-col .maint-icon { margin-bottom: 12px; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; }
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
}
details.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "\25BE"; color: var(--cyan); font-size: 15px; }
details.faq-item[open] summary::after { content: "\25B4"; }
details.faq-item p { color: var(--muted); margin: 12px 0 0; }
.faq-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: center;
}
.faq-row .q { font-weight: 600; }
.faq-row .a { color: var(--muted); font-size: 15px; }

/* --- How it works: diagram --- */
.diagram {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; position: relative; overflow: hidden;
}
.diagram-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 20px; align-items: center; position: relative; }
/* How-it-works hero: headline above, diagram full width below (the console
   panel needs the full container width to show its table legibly). */
.hiw-hero-text { max-width: 760px; margin-bottom: 36px; }
.hiw-hero-text .hero-lede { max-width: 680px; }
.guest-panel { text-align: center; }
.guest-screen {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #1D4ED8, #0EA5E9 55%, #38BDF8);
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.guest-screen::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 80px at 65% 35%, rgba(255,255,255,0.55), transparent 70%),
              radial-gradient(90px 90px at 35% 65%, rgba(255,255,255,0.35), transparent 70%);
}
.guest-screen.spreadsheet { background: #F4F7FB; }
.guest-screen.spreadsheet::after { display: none; }
.guest-screen .sheet {
  position: absolute; inset: 8px; display: grid;
  grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(6, 1fr); gap: 2px;
}
.guest-screen .sheet i { background: #E2E8F0; border-radius: 2px; display: block; }
.guest-screen .sheet i.h { background: #1D7FD6; }
.device-label {
  display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--cyan); color: var(--cyan); font-size: 13px; font-weight: 600;
  background: rgba(34, 199, 232, 0.08);
}
.device-label.host { border-color: var(--gold); color: var(--gold); background: rgba(245, 189, 58, 0.08); }
.diagram .console-preview { font-size: 12px; }
.diagram-links { position: absolute; inset: 0; pointer-events: none; }

/* Requirements table */
.req-table { width: 100%; }
.req-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; width: 180px; }
.req-table td { color: var(--secondary); }

/* --- Forms: trial / support --- */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.form-card h2 { font-size: 28px; margin-bottom: 8px; }
.next-steps { margin-top: 28px; }
.next-steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.next-steps li {
  counter-increment: step; display: flex; gap: 14px; align-items: flex-start;
  padding: 10px 0; color: var(--secondary); font-size: 15px;
}
.next-steps li::before {
  content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--cyan); color: var(--cyan); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.trial-points { margin: 28px 0; }
.trial-point { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.trial-point h3 { font-size: 17px; margin-bottom: 4px; }
.trial-point p { color: var(--muted); font-size: 15px; margin: 0; }
.trial-point .trial-icon { flex: none; margin-top: 2px; }

/* --- Footer --- */
footer.site-footer { background: #06121F; border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 56px; color: var(--muted); font-size: 14px; }
.site-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.5fr; gap: 32px; }
.site-footer h4 { color: var(--text); font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: var(--muted); font-size: 14px; }
.site-footer ul a:hover { color: var(--text); }
.site-footer .foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.site-footer .foot-brand img { width: 36px; height: auto; }
.site-footer .foot-note { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.site-footer .foot-note p { margin: 0 0 12px; }
.footer-simple { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-simple nav { display: flex; gap: 28px; flex-wrap: wrap; margin-left: auto; }
.footer-simple nav a { color: var(--muted); font-size: 14px; }
.footer-simple .foot-copy { color: var(--muted); font-size: 14px; }
.foot-brand-inline { display: flex; align-items: center; gap: 10px; }
.foot-brand-inline img { width: 36px; height: auto; }

/* --- Docs page --- */
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.docs-nav { position: sticky; top: 90px; }
.docs-nav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--secondary); font-size: 15px; }
.docs-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.docs-nav a.active { background: var(--surface); color: var(--cyan); font-weight: 600; }
.docs-body h2 { font-size: 26px; margin-top: 40px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 19px; margin-top: 28px; }
.docs-body p, .docs-body li { color: var(--secondary); }
.docs-body ul, .docs-body ol { padding-left: 22px; }
.docs-body li { margin-bottom: 6px; }
.docs-body code { background: var(--elevated); padding: 2px 6px; border-radius: 6px; font-size: 14px; color: var(--text); }
.docs-body pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; overflow-x: auto; }
.docs-body pre code { background: none; padding: 0; }
.docs-body table { margin: 16px 0; }
.docs-body th { color: var(--text); }
.docs-body h4 { font-size: 17px; margin-top: 24px; }
.docs-body hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.docs-body blockquote { border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 18px 0; }
.docs-body blockquote p { margin: 0 0 10px; color: var(--text); }
.docs-body blockquote p:last-child { margin-bottom: 0; }
.docs-downloads { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.docs-section { padding-top: 8px; margin-bottom: 48px; }
.docs-section + .docs-section { border-top: 1px solid var(--border); padding-top: 40px; }

/* --- App layout (portal shares this file; portal.css layers on top) --- */
.app-shell { max-width: 1160px; margin: 0 auto; padding: 28px 24px 60px; }
.view-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.view-head h1 { flex: 1; font-size: 30px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-num { font-size: 30px; font-weight: 700; color: #fff; }
.stat-label { color: var(--muted); font-size: 13px; }
.reply { border-left: 3px solid rgba(34, 199, 232, 0.4); padding: 10px 14px; margin: 12px 0; background: rgba(255, 255, 255, 0.03); border-radius: 0 10px 10px 0; }
.reply.admin { border-left-color: rgba(245, 189, 58, 0.55); }
.reply-meta { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.empty { color: var(--muted); padding: 18px 0; }

/* --- Responsive --- */
@media (max-width: 1200px) {
  /* Stack the hero and the diagram below 1200px so the console panel keeps
     full width and its table never clips: the 3-column diagram and the
     split hero are too narrow for the console between 961-1200px. */
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .diagram-grid { grid-template-columns: 1fr; }
  .guest-panel { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 960px) {
  .hiw-grid { grid-template-columns: 1fr !important; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-title { font-size: 44px; }
  .benefits { grid-template-columns: 1fr; gap: 24px; }
  .benefit { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .benefit:first-child { border-top: none; padding-top: 0; }
  .steps-row { grid-template-columns: 1fr; gap: 24px; }
  .maint-cols { grid-template-columns: 1fr; gap: 24px; }
  .maint-col { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .maint-col:first-child { border-top: none; padding-top: 0; }
  .price-cards { grid-template-columns: 1fr; }
  .calc-body { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-hero h1 { font-size: 38px; }
  .diagram-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
  .faq-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  .hero-title { font-size: 36px; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); }
  .console-stats { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr; }
  .banner-gold, .banner-renew { padding: 22px; }
  .banner-renew .banner-side { border-left: none; padding-left: 0; max-width: none; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .calc { padding: 22px; }
  .calc-continue .btn { min-width: 0; width: 100%; }
  /* Mobile navigation: brand on its own row, nav wraps below it so
     nothing overflows horizontally and no link is cut off. */
  .topbar-inner { flex-wrap: wrap; gap: 10px 24px; padding: 10px 16px; }
  .topbar nav { gap: 16px; margin-left: 0; }
}

/* Uses hub + scenario pages (2026-10-26) */
.use-hero{border-radius:14px;overflow:hidden;margin:0 0 26px;border:1px solid var(--border)}
.use-hero img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.use-card{display:block;text-decoration:none;color:inherit;background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.use-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.use-card-body{display:block;padding:16px 18px 18px}
.use-card h2{font-size:19px;margin:0 0 6px}
.use-card p{margin:0;color:var(--secondary)}
.use-card:hover,.use-card:focus-visible{border-color:var(--cyan)}
.use-figure{margin:26px 0}
.use-figure img{width:100%;display:block;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.use-figure figcaption{color:var(--secondary);font-size:14px;margin-top:10px}
.use-crumb{color:var(--secondary);margin-bottom:14px}
.use-pager{display:flex;justify-content:space-between;gap:16px;margin-top:34px;flex-wrap:wrap}
.use-pager a{color:var(--text);text-decoration:none;border:1px solid var(--border);border-radius:10px;padding:12px 16px;background:var(--surface)}
.use-pager a:hover{border-color:var(--cyan)}
@media (max-width:960px){.grid.cols-3{grid-template-columns:1fr}}

/* --- Motion: transitions, entrance, scroll reveals (2026-10-26) ---
   Presentation only; no content, copy, prices or definitions change.
   Transform/opacity only (no layout shift). Every animation is short
   (150-450ms). All motion is disabled under prefers-reduced-motion.
   No price count-ups and no pointer-follow tilt: financial figures
   show their actual values immediately, and the information-heavy
   previews stay still. */

/* Buttons: lift + shadow on hover */
.btn { transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Links: smooth colour; topbar nav gets a sliding underline */
a { transition: color .2s ease; }
.topbar nav a { position: relative; }
.topbar nav a:not(.active):not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--cyan); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .25s ease;
}
.topbar nav a:not(.active):not(.btn):hover::after { transform: scaleX(1); }
.topbar nav a:not(.active):not(.btn):hover { text-decoration: none; }

/* Focus: visible keyboard focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}

/* Scroll reveals (class added by site.js; content stays visible without JS) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-fade { transform: none; }
.reveal-fade.in { transform: none; }

/* Hero entrance (load, staggered; fill backwards so the element returns
   to its natural transform afterwards — the console preview tilt needs it) */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-preview-in {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero .eyebrow { animation: hero-rise .45s cubic-bezier(.22,.61,.36,1) backwards; }
.hero .hero-title { animation: hero-rise .45s .06s cubic-bezier(.22,.61,.36,1) backwards; }
.hero .hero-lede { animation: hero-rise .45s .12s cubic-bezier(.22,.61,.36,1) backwards; }
.hero .cta-row { animation: hero-rise .45s .18s cubic-bezier(.22,.61,.36,1) backwards; }
.hero .hero-note { animation: hero-rise .45s .24s cubic-bezier(.22,.61,.36,1) backwards; }
.hero .console-preview { animation: hero-preview-in .55s .15s cubic-bezier(.22,.61,.36,1) backwards; }
.pricing-hero h1 { animation: hero-rise .45s cubic-bezier(.22,.61,.36,1) backwards; }
.pricing-hero .lede { animation: hero-rise .45s .08s cubic-bezier(.22,.61,.36,1) backwards; }

/* Quote lines: quick fade on each re-render */
@keyframes calc-line-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.calc-lines .calc-line { animation: calc-line-in .3s ease backwards; }

/* Cards / panels: lift + shadow on hover (after the reveal rules, so hover
   wins over the reveal resting transform at equal specificity) */
.card, .price-card, .faq-row, details.faq-item {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover, .price-card:hover, .faq-row:hover, details.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
}
.use-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.use-card:hover, .use-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
}
.use-card img { transition: transform .4s ease; }
.use-card:hover img { transform: scale(1.03); }
.use-pager a { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.use-pager a:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .3); }
.stepper button { transition: background-color .2s ease, transform .15s ease; }
.stepper button:hover { transform: translateY(-1px); }
.stepper button:active { transform: translateY(0); }
.console-btn { transition: background-color .2s ease, border-color .2s ease; }

/* Reduced motion: everything still, everything visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Homepage: dark glow theme (2026-10-26) ---
   Visual theme only, following the owner's chosen reference
   (dark navy, blue glow, WINDOWS WORKSPACES eyebrow) with the
   classroom photo as the hero background (owner refinement).
   Homepage-only classes; the shared classes (.banner-gold,
   .banner-renew, .steps-row, .hero) are NOT restyled here, so
   other pages are unaffected. */

/* Hero: the classroom/lab photo (assets/uses-schools.jpg, already
   live on the site) as the background, under a dark navy overlay
   and the blue glow accents. The overlay is heaviest on the left
   (headline/subhead/CTAs) and top/bottom, so the text and the
   console preview stay readable. The glow layers sit above the
   overlay so the blue/gold accents stay visible. The photo URL is
   relative to this stylesheet (frontend/assets/), so it is just
   the filename, not assets/uses-schools.jpg. */
.hero-glow {
  background-color: var(--page);
  background-image:
    radial-gradient(880px 520px at 88% -8%, rgba(27, 155, 216, 0.28), transparent 62%),
    radial-gradient(640px 420px at 96% 88%, rgba(245, 189, 58, 0.09), transparent 60%),
    linear-gradient(90deg, rgba(8, 21, 37, 0.95) 0%, rgba(8, 21, 37, 0.90) 40%, rgba(8, 21, 37, 0.78) 70%, rgba(8, 21, 37, 0.62) 100%),
    linear-gradient(180deg, rgba(8, 21, 37, 0.55) 0%, rgba(8, 21, 37, 0.28) 40%, rgba(8, 21, 37, 0.70) 100%),
    url("uses-schools.jpg");
  background-size: auto, auto, auto, auto, cover;
  background-position: 0 0, 0 0, 0 0, 0 0, center 30%;
  background-repeat: no-repeat;
}

/* Features band: a full-width dark strip, icon on the left and
   text on the right, with the existing vertical dividers between
   items (reference layout). */
section.block.features-band { background: #0A1E33; border-top: 1px solid rgba(41, 68, 95, 0.6); padding: 40px 0; }
.features-band .benefit { display: flex; gap: 16px; align-items: flex-start; }
.features-band .benefit-icon { flex: none; margin: 2px 0 0; }

/* Steps: vertical dividers between the three steps on the homepage
   (reference layout). Scoped to .home-steps so how-it-works.html,
   which shares .steps-row/.step-item, is unaffected. */
.home-steps .step-item + .step-item { border-left: 1px solid var(--border); padding-left: 32px; }

/* Pricing card: one gold-bordered card (reference layout), replacing
   the separate gold + renewal banners on the homepage. All copy is
   the same as the banners it replaces. */
.price-hero-card {
  border: 1px solid rgba(245, 189, 58, 0.65);
  border-radius: 16px; padding: 28px 32px;
  background: linear-gradient(180deg, rgba(245, 189, 58, 0.09), rgba(245, 189, 58, 0.02));
}
.phc-top { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.phc-bundle { display: flex; gap: 20px; align-items: center; flex: none; }
.phc-bundle-icon { color: var(--gold); flex: none; }
.phc-amount { font-size: 56px; font-weight: 800; color: var(--gold); line-height: 1; }
.phc-bundle-label { color: var(--text); font-weight: 700; font-size: 17px; margin-top: 6px; white-space: nowrap; }
.phc-seats { flex: 1; min-width: 280px; border-left: 1px solid rgba(245, 189, 58, 0.35); padding-left: 32px; }
.phc-seats p { margin: 0 0 8px; color: var(--text); font-size: 18px; }
.phc-seats p:last-child { margin-bottom: 0; }
.phc-seats strong { color: #fff; }
.phc-seats p.phc-seat-def { color: var(--secondary); font-size: 15px; }
.phc-bottom {
  display: flex; gap: 32px; flex-wrap: wrap;
  border-top: 1px solid rgba(245, 189, 58, 0.35);
  margin-top: 24px; padding-top: 20px;
}
.phc-renew, .phc-keep { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 260px; }
.phc-renew-icon, .phc-keep-icon { color: var(--cyan); flex: none; margin-top: 2px; }
.phc-renew p, .phc-keep p { margin: 0; color: var(--secondary); font-size: 15px; }
.phc-renew strong { color: var(--text); }
.phc-keep { border-left: 1px solid rgba(245, 189, 58, 0.35); padding-left: 32px; }

/* Closing banner: a blue-tinted band (reference layout). */
.cta-band {
  border: 1px solid rgba(34, 199, 232, 0.35);
  border-radius: 16px; padding: 40px 32px;
  background:
    radial-gradient(600px 220px at 50% -40%, rgba(27, 155, 216, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(27, 155, 216, 0.10), rgba(34, 199, 232, 0.03));
}

/* Homepage theme: responsive overrides (dividers off when stacked). */
@media (max-width: 960px) {
  .home-steps .step-item + .step-item { border-left: none; padding-left: 0; }
  .phc-seats { border-left: none; padding-left: 0; }
  .phc-keep { border-left: none; padding-left: 0; }
  .phc-amount { font-size: 44px; }
}
@media (max-width: 640px) {
  .price-hero-card { padding: 22px; }
  .phc-bundle-label { white-space: normal; }
  .cta-band { padding: 32px 22px; }
}
