/* Cleared for Altior. Externalised for strict CSP. */
/* Layout: a grass-striped hero sets the headline beside Altior's Monday list; the process is a ledger of their own words against what Cleared does; the guided demo opens over the page. */
:root {
  --grass: #2C7A4B;
  --stripe: rgba(255, 255, 255, 0.06);
  --chalk: #F6F6EF;
  --chalk-ink: #14231A;
  --ink: #14231A;
  --muted: #4E5E54;
  --accent-text: #2C7A4B;
  --paper: #FFFFFF;
  --field: #F6F6EF;
  --line: #DCDDD3;
  --link: #1F5A37;
  --bar: #14231A;
  --bar-ink: #E6ECE7;
  --ok-bg: #DDEFE4; --ok-ink: #14532D;
  --warn-bg: #FFF0D6; --warn-ink: #7A3E06;
  --bad-bg: #FBE2DF; --bad-ink: #8B1C13;
  --dot-warn: #C46A12;
  --shade: rgba(14, 24, 18, 0.55);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --focus: #2F6FDB;
  --font: 'Schibsted Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E7ECE6; --muted: #A8B5AC; --accent-text: #7FCB9C; --paper: #0F1712; --field: #16211A; --line: #2A3830; --link: #86D0A2;
    --bar: #0A110D; --bar-ink: #E6ECE7;
    --ok-bg: #183626; --ok-ink: #A6E2BD; --warn-bg: #3A2A12; --warn-ink: #F3C98B; --bad-bg: #3A1A17; --bad-ink: #F2A49B; --dot-warn: #F0A653;
    --shade: rgba(0, 0, 0, 0.62); --shadow: 0 24px 60px rgba(0, 0, 0, 0.6); --focus: #8DB8FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E7ECE6; --muted: #A8B5AC; --accent-text: #7FCB9C; --paper: #0F1712; --field: #16211A; --line: #2A3830; --link: #86D0A2;
  --bar: #0A110D; --bar-ink: #E6ECE7;
  --ok-bg: #183626; --ok-ink: #A6E2BD; --warn-bg: #3A2A12; --warn-ink: #F3C98B; --bad-bg: #3A1A17; --bad-ink: #F2A49B; --dot-warn: #F0A653;
  --shade: rgba(0, 0, 0, 0.62); --shadow: 0 24px 60px rgba(0, 0, 0, 0.6); --focus: #8DB8FF;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
.demo-open body { overflow: hidden; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; margin: 0 auto; padding-inline: clamp(24px, 4vw, 80px); }
.small { font-size: 15px; }
.muted { color: var(--muted); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent; font: 600 17px/1.1 var(--font); text-decoration: none; cursor: pointer; }
.btn-chalk { background: var(--chalk); color: var(--chalk-ink); }
.btn-chalk:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: color-mix(in srgb, var(--chalk) 55%, transparent); }
.btn-ghost:hover { border-color: var(--chalk); }
.btn-grass { background: var(--grass); color: var(--chalk); }
.btn-grass:hover { filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* ---------- wordmark and the "for ALTIOR" lockup */
.wm { display: block; height: 30px; width: 134.8px; }
.lockup { display: flex; align-items: center; gap: 14px; margin-right: auto; color: var(--chalk); --spot: var(--chalk); text-decoration: none; }
.lockup .for { display: flex; align-items: center; gap: 14px; font-size: 16px; white-space: nowrap; }
.lockup .for::before { content: ""; width: 1.5px; height: 28px; background: color-mix(in srgb, var(--chalk) 50%, transparent); }
.lockup b, .app-bar b { font-weight: 700; letter-spacing: 0.16em; }

/* ---------- hero */
.hero { background-color: var(--grass); background-image: repeating-linear-gradient(90deg, var(--stripe) 0 96px, transparent 96px 192px); color: var(--chalk); }
.nav { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.nav-links { display: flex; gap: 22px; font-size: 16px; }
.nav-links a { color: var(--chalk); text-decoration: none; padding-block: 10px; }
.nav-links a:hover { text-decoration: underline; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 44px 88px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chalk); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1; font-weight: 800; letter-spacing: -0.032em; max-width: 15ch; }
.lede { font-size: 20px; line-height: 1.5; max-width: 34em; color: var(--chalk); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 15px; color: var(--chalk); }

/* Monday's "needs attention" list */
.mon { flex: 1 1 360px; max-width: 440px; margin: 0; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.lc-tag { font-size: 13px; color: var(--muted); }
.lc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lc-name { font-weight: 700; font-size: 19px; }
.att { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.att li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.att li:first-child { border-top: 0; }
.att strong { display: block; font-weight: 700; }
.att-text { color: var(--muted); }
.adot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--line); }
.att .warn .adot { background: var(--dot-warn); }
.lc-foot { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- chips */
.chip { display: inline-block; white-space: nowrap; font-size: 13px; font-weight: 500; line-height: 1.4; padding: 3px 10px; border-radius: 999px; background: var(--field); color: var(--ink); }
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.bad { background: var(--bad-bg); color: var(--bad-ink); }

/* ---------- sections */
.sec { padding-block: 88px; }
.sec.field { background: var(--field); }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 880px; }
.sec h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; }
.sec-head p { font-size: 19px; color: var(--muted); }

/* their words against what Cleared does */
.led-labels, .led-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
.led-labels { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.ledger { list-style: none; margin: 0; padding: 0; }
.led-row { padding-block: 26px; border-top: 1px solid var(--line); }
.led-row:first-child { border-top: 0; }
.led-stage { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 8px 10px; }
.led-n { font-weight: 800; font-size: 15px; color: var(--accent-text); font-variant-numeric: tabular-nums; min-width: 1.1em; }
.led-quote { margin: 0; font-size: 21px; line-height: 1.4; text-indent: -0.42em; }
.qm { color: var(--accent-text); font-weight: 700; }
.led-do { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.led-do h3 { font-size: 20px; font-weight: 700; }
.led-do p { color: var(--muted); }
.band { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 24px; border-radius: 16px; background: var(--field); }
.band p { font-size: 18px; }

/* families, clubs, agents */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.col { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; border-top: 2px solid var(--ink); min-width: 0; }
.col h3 { font-size: 22px; font-weight: 700; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.facts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.facts svg { margin-top: 4px; color: var(--accent-text); }
.fine { margin-top: 32px; font-size: 15px; color: var(--muted); }

/* setup */
.split { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.split > * { flex: 1 1 400px; min-width: 0; }
.setup-col { display: flex; flex-direction: column; gap: 18px; }
.setup-col h3 { font-size: 22px; font-weight: 700; }
.needs-box { background: var(--field); border: 1px solid var(--line); border-radius: 16px; padding: 24px; align-items: flex-start; }
.needs { counter-reset: need; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.needs li { counter-increment: need; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.needs li::before { content: counter(need); width: 26px; height: 26px; border-radius: 50%; background: var(--grass); color: var(--chalk); font-weight: 700; font-size: 14px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.needs .muted { display: block; font-size: 15px; margin-top: 2px; }
.closing { margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.close-line { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.08; font-weight: 800; letter-spacing: -0.022em; max-width: 18ch; text-wrap: balance; }
.close-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 28em; }

.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: var(--muted); }
.foot .wm { color: var(--ink); --spot: var(--grass); height: 24px; width: 107.8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- guided demo */
.demo { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); background: var(--shade); }
.demo-panel { width: 100%; height: min(900px, 100%); background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.demo-head .wm { height: 24px; width: 107.8px; color: var(--ink); --spot: var(--grass); }
.demo-label { font-size: 14px; color: var(--muted); margin-right: auto; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--field); }
.demo-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 0; }
.demo-guide { padding: 26px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.demo-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-guide h2 { font-size: 28px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.demo-text { font-size: 16.5px; }
.demo-task { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; background: var(--ok-bg); color: var(--ok-ink); border-radius: 10px; padding: 10px 12px; font-size: 15.5px; }
.demo-task svg { flex: 0 0 auto; margin-top: 3px; }
.demo-nav { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.demo-end { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.demo-dots li { width: 100%; height: 4px; border-radius: 2px; background: var(--line); }
.demo-dots li.on { background: var(--grass); }
.demo-stage { background: var(--field); padding: 22px; overflow: auto; min-width: 0; }

/* the sample app inside the demo */
.addr { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.addr-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-who { margin-left: auto; flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.app { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; background: var(--bar); color: var(--bar-ink); padding: 10px 16px; font-size: 13.5px; }
.app-bar b { font-size: 15px; margin-right: auto; }
.app-bar .on { color: var(--chalk); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.app-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.app h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.ui-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.ui-card h4 { font-size: 16px; }
.feed { display: flex; flex-direction: column; }
.feed-i { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.feed-i:first-child { border-top: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--line); }
.dot.g { background: var(--grass); }
.dot.r { background: var(--bad-ink); }
.ui-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.ui-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 14.5px var(--font); }
.ui-btn.primary { background: var(--grass); border-color: var(--grass); color: var(--chalk); }
.ui-btn.danger { color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad-ink) 40%, transparent); background: var(--paper); }
button.ui-btn { cursor: pointer; }
.t { animation: nudge 1.6s ease-in-out infinite; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--grass); }
@keyframes nudge { 50% { box-shadow: 0 0 0 3px var(--paper), 0 0 0 10px color-mix(in srgb, var(--grass) 30%, transparent); } }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.f span:first-child { font-size: 13px; font-weight: 600; }
.f span:last-child { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 38px; background: var(--paper); overflow-wrap: anywhere; }
.f.wide { grid-column: 1 / -1; }
.f.notes span:last-child { white-space: pre-line; line-height: 1.5; }
.tick { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; }
.box { width: 20px; height: 20px; border-radius: 5px; background: var(--grass); color: var(--chalk); display: grid; place-items: center; margin-top: 1px; }
.phone { max-width: 370px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.phone h3 { font-size: 24px; line-height: 1.12; font-weight: 800; letter-spacing: -0.015em; }
.agency { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.statement { background: var(--field); padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.game { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.game:first-of-type { border-top: 0; }
.pos { font-weight: 800; font-size: 12px; background: var(--ink); color: var(--paper); border-radius: 5px; padding: 1px 6px; margin-left: 4px; }
.req { background: var(--warn-bg); color: var(--warn-ink); border-radius: 9px; padding: 10px 12px; font-size: 14.5px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-variant-numeric: tabular-nums; }
.stats b { font-weight: 800; }
.scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.score { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.score b { font-size: 21px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--grass); }
.note { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }
.gone { text-align: center; padding: 34px 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gone h3 { font-size: 26px; }

/* ---------- small screens */
@media (max-width: 900px) {
  .led-labels { display: none; }
  .led-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .led-row:first-child { border-top: 2px solid var(--ink); }
  .cols3 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .nav-links { display: none; }
  .hero-grid { padding-block: 20px 64px; gap: 36px; }
  .sec { padding-block: 64px; }
  .demo { padding: 0; }
  .demo-panel { width: 100%; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .demo-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .demo-guide { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 18px 16px; gap: 8px; max-height: 46vh; }
  .demo-guide h2 { font-size: 22px; }
  .demo-text { font-size: 15px; }
  .demo-stage { padding: 14px; }
  .app-bar span:not(.on) { display: none; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game { grid-template-columns: 64px minmax(0, 1fr); }
  .game > :last-child { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  .nav-demo { display: none; }
  .lockup, .lockup .for { gap: 12px; }
  .lede { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t { animation: none; }
}
.wm-sprite { position: absolute; width: 0; height: 0; }
.wm-spot { fill: var(--spot, currentColor); }
.meter-90 { width: 90%; } .meter-80 { width: 80%; } .meter-70 { width: 70%; }
.ui-row.start { justify-content: flex-start; }
.addr.gap-top { margin-top: 18px; }
@media (max-width: 760px) { .demo-stage { padding: 12px; } }
