/* ==========================================================================
   Trade Sim Labs — site styles
   Light, classic look: white and soft grey pages, deep navy, trusted blue.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f4f6f9;
  --bg-3: #eaeef3;
  --panel: #ffffff;
  --line: #e1e6ed;
  --line-2: #cbd4df;
  --navy: #0b2340;
  --navy-2: #12345c;
  --text: #1a2738;
  --muted: #4c5b6e;
  --dim: #78869a;
  --accent: #1f5fae;
  --accent-hi: #1f5fae;
  --accent-dark: #174a8a;
  --accent-soft: #e9f0f9;
  --ok: #1e7d4f;
  --ok-soft: #e7f4ed;
  --bad: #b3261e;
  --bad-soft: #fbeceb;
  --radius: 8px;
  --radius-lg: 10px;
  --max: 1180px;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(11, 35, 64, 0.06), 0 1px 3px rgba(11, 35, 64, 0.05);
  --shadow: 0 2px 4px rgba(11, 35, 64, 0.04), 0 12px 32px rgba(11, 35, 64, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.07rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(31, 95, 174, 0.45); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.45rem); }
h3 { font-weight: 600; font-size: 1.28rem; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 12px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
header.site.scrolled { box-shadow: 0 2px 12px rgba(11, 35, 64, 0.08); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand svg .lg-hex { fill: var(--navy); stroke: var(--navy); }
.brand span { font: 700 1.3rem/1 var(--font-head); letter-spacing: -0.01em; }
.brand em { font: inherit; font-style: normal; color: var(--accent); }

nav.main { display: flex; align-items: center; gap: 2px; }
nav.main a { color: var(--text); font-weight: 600; font-size: 1rem; padding: 8px 14px; border-radius: 6px; }
nav.main a:hover { color: var(--accent); text-decoration: none; }
nav.main a.active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
nav.main .btn { margin-left: 12px; padding: 10px 18px; color: #fff; box-shadow: none; border-radius: 6px; }
nav.main .btn:hover { color: #fff; background: var(--accent-dark); }

.nav-toggle { display: none; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2); color: var(--navy); border-radius: 6px; padding: 8px 12px; font: 600 0.95rem var(--font-body); cursor: pointer; }
.nav-toggle .bars { width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -5px; } .nav-toggle .bars::after { top: 5px; }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 6px; font: 700 1.02rem var(--font-body);
  border: 1px solid transparent; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line-2); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */
.eyebrow { display: block; font: 700 0.8rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.sub { color: var(--muted); max-width: 62ch; font-size: 1.1rem; margin-top: 14px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 88px 0 96px; background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 0.8fr 1.3fr; gap: 48px; align-items: center; }
.hero-grid > *, .feature > *, .founder > *, .product > *, .contact-grid > *, .grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.7rem); margin-bottom: 22px; max-width: 15ch; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-bottom: 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.98rem; font-weight: 600; }
.hero-meta svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Simulator screen illustration (stays dark: it is a picture of the software) */
.sim-window { background: #111b2e; border: 1px solid #0b2340; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; color: #9badc6; }
.sim-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #1f2b44; background: #0b1424; font: 600 0.76rem var(--font-mono); color: #6c7f9b; }
.sim-bar .dots { display: flex; gap: 6px; }
.sim-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #24324d; display: block; }
.sim-bar .title { color: #9badc6; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-bar .rec { color: #8fb6e8; }
.sim-body { display: grid; grid-template-columns: 1.25fr 1fr; }
.sim-scene { padding: 16px; border-right: 1px solid #1f2b44; }
.sim-scene svg { width: 100%; height: auto; }
.sim-side { padding: 16px; display: grid; gap: 12px; align-content: start; font-size: 0.82rem; }
.sim-label { font: 700 0.66rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #6c7f9b; margin-bottom: 6px; }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.readout { background: #0b1424; border: 1px solid #1f2b44; border-radius: 6px; padding: 8px 10px; }
.readout b { display: block; font: 700 1rem var(--font-mono); color: #eaf0f8; }
.readout small { color: #6c7f9b; font-size: 0.7rem; }
.readout.alert b { color: #ffc247; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tasks li { display: flex; align-items: center; gap: 8px; color: #9badc6; }
.tasks li::before { content: ""; width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid #2a3a58; flex: none; }
.tasks li.done { color: #6c7f9b; text-decoration: line-through; }
.tasks li.done::before { background: #4fd18b; border-color: #4fd18b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230a1220' stroke-width='2'/%3E%3C/svg%3E"); }
.tasks li.now { color: #eaf0f8; font-weight: 600; }
.tasks li.now::before { border-color: #5b9be6; }
.sim-toast { display: flex; gap: 8px; align-items: flex-start; background: rgba(255,194,71,0.08); border: 1px solid rgba(255,194,71,0.3); color: #ffd98a; border-radius: 6px; padding: 9px 10px; font-size: 0.78rem; line-height: 1.45; }
.sim-toast svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.figure-note { margin-top: 12px; font-size: 0.85rem; color: var(--dim); text-align: center; }

/* --------------------------------------------------------------------------
   Audience strip
   -------------------------------------------------------------------------- */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip .wrap { display: flex; align-items: center; gap: 18px 40px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; justify-content: space-between; }
.strip .label { font: 700 0.78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 0; padding: 0; }
.strip li { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; }
.strip li svg { width: 20px; height: 20px; color: var(--accent); }

/* --------------------------------------------------------------------------
   Sections and cards
   -------------------------------------------------------------------------- */
section.block { padding: 96px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.tight { padding: 64px 0; }

.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, border-color .2s ease; }
a.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card p + p { margin-top: 12px; }
.icon { width: 48px; height: 48px; border-radius: 8px; margin-bottom: 20px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.icon svg { width: 24px; height: 24px; }

.tag { display: inline-block; font: 700 0.74rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 16px; }
.tag.live { background: var(--ok-soft); color: var(--ok); }
.tag.dev { background: var(--accent-soft); color: var(--accent); }
.tag.plan { background: var(--bg-3); color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding-left: 34px; position: relative; color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.2' fill='none' stroke='%231f5fae' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.checks li span { display: block; color: var(--muted); font-size: 1rem; font-weight: 400; margin-top: 2px; }

/* Facts band */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.fact { padding: 32px 28px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font: 700 clamp(2rem, 3vw, 2.6rem)/1 var(--font-head); color: var(--navy); margin-bottom: 10px; }
.fact b em { color: var(--accent); font-style: normal; }
.fact span { color: var(--muted); font-size: 1rem; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-media { order: -1; }
.feature h2 { margin-bottom: 16px; }
.feature .sub { margin: 0 0 28px; }
.feature-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }

/* Fault-finding checklist illustration */
.flow { display: grid; gap: 10px; }
.flow-step { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 0.97rem; }
.flow-step .n { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; background: var(--bg-2); font: 700 0.9rem var(--font-body); color: var(--muted); }
.flow-step b { display: block; font-weight: 700; color: var(--navy); }
.flow-step small { color: var(--dim); font-size: 0.88rem; }
.flow-step .st { font: 700 0.72rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; background: var(--bg-2); }
.st.ok { color: var(--ok); background: var(--ok-soft); }
.st.miss { color: var(--bad); background: var(--bad-soft); }
.st.cur { color: var(--accent); background: var(--accent-soft); }
.flow-step.is-miss { border-color: #efc4c1; }
.flow-step.is-cur { border-color: #b7cdea; box-shadow: 0 0 0 3px var(--accent-soft); }

/* Browser illustration */
.devices { display: grid; gap: 14px; }
.browser { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.browser-bar .dots { display: flex; gap: 5px; } .browser-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.browser-bar .url { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 3px 10px; font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.browser-bar .url svg { width: 11px; height: 11px; color: var(--ok); }
.browser-body { padding: 18px; display: grid; gap: 10px; }
.skel { height: 10px; border-radius: 3px; background: var(--bg-3); }
.browser-body .play { display: grid; place-items: center; aspect-ratio: 16/7; border-radius: 6px; background: #111b2e; }
.browser-body .play span { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.browser-body .play svg { width: 20px; height: 20px; color: var(--navy); margin-left: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 0.88rem var(--font-body); color: var(--navy); background: var(--bg-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 4px; display: inline-flex; gap: 6px; align-items: center; }
.chip svg { width: 13px; height: 13px; color: var(--ok); }

/* Numbered steps */
.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 700 1.1rem var(--font-head); margin-bottom: 20px; }

/* Credibility block */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.badge-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.seal { width: 80px; height: 80px; margin-bottom: 24px; color: var(--navy); }
.seal path { fill: var(--accent-soft); }
.badge-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.badge-card p { color: var(--muted); }
.badge-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1rem; }
.badge-card dt { color: var(--dim); }
.badge-card dd { margin: 0; color: var(--navy); font-weight: 600; }

/* Simulator cards */
.sim-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; }
.sim-card:hover { text-decoration: none; }
.sim-card .art { aspect-ratio: 16 / 8; border-bottom: 1px solid var(--line); display: grid; place-items: center; background: var(--bg-2); }
.sim-card .art svg { width: 40%; max-width: 150px; height: auto; color: var(--dim); }
.sim-card.featured .art { background: var(--accent-soft); }
.sim-card.featured .art svg { color: var(--accent); }
.sim-card .body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.sim-card .body p { flex: 1; }
.sim-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--dim); }

/* Simulator detail */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.product h2 { margin-bottom: 14px; }
.spec { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.spec div { padding: 16px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.spec div:nth-child(2n) { border-right: 0; }
.spec div:nth-last-child(-n+2) { border-bottom: 0; }
.spec small { display: block; color: var(--dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 4px; }
.spec b { font-weight: 600; color: var(--navy); }

/* Roadmap */
.roadmap { display: grid; }
.road-item { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line-2); }
.road-item:last-child { border-bottom: 1px solid var(--line-2); }
.road-item .when { font: 700 0.8rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 6px; }
.road-item h3 { margin-bottom: 8px; }
.road-item p { color: var(--muted); max-width: 62ch; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 860px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 600 1.18rem var(--font-head); color: var(--navy); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-body); color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 70ch; }

/* Pull statement */
.statement { font: 600 clamp(1.6rem, 2.8vw, 2.2rem)/1.3 var(--font-head); color: var(--navy); max-width: 30ch; }
.statement em { color: var(--accent); font-style: italic; }

/* Call to action */
.cta-band { padding: 96px 0; }
.cta-box { border-radius: var(--radius-lg); padding: 56px 64px; background: var(--navy); color: #d6e0ec;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; }
.cta-box h2 { color: #fff; margin-bottom: 12px; }
.cta-box p { color: #c3d0e0; max-width: 52ch; }
.cta-box .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-box .btn-primary { background: #fff; color: var(--navy); }
.cta-box .btn-primary:hover { background: #e8eef6; }
.cta-box .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-box .btn-ghost:hover { border-color: #fff; }

/* --------------------------------------------------------------------------
   Inner page header
   -------------------------------------------------------------------------- */
.page-head { padding: 72px 0 64px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin-bottom: 18px; max-width: 20ch; }
.page-head .lead { max-width: 62ch; }
.crumbs { font-size: 0.92rem; color: var(--dim); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }

/* --------------------------------------------------------------------------
   Demo
   -------------------------------------------------------------------------- */
.frame-box { background: #111b2e; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; position: relative; box-shadow: var(--shadow); }
.frame-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.frame-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); background: var(--bg-2); }
.frame-fallback > div { max-width: 440px; }
.frame-fallback .ring { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.frame-fallback .ring svg { width: 30px; height: 30px; }
.frame-fallback h3 { font-size: 1.5rem; margin-bottom: 10px; }
.frame-fallback .btn { margin-top: 22px; }
.frame-box.loaded .frame-fallback { display: none; }
.demo-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; margin-top: 18px; color: var(--dim); font-size: 0.95rem; }
.demo-meta span { display: inline-flex; align-items: center; gap: 8px; }
.demo-meta svg { width: 16px; height: 16px; }
.fs-btn { background: #fff; border: 1px solid var(--line-2); color: var(--navy); border-radius: 6px; padding: 7px 12px; font: 600 0.92rem var(--font-body); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.fs-btn:hover { border-color: var(--navy); }
.fs-btn[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
form.contact { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 700; font-size: 0.97rem; display: grid; gap: 8px; color: var(--navy); }
label .opt { color: var(--dim); font-weight: 400; }
input, select, textarea { background: #fff; border: 1px solid var(--line-2); color: var(--text); border-radius: 6px; padding: 12px 14px; font: inherit; font-weight: 400; width: 100%; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #9aa6b5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 95, 174, 0.15); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%234c5b6e' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center/12px no-repeat; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 4px; }
.form-foot small { color: var(--dim); font-size: 0.92rem; }
.form-status { display: none; padding: 14px 16px; border-radius: 6px; font-size: 1rem; }
.form-status.show { display: block; }
.form-status.ok { background: var(--ok-soft); border: 1px solid #b9dcc8; color: var(--ok); }
.form-status.err { background: var(--bad-soft); border: 1px solid #efc4c1; color: var(--bad); }
.aside-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.aside-card + .aside-card { margin-top: 18px; }
.aside-card h3 { margin-bottom: 16px; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: ms; }
.mini-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; color: var(--muted); }
.mini-steps li::before { counter-increment: ms; content: counter(ms); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 700 0.95rem var(--font-head); }
.mini-steps b { color: var(--navy); display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer.site { background: var(--navy); color: #b8c5d6; font-size: 1rem; }
footer.site .brand { color: #fff; }
footer.site .brand svg .lg-hex { fill: var(--accent); stroke: var(--accent); }
footer.site .brand em { color: #8fb6e8; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 64px 0 52px; }
.foot-brand p { margin-top: 16px; max-width: 34ch; color: #9fb0c5; }
footer.site h4 { font: 700 0.8rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer.site ul a { color: #c3d0e0; }
footer.site ul a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,0.12); color: #8fa1b8; font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Gentle fade-in (only when JS is running)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid, .feature, .founder, .product, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature.flip .feature-media { order: 0; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .cta-box { grid-template-columns: 1fr; padding: 48px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  nav.main { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: 0 12px 24px rgba(11,35,64,0.08); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px; }
  nav.main a.active { box-shadow: none; background: var(--accent-soft); border-radius: 6px; }
  nav.main .btn { margin: 8px 0 0; justify-content: center; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  section.block { padding: 68px 0; }
  .feature + .feature { margin-top: 68px; }
  .hero { padding: 56px 0 68px; }
  .page-head { padding: 56px 0 48px; }
  .road-item { grid-template-columns: 1fr; gap: 6px; }
  .cta-band { padding: 68px 0; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .brand span { font-size: 1.15rem; }
  .grid.four, .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .sim-body { grid-template-columns: 1fr; }
  .sim-scene { border-right: 0; border-bottom: 1px solid #1f2b44; }
  .hero .actions .btn, .cta-box .actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta-box { padding: 36px 24px; }
  form.contact { padding: 24px; }
  form.contact .row { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec div { border-right: 0; }
  .spec div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .foot-top { grid-template-columns: 1fr 1fr; padding: 52px 0 36px; }
  .card { padding: 24px; }
  .badge-card { padding: 30px; }
  .strip .wrap { justify-content: flex-start; }
}

/* Real screenshot in the home page hero */
.sim-shot { display: block; width: 100%; height: auto; }
.shot-link { position: relative; display: block; cursor: zoom-in; }
.shot-link:hover { text-decoration: none; }
.shot-link img { transition: transform .3s ease; }
.shot-link:hover img { transform: scale(1.015); }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: rgba(11,35,64,.85); color: #fff; font-size: .82rem; font-weight: 600; opacity: 0; transition: opacity .2s; }
.shot-link:hover .zoom-hint, .shot-link:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }

/* Full-size picture viewer */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6,16,30,.88); cursor: zoom-out; opacity: 0; transition: opacity .2s; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.28); }

/* Screenshot slideshow */
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 10px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gallery-nav { display: none; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.gallery.multi .gallery-nav { display: flex; }
.gallery.multi .slide .figure-note { margin-bottom: 0; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; }
.g-btn:hover { border-color: var(--accent); color: var(--accent); }
.g-dots { display: flex; gap: 8px; }
.g-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line-2); cursor: pointer; }
.g-dots button[aria-current="true"] { background: var(--accent); width: 22px; border-radius: 5px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }

/* --------------------------------------------------------------------------
   Home page showcase hero (centred headline, big product shot on a navy band)
   -------------------------------------------------------------------------- */
.hero-show { position: relative; padding: 76px 0 0; background: #f3f6fa; border-bottom: 0; overflow: hidden; }
.hero-show::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11,35,64,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,35,64,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%); }
.hero-intro { position: relative; text-align: center; }
.hero-intro h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); line-height: 1.03; letter-spacing: -0.02em; max-width: 20ch; margin: 0 auto 24px; }
.hero-intro .lead { margin: 0 auto 36px; max-width: 60ch; }
.hero-intro .actions { justify-content: center; }
.hero-intro .hero-meta { justify-content: center; border-top: 0; margin-top: 28px; padding-top: 0; }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; }

.announce { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 5px 16px 5px 5px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--navy); font-size: 0.93rem; font-weight: 600; box-shadow: var(--shadow-sm); transition: border-color .15s; }
.announce:hover { text-decoration: none; border-color: var(--accent); }
.announce .pill { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.announce .go { color: var(--accent); transition: transform .15s; }
.announce:hover .go { transform: translateX(3px); }

.showcase { position: relative; margin-top: 64px; background: linear-gradient(180deg, transparent 0, transparent 230px, var(--navy) 230px); }
.showcase-stage { position: relative; max-width: 1060px; margin: 0 auto; }
.showcase-stage::before { content: ""; position: absolute; left: 6%; right: 6%; top: 8%; height: 70%; background: rgba(5, 15, 30, .55); filter: blur(46px); border-radius: 40px; }
.showcase .gallery { position: relative; z-index: 1; }
.showcase .sim-window { padding: 8px; background: #0e1f36; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; box-shadow: none; }
.showcase .sim-shot { border-radius: 8px; }
.showcase .zoom-hint { right: 20px; bottom: 20px; }
.showcase .figure-note { color: #9fb0c5; margin-top: 16px; }
.showcase .g-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.showcase .g-btn:hover { border-color: #fff; color: #fff; }
.showcase .g-dots button { background: rgba(255,255,255,.3); }
.showcase .g-dots button[aria-current="true"] { background: #fff; }

.callout { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; max-width: 270px; padding: 12px 18px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -12px rgba(11,35,64,.35); text-align: left; }
.callout .ci { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.callout b { display: block; color: var(--navy); font-size: 0.98rem; line-height: 1.25; }
.callout small { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
.callout.c1 { left: -64px; top: 52%; }
.callout.c2 { right: -64px; top: 9%; }

.hero-audience { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding: 48px 0 56px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-audience .label { font: 700 0.76rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #8fa3bd; }
.hero-audience ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; margin: 0; padding: 0; list-style: none; }
.hero-audience li { display: inline-flex; align-items: center; gap: 10px; color: #e6edf6; font-weight: 600; }
.hero-audience svg { width: 20px; height: 20px; color: #8fb6e8; flex: none; }

@media (max-width: 1240px) { .callout { display: none; } }
@media (max-width: 860px) {
  .hero-show { padding-top: 52px; }
  .showcase { margin-top: 48px; background: linear-gradient(180deg, transparent 0, transparent 90px, var(--navy) 90px); }
  .hero-audience { justify-content: flex-start; }
  .hero-audience ul { justify-content: flex-start; flex-direction: column; gap: 12px; }
  .announce { font-size: 0.85rem; }
}
@media (max-width: 600px) {
  .hero-intro { text-align: left; }
  .hero-intro h1, .hero-intro .lead { margin-left: 0; }
  .hero-intro .hero-meta { justify-content: flex-start; }
  .showcase .sim-window { padding: 5px; border-radius: 10px; }
  .showcase .sim-shot { border-radius: 6px; }
}
.hero-intro h1, .hero-intro h1 .hl { text-wrap: balance; }
.hero-intro h1 .hl { display: inline-block; }

/* Plain text pages (privacy policy) */
.prose { max-width: 760px; }
.prose .updated { color: var(--dim); font-size: 0.95rem; margin-bottom: 8px; }
.prose h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { color: var(--muted); padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }

/* Pricing cards (For Schools page) */
.price-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .price-tag { align-self: flex-start; font: 700 0.72rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.price-card .price { font: 700 2.2rem/1 var(--font-head); color: var(--navy); margin: 10px 0 14px; }
.price-card > p { color: var(--muted); }
.price-card .checks { margin: 18px 0 24px; }
.price-card .btn { margin-top: auto; justify-content: center; }
.checks.small li { font-size: 0.98rem; }

/* Real screenshot crops used in the home page feature rows */
.shot-figure { margin: 0; }
.shot-crop { position: relative; display: block; overflow: hidden; background: #0e1f36; }
.shot-crop img { position: absolute; max-width: none; height: auto; transition: transform .4s ease; }
.shot-crop:hover img { transform: scale(1.03); }
.crop-meter { aspect-ratio: 940 / 495; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow); cursor: zoom-in; }
.crop-meter img { width: 151.2%; right: 0; bottom: 0; transform-origin: right bottom; }
.crop-call { aspect-ratio: 950 / 500; }
.crop-call img { width: 149.6%; left: 0; top: 0; transform-origin: left top; }
.browser.real { box-shadow: var(--shadow); }
.play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--navy); font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: background .15s; }
.play-badge svg { width: 16px; height: 16px; color: var(--accent); }
.crop-call:hover .play-badge { background: #fff; }
.crop-call:hover { text-decoration: none; }
.feature.flip .shot-figure { order: -1; }
@media (max-width: 1020px) { .feature.flip .shot-figure { order: 0; } }

/* Demo page: note for phone and tablet visitors */
.device-note { display: none; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #f0d58a; border-radius: var(--radius); background: #fff8e6; color: #5c4710; font-size: 0.98rem; line-height: 1.5; }
.device-note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: #a07a12; }
.device-note b { color: #3f300a; }
@media (max-width: 860px), (pointer: coarse) { .device-note { display: flex; } }
.foot-bottom a { color: #c3d0e0; }
.foot-bottom a:hover { color: #fff; }
.play-badge { white-space: nowrap; }
@media (max-width: 600px) { .play-badge { padding: 9px 15px; font-size: 0.92rem; } }
