/* Logic Engine website.
   World: Brand Book. Midnight Navy carries whole sections, Logic Gold marks action and emphasis on navy,
   Ivory is for reading and forms. Section edges are cut at an angle, like the blades of the E in the mark. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/montserrat-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); }

:root {
  --navy: #0B1733;
  --navy-deep: #060D20;
  --navy-up: #13224A;
  --gold: #C9A052;
  --gold-hi: #E4C98C;
  --champagne: #E8D3A6;
  --ivory: #F5F0E6;
  --paper: #FFFDF9;
  --sand: #F5F0E6;
  --cream: #FBF8F2;
  --navy-card: #111F45;
  --line-soft: #E7DFCF;
  --ink: #0B1733;
  --ink-2: #3C455C;
  --on-navy: #EDEFF5;
  --on-navy-2: #A8B0C4;
  --line: #DCD2BE;
  --line-navy: rgba(255, 255, 255, .14);
  --err: #AE3A3B;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 6px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --cut: clamp(28px, 5vw, 76px);   /* height of the angled section edge */
  --pad: clamp(72px, 8.5vw, 128px); /* vertical rhythm of a band */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 5px; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol, dl { margin: 0; padding: 0; }
::selection { background: var(--gold); color: var(--navy); }
html { scrollbar-color: #8C7A55 var(--ivory); accent-color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--champagne); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--navy); padding: 10px 16px; z-index: 100; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }

/* Type */
.display { font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.75rem); line-height: 1.06; letter-spacing: -.028em; }
.h2 { font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.022em; }
.display b, .h2 b, h1 b { font-weight: 700; }
.on-navy .display b, .on-navy .h2 b, .on-navy h1 b { color: var(--gold); }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.6; max-width: 58ch; }
.measure { max-width: 64ch; }
.muted { color: var(--ink-2); }
.on-navy { color: var(--on-navy); }
.on-navy .lede, .on-navy p { color: #D3D8E4; }

/* Bands */
.band { position: relative; padding: var(--pad) 0; }
.band-navy { background: var(--navy); color: var(--on-navy); }
.band-deep { background: var(--navy-deep); color: var(--on-navy); }
.band-paper { background: var(--sand); }
/* Angled edges. The band overlaps its neighbours by one cut and is clipped to a parallelogram. */
.cut { margin-block: calc(var(--cut) * -1); padding-block: calc(var(--pad) + var(--cut)); clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); z-index: 1; }
.cut-top { margin-top: calc(var(--cut) * -1); padding-top: calc(var(--pad) + var(--cut)); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); z-index: 1; }
.cut-bottom { margin-bottom: calc(var(--cut) * -1); padding-bottom: calc(var(--pad) + var(--cut)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.band-after-cut { padding-top: calc(var(--pad) + var(--cut)); }

/* Brand pattern P2: interlocked ellipses, as a quiet ground */
.p2 { position: absolute; inset: 0; pointer-events: none; background: url('/img/p2.svg') center / 520px auto repeat; opacity: .5; -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 100%); mask-image: linear-gradient(100deg, transparent 25%, #000 100%); }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(201, 160, 82, .28); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 10px 0; }
.brand-icon { height: 40px; width: auto; }
.brand-word { height: 17px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.nav > a:not(.btn) { color: #E4E7F0; text-decoration: none; padding: 10px 14px; font-size: .9375rem; font-weight: 500; position: relative; transition: color .2s; }
.nav > a:not(.btn)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav > a:not(.btn):hover { color: #fff; }
.nav > a:not(.btn):hover::after, .nav > a[aria-current='page']::after { transform: scaleX(1); }
.nav > a[aria-current='page'] { color: #fff; }
.nav .btn { margin-left: 14px; }
.nav-toggle { display: none; position: relative; width: 48px; height: 48px; background: none; border: 1px solid rgba(232, 211, 166, .45); color: var(--champagne); border-radius: var(--radius); cursor: pointer; padding: 0; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 13px; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle .bars { top: 22px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded='true'] .bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: var(--radius); border: 1.5px solid transparent; font: 600 .9375rem var(--font-body); text-decoration: none; cursor: pointer; letter-spacing: .01em; transition: background-color .2s, color .2s, border-color .2s, transform .35s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .875rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-up); }
.btn-ghost { border-color: rgba(232, 211, 166, .5); color: var(--champagne); }
.btn-ghost:hover { border-color: var(--champagne); background: rgba(232, 211, 166, .1); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--ivory); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: currentColor; }

/* Heroes */
.hero { position: relative; background: radial-gradient(1000px 640px at 86% -8%, #20366B 0%, rgba(32, 54, 107, 0) 70%), var(--navy); color: #fff; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-page { min-height: clamp(380px, 52vh, 540px); display: flex; align-items: center; padding: calc(var(--pad) * .7) 0 calc(var(--pad) * .7 + var(--cut)); }
.hero-page h1 { font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.07; letter-spacing: -.026em; max-width: 17ch; }
.hero .lede { margin-top: 32px; color: #D3D8E4; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hero-mark { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-left: auto; }
.hero-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-mark .ring { fill: none; stroke: var(--gold); transform-box: fill-box; transform-origin: center; }
.hero-mark .r1 { stroke-opacity: .55; stroke-width: 1.5; animation: drift 140s linear infinite; }
.hero-mark .r2 { stroke-opacity: .28; stroke-width: 1; animation: drift 230s linear infinite reverse; }
.hero-mark .r3 { stroke-opacity: .16; stroke-width: 1; animation: drift 320s linear infinite; }
.hero-mark .dot { fill: var(--gold-hi); }
.hero-mark img { position: absolute; left: 14%; top: 22%; width: 72%; height: auto; }
@keyframes drift { to { transform: rotate(360deg); } }
.hero-page::after { content: ''; position: absolute; right: -4%; top: 50%; width: clamp(280px, 38vw, 560px); aspect-ratio: 550 / 405; transform: translateY(-50%); background: url('/img/icon-gold.webp') center / contain no-repeat; opacity: .11; pointer-events: none; }

/* Screenshots: a flat frame with real depth */
.frame { margin: 0; }
.frame img { width: 100%; border-radius: 8px; background: var(--navy-deep); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 28px 60px -24px rgba(0, 0, 0, .65), 0 10px 24px -12px rgba(0, 0, 0, .5); }
.frame figcaption { margin-top: 16px; font-size: .9rem; color: var(--on-navy-2); }
.frame figcaption b { color: var(--champagne); font-weight: 600; }

/* At a glance: facts the product can back, set as a ledger row */
.band-facts { padding: clamp(40px, 5vw, 64px) 0 0; }
.band-facts.band-after-cut { padding-top: calc(28px + var(--cut)); padding-bottom: calc(28px + var(--cut)); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.facts > div { padding: 20px clamp(16px, 2vw, 28px) 4px 0; position: relative; }
.facts > div + div { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.facts > div::before { content: ''; position: absolute; top: -1px; left: 0; width: 40px; height: 3px; background: var(--navy); }
.facts > div + div::before { left: clamp(16px, 2vw, 28px); }
.facts dt { font-size: .8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; margin-bottom: 8px; }
.facts dd { margin: 0; font: 500 1.125rem/1.35 var(--font-head); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.band-tight-top { padding-top: clamp(64px, 7vw, 104px); }

/* Home */
.statement .wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.statement .display { max-width: 18ch; }
.statement p { color: var(--ink-2); font-size: 1.1875rem; }

/* method: a stair, each step one rung lower, like the blades of the E */
.method { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: start; margin-top: clamp(48px, 6vw, 88px); }
.method li { position: relative; padding: 28px clamp(16px, 2vw, 32px) 0 0; border-top: 1px solid var(--gold); }
.method li:nth-child(2) { margin-top: 44px; }
.method li:nth-child(3) { margin-top: 88px; }
.method li:nth-child(4) { margin-top: 132px; }
.method li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.method-n { display: block; font: 300 clamp(2rem, 3vw, 2.6rem) var(--font-head); color: var(--gold); line-height: 1; margin-bottom: 18px; }
.method h3 { font-weight: 600; font-size: 1.25rem; margin-bottom: 10px; color: #fff; letter-spacing: -.01em; }
.method p { margin: 0; color: #C3C9D8; font-size: 1rem; max-width: 30ch; }

/* offer: three big lines, the type is the layout */
.offer { list-style: none; margin-top: clamp(40px, 5vw, 72px); }
.offer li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: baseline; padding: clamp(28px, 4vw, 52px) 0; border-top: 1px solid var(--line); }
.offer li:last-child { border-bottom: 1px solid var(--line); }
.offer h3 { font-weight: 300; font-size: clamp(1.5rem, 2.5vw, 2.15rem); letter-spacing: -.02em; line-height: 1.1; }
.offer p { margin: 0; color: var(--ink-2); font-size: 1.125rem; }
.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: end; }
.intro p { margin: 0; color: var(--ink-2); font-size: 1.1875rem; }
.on-navy .intro p { color: #D3D8E4; }


.join .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta .wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); }
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 24px; font-size: 1.25rem; max-width: 46ch; }

/* About */
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { font-size: 1.1875rem; line-height: 1.7; color: var(--ink-2); max-width: 56ch; }
.prose p:first-of-type { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.45; color: var(--ink); }
.principles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 72px); }
.principles li { padding-top: 22px; border-top: 1px solid var(--navy); }
.principles h3 { font: 300 clamp(1.4rem, 2vw, 1.8rem) var(--font-head); letter-spacing: -.02em; margin-bottom: 12px; }
.principles h3 b { font-weight: 700; }
.principles p { margin: 0; color: var(--ink-2); }

/* Product showcase (dark: the screens are dark UI) */
.showcase .wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.toc { position: sticky; top: 96px; }
.toc p { font-size: .85rem; color: var(--on-navy-2); margin-bottom: 14px; }
.toc ol { list-style: none; border-left: 1px solid var(--line-navy); }
.toc a { display: block; padding: 9px 0 9px 18px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: #B3BACB; font-size: .9375rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: #fff; }
.toc a[aria-current='true'] { color: #fff; font-weight: 600; border-left-color: var(--gold); }
.module { padding: 0 0 clamp(64px, 8vw, 120px); scroll-margin-top: 96px; }
.module + .module { padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-navy); }
.module h2 { font-weight: 300; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.08; letter-spacing: -.025em; color: #fff; margin-bottom: 20px; }
.module-lead { font-size: 1.3rem; line-height: 1.5; max-width: 50ch; color: #E3E6EE; margin-bottom: 36px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; margin: 0 0 44px; }
.points > div { padding: 16px 0; border-top: 1px solid var(--line-navy); }
.points dt { font-weight: 600; color: #fff; }
.points dd { margin: 2px 0 0; color: #B3BACB; }
.figs { display: grid; gap: 40px 32px; }
.figs-2 { grid-template-columns: 1fr 1fr; }
.figs-2 .frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.journey { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.journey li { padding-top: 18px; border-top: 1px solid var(--gold); }
.journey .method-n { font-size: 1.7rem; margin-bottom: 10px; }
.journey h3 { font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; color: #fff; }
.journey p { margin: 0; color: #B3BACB; font-size: .95rem; }
.module-plain p { color: #B3BACB; max-width: 60ch; }

.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 8px; height: 8px; background: #8C6A20; transform: rotate(45deg); }
.video video { width: 100%; border-radius: 8px; background: var(--navy-deep); }

/* Product modules carry their screens */
.module .frame { margin-bottom: 28px; }
.module .figs { margin-bottom: 28px; }
.module .figs .frame { margin-bottom: 0; }
.module-video { margin-bottom: clamp(56px, 7vw, 96px); }
.points { margin-top: 12px; }

/* Questions */
.faq { border-top: 1px solid var(--line-navy); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-navy); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; min-height: 44px; font: 600 1.0625rem/1.4 var(--font-head); color: #fff; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { margin: -4px 0 22px; max-width: 64ch; color: #C3C9D8; }

/* Pricing */
.parts { list-style: none; border-top: 1px solid var(--navy); }
.parts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.parts strong { font: 600 1.15rem var(--font-head); letter-spacing: -.01em; }
.parts span { color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.plan { background: var(--sand); border: 1px solid var(--line); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan-hi { border: 2px solid var(--gold); }
.plan h2 { font-size: 1.4rem; font-weight: 600; }
.plan-price { font: 300 2.2rem var(--font-head); margin: 0; }
.plan-price span { font: 400 .9rem var(--font-body); color: var(--ink-2); }

/* Forms */
.form-layout { max-width: 960px; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.form-title { font-weight: 300; font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -.02em; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.form legend { font: 600 1rem var(--font-head); padding: 0; margin-bottom: 10px; letter-spacing: -.01em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.row3-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; }
.req { color: var(--err); font-weight: 700; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .8rem; margin-left: 8px; }
.req-note { font-size: .85rem; color: var(--ink-2); margin: 0; }
.field input:not([type='checkbox']):not([type='radio']):not([type='file']), .field select, .field textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid #B8AE96; border-radius: var(--radius); background: #fff; font: 400 1rem var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #727A8E; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 160, 82, .55); }
.has-error input:not([type='checkbox']), .has-error select, .has-error textarea { border-color: var(--err); }
.hint { font-size: .85rem; color: var(--ink-2); margin: 0; }
.err { font-size: .875rem; color: var(--err); font-weight: 500; margin: 0; }
.err[hidden] { display: none; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
.checks.inline { display: flex; gap: 28px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .95rem !important; cursor: pointer; min-height: 32px; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.file { position: relative; display: flex; align-items: center; gap: 14px; border: 1.5px dashed #B8AE96; border-radius: var(--radius); padding: 12px 14px; background: #fff; cursor: pointer; min-height: 60px; font-weight: 400 !important; transition: border-color .2s; }
.file:hover { border-color: var(--navy); }
.file:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--navy); }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-btn { background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 4px; font-weight: 600; font-size: .875rem; flex: none; }
.file-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; }
.file.has-file .file-name { color: var(--ink); font-weight: 500; }
.has-error .file { border-color: var(--err); border-style: solid; }
.form-alert { border: 1.5px solid var(--err); background: #FBEDED; border-radius: var(--radius); padding: 16px 20px; color: #571D1E; }
.form-alert p { margin: 0 0 6px; }
.form-alert ul { margin: 0; padding-left: 20px; }
.form-alert a { color: inherit; font-weight: 500; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.form-foot .btn { min-width: 220px; }
.form-foot .status { margin-right: auto; }
.status { margin: 0; font-size: .9rem; color: var(--ink-2); }
.status:empty { display: none; }
.form-aside { columns: 3 260px; column-gap: clamp(28px, 5vw, 72px); }
.form-aside h2 { font: 600 1.15rem var(--font-head); margin-bottom: 10px; letter-spacing: -.01em; break-after: avoid; }
.form-aside p, .form-aside dl { break-inside: avoid; }
.form-aside p { color: var(--ink-2); }
.form-aside h2:not(:first-child) { margin-top: 24px; }
.details { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.details dt { font-weight: 600; }
.details dd { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.open-note { margin-top: 36px; max-width: 64ch; color: var(--ink); }
.prose-page h2 { font: 600 1.4rem var(--font-head); margin: 2em 0 .6em; }
.prose-page h2:first-child { margin-top: 0; }
.prose-page p { color: var(--ink-2); max-width: 68ch; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #D3D8E4; position: relative; z-index: 2; clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); padding-top: var(--cut); }
.foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.foot-lead .brand { padding: 0; }
.foot-pitch { margin: 24px 0; max-width: 36ch; font-size: 1.125rem; line-height: 1.55; }
.foot-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-h { font: 600 1rem var(--font-head); color: #fff; margin: 0 0 14px; letter-spacing: -.005em; }
.foot ul { list-style: none; display: grid; gap: 2px; }
.foot-cols a { color: #B3BACB; text-decoration: none; padding: 6px 0; display: inline-block; overflow-wrap: anywhere; transition: color .2s; }
.foot-cols a:hover { color: var(--champagne); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-navy); padding-top: 22px; padding-bottom: 28px; font-size: .875rem; color: var(--on-navy-2); }
.foot-bottom p { margin: 0; }
.to-top { color: var(--champagne); }

/* Responsive */
@media (max-width: 1100px) {
  .js .nav-toggle { display: block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 28px; border-bottom: 1px solid rgba(201, 160, 82, .28); }
  .js .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: 15px 2px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav > a:not(.btn)::after { display: none; }
  .nav .btn { margin: 18px 0 0; }
}
@media (max-width: 1000px) {
  .hero-grid, .hero-split, .statement .wrap, .join .wrap, .two, .intro, .offer li, .form-layout, .foot { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(3)::before { left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-grid .hero-mark { display: none; }
  .method { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .method li:nth-child(n) { margin-top: 0; }
  .principles { grid-template-columns: 1fr 1fr; }
  .showcase .wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; border-left: 0; gap: 4px 20px; }
  .toc a { border-left: 0; padding: 6px 0; margin: 0; }
  .points, .figs-2 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .parts li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 680px) {
  .method, .principles, .journey { grid-template-columns: 1fr; }
  .row2, .row3, .row3-wide, .checks { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .checks.inline { flex-direction: column; gap: 12px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .glance dl > div { grid-template-columns: 1fr; gap: 2px; }
  .actions .btn { flex: 1 1 100%; }
  .file { flex-wrap: wrap; }
  .hero-home h1 { max-width: none; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--line); }
  .facts > div::before, .facts > div + div::before { left: 0; }
}
.pad-end { padding-bottom: calc(var(--pad) + var(--cut)); }
.band-navy > .wrap, .band-deep > .wrap { position: relative; z-index: 1; }
.hero.pad-end { padding-bottom: calc(var(--pad) * .7 + var(--cut) * 2); }
.principles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .principles.three { grid-template-columns: 1fr; } }

/* About: who we are */
.who .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.who .lead { font-weight: 300; font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.3; letter-spacing: -.018em; max-width: 26ch; margin-bottom: 28px; }
.who .lead b { font-weight: 700; }
.who p { color: var(--ink-2); font-size: 1.125rem; max-width: 52ch; }
.who p.lead { color: var(--ink); }
.who .links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.glance { margin: 0; border-top: 1px solid var(--navy); }
.glance > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.glance dt { font-size: .875rem; color: var(--ink-2); }
.glance dd { margin: 0; font: 400 1.35rem/1.3 var(--font-head); letter-spacing: -.012em; }

/* Closing call to action with the orbiting mark */
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.cta-grid .hero-mark { max-width: 360px; }
@media (max-width: 1000px) { .who .wrap, .cta-grid { grid-template-columns: 1fr; } .cta-grid .hero-mark { display: none; } }


/* Labelled actions, touch targets */
.actions-labelled { align-items: flex-start; gap: 20px 28px; }
.actions-labelled > div { display: grid; gap: 8px; }
.actions-labelled span { font-size: .875rem; color: #B3BACB; max-width: 26ch; }
.band:not(.band-navy):not(.band-deep) .actions-labelled span { color: var(--ink-2); }
.nav > a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
.foot-cols a { padding: 11px 0; min-height: 44px; display: inline-flex; align-items: center; }
.to-top { display: inline-flex; align-items: center; min-height: 44px; }
.check-row { min-height: 44px; align-items: center; }
.check-row input { margin: 0; }
.foot-actions .btn { min-height: 44px; }
@media (max-width: 1100px) { .nav > a:not(.btn) { min-height: 48px; } }

.demo-adds { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(32px, 4vw, 56px); }
.demo-adds li { padding-top: 20px; border-top: 1px solid var(--gold-deep, #8C6A20); }
.demo-adds h3 { font: 600 1.2rem var(--font-head); margin-bottom: 8px; letter-spacing: -.01em; }
.demo-adds p { margin: 0; color: var(--ink-2); }
@media (max-width: 1000px) { .demo-adds { grid-template-columns: 1fr; } }

/* Dark bands carry the same components as light ones */
.on-navy .principles li { border-top-color: var(--gold); }
.on-navy .principles h3 { color: #fff; }
.on-navy .principles p, .on-navy .offer p, .on-navy .open-note { color: #C3C9D8; }
.on-navy .offer li { border-color: var(--line-navy); }
.on-navy .offer h3 { color: #fff; }
.on-navy .open-note strong { color: #fff; }
.on-navy .form-aside h2 { color: #fff; }
.on-navy .form-aside p { color: #D3D8E4; }
.on-navy .link { text-decoration-color: var(--gold); }
.on-navy .parts { border-top-color: var(--line-navy); }
.on-navy .parts li { border-bottom-color: var(--line-navy); }
.on-navy .parts strong { color: #fff; }
.on-navy .parts span { color: #C3C9D8; }
.on-navy .glance { border-top-color: var(--line-navy); }

/* Pricing: parts of the CRM */
.parts-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 56px); }
.parts-grid li { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 1px solid var(--gold-deep, #8C6A20); }
.parts-grid .part-n { font: 300 1.5rem var(--font-head); color: var(--gold-deep, #8C6A20); line-height: 1; }
.parts-grid strong { font: 600 1.15rem var(--font-head); letter-spacing: -.01em; }
.parts-grid li > span:last-child { color: var(--ink-2); }
@media (max-width: 1000px) { .parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .parts-grid { grid-template-columns: 1fr; } }

/* a form is paper wherever it sits, so it keeps ink colours inside a dark band */
.on-navy .form { color: var(--ink); }
.on-navy .form p, .on-navy .form .hint, .on-navy .form .req-note, .on-navy .form .status { color: var(--ink-2); }
.on-navy .form .err { color: var(--err); }
.on-navy .form .form-alert p { color: #571D1E; }
.on-navy .form .link, .on-navy .form a { color: var(--ink); }

.hero-slim { min-height: 0; padding-top: calc(var(--pad) * .55); padding-bottom: calc(var(--pad) * .45 + var(--cut)); }
.on-navy .demo-adds { margin: clamp(24px, 3vw, 40px) 0 0; max-width: 1000px; }
.on-navy .demo-adds li { border-top-color: var(--gold); }
.on-navy .demo-adds h3 { color: #fff; }
.on-navy .demo-adds p { color: #C3C9D8; }

/* product page: the hero holds the screen tour, so the top of the page is one dark section */

/* ==========================================================================
   Company-first home.
   Headlines carry weight: Montserrat 600, one phrase marked. On navy the mark is gold text;
   on ivory it is a gold bar under navy text (gold never as text on ivory).
   ========================================================================== */
.display, .h2, .hero-page h1, .module h2 { font-weight: 600; }
.display { letter-spacing: -.034em; }
.h2 { letter-spacing: -.03em; }
.hero-page h1 { letter-spacing: -.034em; }
.display b, .h2 b, h1 b { font-weight: 700; }
.band:not(.on-navy) .h2 b, .band:not(.on-navy) .display b { background: linear-gradient(var(--gold), var(--gold)) 0 94% / 100% .14em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.offer h3, .principles h3, .who .lead { font-weight: 500; }

/* Light grounds: brand ivory with a soft wash of light from the top; cream for alternate bands */
.band-ivory, .band:not(.band-navy):not(.band-deep):not(.hero) { background: radial-gradient(1200px 520px at 50% -10%, #FFFDF8 0%, rgba(255, 253, 248, 0) 70%), var(--ivory); }
.band-cream { background: var(--cream) !important; }
.band-ivory > .wrap { position: relative; z-index: 1; }

/* Navy grounds: depth from two lights, one cool, one warm, and a quieter P2 */
.band-navy, .hero { background: radial-gradient(900px 560px at 88% -6%, rgba(201, 160, 82, .10) 0%, rgba(201, 160, 82, 0) 65%), radial-gradient(1100px 700px at -10% 110%, #17295C 0%, rgba(23, 41, 92, 0) 60%), var(--navy); }
.p2 { opacity: .22; }

/* Home hero: the company, with a composition of how it works */
.hero-home { padding: clamp(56px, 7vw, 96px) 0 calc(var(--cut) + 8px); }
.hero-home .hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-home h1 { font-weight: 600; font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.038em; max-width: 11ch; }
.hero-home .hero-mark { max-width: 540px; }
.mark-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 160, 82, .22), rgba(201, 160, 82, 0)); }
.hero-mark .dot-2 { fill: var(--champagne); }
.hero-mark img { animation: mark-in 1.2s var(--ease) both; }
@keyframes mark-in { from { opacity: 0; transform: scale(.94); } }
.hero-home .lede { margin-top: 28px; }
.hero-home .actions { margin-top: 36px; }
.idrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 48px 0 0; border-top: 1px solid var(--line-navy); }
.idrow > div { padding: 16px 16px 0 0; }
.idrow > div + div { padding-left: 16px; border-left: 1px solid var(--line-navy); }
.idrow dt { font-size: .75rem; font-weight: 600; color: var(--on-navy-2); margin-bottom: 4px; }
.idrow dd { margin: 0; font: 600 .975rem/1.35 var(--font-head); color: #fff; letter-spacing: -.01em; }

/* Next step: three paths */
.next-band .cta-grid { align-items: center; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 64px); }
.path { display: grid; gap: 10px; align-content: start; padding: 26px; border: 1px solid var(--line-navy); border-radius: 12px; text-decoration: none; color: var(--on-navy); background: rgba(255, 255, 255, .02); transition: border-color .25s, background-color .25s, transform .35s var(--ease); }
.path:hover { border-color: rgba(201, 160, 82, .7); background: rgba(255, 255, 255, .05); transform: translateY(-2px); }
.path-k { font-size: .75rem; font-weight: 600; color: var(--on-navy-2); }
.path strong { font: 600 1.25rem/1.25 var(--font-head); letter-spacing: -.015em; color: #fff; }
.path > span:not(.path-k) { color: #C3C9D8; font-size: .9375rem; }
.path em { font-style: normal; font-weight: 600; color: var(--gold); margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; }
.path em::after { content: ''; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.path:hover em::after { transform: translateX(3px) rotate(45deg); }

@media (max-width: 1000px) {
  .hero-home .hero-split { grid-template-columns: 1fr; gap: 8px; }
  .hero-home h1 { max-width: 14ch; }
  .hero-home .hero-mark { order: -1; width: min(300px, 70vw); margin: 0 auto; }
  .paths { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .idrow { grid-template-columns: 1fr; }
  .idrow > div, .idrow > div + div { padding: 12px 0; border-left: 0; }
  .idrow > div + div { border-top: 1px solid var(--line-navy); }
  .hero-home { padding-top: 28px; }
  .hero-home .hero-mark { width: min(240px, 64vw); }
  .flow { flex-wrap: wrap; }
  .flow li { flex: 1 1 40%; }
  .flow li:nth-child(3)::before { display: none; }
}

/* ==========================================================================
   Card system, used on every page.
   Light ground: warm white card, soft border, low shadow, a short navy rule as its mark.
   Navy ground: raised navy card, faint border, a short gold rule.
   ========================================================================== */
.principles li, .demo-adds li, .parts-grid li {
  position: relative; padding: 30px 26px 26px; border: 1px solid var(--line-soft); border-radius: 16px;
  background: var(--paper); box-shadow: 0 1px 2px rgba(11, 23, 51, .04), 0 18px 36px -26px rgba(11, 23, 51, .28);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.principles li:hover, .demo-adds li:hover, .parts-grid li:hover { transform: translateY(-2px); border-color: #D8CBB0; box-shadow: 0 1px 2px rgba(11, 23, 51, .05), 0 26px 44px -26px rgba(11, 23, 51, .38); }
.principles h3 { font: 600 1.3rem/1.25 var(--font-head); letter-spacing: -.018em; }
.on-navy .principles li, .on-navy .demo-adds li { background: var(--navy-card); border-color: rgba(255, 255, 255, .08); box-shadow: 0 24px 44px -30px rgba(0, 0, 0, .7); }
.on-navy .principles li:hover, .on-navy .demo-adds li:hover { border-color: rgba(201, 160, 82, .45); }

.path { background: var(--navy-card); border-color: rgba(255, 255, 255, .08); border-radius: 16px; }
.form { border-radius: 16px; border-color: var(--line-soft); box-shadow: 0 1px 2px rgba(11, 23, 51, .04), 0 30px 60px -40px rgba(11, 23, 51, .45); }
.glance { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; padding: 8px 24px; }
.glance > div:last-child { border-bottom: 0; }
.on-navy .glance { background: var(--navy-card); border-color: rgba(255, 255, 255, .08); }

/* Offer rows: type-led, with a quiet hover */
.offer li { transition: background-color .3s; border-radius: 0; }
.offer h3 { font-weight: 600; font-size: clamp(1.4rem, 2.3vw, 2rem); }

/* Inner page heroes */
.hero-page h1 { font-weight: 600; }

@media (max-width: 680px) {
  .principles li, .demo-adds li, .parts-grid li { padding: 26px 20px 22px; }
}

/* Anchors clear the sticky header */
main [id] { scroll-margin-top: 88px; }
.form-title { font-weight: 600; }

/* ==========================================================================
   Home sections in the Logic Engine idiom
   ========================================================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* What we build: the three blades of the E */
.blades { margin-top: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line-navy); }
.blade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding: clamp(30px, 4vw, 52px) 0; border-bottom: 1px solid var(--line-navy); align-items: start; }
.blade-head { display: grid; gap: 18px; }
.blade-bar { display: block; height: 10px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); width: 180px; transition: width .6s var(--ease); }
.blade:nth-child(2) .blade-bar { width: 118px; }
.blade:hover .blade-bar { width: 220px; }
.blade:nth-child(2):hover .blade-bar { width: 158px; }
.blade h3 { font: 600 clamp(1.5rem, 2.4vw, 2.1rem)/1.1 var(--font-head); letter-spacing: -.025em; color: #fff; }
.blade-text { margin: 0; color: #C9CFDC; font-size: 1.0625rem; }
.blade-side { display: grid; gap: 18px; justify-items: start; }
.blade-points { list-style: none; display: grid; gap: 10px; }
.blade-points li { position: relative; padding-left: 22px; color: #E3E6EE; }
.blade-points li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

@media (max-width: 1000px) {
  .blade { grid-template-columns: 1fr; gap: 16px; }
  .product-split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Diamond marker, process line, module map, product page
   ========================================================================== */
/* The diamond: the mark's angle as a number holder */
.pd { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--navy); border-radius: 5px; transform: rotate(45deg); }
.pd > span { transform: rotate(-45deg); font: 600 1rem var(--font-head); color: var(--gold); }
.pd-sm { width: 34px; height: 34px; border-radius: 4px; }
.pd-sm > span { font-size: .875rem; }
.on-navy .pd { background: var(--navy-card); box-shadow: inset 0 0 0 1px rgba(201, 160, 82, .55); }

/* Process: diamonds on one line */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); position: relative; margin-top: clamp(40px, 5vw, 64px); }
.process-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process::before { content: ''; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line); }
.on-navy .process::before { background: rgba(201, 160, 82, .35); }
.process li { position: relative; }
.process .pd { margin-left: 0; }
.process h3 { font: 600 1.15rem/1.25 var(--font-head); letter-spacing: -.015em; margin: 26px 0 8px; }
.process p { margin: 0; color: var(--ink-2); font-size: .9688rem; max-width: 30ch; }
.on-navy .process h3 { color: #fff; }
.on-navy .process p { color: #C3C9D8; }
.method-band { padding-bottom: clamp(64px, 7vw, 104px); }

/* Home: module map of the product */
.product-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.product-copy p { color: var(--ink-2); font-size: 1.125rem; margin-top: 22px; max-width: 44ch; }
/* Pricing parts carry the diamond */
.parts-grid li { gap: 8px; }
.parts-grid .pd { margin: 6px 0 12px 4px; }
.parts-grid strong { font-size: 1.125rem; }

/* Product page hero: copy and the dashboard side by side */
.hero-product { padding: clamp(56px, 7vw, 96px) 0 calc(var(--pad) * .55 + var(--cut)); }
.hp-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-product h1 { font-weight: 600; font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.034em; }
.hero-product .lede { margin-top: 24px; }
.hp-shot img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top left; border-radius: 10px; }
.hp-shot figcaption { margin-top: 12px; }

/* Module navigation: one sticky row */
.toc.modnav { position: sticky; top: 72px; z-index: 30; background: rgba(245, 240, 230, .96); border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px -18px rgba(11, 23, 51, .4); }
.modnav ol { list-style: none; display: flex; flex-wrap: nowrap; gap: 4px; border-left: 0; overflow-x: auto; scrollbar-width: none; }
.modnav ol::-webkit-scrollbar { display: none; }
.modnav li { flex: none; }
.toc.modnav a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; margin: 0; border: 0; border-bottom: 2px solid transparent; font-size: .875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.toc.modnav a:hover { color: var(--ink); }
.toc.modnav a[aria-current='true'] { color: var(--ink); border-bottom-color: var(--navy); }

/* Modules: alternating rows, copy beside the real screen */
.modules-band { padding-top: clamp(64px, 7vw, 104px); }
.mrow { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.intro + .mrow, .module-video + .mrow { margin-top: clamp(40px, 5vw, 64px); }
.mrow-flip .mrow-copy { order: 2; }
.mrow-n { margin: 0 0 22px 4px; }
.mrow h2 { font: 600 clamp(1.6rem, 2.6vw, 2.25rem)/1.1 var(--font-head); letter-spacing: -.028em; }
.mrow-lead { font-size: 1.125rem; color: var(--ink-2); margin: 14px 0 22px; max-width: 44ch; }
.mpoints { margin: 0; display: grid; }
.mpoints > div { padding: 12px 0; border-top: 1px solid var(--line); }
.mpoints dt { font-weight: 600; }
.mpoints dd { margin: 2px 0 0; color: var(--ink-2); font-size: .9375rem; }
.mfig { position: relative; }
.modules-band .frame img { border-color: rgba(11, 23, 51, .14); box-shadow: 0 34px 64px -36px rgba(11, 23, 51, .65), 0 10px 22px -14px rgba(11, 23, 51, .35); }
.modules-band .frame figcaption { color: var(--ink-2); font-size: .8125rem; }
.mfig-layered { padding-bottom: 16%; }
.mfig-2 { position: absolute; right: -3%; bottom: 0; width: 50%; }
.mfig-2 img { box-shadow: 0 30px 60px -24px rgba(11, 23, 51, .75), 0 0 0 6px var(--ivory) !important; }
.mfig-2 figcaption { display: none; }
.mrow-flip .mfig-2 { right: auto; left: -3%; }
.module-video { margin-top: clamp(40px, 5vw, 64px); }

/* MetaTrader 5 panel in the journey band */
.mt5 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 3vw, 36px); border-radius: 16px; background: var(--navy-card); border: 1px solid rgba(201, 160, 82, .35); }
.mt5 h3 { font: 600 1.375rem var(--font-head); color: #fff; margin-bottom: 8px; }
.mt5 p { margin: 0; }
.on-navy .mt5 .mt5-note { color: var(--on-navy-2); font-size: .9375rem; }

/* Questions on ivory */
.faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-split .muted { margin-top: 18px; }
.faq-band .faq { border-top-color: var(--line); max-width: none; }
.faq-band .faq details { border-bottom-color: var(--line); }
.faq-band .faq summary { color: var(--ink); }
.faq-band .faq summary:hover { color: var(--navy-up); }
.faq-band .faq summary::after { border-color: var(--navy); }
.faq-band .faq details p { color: var(--ink-2); }

@media (max-width: 1000px) {
  .hp-split, .mrow, .faq-split, .mt5 { grid-template-columns: 1fr; }
  .mrow-flip .mrow-copy { order: 0; }
  .mfig-layered { padding-bottom: 0; }
  .mfig-2, .mrow-flip .mfig-2 { position: relative; left: auto; right: auto; width: 72%; margin: -12% 0 0 auto; }
  .process, .process-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .process::before { display: none; }
}
@media (max-width: 680px) {
  .process, .process-5 { grid-template-columns: 1fr; row-gap: 0; }
  .process li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 20px; padding-bottom: 26px; }
  .process li::before { content: ''; position: absolute; left: 22px; top: 44px; bottom: 0; width: 1px; background: var(--line); }
  .on-navy .process li::before { background: rgba(201, 160, 82, .35); }
  .process li:last-child { padding-bottom: 0; }
  .process li:last-child::before { display: none; }
  .process .pd { grid-row: span 2; }
  .process h3 { margin: 10px 0 4px; }
}
.mfig-layered .mfig-main figcaption { display: none; }
.toc.modnav ol { justify-content: center; }
@media (max-width: 1000px) { .toc.modnav ol { justify-content: flex-start; } }
@media (max-width: 1000px) { .product-split { grid-template-columns: 1fr; } }

/* Home: the six parts of the product as a light, type-led list (replaces the dark module card) */
.modlist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); }
.modlist li { border-bottom: 1px solid var(--line); }
.modlist a { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px; gap: 18px; align-items: center; padding: 22px 8px 22px 4px; text-decoration: none; transition: background-color .3s; }
.modlist a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.modlist a:hover::after, .modlist a:focus-visible::after { transform: scaleX(1); }
.modlist .pd { transition: transform .45s var(--ease); }
.modlist a:hover .pd { transform: rotate(135deg); }
.modlist a:hover .pd > span { transform: rotate(-135deg); }
.modlist .pd > span { transition: transform .45s var(--ease); }
.ml-t strong { display: block; font: 600 1.0625rem/1.3 var(--font-head); letter-spacing: -.012em; color: var(--ink); }
.ml-t > span { display: block; margin-top: 3px; font-size: .9063rem; line-height: 1.45; color: var(--ink-2); }
.ml-go { width: 8px; height: 8px; border-top: 1.5px solid var(--ink-2); border-right: 1.5px solid var(--ink-2); transform: rotate(45deg); opacity: .5; transition: transform .35s var(--ease), opacity .25s, border-color .25s; }
.modlist a:hover .ml-go { opacity: 1; border-color: var(--navy); transform: translateX(3px) rotate(45deg); }
@media (max-width: 680px) {
  .modlist { grid-template-columns: 1fr; }
  .modlist a { padding: 18px 4px; gap: 16px; }
}
