/* Lama ERP v2 marketing site. Ported from documentation/platform/websitev2/Lama ERP Website.html
   (the design mockup) into a real stylesheet for server-rendered Razor pages. Login-page-only
   rules were dropped — /v2 has no login page; it links to the real /login instead. */
:root {
  --ink: #0A1B33;
  --navy: #1E4578;
  --navy-2: #2B5A97;
  --gold: #F7A500;
  --gold-deep: #B97600;
  --paper: #F5F7FB;
  --card: #FFFFFF;
  --line: #D9E0EA;
  --text: #101C2E;
  --muted: #4A5873;
  --on-ink: #E8EEF7;
  --on-ink-muted: #A9B8CF;
  --ok: #1F8A5B;
  --display: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --deva: "IBM Plex Sans Devanagari", "Noto Sans Devanagari", sans-serif;
  --wrap: 1240px;
  --r: 10px;
  color-scheme: light;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased }
img, svg { max-width: 100% }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -.022em }
p { text-wrap: pretty; margin: 0 }
a { color: var(--navy) }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px }
.mono { font-family: var(--mono) }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); font-weight: 600; display: inline-flex; gap: 10px; align-items: center }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold) }
.ink .eyebrow, .hero .eyebrow, .phero .eyebrow { color: var(--gold) }
.hero .btn-line, .phero .btn-line { border-color: rgba(232, 238, 247, .35); color: var(--on-ink); background: transparent }
.hero .btn-line:hover, .phero .btn-line:hover { background: rgba(255, 255, 255, .08) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 6px; z-index: 100; font-weight: 600 }
.skip:focus { top: 12px }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--body); transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease }
.btn:hover { transform: translateY(-2px) }
.btn-gold { background: var(--gold); color: var(--ink) }
.btn-gold:hover { box-shadow: 0 10px 24px -10px rgba(247, 165, 0, .8) }
.btn-navy { background: var(--navy); color: #fff }
.btn-navy:hover { background: var(--ink) }
.btn-line { border-color: var(--line); color: var(--text); background: var(--card) }
.ink .btn-line { border-color: rgba(232, 238, 247, .35); color: var(--on-ink); background: transparent }
.btn .arr { transition: transform .2s ease }
.btn:hover .arr { transform: translateX(4px) }
.btn:disabled { opacity: .7; cursor: default; transform: none }
.btn-spinner { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: currentColor; border-radius: 50%; animation: btnSpin .7s linear infinite }
@keyframes btnSpin { to { transform: rotate(360deg) } }

/* header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(10, 27, 51, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--on-ink) }
.hdr { position: relative; display: flex; align-items: center; gap: 22px; min-height: 70px }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; flex: none }
.logo img { height: 40px; width: auto; border-radius: 4px; background: #ffffff; padding: 5px }
.logo small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--on-ink-muted); font-weight: 500; text-transform: uppercase }
nav.main { display: flex; gap: 4px; align-items: center }
nav.main > a, nav.main > .dd > button { color: var(--on-ink); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 10px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer; font-family: var(--body); display: flex; align-items: center; gap: 6px; min-height: 44px }
nav.main > a:hover, nav.main > .dd > button:hover, nav.main a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07) }
nav.main a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold) }
.dd { position: static }
.mega { position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, 8px); width: min(940px, 92vw); background: var(--card); color: var(--text); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(10, 27, 51, .45); padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s }
.dd.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) }
.mega > div.wide { grid-column: span 2 }
.mega > div .links { display: flex; flex-direction: column }
.mega > div.wide .links { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 12px }
.mega h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 8px 6px; font-weight: 600 }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 9px 8px; border-radius: 8px; text-decoration: none; color: var(--text) }
.mega a:hover { background: var(--paper) }
.mega a b { display: block; font-size: 14px; font-weight: 600 }
.mega a span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4 }
.mega .mi { flex: 0 0 34px; height: 34px; border-radius: 8px; background: #EAF0F8; color: var(--navy); display: grid; place-items: center }
.mega .all { grid-column: 1/-1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 14px }
.hdr .sp { flex: 1 }
.hdr .signin { color: var(--on-ink); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 10px 6px }
.menu-btn { display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 8px; min-width: 44px; min-height: 44px; cursor: pointer }
@media (max-width:1020px) {
  nav.main, .hdr .signin { display: none }
  .menu-btn { display: grid; place-items: center }
  /* header.site's backdrop-filter makes it the containing block for any position:fixed
     descendant (per spec, backdrop-filter counts alongside filter/transform for this), so
     nav.main's "inset:70px 0 0 0" below was resolving against the ~70px-tall header box
     instead of the viewport — a sliver a few pixels tall instead of a full-screen panel.
     Dropping the filter while the panel is open removes that containing block so the panel
     sizes against the viewport as intended; the opaque panel covers the header anyway. */
  body.nav-open header.site { backdrop-filter: none; -webkit-backdrop-filter: none }
  body.nav-open nav.main { display: flex; position: fixed; inset: 70px 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 18px 22px; overflow: auto; gap: 2px }
  body.nav-open .mega { position: static; transform: none; opacity: 1; visibility: visible; width: auto; grid-template-columns: 1fr; box-shadow: none; margin: 6px 0 12px; display: none }
  /* .dd.open .mega (desktop open-state, 3 class selectors) outranks the plain "body.nav-open
     .mega" reset above (1 type + 2 classes) on specificity alone, so its transform:translate(-50%,0)
     was winning here too — shifting the now-static, full-width panel half its own width off the
     left edge of the screen. Match that selector's specificity to actually override it. */
  body.nav-open .dd.open .mega { display: grid; transform: none }
  body.nav-open .mega > div.wide { grid-column: 1 }
  body.nav-open .mega > div.wide .links { grid-template-columns: 1fr }
}

/* sections */
section { position: relative }
.band { padding: 104px 0 }
.band.tight { padding: 72px 0 }
.ink { background: var(--ink); color: var(--on-ink) }
.ink h1, .ink h2, .ink h3 { color: #fff }
.ink p { color: var(--on-ink-muted) }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px }
.sec-head h2 { font-size: clamp(32px, 4vw, 52px); margin-top: 16px }
.sec-head p { font-size: 18px; color: var(--muted); max-width: 56ch }
.ink .sec-head p { color: var(--on-ink-muted) }
@media (max-width:860px) { .sec-head { grid-template-columns: 1fr; gap: 18px } }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(43, 90, 151, .55), transparent 60%), var(--ink); color: var(--on-ink); overflow: hidden; padding: 84px 0 0 }
.hero canvas.peaks { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 340px; pointer-events: none; opacity: .9 }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 700; color: #fff; letter-spacing: -.035em }
.hero h1 .rot { display: inline-block; color: var(--gold); min-width: 6ch }
.hero h1 .rot span { display: inline-block; animation: wordIn .55s cubic-bezier(.2, .8, .2, 1) }
@keyframes wordIn { from { transform: translateY(.4em); opacity: 0 } to { transform: none; opacity: 1 } }
.hero .lede { font-size: 19px; color: var(--on-ink-muted); max-width: 52ch; margin: 26px 0 34px }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap }
.hero .assure { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-size: 13.5px; color: var(--on-ink-muted) }
.hero .assure span { display: inline-flex; gap: 8px; align-items: center }
.hero .assure svg { color: var(--gold) }
.trust-strip { position: relative; margin-top: 84px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0 28px; display: flex; gap: 40px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--on-ink-muted) }
.trust-strip b { color: #fff; font-weight: 600 }
@media (max-width:960px) { .hero-grid { grid-template-columns: 1fr } }

/* animated product mock */
.mock { position: relative; background: #0F2442; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; animation: floatY 7s ease-in-out infinite }
@keyframes floatY { 50% { transform: translateY(-8px) } }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--mono); font-size: 11px; color: var(--on-ink-muted) }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18) }
.mock-bar .url { margin-left: 10px; background: rgba(255, 255, 255, .06); padding: 4px 10px; border-radius: 5px }
.mock-tabs { display: flex; gap: 2px; padding: 10px 14px 0; font-size: 12px }
.mock-tabs span { padding: 7px 11px; border-radius: 6px 6px 0 0; color: var(--on-ink-muted) }
.mock-tabs span.on { background: #163257; color: #fff; box-shadow: inset 0 2px 0 var(--gold) }
.mock-body { background: #163257; padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
.kpi { background: #0F2442; border-radius: 10px; padding: 12px 14px }
.kpi small { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted) }
.kpi b { display: block; color: #fff; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px }
.kpi em { font-style: normal; font-size: 11px; color: #6FD3A3 }
.chart { grid-column: 1/3; background: #0F2442; border-radius: 10px; padding: 12px 14px; height: 170px; display: flex; flex-direction: column }
.chart small { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted) }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 7px; padding-top: 10px }
.bars i { flex: 1; background: linear-gradient(180deg, var(--gold), #C98400); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2, .8, .2, 1) both }
.bars i:nth-child(odd) { background: linear-gradient(180deg, #6E9AD6, #2B5A97) }
@keyframes grow { from { transform: scaleY(.05) } }
.feed { background: #0F2442; border-radius: 10px; padding: 12px; height: 170px; overflow: hidden; position: relative }
.feed small { position: relative; z-index: 2; display: block; background: #0F2442; padding-bottom: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted) }
.feed ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; animation: feed 9s linear infinite }
.feed li { font-size: 11.5px; color: var(--on-ink); display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .04); padding: 6px 8px; border-radius: 6px }
.feed li i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none }
@keyframes feed { to { transform: translateY(-50%) } }
.mock-note { position: absolute; right: 12px; bottom: 10px; font-family: var(--mono); font-size: 10px; color: var(--on-ink-muted) }
.chip-float { position: absolute; background: #fff; color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); display: flex; gap: 10px; align-items: center; z-index: 3 }
.chip-float b { display: block; font-size: 13px }
.chip-float .dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #FFF3D6; color: var(--gold-deep); flex: none }
.cf1 { left: -30px; top: 64%; animation: floatY 6s ease-in-out infinite .6s }
.cf2 { right: -18px; top: -16px; animation: floatY 6.5s ease-in-out infinite 1.2s }
.cf3 { left: 12%; bottom: -20px; animation: floatY 7.5s ease-in-out infinite .2s }
.mock-wrap { position: relative; padding: 20px 10px 30px }
@media (max-width:600px) {
  .cf1, .cf2 { display: none }
  .mock-body { grid-template-columns: 1fr 1fr }
  .chart { grid-column: 1/-1 }
  .feed { grid-column: 1/-1 }
}

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 18px 0 }
.marquee .track { display: flex; gap: 44px; width: max-content; animation: scroll 42s linear infinite }
.marquee span { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--muted); display: inline-flex; gap: 12px; align-items: center; white-space: nowrap }
.marquee span::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg) }
@keyframes scroll { to { transform: translateX(-50%) } }

/* value props */
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--text) }
.val { padding: 36px 32px 36px 0; border-right: 1px solid var(--line) }
.val + .val { padding-left: 32px }
.val:last-child { border-right: 0 }
.val .n { font-family: var(--mono); font-size: 13px; color: var(--gold-deep); font-weight: 600 }
.val h3 { font-size: 24px; margin: 14px 0 12px }
.val p { color: var(--muted) }
@media (max-width:860px) {
  .vals { grid-template-columns: 1fr }
  .val, .val + .val { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line) }
}

/* flow diagram */
.flow { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; overflow-x: auto }
.flow svg { display: block; min-width: 820px; width: 100%; height: auto }
.flow .wire { fill: none; stroke: #C7D3E3; stroke-width: 2 }
.flow .pulse { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 14 220; animation: dash 3.2s linear infinite }
@keyframes dash { to { stroke-dashoffset: -234 } }
.flow .node rect { fill: #F2F6FB; stroke: #C7D3E3 }
.flow .node.hub rect { fill: var(--ink); stroke: var(--ink) }
.flow text { font-family: var(--body); font-size: 13px; fill: var(--text) }
.flow .node.hub text { fill: #fff; font-weight: 600 }
.flow .sub { font-family: var(--mono); font-size: 10.5px; fill: var(--muted) }
.flow .node.hub .sub { fill: var(--gold) }

/* module grid */
.mod-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px }
.mod-filters button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; transition: all .2s }
.mod-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink) }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px }
.mod { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 12px; min-height: 236px; overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s }
.mod::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1) }
.mod:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -24px rgba(10, 27, 51, .4); border-color: #BFCBDC }
.mod:hover::after { transform: scaleX(1) }
.mod .ic { width: 46px; height: 46px; border-radius: 11px; background: #EAF0F8; color: var(--navy); display: grid; place-items: center; transition: background .25s, color .25s }
.mod:hover .ic { background: var(--ink); color: var(--gold) }
.mod h3 { font-size: 19px; letter-spacing: -.01em }
.mod p { font-size: 14.5px; color: var(--muted) }
.mod .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11.5px; color: var(--muted) }
.mod .go { color: var(--navy); font-weight: 600; display: inline-flex; gap: 6px; align-items: center }
.mod.hide { display: none }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; padding: 3px 8px; border-radius: 5px; font-weight: 600; text-transform: uppercase; white-space: nowrap }
.tag.core { background: var(--ink); color: #fff }
.tag.addon { background: #EAF0F8; color: var(--navy) }
.tag.new { background: #FFF0CC; color: #7A4E00 }
.tag.preview { border: 1px dashed var(--muted); color: var(--muted) }
.mod .top { display: flex; justify-content: space-between; align-items: flex-start }

/* nepal */
.np-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center }
.np-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.np-item { border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 20px; background: rgba(255, 255, 255, .03); transition: background .25s, border-color .25s }
.np-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(247, 165, 0, .5) }
.np-item h3 { font-size: 17px; margin: 12px 0 6px }
.np-item p { font-size: 14px }
.np-item svg { color: var(--gold) }
.datecard { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6) }
.datecard .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line) }
.datecard .row:last-child { border: 0 }
.datecard .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.datecard .v { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums }
.datecard .bs { font-family: var(--deva); font-size: 26px; color: var(--navy) }
.datecard .irn { font-family: var(--mono); font-size: 13px; background: #EAF7F0; color: var(--ok); padding: 4px 8px; border-radius: 6px }
.gw { display: flex; gap: 8px; flex-wrap: wrap }
.gw span { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px }
@media (max-width:960px) { .np-grid { grid-template-columns: 1fr } .np-list { grid-template-columns: 1fr } }

/* editions */
.ed { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.ed-card { border-radius: 18px; padding: 36px; position: relative; overflow: hidden; min-height: 420px; display: flex; flex-direction: column }
.ed-card.school { background: var(--navy); color: #fff }
.ed-card.biz { background: var(--card); border: 1px solid var(--line) }
.ed-card h3 { font-size: 32px; margin: 14px 0 12px }
.ed-card.school p { color: #D6E1F0 }
.ed-card.biz p { color: var(--muted) }
.ed-card ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 14.5px }
.ed-card li { display: flex; gap: 8px; align-items: flex-start }
.ed-card li svg { flex: none; margin-top: 4px; color: var(--gold) }
.ed-card .btns { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap }
.ed-card .ghost-ring { position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; border: 1.5px dashed rgba(247, 165, 0, .4); animation: spin 40s linear infinite }
.ed-card.biz .ghost-ring { border-color: rgba(30, 69, 120, .2) }
@keyframes spin { to { transform: rotate(360deg) } }
@media (max-width:860px) { .ed { grid-template-columns: 1fr } .ed-card ul { grid-template-columns: 1fr } }

/* mobile section */
.phone-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center }
.phones { display: flex; gap: 18px; justify-content: center }
.phone { width: 200px; height: 410px; background: var(--ink); border-radius: 32px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(10, 27, 51, .6) }
.phone:nth-child(2) { transform: translateY(36px) }
.phone .scr { background: var(--paper); border-radius: 24px; height: 100%; padding: 16px 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden }
.phone .scr .h { font-weight: 600; font-size: 13px }
.phone .scr .c { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 11px }
.phone .scr .c b { display: block; font-size: 15px }
.phone .scr .pill { display: inline-block; background: #EAF7F0; color: var(--ok); font-family: var(--mono); font-size: 9.5px; padding: 2px 6px; border-radius: 4px }
.phone .scr .pill.w { background: #FFF0CC; color: #7A4E00 }
.phone .scr .btnp { margin-top: auto; background: var(--navy); color: #fff; border-radius: 9px; text-align: center; font-size: 11.5px; padding: 9px; font-weight: 600 }
@media (max-width:860px) { .phone-row { grid-template-columns: 1fr } .phone { width: 160px; height: 330px } }

/* faq */
.faq { max-width: 880px }
.faq details { border-top: 1px solid var(--line); padding: 4px 0 }
.faq details:last-child { border-bottom: 1px solid var(--line) }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 18px; min-height: 44px }
.faq summary::-webkit-details-marker { display: none }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform .25s, background .25s }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--gold); border-color: var(--gold) }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch }

/* cta band */
.cta-band { background: var(--gold); color: var(--ink); padding: 80px 0; overflow: hidden; position: relative }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 58px); max-width: 20ch; color: var(--ink) }
.cta-band p { font-size: 18px; margin: 18px 0 30px; max-width: 54ch; color: #3A2A00 }
.cta-band .btn-navy { background: var(--ink) }
.cta-band .btn-line { background: transparent; border-color: rgba(10, 27, 51, .35) }
.cta-band .flags { position: absolute; right: -20px; top: 24px; display: flex; gap: 0; transform: rotate(-8deg); opacity: .9 }
.cta-band .flags i { width: 34px; height: 46px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%); animation: flutter 3s ease-in-out infinite; transform-origin: top }
.cta-band .flags i:nth-child(5n+1) { background: #1F5BB5 }
.cta-band .flags i:nth-child(5n+2) { background: #fff }
.cta-band .flags i:nth-child(5n+3) { background: #C8341F }
.cta-band .flags i:nth-child(5n+4) { background: #1F8A5B }
.cta-band .flags i:nth-child(5n+5) { background: #F2D33A }
.cta-band .flags i:nth-child(even) { animation-delay: .4s }
@keyframes flutter { 50% { transform: skewY(6deg) scaleY(.94) } }
@media (max-width:760px) { .cta-band .flags { display: none } }

/* page hero (inner) */
.phero { background: var(--ink); color: var(--on-ink); padding: 72px 0 64px; overflow: hidden; position: relative }
.phero h1 { font-size: clamp(36px, 4.8vw, 64px); color: #fff; margin: 18px 0 18px; max-width: 20ch }
.phero p.lede { font-size: 19px; color: var(--on-ink-muted); max-width: 60ch }
.crumbs { font-size: 13px; color: var(--on-ink-muted); display: flex; gap: 8px; flex-wrap: wrap }
.crumbs a { color: var(--on-ink); text-decoration: none }
.crumbs a:hover { text-decoration: underline }
.phero .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none }
.phero .big-ic { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 220px; height: 220px; color: rgba(247, 165, 0, .18); animation: floatY 8s ease-in-out infinite }
@media (max-width:900px) { .phero .big-ic { display: none } }

/* long-form content (legal pages, blog list/post) */
.legal-layout { display: grid; gap: 40px }
@media (min-width:860px) { .legal-layout { grid-template-columns: 220px 1fr } }
.legal-layout .toc { align-self: start }
.legal-layout .toc p { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px }
.legal-layout .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); display: grid; gap: 2px; counter-reset: toc }
.legal-layout .toc li { counter-increment: toc }
.legal-layout .toc a { display: block; padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; color: var(--muted); text-decoration: none }
.legal-layout .toc a::before { content: counter(toc) ". " }
.legal-layout .toc a:hover { color: var(--text); border-left-color: var(--navy) }
.prose { max-width: 46rem }
.prose > * + * { margin-top: 17px }
.prose p { color: var(--muted) }
.prose h2 { font-size: 24px; font-weight: 700; margin-top: 46px }
.prose h2:first-child { margin-top: 0 }
.prose h3 { font-size: 16.5px; font-weight: 600; margin-top: 30px }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 7px }
.prose li { line-height: 1.75; color: var(--muted) }
.prose .small { font-size: 14.5px; color: var(--muted) }
.prose .note { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 20px }
.prose .note b { display: block; color: var(--text); margin-bottom: 5px }
.prose .panel { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 20px }
.prose .panel b { display: block; color: var(--text); margin-bottom: 8px }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r) }
.table-wrap table.data { width: 100%; border-collapse: collapse; font-size: 14px }
.table-wrap table.data th, .table-wrap table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line) }
.table-wrap table.data th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper) }
.table-wrap table.data tr:last-child td { border-bottom: 0 }
.checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 15px }
.checklist li { display: flex; gap: 13px }
.checklist svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--navy); margin-top: 1px }
.checklist span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.7 }
.grid { display: grid; gap: 18px }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) }
.card { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 22px }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.7 }
a.card { text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(10, 27, 51, .3) }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap }
.pill-locked { background: #EAF0F8; color: var(--muted) }
.pill-optional { background: #E6F6F4; color: #0F766E }

/* module detail */
.md-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start }
.md-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; font-size: 14px }
.md-toc a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-left: 2px solid var(--line); min-height: 40px; display: flex; align-items: center }
.md-toc a:hover, .md-toc a.on { color: var(--text); border-left-color: var(--gold) }
.md-sec { padding: 0 0 64px; scroll-margin-top: 96px }
.md-sec h2 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 22px }
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px }
.feat.feat-3 { grid-template-columns: repeat(3, 1fr) }
.feat div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: border-color .2s, transform .2s }
.feat div:hover { border-color: var(--gold); transform: translateY(-3px) }
.feat h3 { font-size: 16.5px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center }
.feat h3::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none }
.feat p { font-size: 14.5px; color: var(--muted) }
.steps { display: flex; flex-wrap: wrap; gap: 0; counter-reset: s; position: relative; padding: 0; margin: 0 }
.steps li { list-style: none; flex: 1 1 150px; position: relative; padding: 44px 16px 0 0; font-size: 14px }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: 12px; display: grid; place-items: center; z-index: 1 }
.steps li::after { content: ""; position: absolute; top: 15px; left: 32px; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold) 50%, var(--line) 50%); background-size: 200% 100%; background-position: 100% 0; transition: background-position 1s ease }
.steps.in li::after { background-position: 0 0 }
.steps li:last-child::after { display: none }
.steps b { display: block; font-size: 15px; margin-bottom: 4px }
.steps span { color: var(--muted); font-size: 13.5px }
.screens { display: flex; flex-wrap: wrap; gap: 8px }
.screens span { font-size: 13.5px; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px }
.np-box { background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 26px 28px; display: grid; gap: 12px }
.np-box li { color: var(--on-ink) }
.np-box ul { margin: 0; padding-left: 20px; display: grid; gap: 8px }
.works { display: flex; gap: 10px; flex-wrap: wrap }
.works a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; min-height: 42px }
.works a:hover { border-color: var(--navy) }
.md-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px }
.md-next a { border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-decoration: none; color: var(--text); background: var(--card) }
.md-next a:hover { border-color: var(--navy) }
.md-next small { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em }
.md-next b { display: block; font-size: 18px; margin-top: 6px }
.md-next a:last-child { text-align: right }
@media (max-width:900px) {
  .md-grid { grid-template-columns: 1fr }
  .md-toc { display: none }
  .feat, .feat.feat-3 { grid-template-columns: 1fr }
  .md-next { grid-template-columns: 1fr }
  .md-next a:last-child { text-align: left }
}
@media (max-width:600px) {
  .feat.feat-3 { grid-template-columns: 1fr }
}
@media (min-width:601px) and (max-width:900px) {
  .feat.feat-3 { grid-template-columns: repeat(2, 1fr) }
}

/* screen preview inside module */
.mscreen { background: #0F2442; border-radius: 14px; padding: 14px; margin-bottom: 28px; box-shadow: 0 30px 60px -36px rgba(10, 27, 51, .7) }
.mscreen .tb { display: flex; gap: 6px; padding: 2px 4px 12px; font-family: var(--mono); font-size: 11px; color: var(--on-ink-muted); align-items: center }
.mscreen .tb i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2) }
.mscreen table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: 13px }
.mscreen th { background: #F2F6FB; text-align: left; font-weight: 600; padding: 10px 12px; font-size: 12px; color: var(--muted) }
.mscreen td { padding: 10px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums }
.mscreen td.n { text-align: right; font-family: var(--mono) }
.mscreen tr { animation: rowIn .5s ease both }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px) } }
.st { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 4px }
.st.g { background: #EAF7F0; color: var(--ok) }
.st.a { background: #FFF0CC; color: #7A4E00 }
.st.b { background: #EAF0F8; color: var(--navy) }
.tblwrap { overflow-x: auto; border-radius: 8px }

/* pricing */
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 36px }
.seg button { min-height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; font-family: var(--body); font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s }
.tier:hover { transform: translateY(-5px) }
.tier.hot { background: var(--ink); color: var(--on-ink); border-color: var(--ink); position: relative }
.tier.hot h3, .tier.hot .price { color: #fff }
.tier .price { font-size: 40px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums }
.tier .unit { font-size: 13px; color: var(--muted) }
.tier.hot .unit, .tier.hot p { color: var(--on-ink-muted) }
.tier ul { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; gap: 9px; font-size: 14.5px }
.tier li { display: flex; gap: 9px }
.tier li svg { flex: none; margin-top: 4px; color: var(--gold) }
.tier .btn { margin-top: auto; justify-content: center }
.tier .badge { position: absolute; top: -12px; left: 30px; background: var(--gold); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 5px; letter-spacing: .08em }
.school-price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: stretch }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px }
.calc label { font-weight: 600; display: block; margin-bottom: 10px }
.calc input[type=range] { width: 100%; accent-color: var(--navy); min-height: 44px }
.calc .out { font-size: 44px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 10px }
@media (max-width:900px) { .tiers { grid-template-columns: 1fr } .school-price { grid-template-columns: 1fr } }

/* industries */
.ind { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px }
.ind-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 12px }
.ind-card h3 { font-size: 21px }
.ind-card .fl { font-family: var(--mono); font-size: 12px; color: var(--navy); line-height: 1.7 }
.ind-card p { font-size: 14.5px; color: var(--muted) }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px }
.cinfo { display: grid; gap: 18px }
.cinfo div { border-top: 1px solid var(--line); padding-top: 16px }
.cinfo small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.cinfo b { display: block; font-size: 19px; margin-top: 4px }
form.demo { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: grid; gap: 16px }
form.demo .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
form.demo label { display: grid; gap: 6px; font-size: 14px; font-weight: 600 }
form.demo input, form.demo select, form.demo textarea { font: inherit; font-weight: 400; min-height: 46px; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--text) }
form.demo textarea { min-height: 100px; resize: vertical }
form.demo .ok { display: none; background: #EAF7F0; color: var(--ok); padding: 14px; border-radius: 8px; font-weight: 600 }
form.demo.sent .ok { display: block }
form.demo .form-errors { display: none; background: #FDEDEC; color: #9B2C1F; padding: 14px; border-radius: 8px; font-size: 14px }
form.demo .form-errors:not(:empty) { display: block }
form.demo .form-errors ul { margin: 0; padding-left: 18px }
@media (max-width:900px) { .contact { grid-template-columns: 1fr } form.demo .two { grid-template-columns: 1fr } }

/* footer */
footer.site { background: var(--ink); color: var(--on-ink-muted); padding: 72px 0 32px; font-size: 14px }
.fgrid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px }
footer.site h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 600 }
footer.site a { color: var(--on-ink-muted); text-decoration: none; display: block; padding: 4px 0 }
footer.site a:hover { color: var(--gold) }
.fsocial { display: flex; gap: 10px; margin-top: 18px }
/* footer.site a (padding:4px 0, display:block) otherwise outranks .fsocial a on specificity
   alone (0,1,2 vs 0,1,1) and wins regardless of source order, which was why the icons rendered
   off-center: display fell back to block, so the inline svg sat on its text baseline with 4px
   of padding above it instead of being flex-centered in its badge. */
footer.site .fsocial a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); padding: 0; line-height: 0 }
footer.site .fsocial a:hover { background: rgba(255, 255, 255, .12); color: var(--on-ink) }
.fsocial svg { display: block; width: 18px; height: 18px }
.fbottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px }
@media (max-width:900px) { .fgrid { grid-template-columns: 1fr 1fr } }
@media (max-width:540px) { .fgrid { grid-template-columns: 1fr } }
