/* Semper Ed website (ed.semperfi.uk): the design system for the product site, the sign-in page and the account
   pages. Semper Ed's brand: school green, Semper gold and charcoal; the Ever-Open Book; Cinzel for the wordmark,
   Lexend for headings, Source Sans 3 for text. Light and dark follow the device, or the switch in the header. */

/* ---------- Tokens ---------- */
:root {
  --green: #0c4a2e; --green-2: #12623d; --green-3: #1d7a4f; --green-soft: #e7f1ea;
  --gold: #c9a45c; --gold-2: #d8b571; --gold-ink: #7a5c22; --gold-soft: #f6eedd;
  --char: #16191d; --char-2: #1f2328; --navy: #0f1d17;
  --bg: #f6f7f5; --surface: #ffffff; --surface-2: #eef2ee; --ink: #16191d; --ink-2: #3a4148; --muted: #5b636b;
  --rule: rgba(22, 25, 29, .09); --rule-2: #c3c9c5;
  --ok: #12623d; --link: #12623d; --warn: #9a6b12; --err: #9b2c2c;
  --display: 'Cinzel', Georgia, serif; --head: 'Lexend', system-ui, sans-serif; --body: 'Source Sans 3', system-ui, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(22,25,29,.05), 0 10px 28px -16px rgba(22,25,29,.22);
  --shadow-2: 0 2px 4px rgba(22,25,29,.05), 0 28px 60px -24px rgba(22,25,29,.34);
  --space: clamp(64px, 9vw, 120px);
  --silver: linear-gradient(180deg, #f4f6f8 0%, #c9ced4 48%, #9aa3ad 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d1012; --surface: #161a1e; --surface-2: #1d2328; --ink: #eceeef; --ink-2: #c9cdd1; --muted: #a2a9b0; --rule: rgba(255,255,255,.08); --rule-2: #39414a; --green-soft: rgba(95,194,142,.12); --gold-soft: rgba(201,164,92,.14); --ok: #5fc28e; --link: #7fd4a6; --gold-ink: #d9b873; --err: #f08a8a; --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -16px rgba(0,0,0,.6); --shadow-2: 0 28px 60px -24px rgba(0,0,0,.7); }
}
:root[data-theme="dark"] { --bg: #0d1012; --surface: #161a1e; --surface-2: #1d2328; --ink: #eceeef; --ink-2: #c9cdd1; --muted: #a2a9b0; --rule: rgba(255,255,255,.08); --rule-2: #39414a; --green-soft: rgba(95,194,142,.12); --gold-soft: rgba(201,164,92,.14); --ok: #5fc28e; --link: #7fd4a6; --gold-ink: #d9b873; --err: #f08a8a; --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px -16px rgba(0,0,0,.6); --shadow-2: 0 28px 60px -24px rgba(0,0,0,.7); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; }
h2 { font: 600 clamp(1.9rem, 3.8vw, 3rem)/1.08 var(--head); letter-spacing: -.03em; }
h3 { font: 600 1.2rem/1.25 var(--head); letter-spacing: -.01em; }
section { padding: var(--space) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 700; color: var(--gold-ink); margin: 0 0 14px; }
.eyebrow.light { color: var(--gold); }
.sub { color: var(--muted); font-size: 1.12rem; max-width: 64ch; margin: 0; }
.sub.light { color: #c4ccc7; }
.head { max-width: 780px; margin-bottom: 44px; }
.small-print { margin: 0; font-size: .85rem; color: var(--muted); }
.small-print a { color: var(--link); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 1.02rem; }
.btn.gold { background: var(--gold); color: #1b1406; }
.btn.gold:hover { background: var(--gold-2); }
.btn.line { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn.line:hover { border-color: #fff; }
.btn.ghost { color: #e2e5e8; background: transparent; }
.btn.ghost:hover { color: #fff; }
.btn.line-dark { border-color: var(--green-2); color: var(--green-2); background: transparent; }
:root[data-theme="dark"] .btn.line-dark { border-color: #5fc28e; color: #5fc28e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.line-dark { border-color: #5fc28e; color: #5fc28e; } }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- Pills, tags, ticks ---------- */
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; vertical-align: 2px; }
.pill.ok { background: var(--green-soft); color: var(--ok); }
.pill.soon { background: var(--gold-soft); color: var(--gold-ink); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--ok); margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.ticks.cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.mark { width: 38px; height: 38px; flex: none; border-radius: 10px; background: url(/ed/favicon.svg) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(201,164,92,.55); }
.word strong { display: block; font: 700 1.15rem var(--display); letter-spacing: .04em; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.word small { display: block; font-size: .66rem; letter-spacing: .08em; color: #9aa0a7; text-transform: uppercase; white-space: nowrap; }
@media (min-width: 1181px) { .nav .word small { display: none; } }

/* ---------- Navigation ---------- */
.nav, .top { position: sticky; top: 0; z-index: 50; background: rgba(15, 20, 18, .9); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-in, .top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu > a:not(.btn), .drop-btn { color: #d4d7da; text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; padding: 10px 11px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.menu > a:not(.btn):hover, .drop-btn:hover, .drop-btn[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.06); }
.drop { position: relative; }
.drop-btn::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.drop-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; padding: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow-2); display: none; }
.drop-panel.open { display: grid; }
.drop-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.drop-panel a:hover { background: var(--surface-2); }
.drop-panel b { font-weight: 600; font-size: .95rem; } .drop-panel span { font-size: .84rem; color: var(--muted); }
.nav-sep { width: 1px; height: 24px; background: rgba(255,255,255,.14); margin: 0 6px; }
.menu .btn { margin-left: 4px; }
.theme-btn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #e6e8ea; cursor: pointer; }
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: transparent; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: #fff; margin: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; } .bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); overflow: hidden; position: relative;
  background: radial-gradient(900px 560px at 88% 4%, rgba(18,98,61,.55) 0%, rgba(15,20,18,0) 62%), radial-gradient(760px 460px at 0% 100%, rgba(201,164,92,.16) 0%, rgba(15,20,18,0) 60%), linear-gradient(180deg, #0f1412 0%, #0b0e0d 100%); }
.hero-in { display: grid; grid-template-columns: .95fr 1.15fr; gap: 56px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero .eyebrow { color: var(--gold); letter-spacing: .14em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.2); }
.hero h1 { font: 600 clamp(2.4rem, 4.8vw, 4rem)/1.04 var(--head); letter-spacing: -.04em; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { display: block; background: linear-gradient(180deg, #ecd6a4, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.lead { font-size: 1.16rem; color: #cdd3cf; max-width: 56ch; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #c4ccc7; font-size: .95rem; }
.hero-proof li::before { content: '◆'; color: var(--gold); font-size: .62rem; margin-right: 8px; vertical-align: 2px; }
.hero-visual { position: relative; margin: 0; padding: 26px 0 30px; }
.browser { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); transform: perspective(1800px) rotateY(-5deg) rotateX(2deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #eef1ef; border-bottom: 1px solid #dfe4e0; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d8d4; }
.browser-bar span { margin-left: 12px; font-size: .74rem; color: #6a726d; background: #fff; border-radius: 6px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float { position: absolute; background: rgba(255,255,255,.96); color: #16191d; border-radius: 14px; padding: 10px 14px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); display: grid; gap: 2px; min-width: 150px; animation: bob 6s ease-in-out infinite; }
.float span { font-size: .72rem; color: #5b636b; } .float b { font: 700 1.25rem var(--head); letter-spacing: -.02em; color: #0c4a2e; } .float b.ok { font-size: 1rem; }
.float .bar { display: block; height: 5px; border-radius: 9px; background: #e5ebe7; margin-top: 4px; } .float .bar i { display: block; height: 100%; border-radius: 9px; background: var(--gold); } .float .bar i.w38 { width: 38.3%; }
.f1 { top: 0; left: -22px; } .f2 { top: 34%; left: -40px; animation-delay: -1.5s; } .f3 { bottom: 52px; left: 6%; animation-delay: -3s; } .f4 { top: 6%; right: -16px; animation-delay: -2s; } .f5 { bottom: 64px; right: -10px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-visual figcaption { position: absolute; bottom: 0; right: 0; font-size: .74rem; color: #93a097; }

/* ---------- Statistics ---------- */
.stats { padding: 0; margin-top: -1px; background: #0b0e0d; color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.08); }
.stat { padding: 30px 24px; border-right: 1px solid rgba(255,255,255,.08); display: grid; gap: 6px; }
.stat:last-child { border-right: 0; }
.stat b { font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--head); letter-spacing: -.03em; color: var(--gold); }
.stat span { color: #b7c0ba; font-size: .95rem; }

/* ---------- Tour ---------- */
.tour-grid { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.tour-grid > * { min-width: 0; }
.video { margin: 0; background: #0b0e0d; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.video video { width: 100%; height: auto; display: block; aspect-ratio: 9 / 16; background: #0b0e0d; }
.video figcaption { color: #b7c0ba; font-size: .85rem; padding: 10px 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--surface-2); border-radius: 999px; width: fit-content; max-width: 100%; margin-bottom: 18px; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.tab-panel img { border-radius: var(--r); box-shadow: var(--shadow-2); border: 1px solid var(--rule); }
.tab-panel p { color: var(--muted); margin: 14px 0 18px; }
.tab-panel[hidden] { display: none; }

/* ---------- Features (alternating) ---------- */
.features { background: var(--surface); }
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 44px 0; border-top: 1px solid var(--rule); }
.feature > * { min-width: 0; }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip .f-copy { order: 2; }
.f-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; margin-bottom: 18px; }
.f-shot { margin: 0; } .f-shot img { border-radius: var(--r); box-shadow: var(--shadow-2); border: 1px solid var(--rule); }

/* ---------- Portals ---------- */
.portal-grid { display: grid; grid-template-columns: 1.3fr 1.3fr .8fr .8fr; gap: 20px; align-items: stretch; }
.portal { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px 18px 22px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.portal img { border-radius: 12px; border: 1px solid var(--rule); margin-bottom: 8px; }
.portal.tall img { width: min(200px, 100%); align-self: center; border-radius: 22px; border: 5px solid #0b0c0e; }
.portal p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Command centre ---------- */
.command { color: #fff; background: radial-gradient(900px 520px at 10% 0%, rgba(18,98,61,.5) 0%, rgba(15,20,18,0) 60%), linear-gradient(180deg, #0f1412, #0b0e0d); }
.command h2 { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.command-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.command-in > * { min-width: 0; }
.cmd-list { list-style: none; padding: 0; margin: 26px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; color: #d5dbd7; }
.cmd-list li::before { content: '◆'; color: var(--gold); font-size: .62rem; margin-right: 10px; vertical-align: 2px; }
.cmd-shot { margin: 0; } .cmd-shot img { border-radius: var(--r); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }

/* ---------- Offline ---------- */
.flow { margin: 0 0 32px; color: var(--muted); }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow-node rect { fill: var(--surface); stroke: var(--rule-2); stroke-width: 1.5; }
.flow-node.accent rect { fill: var(--green); stroke: var(--green); }
.flow-node text { text-anchor: middle; font: 600 19px var(--head); fill: var(--ink); }
.flow-node text.small { font: 400 15px var(--body); fill: var(--muted); }
.flow-node.accent text { fill: #fff; } .flow-node.accent text.small { fill: #cfe0d6; }
.flow-arrows path { stroke: currentColor; stroke-width: 2.5; fill: none; }
.off-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.off-grid article { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-1); }
.off-grid article:last-child { background: var(--gold-soft); border-color: transparent; }
.off-grid p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Networks ---------- */
.networks { background: var(--surface); }
.net-in { display: grid; gap: 28px; }
.net-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.net-cards article { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 26px; background: var(--bg); display: grid; gap: 10px; align-content: start; }
.net-cards p { margin: 0; color: var(--muted); }
.net-cards .pill { justify-self: start; }
.net-note { margin: 0; color: var(--muted); } .net-note a { color: var(--link); font-weight: 600; }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal-item { position: relative; padding: 0; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--surface); cursor: zoom-in; box-shadow: var(--shadow-1); text-align: left; min-width: 0; }
.gal-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.03); }
.gal-item span { display: block; padding: 12px 14px; font-weight: 600; color: var(--ink); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(5, 8, 7, .82); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: auto; border-radius: 12px; }
.lb-cap { color: #e6e8ea; text-align: center; margin: 12px 0 0; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 1.6rem; cursor: pointer; }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 64px 22px 24px; position: relative; display: grid; gap: 6px; align-content: start; box-shadow: var(--shadow-1); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #1b1406; font-weight: 700; display: grid; place-items: center; }
.steps b { font: 600 1.1rem var(--head); } .steps span { color: var(--muted); font-size: .96rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--surface); }
.bill-toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface-2); margin-top: 22px; }
.bill-toggle button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.bill-toggle button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.price-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; align-items: stretch; }
.price-card { position: relative; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 30px 28px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.price-card.main { background: linear-gradient(180deg, #0f1d17, #0b0e0d); color: #fff; border-color: transparent; box-shadow: var(--shadow-2); }
.price-card.main .ticks li { color: #d5dbd7; } .price-card.main .ticks li::before { border-color: var(--gold); } .price-card.main .per { color: #b7c0ba; }
.badge { position: absolute; top: -12px; left: 28px; background: var(--gold); color: #1b1406; font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { margin: 6px 0 0; } .price b { font: 600 clamp(2.2rem, 4vw, 3rem)/1 var(--head); letter-spacing: -.03em; }
.price-card.main .price b { color: var(--gold); }
.per { margin: 0 0 16px; color: var(--muted); }
.price-card .ticks { margin-bottom: 22px; flex: 1; }
.price-card .btn { align-self: flex-start; }
.calc { margin-top: 28px; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 26px 28px; background: var(--bg); display: grid; gap: 14px; }
.calc h3 { margin: 0; }
.calc-row { display: grid; grid-template-columns: auto 1fr 110px; gap: 16px; align-items: center; }
.calc-row label { font-weight: 600; }
.calc-row input[type=range] { accent-color: var(--green-2); min-height: 44px; width: 100%; }
.calc-row input[type=number] { font: inherit; padding: 10px 12px; border: 1.5px solid var(--rule-2); border-radius: 12px; background: var(--surface); color: var(--ink); width: 100%; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.calc-out div { background: var(--surface); border-radius: 14px; padding: 14px 16px; border: 1px solid var(--rule); }
.calc-out dt { font-size: .8rem; color: var(--muted); }
.calc-out dd { margin: 2px 0 0; font: 700 1.5rem var(--head); letter-spacing: -.02em; color: var(--ok); font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-in > * { min-width: 0; }
.faq-in .sub a { color: var(--link); font-weight: 600; }
.faq-list details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq-list summary { cursor: pointer; font: 600 1.06rem var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--gold-ink); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Demo and forms ---------- */
.demo { color: #fff; background: radial-gradient(900px 500px at 15% 0%, rgba(18,98,61,.5) 0%, rgba(0,0,0,0) 60%), #0d1210; }
.demo h2 { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-in, .start-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.demo-in > *, .start-in > * { min-width: 0; }
.demo-roles { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-roles li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: #e3e6e8; }
.have-code { margin-top: 26px; color: #c4ccc7; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-card { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow-2); }
.form-card h3 { margin: 0; font-size: 1.3rem; }
.form-card label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); min-width: 0; }
.form-card input, .form-card textarea, .form-card select { font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid var(--rule-2); border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%; min-height: 46px; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(18,98,61,.15); }
.form-card [aria-invalid="true"] { border-color: var(--err); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.which-demo { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.which-demo legend { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.form-card .which-demo label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--rule-2); border-radius: 999px; cursor: pointer; background: var(--bg); }
.form-card .which-demo label:has(input:checked) { border-color: var(--green-2); box-shadow: 0 0 0 2px rgba(18,98,61,.15); }
.form-card .which-demo input { min-height: auto; width: auto; }
.form-card .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.2em; } .form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--err); }
.mails { display: grid; margin: 14px 0; } .mails a { font-weight: 700; color: var(--link); font-size: 1.05rem; text-decoration: none; } .mails span { color: var(--muted); font-size: .9rem; }
.have-school { margin-top: 24px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Downloads, about ---------- */
.download { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--rule); }
.dl-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.dl-in h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.get-btns { display: flex; flex-wrap: wrap; gap: 10px; } .get-btns .btn[hidden] { display: none; }
.get-msg { min-height: 1.2em; color: var(--muted); font-size: .92rem; }
.get-help summary { cursor: pointer; font-weight: 600; } .get-help ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.about { padding: 72px 0; }
.about-in { max-width: 860px; } .about-in h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); } .about-in p { color: var(--muted); font-size: 1.1rem; margin: 0; } .about-in a { color: var(--link); font-weight: 600; }

/* ---------- Footer ---------- */
.footer, .foot { background: #0b0e0d; color: #a9afb5; padding: 56px 0 28px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { margin: 14px 0 0; max-width: 30ch; }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer h3 { font: 600 .82rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: #e6e8ea; margin: 0 0 6px; }
.footer a, .foot a { color: #c9cdd1; text-decoration: none; } .footer a:hover, .foot a:hover { color: #fff; }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Sign-in and account pages (signin.html, delete-account.html) ---------- */
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 4px 0 0; } .fw { font: 700 1.05rem var(--display); color: #e6e8ea; letter-spacing: .04em; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.signin-page { background: radial-gradient(1000px 600px at 70% 0%, #263a30 0%, rgba(22,25,29,0) 60%), var(--char); min-height: 100vh; display: flex; flex-direction: column; }
.signin-page .foot { background: transparent; padding: 34px 0; }
.menu-plain { display: flex; gap: 18px; align-items: center; } .menu-plain a:not(.btn) { color: #d4d7da; text-decoration: none; font-size: .9rem; }
.signin-main { flex: 1; display: grid; place-items: center; padding: 56px 16px; }
.signin-card { width: min(560px, 100%); min-width: 0; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(26px, 5vw, 44px); box-shadow: var(--shadow-2); }
.signin-card h1 { font: 600 clamp(1.6rem, 4vw, 2.1rem) var(--head); letter-spacing: -.015em; margin: 0 0 8px; }
.signin-card h2 { font-size: 1.2rem; margin-top: 22px; }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 700; color: var(--gold-ink); margin: 0 0 12px; }
.si-lead { color: var(--muted); margin: 0 0 22px; }
.si-form { display: grid; gap: 12px; } .si-form label { font-weight: 600; font-size: .9rem; } .si-form .btn { justify-self: start; }
.address { display: flex; align-items: center; border: 1.5px solid var(--rule-2); border-radius: 999px; padding: 4px 6px 4px 16px; background: var(--bg); }
.address input { border: 0; font: inherit; width: 160px; outline: none; background: transparent; color: var(--ink); }
.address span { color: var(--muted); padding-right: 10px; flex: none; }
.address.big { padding: 6px 8px 6px 16px; font-size: 1.1rem; } .address.big input { flex: 1; width: 100%; min-width: 0; font-size: 1.1rem; padding: 6px 0; }
.find-msg { margin: 0; color: var(--err); font-size: .9rem; }
.si-last { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.si-help { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
.si-help a, .si-last a { color: var(--link); font-weight: 600; }
ol.si-help { list-style: decimal; padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .menu-btn { display: inline-block; }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; max-height: calc(100vh - 72px); overflow: auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px 22px; background: #0f1412; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu.open { display: flex; }
  .drop-btn { width: 100%; text-align: left; }
  .drop-panel { position: static; box-shadow: none; margin: 4px 0 8px; min-width: 0; }
  .nav-sep { display: none; }
  .menu .btn { margin: 6px 0 0; }
  .theme-btn { align-self: flex-start; }
  .hero-in, .command-in, .demo-in, .start-in, .faq-in, .tour-grid, .dl-in { grid-template-columns: 1fr; }
  .tour-grid .video { max-width: 360px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; } .feature.flip .f-copy { order: 0; }
  .portal-grid { grid-template-columns: 1fr 1fr; }
  .off-grid, .steps { grid-template-columns: 1fr 1fr; }
  .net-cards, .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
  .browser { transform: none; }
  .f1 { left: 0; } .f2 { left: 0; } .f4 { right: 0; } .f5 { right: 0; }
}
@media (max-width: 720px) {
  .stats-in { grid-template-columns: 1fr 1fr; } .stat { border-bottom: 1px solid rgba(255,255,255,.08); } .stat:nth-child(2n) { border-right: 0; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .ticks.cols, .cmd-list { grid-template-columns: 1fr; }
  .row2, .row3, .calc-out { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr 96px; } .calc-row label { grid-column: 1 / -1; }
  .float { min-width: 0; padding: 8px 10px; } .float b { font-size: 1.05rem; } .f3, .f5 { display: none; }
  .word small { display: none; }
  .menu-plain a:not(.btn) { display: none; } .menu-plain .btn { padding: 0 14px; font-size: .85rem; }
  .signin-main { padding: 28px 16px; place-items: start center; }
}
@media (max-width: 520px) {
  .portal-grid, .off-grid, .steps, .gal-grid, .foot-grid { grid-template-columns: 1fr; }
  .tabs { border-radius: 16px; }
  .hero-visual figcaption { position: static; margin-top: 10px; }
  .btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
