/* ==========================================================================
   SMARA — marketing site
   Palette drawn from the SMARA School ERP logo: navy, blue, green, gold.
   ========================================================================== */

:root {
  /* Palette taken from the SMARA crest: navy, dark teal, antique gold, ivory */
  --navy-950: #08131f;
  --navy-900: #0d1d2e;
  --navy-800: #142a40;
  --navy-700: #1d3a55;
  --navy-100: #e5e8ec;
  --teal-700: #1f4b47;
  --teal-600: #2b605a;
  --teal-100: #e3ebe7;
  --brass-600: #9c7a44;
  --brass-500: #b08d57;
  --brass-400: #c9ab78;
  --brass-100: #efe7d8;
  --oxblood-500: #8a3b30;
  --oxblood-100: #f2e4e0;
  --cream: #f6f7f9;   /* subtle grey for alternate sections and fills */
  --paper: #ffffff;
  --ink: #14202c;
  --ink-2: #3a4550;
  --ink-3: #667085;
  --line: #e3e6ea;
  --line-2: #eef0f3;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(13, 29, 46, .05);
  --shadow: 0 12px 28px -18px rgba(13, 29, 46, .28);
  --shadow-lg: 0 30px 60px -30px rgba(8, 19, 31, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brass-100); color: var(--navy-900); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; font-weight: 400; color: var(--teal-600); }
h1.display { font-size: clamp(2.6rem, 5.8vw, 4.8rem); line-height: 1.04; }
h2.display { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.05; }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass-600);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy-900); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 6px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .98rem;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { --bg: var(--brass-500); --fg: var(--navy-900); }
.btn-gold:hover { --bg: var(--brass-400); box-shadow: none; }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(13, 29, 46, .18); }
.btn-ghost:hover { --bg: #fff; }
.btn-ghost-light { --bg: rgba(255,255,255,.06); --fg: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { --bg: rgba(255,255,255,.12); }
.btn-lg { padding: 17px 30px; font-size: 1.03rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand-mark { width: 50px; height: 50px; flex: none; object-fit: contain; }
.brand-name { display: block; font-family: "Manrope", var(--font-body); font-weight: 800; letter-spacing: .06em; font-size: 1.55rem; line-height: 1; }
.brand-sub { display: block; font-size: .74rem; letter-spacing: .03em; margin-top: 6px; font-weight: 500; opacity: .72; }
.brand-rule { width: 1px; height: 34px; background: currentColor; opacity: .2; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 9px 14px; border-radius: 6px; font-size: .93rem; font-weight: 500;
  color: rgba(255,255,255,.82); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: transparent; box-shadow: inset 0 -1px 0 var(--brass-400); border-radius: 0; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 20px; font-size: .92rem; }
.nav-login { color: rgba(255,255,255,.82); font-size: .93rem; font-weight: 500; padding: 9px 12px; }
.nav-login:hover { color: #fff; }
.nav.scrolled { background: rgba(13, 29, 46, .96); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: rgba(255,255,255,.08); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-right: -8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Light nav variant for pages whose header is light */
.nav.light .brand, .nav.light .nav-login, .nav.light .nav-toggle { color: var(--ink); }
.nav.light .nav-links a { color: var(--ink-2); }
.nav.light .nav-links a:hover, .nav.light .nav-links a[aria-current="page"] { color: var(--ink); background: transparent; box-shadow: inset 0 -1px 0 var(--brass-500); }
.nav.light.scrolled { background: rgba(255, 255, 255, .96); border-bottom-color: var(--line); }

.mobile-menu {
  position: fixed; inset: 76px 0 0 0; z-index: 49; background: var(--navy-900);
  padding: 24px; display: none; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-menu a { color: #fff; font-size: 1.25rem; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: 18px; }
body.menu-open .mobile-menu { display: flex; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: var(--navy-900); }
body.menu-open .nav.light .brand, body.menu-open .nav.light .nav-toggle { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-900);
  padding: 150px 0 0;
}
.hero::before { content: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--brass-400); }
.hero h1 { margin: 22px 0 24px; }
.hero h1 em { color: var(--brass-400); }
.hero .lead { color: rgba(255,255,255,.76); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.board-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; align-items: center; }
.board-chips span.label { font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: rgba(255,255,255,.5); text-transform: uppercase; margin-right: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.16); background: transparent;
  font-size: .86rem; font-weight: 600; color: #fff;
}
.chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--brass-400); }

/* Hero visual: product mock */
.hero-visual { position: relative; height: 560px; perspective: 1600px; }
.mock-window {
  position: absolute; top: 20px; left: 0; width: 640px; max-width: none;
  background: #f8f9fb; border-radius: 16px; overflow: hidden; color: var(--ink);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  
}
@keyframes floatWin { 0%,100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-8px); } }
.mock-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: #eef0f3; border-bottom: 1px solid #e3e6ea; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd4db; }
.mock-bar i:nth-child(1) { background: #cfd4db; } .mock-bar i:nth-child(2) { background: #cfd4db; } .mock-bar i:nth-child(3) { background: #cfd4db; }
.mock-url { margin-left: 14px; flex: 1; max-width: 300px; height: 22px; border-radius: 6px; background: #fff; font-family: var(--font-mono); font-size: 10.5px; color: #7b8088; display: flex; align-items: center; padding: 0 10px; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 420px; }
.mock-side { background: var(--navy-900); padding: 16px 10px; color: rgba(255,255,255,.7); font-size: 11px; }
.mock-side .ms-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: .06em; font-size: 13px; margin: 0 6px 18px; }
.mock-side .ms-brand img { width: 24px; height: 24px; }
.mock-side .ms-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; margin-bottom: 2px; }
.mock-side .ms-item b { width: 12px; height: 12px; border-radius: 4px; background: rgba(255,255,255,.18); flex: none; }
.mock-side .ms-item.active { background: rgba(255,255,255,.1); color: #fff; }
.mock-side .ms-item.active b { background: var(--brass-400); }
.mock-main { padding: 18px; }
.mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mm-head h4 { font-size: 15px; letter-spacing: -.01em; }
.mm-head small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.mm-pill { font-size: 10px; font-weight: 600; padding: 5px 10px; border-radius: 3px; background: var(--teal-100); color: var(--teal-700); }
.mm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { background: #fff; border: 1px solid #e5e8ec; border-radius: 10px; padding: 10px; }
.kpi small { font-size: 9.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi strong { display: block; font-size: 18px; letter-spacing: -.02em; margin-top: 3px; }
.kpi span { font-size: 9.5px; font-weight: 700; }
.kpi .up { color: var(--teal-700); } .kpi .warn { color: #9c7a44; }
.mm-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.panel { background: #fff; border: 1px solid #e5e8ec; border-radius: 10px; padding: 12px; }
.panel h5 { margin: 0 0 10px; font-size: 11px; font-weight: 700; display: flex; justify-content: space-between; }
.panel h5 span { color: var(--ink-3); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 110px; padding-top: 6px; }
.bars div { flex: 1; border-radius: 2px; background: var(--navy-700); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.bars div:nth-child(even) { background: #8ea3b6; }
.bars div.today { background: var(--brass-500); }
@keyframes grow { from { transform: scaleY(0); } }
.bar-labels { display: flex; gap: 7px; margin-top: 6px; } .bar-labels span { flex: 1; text-align: center; font-size: 9px; color: var(--ink-3); }
.alert-list { display: grid; gap: 7px; }
.alert { display: flex; align-items: center; gap: 8px; font-size: 10.5px; padding: 7px 8px; border-radius: 8px; background: #f6f7f9; }
.alert b { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; color: #fff; flex: none; }
.alert .r { background: var(--oxblood-500); } .alert .g { background: var(--brass-500); } .alert .b { background: var(--navy-700); } .alert .gr { background: var(--teal-700); }

.mock-phone {
  position: absolute; right: -10px; bottom: 0; width: 232px; height: 470px;
  border-radius: 38px; background: #111a24; padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b3440;
  
}
@keyframes floatPhone { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #f5f7fb; color: var(--ink); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 999px; background: #111a24; z-index: 3; }
.ph-head { background: var(--navy-800); color: #fff; padding: 40px 16px 18px; }
.ph-head small { font-size: 10px; opacity: .8; }
.ph-head strong { display: block; font-size: 15px; margin-top: 2px; letter-spacing: -.01em; }
.ph-child { display: flex; align-items: center; gap: 8px; margin-top: 12px; background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px; font-size: 10.5px; }
.ph-child .av { width: 26px; height: 26px; border-radius: 50%; background: var(--brass-400); color: var(--navy-900); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.ph-body { padding: 12px; display: grid; gap: 8px; }
.ph-card { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid #e7eaee; font-size: 10.5px; }
.ph-card .t { font-weight: 700; font-size: 11px; display: flex; justify-content: space-between; align-items: center; }
.ph-card .t span { font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.ph-ring { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ph-ring svg { width: 46px; height: 46px; }
.ph-narr { font-size: 10px; color: var(--ink-2); line-height: 1.45; margin-top: 5px; }

.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 12.5px; z-index: 4;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 18px; height: 18px; }
.float-card strong { display: block; font-size: 13px; }
.float-card small { color: var(--ink-3); font-family: var(--font-mono); font-size: 10.5px; }
.fc-1 { left: -34px; bottom: 70px; }
.fc-2 { right: 200px; top: -6px; }

.hero-fade { height: 120px; background: var(--navy-900); position: relative; }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy-900); color: rgba(255,255,255,.72); border-top: 1px solid rgba(255,255,255,.06); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.marquee span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brass-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 18px 0 20px; }
.dark { background: var(--navy-950); color: #fff; }
.dark .lead, .dark .muted { color: rgba(255,255,255,.66); }
.dark .eyebrow { color: var(--brass-400); }
.paper { background: var(--cream); }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); overflow: hidden; }
.proof > div { padding: 32px 28px; border-right: 1px solid var(--line); }
.proof > div:last-child { border-right: 0; }
.proof strong { display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; letter-spacing: -.03em; line-height: 1; color: var(--navy-800); }
.proof strong sup { font-size: 1.1rem; color: var(--brass-600); margin-left: 2px; }
.proof p { margin-top: 10px; font-size: .92rem; color: var(--ink-3); line-height: 1.5; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tile:hover { border-color: #d0d5dc; }
.tile h3 { margin: 18px 0 10px; font-size: 1.3rem; }
.tile p { color: var(--ink-3); font-size: .96rem; }
.tile ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.tile li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.tile li::before { content: ""; width: 14px; height: 1px; flex: none; margin-top: 12px; background: var(--brass-500); }
.t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; } .t-4 { grid-column: span 4; } .t-6 { grid-column: span 6; }
.icon-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.icon-badge svg { width: 22px; height: 22px; }
.ib-blue, .ib-green, .ib-gold, .ib-navy, .ib-red { background: transparent; color: var(--navy-800); border: 1px solid var(--line); }
.tile-feature { background: var(--navy-900); color: #fff; border-color: transparent; }
.tile-feature p, .tile-feature li { color: rgba(255,255,255,.72); }
.tile-feature:hover { border-color: transparent; }

/* Mini visual: receipt */
.receipt-demo { margin-top: 24px; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px; font-size: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); max-width: 360px; }
.receipt-demo .rd-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #e5e8ec; }
.receipt-demo .rd-row:last-of-type { border-bottom: 0; }
.barcode { height: 38px; margin-top: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.barcode-code { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; margin-top: 6px; color: var(--ink-3); text-align: center; }
.verified { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: var(--teal-700); font-size: 12px; }

/* ---------- Boards tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 40px; flex-wrap: wrap; }
.tab {
  border: 0; background: transparent; padding: 11px 22px; border-radius: 6px; font-weight: 700; font-size: .95rem; color: var(--ink-3);
  transition: background .25s var(--ease), color .25s;
}
.tab[aria-selected="true"] { background: var(--navy-900); color: #fff; }
.tab:hover:not([aria-selected="true"]) { color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.board-panel { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.board-panel h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 16px; }
.board-panel .checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.board-panel .checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.board-panel .checks b { display: block; font-size: 1rem; }
.board-panel .checks span { color: var(--ink-3); font-size: .93rem; }
.check-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--brass-400); color: var(--brass-600); }
.check-dot svg { width: 14px; height: 14px; }

.report-card {
  background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 26px; font-size: .88rem; position: relative;
}
.report-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-2); border-radius: 18px; pointer-events: none; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px solid var(--navy-900); margin-bottom: 14px; }
.rc-head strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.rc-head small { display: block; color: var(--ink-3); font-size: .78rem; margin-top: 2px; }
.rc-tag { font-size: .7rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: var(--brass-100); color: #7d6035; font-weight: 600; }
.rc-table { width: 100%; border-collapse: collapse; }
.rc-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.rc-table td { padding: 9px 6px; border-bottom: 1px solid var(--line-2); }
.rc-table td.num { font-family: var(--font-mono); font-size: .82rem; }
.band { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 3px; }
.band.adv { background: var(--teal-100); color: var(--teal-700); }
.band.pro { background: var(--navy-100); color: var(--navy-700); }
.band.dev { background: var(--brass-100); color: #7d6035; }
.rc-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: .78rem; color: var(--ink-3); }
.rc-foot b { color: var(--teal-700); }

/* ---------- Intelligence (dark) ---------- */
.intel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.intel {
  position: relative; border-radius: var(--radius-lg); padding: 30px; overflow: hidden;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.09);
  transition: border-color .3s, transform .35s var(--ease);
}
.intel:hover { border-color: rgba(201,171,120,.45); }
.intel .tag { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-400); }
.intel h3 { margin: 14px 0 12px; font-size: 1.3rem; }
.intel p { color: rgba(255,255,255,.66); font-size: .95rem; }
.intel .spec { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.intel .spec span { font-size: .75rem; padding: 5px 10px; border-radius: 3px; background: transparent; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.78); font-weight: 500; }
.intel.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }

.heatmap { display: grid; grid-template-columns: 90px repeat(6, 1fr); gap: 5px; font-size: .72rem; }
.heatmap .hl { color: rgba(255,255,255,.55); display: flex; align-items: center; font-weight: 600; }
.heatmap .hh { color: rgba(255,255,255,.45); text-align: center; font-family: var(--font-mono); font-size: .64rem; padding-bottom: 2px; }
.heatmap .c { aspect-ratio: 1.5; border-radius: 6px; opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.in-view .heatmap .c { opacity: 1; transform: none; }
.c0 { background: rgba(255,255,255,.07); } .c1 { background: rgba(255,255,255,.2); } .c2 { background: rgba(217,207,189,.5); } .c3 { background: #d9cfbd; }
.heat-legend { display: flex; gap: 14px; margin-top: 14px; font-size: .72rem; color: rgba(255,255,255,.6); flex-wrap: wrap; }
.heat-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.exam-meter { margin-top: 20px; display: grid; gap: 10px; }
.exam-meter div { display: grid; grid-template-columns: 58px 1fr 38px; gap: 10px; align-items: center; font-size: .78rem; font-weight: 700; }
.exam-meter .track, .exam-meter .fill { display: block; }
.exam-meter .track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.exam-meter .fill { height: 100%; border-radius: inherit; background: var(--brass-400); width: 0; transition: width 1.4s var(--ease); }
.exam-meter span { color: rgba(255,255,255,.6); text-align: right; font-family: var(--font-mono); font-weight: 500; }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.role-list { display: grid; gap: 8px; position: sticky; top: 110px; }
.role-btn {
  text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 18px 20px;
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; transition: all .25s var(--ease);
}
.role-btn strong { display: block; font-size: 1rem; }
.role-btn small { color: var(--ink-3); font-size: .83rem; }
.role-btn .icon-badge { width: 40px; height: 40px; border-radius: 12px; }
.role-btn .icon-badge svg { width: 20px; height: 20px; }
.role-btn[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: var(--shadow); }
.role-btn[aria-selected="true"] small { color: rgba(255,255,255,.65); }
.role-btn[aria-selected="true"] .icon-badge { background: transparent; border-color: rgba(255,255,255,.2); color: var(--brass-400); }
.role-stage { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 44px; min-height: 560px; }
.role-panel { display: none; grid-template-columns: 1fr 250px; gap: 44px; align-items: center; }
.role-panel.active { display: grid; animation: fadeUp .5s var(--ease); }
.role-panel h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.03em; margin-bottom: 14px; }
.role-panel .quote { margin-top: 26px; padding: 18px 20px; border-left: 3px solid var(--brass-500); background: var(--cream); border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--ink-2); }
.role-panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.role-panel li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.role-panel li::before { content: "→"; color: var(--navy-700); font-weight: 700; }

.mini-phone { width: 250px; height: 500px; border-radius: 40px; background: #111a24; padding: 10px; box-shadow: var(--shadow-lg); justify-self: center; }
.mini-phone .phone-screen { font-size: 11px; }
.mp-head { padding: 38px 16px 14px; background: var(--navy-900); color: #fff; }
.mp-head small { font-size: 10px; opacity: .7; }
.mp-head strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.mp-body { padding: 12px; display: grid; gap: 8px; }
.mp-card { background: #fff; border: 1px solid #e7eaee; border-radius: 12px; padding: 10px; }
.mp-card .t { font-weight: 700; font-size: 11px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.mp-card .t em { font-style: normal; font-size: 9.5px; color: var(--ink-3); font-weight: 600; }
.mp-roster { display: grid; gap: 5px; }
.mp-roster div { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; }
.mp-roster span { display: inline-flex; gap: 3px; }
.mp-roster span b { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 9px; background: #eef0f3; color: var(--ink-3); }
.mp-roster span b.on-p { background: var(--teal-600); color: #fff; }
.mp-roster span b.on-a { background: var(--oxblood-500); color: #fff; }
.mp-roster span b.on-l { background: var(--brass-500); color: #fff; }
.mp-btn { margin-top: 4px; background: var(--navy-700); color: #fff; text-align: center; font-weight: 700; border-radius: 10px; padding: 9px; font-size: 11px; }
.mp-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-stat .mp-card strong { font-size: 18px; letter-spacing: -.02em; display: block; }
.mp-list div { display: flex; justify-content: space-between; font-size: 10.5px; padding: 5px 0; border-bottom: 1px solid #f0f2f5; }
.mp-list div:last-child { border-bottom: 0; }
.tag-s { font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 3px; }
.tag-g { background: var(--teal-100); color: var(--teal-700); } .tag-y { background: var(--brass-100); color: #7d6035; } .tag-r { background: var(--oxblood-100); color: var(--oxblood-500); } .tag-b { background: var(--navy-100); color: var(--navy-700); }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sec-list { display: grid; gap: 4px; }
.sec-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sec-item:last-child { border-bottom: 0; }
.sec-item h4 { font-size: 1.08rem; margin-bottom: 6px; }
.sec-item p { color: var(--ink-3); font-size: .95rem; }
.vault {
  position: relative; aspect-ratio: 1; max-width: 500px; margin: 0 auto; width: 100%;
  border-radius: 50%; display: grid; place-items: center;
  background: transparent;
}
.vault .ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(13,29,46,.18); }
.vault .r1 { inset: 0; animation: spin 60s linear infinite; }
.vault .r2 { inset: 14%; border-style: solid; border-color: rgba(13,29,46,.1); animation: spin 40s linear infinite reverse; }
.vault .r3 { inset: 28%; border-color: rgba(176,141,87,.5); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vault .core { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--navy-900); display: grid; place-items: center; color: var(--brass-400); box-shadow: var(--shadow-lg); z-index: 2; }
.vault .core svg { width: 44%; height: 44%; }
.vault .node { position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 8px 14px; font-size: .8rem; font-weight: 600; box-shadow: none; display: flex; gap: 8px; align-items: center; white-space: nowrap; z-index: 3; }
.vault .node i { width: 5px; height: 5px; border-radius: 50%; background: var(--brass-500); }
.n1 { top: 6%; left: 50%; transform: translateX(-50%); } .n2 { top: 34%; right: -4%; } .n3 { bottom: 14%; right: 2%; } .n4 { bottom: 4%; left: 22%; } .n5 { top: 36%; left: -6%; } .n6 { top: 14%; left: 4%; }

/* ---------- Migration timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 400; color: var(--brass-500); line-height: 1; display: block; margin-bottom: 18px;
}
.step h4 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--ink-3); }
.step .dur { display: inline-block; margin-top: 16px; font-size: .68rem; font-weight: 600; color: var(--brass-600); letter-spacing: .16em; }

/* ---------- Groups / campuses ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.campus-map { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 36px; }
.campus-hq { display: flex; align-items: center; gap: 14px; background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 18px; }
.campus-hq .icon-badge { background: transparent; border-color: rgba(255,255,255,.2); color: var(--brass-400); }
.campus-hq small { display: block; color: rgba(255,255,255,.6); font-size: .8rem; }
.campus-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; position: relative; }
.campus-branches::before { content: ""; position: absolute; top: -40px; left: 16%; right: 16%; height: 20px; border: 2px dashed var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; }
.campus-branches::after { content: ""; position: absolute; top: -60px; left: 50%; height: 20px; border-left: 2px dashed var(--line); }
.branch { border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: .86rem; background: var(--cream); }
.branch b { display: block; font-size: .92rem; }
.branch span { font-size: .78rem; color: var(--ink-3); }
.branch .tag-s { display: inline-block; margin-top: 8px; }

/* ---------- Pilot / CTA ---------- */
.pilot {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 72px;
  background: var(--navy-900);
  color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
}
.pilot h2 em { color: var(--brass-400); }
.pilot .lead { color: rgba(255,255,255,.75); margin-top: 18px; }
.pilot-perks { display: grid; gap: 12px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.perk b { display: block; font-size: .98rem; }
.perk small { color: rgba(255,255,255,.62); font-size: .86rem; }
.perk .icon-badge { width: 36px; height: 36px; flex: none; border-radius: 50%; background: transparent; border: 1px solid rgba(201,171,120,.35); color: var(--brass-400); }
.perk .icon-badge svg { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 1.12rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.8rem; font-weight: 300; color: var(--brass-600); transition: transform .3s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); max-width: 720px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid rgba(201,171,120,.18); color: rgba(255,255,255,.65); padding: 88px 0 36px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer .brand { margin-bottom: 18px; }
.footer h5 { margin: 0 0 16px; color: #fff; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: .84rem; }
.footer-tagline { font-size: .72rem; font-weight: 600; letter-spacing: .24em; color: var(--brass-400); margin-top: 14px; }

/* ---------- Page header (sub pages) ---------- */
.page-hero { padding: 170px 0 90px; position: relative; overflow: hidden; }
.page-hero.dark-hero { background: var(--navy-900); color: #fff; }
.page-hero.dark-hero .lead { color: rgba(255,255,255,.72); }
.page-hero.dark-hero .eyebrow { color: var(--brass-400); }
.page-hero h1 { margin: 20px 0 22px; max-width: 900px; }
.page-hero .lead { max-width: 680px; }

/* Module directory (platform page) */
.module-nav { position: sticky; top: 76px; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.module-nav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.module-nav .container::-webkit-scrollbar { display: none; }
.module-nav a { flex: none; padding: 8px 16px; border-radius: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-3); border: 1px solid transparent; }
.module-nav a:hover, .module-nav a.active { color: var(--ink); border-color: var(--line); background: var(--paper); }
.module-group { padding: 90px 0 30px; scroll-margin-top: 130px; }
.module-group-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-bottom: 40px; align-items: end; }
.module-group-head .num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--brass-500); }
.module-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s; }
.mcard:hover { border-color: #d0d5dc; }
.mcard h4 { font-size: 1.05rem; margin: 14px 0 8px; }
.mcard p { font-size: .92rem; color: var(--ink-3); }
.mcard .icon-badge { width: 40px; height: 40px; border-radius: 11px; }
.mcard .icon-badge svg { width: 20px; height: 20px; }

/* Demo form */
.demo-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 13px 15px; border-radius: 12px; border: 1px solid #d5d9e0; background: var(--cream); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); background: #fff; box-shadow: 0 0 0 4px rgba(29,58,85,.12); }
.field.invalid input, .field.invalid select { border-color: var(--oxblood-500); }
.field .err { color: var(--oxblood-500); font-size: .8rem; display: none; }
.field.invalid .err { display: block; }
.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-options label { cursor: pointer; }
.pill-options input { position: absolute; opacity: 0; pointer-events: none; }
.pill-options span { display: inline-block; padding: 9px 16px; border-radius: 6px; border: 1px solid #d5d9e0; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: var(--cream); transition: all .2s; }
.pill-options input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pill-options input:focus-visible + span { box-shadow: 0 0 0 4px rgba(29,58,85,.2); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: fadeUp .5s var(--ease); }
.form-success .icon-badge { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 50%; }
.demo-points { display: grid; gap: 22px; margin-top: 40px; }
.demo-points > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.demo-points b { display: block; margin-bottom: 4px; }
.demo-points p { color: var(--ink-3); font-size: .95rem; }

/* Compliance table (security page) */
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: .95rem; }
.ctable th, .ctable td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ctable th { background: var(--cream); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.ctable tr:last-child td { border-bottom: 0; }
.ctable td:first-child { font-weight: 700; width: 28%; }
.ctable td:nth-child(2) { color: var(--ink-2); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 520px; max-width: 680px; margin: 0 auto; width: 100%; }
  .mock-window { width: 580px; left: 0; }
  .intel-grid { grid-template-columns: 1fr 1fr; }
  .intel.wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pilot { grid-template-columns: 1fr; padding: 56px; }
  .module-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta .nav-login, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 88px 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-2, .t-3, .t-4 { grid-column: span 1; }
  .t-6, .t-wide-m { grid-column: span 2; }
  .board-panel, .sec-grid, .split, .demo-wrap, .module-group-head { grid-template-columns: 1fr; gap: 40px; }
  .roles { grid-template-columns: 1fr; gap: 24px; }
  .role-list { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .role-btn { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .role-btn small { display: none; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div:nth-child(2) { border-right: 0; }
  .proof > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding-top: 120px; }
  .hero-visual { height: 440px; }
  .mock-window { width: 520px; transform: none; animation: none; top: 0; }
  .mock-phone { width: 190px; height: 390px; right: 0; bottom: -10px; border-radius: 32px; }
  .phone-screen { border-radius: 25px; }
  .fc-1 { left: 0; bottom: 20px; } .fc-2 { display: none; }
  .bento, .intel-grid, .steps, .module-cards, .form-grid { grid-template-columns: 1fr; }
  .t-6, .t-wide-m, .intel.wide { grid-column: span 1; }
  .intel.wide { grid-template-columns: 1fr; }
  .role-stage { padding: 26px; min-height: 0; }
  .role-panel { grid-template-columns: 1fr; }
  .pilot { padding: 40px 24px; }
  .form-card { padding: 26px 20px; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 10px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ctable td:first-child { width: auto; }
  .ctable th:nth-child(3), .ctable td:nth-child(3) { display: none; }
  .vault .node { font-size: .7rem; padding: 6px 10px; }
  .campus-map { padding: 22px; }
  .campus-branches { grid-template-columns: 1fr; margin-top: 20px; }
  .campus-branches::before, .campus-branches::after { display: none; }
  .heatmap { grid-template-columns: 70px repeat(6, 1fr); }
}
@media (max-width: 420px) {
  .mock-window { width: 440px; }
  .mock-body { grid-template-columns: 0 1fr; }
  .mock-side { display: none; }
  .mm-kpis { grid-template-columns: repeat(2, 1fr); }
  .role-list { grid-template-columns: 1fr 1fr; }
}

/* Compact CTA banner + inline grids that must stack on phones */
.pilot.compact { grid-template-columns: 1fr auto; }
@media (max-width: 1120px) { .pilot.compact { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .bento-inner { grid-template-columns: 1fr !important; } }

/* Phone-sized hero mock: drop the sidebar and let the window fit the column */
@media (max-width: 720px) {
  .hero-visual { height: 420px; }
  .mock-window { width: calc(100% - 40px); }
  .mock-body { grid-template-columns: 1fr; min-height: 360px; }
  .mock-side { display: none; }
  .mm-kpis { grid-template-columns: repeat(2, 1fr); }
  .mm-row { grid-template-columns: 1fr; }
  .mm-row .panel:last-child { display: none; }
  .mock-phone { width: 168px; height: 340px; border-radius: 28px; padding: 8px; }
  .mock-phone .ph-card:last-child { display: none; }
  .fc-1 { bottom: 6px; }
}

/* Accent italics on dark surfaces use brass for contrast */
.dark .display em, .pilot .display em, .dark-hero .display em { color: var(--brass-400); }

/* ==========================================================================
   Mobile (iOS Safari / Android Chrome) hardening
   ========================================================================== */
html { overflow-x: hidden; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; overflow-x: clip; }
:focus-visible { outline: 2px solid var(--brass-500); outline-offset: 3px; }

/* Decorative rings rotate and would push the page wider than the screen */
#security { overflow: hidden; }
.vault { overflow: visible; contain: layout; }

/* Grid/flex children may shrink below their content width; long words wrap */
.hero-grid > *, .board-panel > *, .role-panel > *, .sec-grid > *, .split > *, .demo-wrap > *, .pilot > *, .intel.wide > * { min-width: 0; }
h1, h2, h3, h4, p, li { overflow-wrap: break-word; }

/* Safari needs the prefixed property for blurred backgrounds */
.btn-ghost-light { -webkit-backdrop-filter: blur(6px); }
.module-nav { -webkit-backdrop-filter: blur(10px); }

/* Notched iPhones: keep content clear of the notch and home indicator */
.nav-inner { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.footer { padding-bottom: max(36px, env(safe-area-inset-bottom)); }

.mobile-menu { top: 76px; bottom: 0; height: calc(100dvh - 76px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding-bottom: max(24px, env(safe-area-inset-bottom)); }

@media (max-width: 960px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
  /* Comfortable finger-sized targets */
  .footer ul { gap: 2px; }
  .footer ul a { display: inline-block; padding: 11px 0; }
  .faq summary { min-height: 56px; }
  .module-nav a { padding: 11px 16px; }
}

@media (max-width: 720px) {
  .nav-inner { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .brand { gap: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { font-size: .7rem; }
  /* iOS zooms into any form field under 16px */
  .field input, .field select, .field textarea { font-size: 16px; }
  .eyebrow { font-size: .76rem; letter-spacing: .14em; }
  .heat-legend { font-size: .76rem; }
  .intel .spec span { font-size: .78rem; }
  .btn-lg { width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
}

@media (max-width: 360px) {
  .brand-rule { display: none; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { letter-spacing: 0; }
  h1.display { font-size: 2.3rem; }
  h2.display { font-size: 1.9rem; }
  .tab { padding: 10px 8px; font-size: .88rem; }
}

.page-hero.dark-hero[style*="min-height:70vh"] { min-height: 70svh !important; }

/* Very small phones (320–360px): keep illustrative cards fully visible */
.receipt-demo { width: 100%; max-width: 360px; }
.barcode-code { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .tile, .intel { padding: 22px 18px; }
  .receipt-demo { font-size: 11px; padding: 12px; }
  .receipt-demo .rd-row { gap: 8px; }
  .receipt-demo .rd-row b { text-align: right; }
  .heatmap { grid-template-columns: 58px repeat(6, 1fr); gap: 3px; font-size: .66rem; }
  .heatmap .hh { font-size: .56rem; }
  .report-card { padding: 18px 14px; }
  .rc-table th, .rc-table td { padding: 8px 4px; }
  .rc-table td.num { white-space: nowrap; font-size: .76rem; }
  .rc-head { flex-wrap: wrap; gap: 8px; }
}
.proof strong { white-space: nowrap; }
@media (max-width: 360px) {
  .proof > div { padding: 24px 16px; }
  .proof strong { font-size: 2.2rem; }
}
