/*
 * Shared look for every marketing page. The tokens below ARE the Prosperity Builders style standard
 * (approved 2026-11-20): one gold, three navies, two greens, corners of 12 / 14 / 18 and one heading scale.
 * Page stylesheets use these tokens and never set their own heading sizes, golds or navies.
 * System fonts only, like the game. /3 and styles.css are deliberately untouched.
 */
:root {
  /* Navy: page, panels and cards, footer. */
  --navy: #0b2340; --navy2: #12335a; --deep: #081a30;
  --ink: #f2f7fb; --muted: #a9bfd3;
  /* Green: accents on dark, text and icons on white. Never a button colour. */
  --teal: #36c9a4; --tealInk: #0f7a63;
  --gold: #ffd45a; --goldHover: #ffe38f; --goldPressed: #ffc21f; --goldInk: #3a2a00; --red: #ff6b5e;
  --card: #fff; --cardInk: #14243a; --cardMuted: #50657d;
  --paper: #eaf3f8; --lineDark: #d3deea;
  --line: rgba(255, 255, 255, .14);
  /* Running-text links and the keyboard focus ring: gold on dark, blue on white (the light-surface rule below swaps them). */
  --link: var(--gold); --focus: var(--gold); --onWhite: #0b5cad;
  /* Corners: buttons, cards, dialogs and large panels. */
  --r-sm: 12px; --r: 14px; --r-lg: 18px;
  /* The one heading scale: page title, section heading, card heading. */
  --fs-title: clamp(2.4rem, 6vw, 3.6rem); --fs-section: clamp(1.6rem, 3.4vw, 2.125rem); --fs-card: 1.25rem;
  --shadow: 0 6px 22px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .55);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--navy); color: var(--ink); font: 16px/1.45 var(--sans); -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* White and pale surfaces: links and the focus ring turn blue. Dark cards inside a light section turn them back. */
.light, .on-light, .card, .legal-document, .contact-card { --link: var(--onWhite); --focus: var(--onWhite); }
.cards.on-dark .card { --link: var(--gold); --focus: var(--gold); }
/* Links in running text are underlined. A link with a class is a button, a card or a menu item and styles itself. */
main a:not([class]) { color: var(--link); text-decoration: underline; text-underline-offset: .18em; }
main a:not([class]):hover { text-decoration-thickness: 2px; }
.skip { position: fixed; left: 8px; top: -80px; z-index: 99; background: var(--gold); color: var(--goldInk); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 800; text-decoration: none; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- docked top bar (the game's #hud) ---- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px var(--gutter); background: linear-gradient(var(--navy2), var(--navy)); border-bottom: 1px solid var(--line); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; margin-left: -8px; border-radius: var(--r-sm); font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.brand:hover { background: rgba(255, 255, 255, .08); }
.brand svg { width: 28px; height: 28px; flex: none; }
.bar nav { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-items: center; }

/* ---- buttons: two kinds only. .btn is the second button, .btn.primary the main (gold) button. Both 48px tall with 12px corners. ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 4px 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r-sm); background: rgba(255, 255, 255, .08); color: var(--ink); font-weight: 600; line-height: 1.1; text-decoration: none; }
.btn:hover { background: rgba(255, 255, 255, .18); }
.light .btn:not(.primary), .on-light .btn:not(.primary) { background: #fff; border-color: var(--navy); color: var(--navy); }
.light .btn:not(.primary):hover, .on-light .btn:not(.primary):hover { background: var(--paper); }
/* Flat gold: no gradient and no glow, on dark and on white alike. */
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--goldInk); font-weight: 800; font-size: 1.05rem; padding: 4px 20px; }
.btn.primary:hover { background: var(--goldHover); border-color: var(--goldHover); }
.btn.primary:active { background: var(--goldPressed); border-color: var(--goldPressed); }

/* ---- stat chips (the game's .hud-stat) ---- */
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stat { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .07); border: 1px solid var(--line); line-height: 1.1; }
.stat .ic { font-size: 1.5rem; }
.stat .k { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* ---- layout helpers ---- */
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.light { background: var(--paper); color: var(--cardInk); }
.navy { background: linear-gradient(var(--navy), var(--deep)); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(54, 201, 164, .16); border: 1px solid rgba(54, 201, 164, .5); color: var(--teal); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.light .badge, .badge.dark { background: #eaf7f2; border-color: #8fd3b5; color: var(--tealInk); }
.badge.gold { background: rgba(255, 212, 90, .14); border-color: rgba(255, 212, 90, .55); color: var(--gold); }
h1 { font-size: var(--fs-title); line-height: 1.06; letter-spacing: -.02em; font-weight: 800; margin: 14px 0 18px; }
h1 .hl { color: var(--gold); }
h2 { font-size: var(--fs-section); line-height: 1.12; letter-spacing: -.015em; font-weight: 800; margin: 10px 0 14px; }
h3 { font-size: var(--fs-card); line-height: 1.2; font-weight: 800; margin: 0 0 6px; }
/* A heading that opens a new group inside a section but sits at h3 in the outline: it takes the section-heading size. */
h3.section-title { font-size: var(--fs-section); line-height: 1.12; letter-spacing: -.015em; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--ink); max-width: 40rem; }
.light .lede, .lede.dark { color: var(--cardMuted); }
.muted { color: var(--muted); }
.light .muted { color: var(--cardMuted); }

/* ---- screenshot frame ---- */
.frame { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--deep); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.frame img { width: 100%; }
.frame figcaption { padding: 10px 16px; font-size: .88rem; color: var(--muted); background: linear-gradient(var(--navy), var(--deep)); border-top: 1px solid var(--line); }
.frame figcaption b { color: var(--ink); }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* ---- cards (the game's #coach / #report cards: white, rounded, accent edge) ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card { background: var(--card); color: var(--cardInk); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); border-left: 6px solid var(--teal); }
.card.gold { border-left-color: var(--gold); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p { margin: 6px 0 0; color: var(--cardMuted); }
.card .ico { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); background: #eaf7f2; font-size: 1.35rem; }
.note { background: #fff7df; color: var(--cardInk); border: 1px solid #f0d78a; border-radius: var(--r-sm); padding: 10px 14px; font-size: .95rem; }

/* ---- tool strip (the game's one-line bottom bar) ---- */
.tools { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; border-radius: var(--r); background: linear-gradient(var(--navy), var(--deep)); border: 1px solid var(--line); list-style: none; margin: 0; }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; min-height: 60px; padding: 4px 8px; border: 2px solid transparent; border-radius: var(--r-sm); background: rgba(255, 255, 255, .07); line-height: 1.1; text-align: center; }
.tool .ic { font-size: 1.4rem; }
.tool .lb { font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tool.sel { border-color: var(--gold); background: rgba(255, 212, 90, .18); }

/* ---- two-column feature rows ---- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.light .ticks li { background: #fff; border-color: var(--lineDark); }
.ticks .ic { font-size: 1.3rem; line-height: 1.2; }
.ticks b { display: block; }
.phones { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.phones .frame { width: min(46%, 260px); border-radius: 26px; border: 4px solid var(--navy); }
.phones .frame:nth-child(2) { margin-top: 36px; }

/* ---- concept switcher ---- */
.concepts { display: grid; gap: 8px; margin: 0; }
.concepts a { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; min-height: 64px; padding: 8px 14px; border-radius: var(--r); background: #fff; color: var(--cardInk); border: 2px solid transparent; text-decoration: none; box-shadow: var(--shadow); }
.concepts a:hover { border-color: var(--teal); }
.concepts a[aria-current] { border-color: var(--gold); }
.concepts .k { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 1.2rem; }
.concepts small { color: var(--tealInk); font-weight: 700; }

/* ---- FAQ (the game's dialog look) ---- */
.faq details { background: var(--card); color: var(--cardInk); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 10px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; padding: 10px 18px; font-weight: 800; cursor: pointer; list-style: none; border-radius: var(--r); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: #e8eef5; font-style: normal; font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--cardMuted); max-width: 46rem; }

/* ---- closing + footer ---- */
.closing { position: relative; overflow: hidden; text-align: center; padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11, 35, 64, .82), rgba(8, 26, 48, .9)); }
.closing > div { position: relative; z-index: 1; max-width: 40rem; margin: auto; }
.footer { background: var(--deep); border-top: 1px solid var(--line); color: var(--muted); padding: 40px var(--gutter) 28px; display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 28px; font-size: .9rem; }
.footer strong { display: block; color: #fff; font-size: 1.15rem; }
.footer small { color: var(--muted); }
.footer .col { display: flex; flex-direction: column; gap: 6px; }
.footer a { color: #d7e3ef; }
.footer .fine { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* ---- lightbox (script.js drives it) ---- */
.lightbox { width: min(94vw, 1500px); max-width: none; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--deep); box-shadow: var(--shadow-lg); overflow: visible; }
.lightbox::backdrop { background: rgba(4, 14, 28, .72); }
.lightbox img { width: 100%; height: auto; border-radius: var(--r-lg); }
.lightbox button { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border: 0; border-radius: var(--r-sm); background: rgba(11, 35, 64, .9); color: #fff; font-size: 1.5rem; }

@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer .brandcol { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bar nav .hide-sm { display: none; }
  .footer { grid-template-columns: 1fr; }
  .concepts a { grid-template-columns: 44px 1fr; }
  .concepts small { grid-column: 2; }
  .tool { min-width: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Shared diamond identity: upright numbers remain readable and semantic. */
.tokenization-step, .goal-number { clip-path: polygon(22% 0,78% 0,100% 28%,50% 100%,0 28%); border-radius: 0; border: 0; background: var(--gold); color: var(--goldInk); width: 48px; height: 44px; padding-bottom: 6px; flex-shrink: 0; font-weight: 800; }
.brand img { object-fit: contain; flex-shrink: 0; }

/* Full gold identity replaces the repeated footer brand text. */
.footer .footer-logo { display:block; width:min(100%,260px); align-self:flex-start; margin:0 0 14px; }
.footer-logo img { display:block; width:100%; height:auto; }
#learn .learn-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 36px; align-items: start; }
#learn .learn-context p { margin-bottom: 0; }
#learn .learn-context .note { grid-column: 1 / -1; }
@media (max-width: 700px) {
  #learn .learn-context { grid-template-columns: 1fr; gap: 24px; }
}

/* Approved faceted artwork uses an SVG alpha mask, not a redraw. */
.footer .footer-logo-approved { width:min(100%,234px); }
.footer .footer-logo-approved img { display:block; width:100%; height:auto; }
