/* CRE Maxi marketing site. Tokens follow the app (section 8 of the brief). No gradients, no pill shapes. */
:root {
  color-scheme: light;
  --bg: #F1F5F9; --surface: #FFFFFF; --surface-2: #F8FAFC;
  --border: #E2E8F0; --border-strong: #CBD5E1;
  --ink: #0F172A; --ink-2: #334155; --muted: #64748B;
  --navy: #0F172A; --charcoal: #1E293B;
  --pos: #10B981; --pos-ink: #059669; --neg: #DC2626; --warn: #B45309;
  --focus: #3B82F6;
  --r-ctl: 4px; --r-card: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070C17; --surface: #0F172A; --surface-2: #131D31;
  --border: #1E293B; --border-strong: #334155;
  --ink: #F1F5F9; --ink-2: #CBD5E1; --muted: #94A3B8;
  --pos: #34D399; --pos-ink: #34D399; --neg: #F87171; --warn: #FBBF24;
  --focus: #60A5FA;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-ctl); z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); border-radius: var(--r-ctl); padding: 9px 16px; font: 600 14px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease); white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.btn.primary:hover { background: var(--charcoal); border-color: var(--charcoal); }
:root[data-theme="dark"] .btn.primary { background: #F1F5F9; border-color: #F1F5F9; color: #0F172A; }
:root[data-theme="dark"] .btn.primary:hover { background: #CBD5E1; border-color: #CBD5E1; }
.btn.lg { padding: 12px 20px; font-size: 15px; }
.btn.ghost { background: transparent; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: var(--r-ctl); cursor: pointer; }
.theme-ic { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; box-shadow: inset 6px 0 0 currentColor; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.2px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; flex: 1; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-sign { margin-left: auto; }
.nav-r { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: #0F172A; color: #F1F5F9; padding: 64px 0 56px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%23FFFFFF' stroke-opacity='.05'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.hero-video.on { opacity: .38; }
.hero-shade { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.hero .eyebrow { color: #94A3B8; }
.hero h1 { font: 700 56px/1.04 "Inter Tight", Inter, sans-serif; letter-spacing: -1.4px; margin: 0 0 20px; }
.lede { font-size: 18px; color: #CBD5E1; margin: 0 0 28px; max-width: 520px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.primary { background: #FFFFFF; border-color: #FFFFFF; color: #0F172A; }
.hero .btn.primary:hover { background: #E2E8F0; border-color: #E2E8F0; }
.hero .btn.ghost { color: #F1F5F9; border-color: #475569; }
.hero .btn.ghost:hover { border-color: #94A3B8; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: #94A3B8; }
.hero-frame { margin: 0; position: relative; }
.frame { background: #FFFFFF; border: 1px solid #334155; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 24px 48px rgba(2, 6, 23, .45); }
.frame-bar { height: 26px; background: #1E293B; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.hero-frame figcaption { font-size: 12px; color: #94A3B8; margin-top: 12px; }
.live { position: relative; z-index: 2; width: fit-content; margin: -44px 0 0 -24px; background: #0F172A; border: 1px solid #334155; border-radius: var(--r-card); padding: 12px 14px; min-width: 300px; box-shadow: 0 12px 24px rgba(2, 6, 23, .5); }
.live-h { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #94A3B8; margin-bottom: 8px; }
.live-g { display: grid; grid-template-columns: repeat(4, auto); gap: 16px; }
.live small { display: block; font-size: 10.5px; color: #94A3B8; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.live b { font-size: 17px; color: #F8FAFC; font-weight: 700; }
.live b.pos { color: #34D399; }

/* sections */
.sec { padding: 96px 0; }
.sec.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.h2 { font: 700 40px/1.12 "Inter Tight", Inter, sans-serif; letter-spacing: -.8px; margin: 0 0 16px; max-width: 760px; }
.sub { font-size: 17px; color: var(--ink-2); max-width: 680px; margin: 0 0 36px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pcard, .bcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); }
.pcard .num { font: 700 12px/1 ui-monospace, Consolas, monospace; color: var(--muted); letter-spacing: 1px; }
.pcard h3, .bcard h3 { font-size: 19px; margin: 12px 0 8px; letter-spacing: -.2px; }
.bcard h3 { margin-top: 0; }
.pcard p, .bcard p { margin: 0; color: var(--ink-2); }

/* story */
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; margin-top: 40px; }
.act { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .25s var(--ease); }
.act.on { opacity: 1; }
.act-k { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pos-ink); }
.act h3 { font: 700 30px/1.15 "Inter Tight", Inter, sans-serif; margin: 10px 0 12px; letter-spacing: -.5px; }
.act p { color: var(--ink-2); font-size: 16px; margin: 0; max-width: 460px; }
.act-img { display: none; }
.pin { position: sticky; top: 92px; height: fit-content; align-self: start; }
.pin-frame { border-color: var(--border-strong); box-shadow: var(--shadow); }
.pin-l { margin-left: 8px; font-size: 11px; color: #CBD5E1; font-weight: 600; }
.pin-stage { position: relative; aspect-ratio: 1440 / 900; background: #F8FAFC; }
.pin-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .25s var(--ease); }
.pin-img[data-i="0"], .pin-img[data-i="2"] { object-fit: contain; object-position: top center; }
.pin-img.on { opacity: 1; }
.pin-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 14px 0 0; }
.pin-steps li { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--muted); border-top: 2px solid var(--border-strong); padding-top: 8px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.pin-steps li.on { color: var(--ink); border-top-color: var(--ink); }

/* sectors */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sector { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.s-img { aspect-ratio: 16 / 9; background: #1E293B; overflow: hidden; }
.s-img img { width: 100%; height: 100%; object-fit: cover; }
.s-img.none { display: none; }
.s-b { padding: 18px 20px 20px; }
.code { font: 800 10.5px/1 ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 2px; padding: 3px 5px; }
.spec-l { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--warn); }
.sector h3 { font-size: 19px; margin: 12px 0 10px; }
.sector ul, .ticks { list-style: none; margin: 0; padding: 0; }
.sector li, .ticks li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-2); margin: 6px 0; }
.sector li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--muted); }

/* OM */
.om-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.soon { display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--warn); border: 1px solid currentColor; border-radius: 2px; padding: 2px 6px; vertical-align: 2px; }
.ticks { margin: 0 0 20px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.diff { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.diff-h { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; }
.diff-h small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.diff table { width: 100%; border-collapse: collapse; font-size: 14px; }
.diff th { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 10px 16px 6px; font-weight: 700; }
.diff th:first-child, .diff td:first-child { text-align: left; }
.diff td { text-align: right; padding: 10px 16px; border-top: 1px solid var(--border); transition: background-color .6s var(--ease); }
.diff td.old { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.diff td.new { font-weight: 700; }
.diff td.up { color: var(--pos-ink); font-weight: 600; }
.diff td.down { color: var(--neg); font-weight: 600; }
.diff tr.hit td { background: rgba(16, 185, 129, .1); }
.diff figcaption { font-size: 12px; color: var(--muted); padding: 10px 16px 14px; border-top: 1px solid var(--border); }

/* deliverables */
.dels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.del { border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; background: var(--surface-2); }
.del svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.del h3 { font-size: 16px; margin: 12px 0 6px; }
.del h3 .soon { display: block; margin: 6px 0 0; width: fit-content; }
.del p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* faq */
.faq { margin-top: 24px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq p { margin: 0 0 18px; color: var(--ink-2); max-width: 680px; }

/* final + footer */
.final { background: #0F172A; color: #F1F5F9; padding: 88px 0; text-align: center; }
.final h2 { font: 700 44px/1.1 "Inter Tight", Inter, sans-serif; letter-spacing: -1px; margin: 0 0 12px; }
.final p { color: #94A3B8; margin: 0 0 28px; font-size: 17px; }
.final .btn.primary { background: #FFFFFF; border-color: #FFFFFF; color: #0F172A; }
.foot { padding: 28px 0 40px; border-top: 1px solid var(--border); background: var(--surface); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot-l { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav button, .foot nav a { border: 0; background: none; padding: 0; font: 14px/1.4 inherit; font-family: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.foot-n { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

/* legal dialog */
.legal-dlg { border: 1px solid var(--border); border-radius: var(--r-card); padding: 0; width: min(720px, calc(100vw - 32px)); max-height: 82vh; background: var(--surface); color: var(--ink); }
.legal-dlg::backdrop { background: rgba(2, 6, 23, .55); }
.legal-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.legal-h h2 { margin: 0; font-size: 18px; }
.legal-b { padding: 4px 22px 22px; font-size: 14px; color: var(--ink-2); }
.legal-b h4 { color: var(--ink); margin: 18px 0 4px; }

/* reveal motion */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
  .dels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero h1 { font-size: 48px; }
}
@media (max-width: 1024px) {
  .hero-in, .om-grid { grid-template-columns: minmax(0, 1fr); }
  .live { margin-left: 12px; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pin { display: none; }
  .act { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid var(--border); }
  .act-img { display: block; margin-top: 18px; border: 1px solid var(--border-strong); border-radius: var(--r-card); box-shadow: var(--shadow); }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 14px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-links .nav-sign { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .nav-r .req { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 38px; letter-spacing: -.8px; }
  .lede { font-size: 16px; }
  .live { margin: 12px 0 0; min-width: 0; width: auto; }
  .live-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding: 64px 0; }
  .h2 { font-size: 30px; }
  .cols3, .cols2, .sectors, .dels { grid-template-columns: minmax(0, 1fr); }
  .final h2 { font-size: 34px; }
  .diff td, .diff th { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .act, .pin-img, .pin-steps li, .diff td, .hero-video, .faq summary::after { transition: none; }
}

/* OM templates list */
.tpls { display: grid; gap: 8px; margin: 0 0 8px; }
.tpls div { border-left: 3px solid var(--ink); padding: 4px 0 4px 12px; }
.tpls b { display: block; font-size: 15px; }
.tpls span { font-size: 14px; color: var(--ink-2); }
