/* Broker Kit. Light theme only. Tokens match the Flex Revenue Test Fit site. */
:root {
  --navy:#0B1E3A; --navy-2:#11284B; --gold:#B39D72; --gold-ink:#7E6A45; --gold-soft:#F7F3EA;
  --ink:#1B2433; --mute:#5B6676; --faint:#8A93A1; --line:rgba(11,30,58,.10); --line-2:rgba(11,30,58,.16);
  --bg:#F4F4F1; --card:#fff;
  --sans:'Inter','Helvetica Neue',Arial,sans-serif;
  --mono:'JetBrains Mono','SF Mono',Menlo,Consolas,monospace;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; color-scheme:light; }
body { margin:0; font-family:var(--sans); color:var(--ink); background:var(--bg); min-height:100vh; display:flex; flex-direction:column; -webkit-font-smoothing:antialiased; line-height:1.55; }
a { color:inherit; }
img { max-width:100%; }
[hidden] { display:none !important; }
main { flex:1; }
h1, h2, h3 { text-wrap:balance; margin:0; color:var(--navy); letter-spacing:-.02em; }
p { margin:0; }
.wrap { max-width:880px; margin:0 auto; padding:0 24px; }

header.top { background:#fff; border-bottom:1px solid var(--line); }
.bar { max-width:880px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { display:flex; align-items:center; gap:12px; min-width:0; text-decoration:none; }
.brand img { height:32px; width:auto; display:block; }
.brand .sep { width:1px; height:22px; background:var(--line-2); }
.brand .name { font-weight:700; color:var(--navy); font-size:15px; white-space:nowrap; }
.bar .side { font-size:13.5px; color:var(--mute); text-decoration:none; white-space:nowrap; }
.bar .side:hover { color:var(--navy); text-decoration:underline; }

.eyebrow { font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-ink); }
.hero { padding:56px 0 30px; }
.hero h1 { font-size:42px; line-height:1.1; font-weight:800; margin-top:14px; }
.hero .lede { font-size:18px; color:var(--mute); margin-top:16px; max-width:660px; }
.rule { width:56px; height:3px; background:var(--gold); border-radius:2px; margin-top:26px; }

.prepared { background:#fff; border:1px solid var(--line); border-radius:16px; padding:26px 28px; margin-top:26px; box-shadow:0 1px 2px rgba(11,30,58,.04); }
.prepared .who { font-size:26px; font-weight:800; color:var(--navy); letter-spacing:-.02em; margin-top:8px; line-height:1.2; }
.prepared .firm { font-size:16px; color:var(--mute); margin-top:4px; }
.facts { display:flex; flex-wrap:wrap; gap:10px 34px; margin:20px 0 0; padding:18px 0 0; border-top:1px solid var(--line); }
.facts div { min-width:0; }
.facts dt { font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); }
.facts dd { margin:3px 0 0; font-size:15.5px; font-weight:600; color:var(--navy); }

.steps { padding:8px 0 64px; display:grid; gap:18px; }
.card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:28px; box-shadow:0 1px 2px rgba(11,30,58,.04); }
.card .n { font-family:var(--mono); font-size:12px; font-weight:600; letter-spacing:.14em; color:var(--gold-ink); }
.card h2 { font-size:22px; line-height:1.25; font-weight:700; margin-top:8px; }
.card p.d { color:var(--mute); font-size:15.5px; margin-top:10px; max-width:640px; }
.card .note { font-size:13px; color:var(--faint); margin-top:12px; }
.card .acts { margin-top:20px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.tag { display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-ink); background:var(--gold-soft); border:1px solid rgba(179,157,114,.5); padding:4px 9px; border-radius:999px; line-height:1.2; }

.btn { display:inline-flex; align-items:center; gap:9px; font:600 15px/1 var(--sans); padding:14px 20px; border-radius:10px; text-decoration:none; cursor:pointer; border:1px solid var(--navy); background:var(--navy); color:#fff; }
.btn:hover { background:var(--navy-2); }
.btn.ghost { background:#fff; color:var(--navy); border-color:var(--line-2); }
.btn.ghost:hover { background:#F6F7F9; }
.btn svg { width:16px; height:16px; flex:none; }
.btn[disabled] { opacity:.6; cursor:default; }

.film { margin:20px 0 0; position:relative; aspect-ratio:16/9; border-radius:12px; overflow:hidden; background:#0B1E3A; }
.film video { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:contain; background:#000; }
.film button { position:absolute; inset:0; display:block; width:100%; height:100%; padding:0; border:0; background:#0B1E3A; cursor:pointer; }
.film img { display:block; width:100%; height:100%; object-fit:cover; }
.film .play { position:absolute; left:18px; bottom:18px; display:inline-flex; align-items:center; gap:8px; background:#fff; color:var(--navy); font:600 14px/1 var(--sans); padding:11px 16px; border-radius:999px; box-shadow:0 4px 14px rgba(0,0,0,.25); }
.film .play svg { width:14px; height:14px; fill:var(--navy); }

.sample { display:grid; grid-template-columns:220px 1fr; gap:26px; align-items:center; }
.sample .thumb { position:relative; border:1px solid var(--line-2); border-radius:10px; overflow:hidden; background:#fff; }
.sample .thumb img { display:block; width:100%; height:auto; }
.sample .thumb .tag { position:absolute; left:10px; top:10px; background:#fff; }

.push { background:#fff; border:1px solid rgba(179,157,114,.6); border-top:3px solid var(--gold); }
.push .row { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.price { display:flex; align-items:baseline; gap:10px; }
.price b { font-size:38px; font-weight:800; color:var(--navy); letter-spacing:-.03em; line-height:1; }
.price span { font-size:14px; color:var(--mute); }
.push .lock { height:44px; width:auto; display:block; margin-bottom:16px; }

.form { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:20px; max-width:640px; }
.form .full { grid-column:1 / -1; }
.form label { display:block; font-size:13px; font-weight:600; color:var(--navy); }
.form input[type=text], .form input[type=email] { width:100%; margin-top:6px; font:400 16px/1.2 var(--sans); color:var(--ink); padding:13px 14px; border:1px solid var(--line-2); border-radius:10px; background:#fff; }
.form input:focus { outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(11,30,58,.10); }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.msg { font-size:14px; color:#8A2C1C; margin-top:12px; }
.unlocked { margin-top:20px; display:grid; gap:12px; max-width:640px; }
.dl { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border:1px solid var(--line-2); border-radius:12px; text-decoration:none; background:#fff; }
.dl:hover { border-color:var(--navy); }
.dl b { display:block; color:var(--navy); font-size:15.5px; }
.dl span { display:block; color:var(--mute); font-size:13.5px; margin-top:2px; }
.dl svg { width:20px; height:20px; flex:none; color:var(--navy); }

.gate { max-width:480px; margin:72px auto 80px; }
.gate h1 { font-size:28px; font-weight:800; margin-top:12px; line-height:1.2; }
.gate p.d { color:var(--mute); margin-top:12px; font-size:16px; }
.gate .form { grid-template-columns:1fr; }
.gate .alt { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); font-size:14.5px; color:var(--mute); }
.gate .alt a { color:var(--navy); font-weight:600; }

footer.foot { border-top:1px solid var(--line); background:#fff; padding:26px 0; font-size:13px; color:var(--mute); }
footer.foot .wrap { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:center; }
footer.foot img { height:16px; width:auto; vertical-align:-3px; margin-left:6px; }
footer.foot a { text-decoration:none; }
footer.foot a:hover { text-decoration:underline; }

@media (max-width:640px) {
  .wrap, .bar { padding-left:16px; padding-right:16px; }
  .bar .side { display:none; }
  .hero { padding:36px 0 22px; }
  .hero h1 { font-size:31px; }
  .hero .lede { font-size:16.5px; }
  .card, .prepared { padding:22px 18px; border-radius:14px; }
  .card h2 { font-size:20px; }
  .prepared .who { font-size:23px; }
  .sample { grid-template-columns:1fr; }
  .sample .thumb { max-width:260px; }
  .form { grid-template-columns:1fr; }
  .btn { width:100%; justify-content:center; }
  .push .row { align-items:stretch; }
  .gate { margin:44px auto 56px; }
  .film .play { left:auto; right:12px; bottom:12px; padding:10px 14px; }
}

/* ---- The signed-in kit: one desktop view, no scrolling (body.kit only; gate pages are untouched) ---- */
body.kit {
  --navy:#02042D; --navy-2:#141747; --gold:#B79A5B; --ink:#02042D; --mute:#5A5D72; --faint:#8A8C9B;
  --line:rgba(2,4,45,.10); --line-2:rgba(2,4,45,.16); --bg:#F3F3EF;
  --pad:clamp(32px, 5vw, 96px);
  --W:min(100vw - 2 * var(--pad), 1440px);
  /* poster width: 54% of the content width, held back by the window height so the block always fits */
  --pw:max(480px, min(var(--W) * .54, (100vh - 290px) * 16 / 9));
  --ph:calc(var(--pw) * 9 / 16);
  line-height:1.4;
}
body.kit .bar { max-width:none; width:var(--W); padding:12px 0; }
body.kit .bar .side { font-size:13px; }
body.kit main { display:flex; align-items:center; justify-content:center; padding:20px 0; }
body.kit .one { width:var(--W); }
body.kit .cols { display:grid; grid-template-columns:minmax(0,1fr) var(--pw); column-gap:clamp(28px, 3.4vw, 64px); align-items:start; }

body.kit .lead { min-height:var(--ph); display:flex; flex-direction:column; min-width:0; }
body.kit .label { margin-top:-2px; font:600 11px/1.4 var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--gold); }
body.kit .addr { font-size:clamp(32px, 3.1vw, 50px); line-height:1.08; font-weight:700; letter-spacing:-.025em; margin-top:clamp(10px, 1.6vh, 18px); }
body.kit .addr.long { font-size:clamp(27px, 2.55vw, 42px); }
body.kit .addr.xlong { font-size:clamp(22px, 2vw, 32px); }
body.kit .sub { font-size:clamp(15px, 1.25vw, 18px); color:var(--mute); margin-top:clamp(6px, 1.1vh, 12px); }
body.kit .say { font-size:clamp(14px, 1.1vw, 16px); color:var(--navy); margin-top:clamp(6px, 1.1vh, 12px); }

body.kit .rows { list-style:none; margin:clamp(12px, 2.2vh, 26px) 0 0; padding:0; flex:1; display:flex; flex-direction:column; border-top:1px solid var(--line-2); }
body.kit .rows li { flex:1; min-height:52px; display:grid; grid-template-columns:clamp(22px, 2.1vw, 28px) minmax(0,1fr) auto; column-gap:clamp(10px, 1.1vw, 14px); align-items:center; padding:6px 0; border-bottom:1px solid var(--line-2); }
body.kit .rows .n { font:600 12px/1 var(--mono); color:var(--gold); letter-spacing:.06em; }
body.kit .rows h2 { font-size:clamp(15px, 1.2vw, 17.5px); line-height:1.25; font-weight:600; letter-spacing:-.01em; }
body.kit .rows p { font-size:clamp(12px, .95vw, 13.5px); line-height:1.35; color:var(--mute); margin-top:2px; }
body.kit .btn.sm { font-size:13px; font-weight:600; padding:9px 0; width:clamp(84px, 7.4vw, 96px); justify-content:center; border-radius:8px; background:transparent; color:var(--navy); border:1px solid var(--navy); }
body.kit .btn.sm:hover { background:var(--navy); color:#fff; }

body.kit .film { margin:0; width:var(--pw); height:var(--ph); aspect-ratio:auto; background:var(--navy); }
body.kit .film button { background:var(--navy); }
body.kit .film .play { left:18px; right:auto; bottom:18px; background:var(--navy); color:#fff; font:600 13px/1 var(--sans); padding:10px 16px; box-shadow:0 2px 10px rgba(0,0,0,.28); }
body.kit .film .play svg { width:12px; height:12px; fill:#fff; }

body.kit .offer { margin-top:clamp(22px, 3.4vh, 36px); background:#fff; border-top:2px solid var(--gold); border-radius:0 0 12px 12px; padding:18px clamp(22px, 2.4vw, 34px); display:grid; grid-template-columns:minmax(0,1.25fr) auto minmax(0,1fr); column-gap:24px; align-items:center; }
body.kit .offer h2 { font-size:clamp(18px, 1.6vw, 23px); font-weight:600; letter-spacing:-.015em; line-height:1.2; }
body.kit .offer .price b { font-size:clamp(30px, 2.6vw, 38px); font-weight:700; }
body.kit .offer .btn { justify-self:end; font-size:15px; padding:15px 24px; border-radius:8px; }

body.kit footer.foot { background:transparent; border-top:0; padding:12px 0 14px; font-size:11.5px; color:var(--mute); }
body.kit footer.foot .wrap { max-width:none; width:var(--W); padding:0; }
body.kit footer.foot img { height:13px; vertical-align:-2px; margin-left:4px; }
body.kit .nb, body.kit .price span { white-space:nowrap; }

/* Fields and the wide button, shared by the gate card and the download dialog */
body.kit .fld { display:block; margin-top:14px; }
body.kit .fld span { display:block; font-size:12.5px; font-weight:600; color:var(--navy); }
body.kit .fld input { display:block; width:100%; margin-top:6px; font:400 16px/1.2 var(--sans); color:var(--ink); padding:12px 13px; border:1px solid var(--line-2); border-radius:8px; background:#fff; }
body.kit .fld input:focus { outline:none; border-color:var(--navy); box-shadow:0 0 0 3px rgba(2,4,45,.10); }
body.kit .btn.wide { display:flex; width:100%; justify-content:center; margin-top:18px; font-size:15px; padding:15px 24px; border-radius:8px; }

/* The gate, the "not opened" page and the 404: one white card centred in the same frame (body.kit.solo) */
body.kit.solo main { align-items:center; }
body.kit .gatecard { width:min(480px, var(--W)); background:#fff; border-top:2px solid var(--gold); border-radius:0 0 12px 12px; padding:clamp(26px, 4.4vh, 38px) clamp(22px, 3vw, 40px) clamp(24px, 4vh, 34px); }
body.kit .gatecard h1 { font-size:clamp(23px, 2vw, 27px); line-height:1.15; font-weight:700; letter-spacing:-.02em; margin-top:12px; }
body.kit .gatecard .d { font-size:15px; color:var(--mute); margin-top:10px; }
body.kit .gatecard form { margin-top:6px; }
body.kit .gatecard .no { font-size:14px; font-weight:600; color:var(--navy); margin-top:18px; padding:10px 12px; background:var(--bg); border-left:2px solid var(--gold); }
body.kit .gatecard .alt { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); font-size:13px; color:var(--mute); }
body.kit .gatecard .alt a { color:var(--navy); font-weight:600; white-space:nowrap; }

/* The download dialog on the public page: over the page, so the page never grows */
html:has(dialog.ask[open]) { overflow:hidden; }
dialog.ask { width:min(400px, calc(100vw - 32px)); max-height:calc(100vh - 32px); overflow:auto; margin:auto; border:0; border-top:2px solid #B79A5B; border-radius:0 0 12px 12px; padding:28px 32px 30px; background:#fff; color:var(--ink); box-shadow:0 24px 60px rgba(2,4,45,.28); }
dialog.ask::backdrop { background:rgba(2,4,45,.46); }
dialog.ask h2 { font-size:22px; line-height:1.2; font-weight:700; letter-spacing:-.02em; margin-top:10px; }
dialog.ask .msg { margin-top:12px; font-size:13.5px; }
dialog.ask .x { position:absolute; top:12px; right:12px; width:34px; height:34px; display:grid; place-items:center; padding:0; border:0; border-radius:8px; background:transparent; color:var(--mute); cursor:pointer; }
dialog.ask .x:hover { background:var(--bg); color:var(--navy); }
dialog.ask .x:focus-visible, body.kit .btn:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
dialog.ask .x svg { width:16px; height:16px; }

/* The sample sheet dialog on both one-view pages (dialog.ask.sheet): the same card, sized to the sheet.
   --sw is the fitted sheet width: the largest 4:3 box that fits the window with the heading and caption
   (--ch = everything in the card that is not the sheet, --mx = the two side margins). Only .pan scrolls, never the page. */
dialog.ask.sheet { --px:24px; --mx:32px; --ch:124px; --sw:min(100vw - var(--mx) - 2 * var(--px), (100vh - 32px - var(--ch)) * 4 / 3, 1400px); width:calc(var(--sw) + 2 * var(--px)); max-width:none; overflow:hidden; padding:18px var(--px) 16px; }
dialog.ask.sheet[open] { display:flex; flex-direction:column; }
dialog.ask.sheet h2 { font-size:20px; margin-top:4px; padding-right:150px; }
dialog.ask.sheet .zoom { position:absolute; top:12px; right:54px; height:34px; min-width:88px; padding:0 12px; font:600 13px/1 var(--sans); border-radius:8px; background:transparent; color:var(--navy); border:1px solid var(--navy); cursor:pointer; }
dialog.ask.sheet .zoom:hover { background:var(--navy); color:#fff; }
dialog.ask.sheet .pan { flex:1 1 auto; min-height:0; margin-top:12px; overflow:auto; overscroll-behavior:contain; background:var(--bg); box-shadow:0 0 0 1px rgba(2,4,45,.14); }
dialog.ask.sheet .pan img { display:block; width:var(--sw); max-width:none; height:auto; cursor:zoom-in; }
dialog.ask.sheet.zoomed { width:min(100vw - var(--mx), 1400px + 2 * var(--px)); }
dialog.ask.sheet.zoomed .pan img { width:clamp(1200px, 100%, 1400px); cursor:zoom-out; }
dialog.ask.sheet .under { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 24px; margin-top:10px; font-size:13px; line-height:1.4; color:var(--mute); }
dialog.ask.sheet .cap { color:var(--navy); font-weight:500; text-wrap:balance; }
dialog.ask.sheet .under a { color:var(--mute); text-decoration:underline; text-underline-offset:3px; }
dialog.ask.sheet .under a:hover { color:var(--navy); }
dialog.ask.sheet .zoom:focus-visible, dialog.ask.sheet .under a:focus-visible, dialog.ask.sheet .pan:focus-visible { outline:2px solid #B79A5B; outline-offset:2px; }
@media (max-width:820px) { dialog.ask.sheet { --ch:176px; } }
@media (max-width:640px) {
  dialog.ask.sheet { --px:12px; --mx:16px; }
  dialog.ask.sheet h2 { font-size:18px; padding-right:140px; }
}

/* Below 1100px wide: one short column in the same order (address, rows, film, offer). Scrolling is fine here. */
@media (max-width:1099.98px) {
  body.kit { --pad:clamp(16px, 5vw, 48px); --W:min(100vw - 2 * var(--pad), 720px); --pw:var(--W); }
  body.kit main { align-items:flex-start; padding:26px 0 22px; }
  body.kit .cols { grid-template-columns:minmax(0,1fr); row-gap:22px; }
  body.kit .lead { min-height:0; }
  body.kit .addr, body.kit .addr.long { font-size:clamp(28px, 6vw, 40px); }
  body.kit .addr.xlong { font-size:clamp(23px, 5vw, 32px); }
  body.kit .rows { margin-top:18px; }
  body.kit .rows li { flex:none; padding:11px 0; }
  body.kit .film { width:100%; height:auto; aspect-ratio:16/9; }
  body.kit .offer { margin-top:22px; }
}
@media (max-width:640px) {
  body.kit .btn { width:auto; }
  body.kit .btn.sm { width:88px; }
  body.kit .rows li { grid-template-columns:24px minmax(0,1fr) auto; column-gap:10px; }
  body.kit .label { font-size:10px; letter-spacing:.1em; line-height:1.5; margin-top:0; }
  body.kit .film .play { left:10px; right:auto; bottom:10px; padding:7px 11px; font-size:12px; }
  body.kit .offer .price { gap:6px; }
  body.kit .offer { grid-template-columns:minmax(0,1fr) auto; row-gap:14px; padding:16px 18px; }
  body.kit .offer h2 { grid-column:1 / -1; }
  body.kit .offer .btn { padding:13px 18px; }
  body.kit footer.foot .wrap { flex-direction:column; align-items:flex-start; gap:4px; }
}

/* Poster is a light frame from the film: give the box an edge and mark the plan as a sample. */
body.kit .film { box-shadow:0 0 0 1px rgba(2,4,45,.12); }
body.kit .film .tag { position:absolute; right:14px; top:14px; background:#fff; color:var(--navy); font:600 11px/1 var(--sans); letter-spacing:.08em; text-transform:uppercase; padding:7px 10px; border-radius:999px; box-shadow:0 0 0 1px rgba(2,4,45,.14); }

/* Proof line in the top bar: the firm's own published claim (About page). Hidden on narrow screens. */
header.top .right { display:flex; align-items:center; gap:20px; min-width:0; }
header.top .proof { color:#5b6070; font:500 13px/1 var(--sans); white-space:nowrap; }
@media (max-width: 860px) { header.top .proof { display:none; } }
