/* Brand Monitor: The Alder Files palette and type (Klavika via Adobe Fonts). Hard corners everywhere; only images are rounded. */
:root {
  --ink: #0b1d1b; --deep: #2c423f; --slate: #4c5b61; --mist: #a9aca9; --paper: #e4e4e2;
  --gold: #ffbd00; --pale: #ffe394; --white: #ffffff; --error: #b3261e;
  --display: 'klavika-web-condensed', 'Arial Narrow', sans-serif; --body: 'klavika-web', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.5; }
a { color: var(--deep); } a:hover { color: var(--ink); }
img { max-width: 100%; border-radius: 4px; }
.logo-img { border-radius: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header and footer: light bar with the mark at left, as on thealderfiles.com */
.site-head { background: var(--paper); color: var(--ink); padding: 12px 0; border-bottom: 4px solid var(--mist); }
.site-head .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.brand img { display: block; height: 44px; width: auto; }
.brand.full img { height: 58px; }
.brand.full span { border-left: 2px solid var(--mist); padding-left: 14px; line-height: 1.1; }
.nav-link, .site-head .sub { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 4px; }
.site-foot { flex: 1 0 auto; background: var(--ink); border-top: 4px solid var(--mist); padding: 28px 0 40px; color: var(--paper); font-size: 14px; }
.site-foot a { color: var(--paper); } .site-foot a:hover { color: var(--pale); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Type */
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-family: var(--display); font-size: clamp(40px, 7vw, 68px); font-weight: 700; }
h2 { font-family: var(--display); font-size: clamp(28px, 4.4vw, 38px); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 19px; }
.lede { font-size: clamp(18px, 2.4vw, 21px); max-width: 640px; }
.muted { color: var(--slate); }
.eyebrow { font-family: var(--display); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

/* Buttons: square, gold, uppercase condensed */
.btn { display: inline-block; background: var(--gold); color: var(--ink); text-decoration: none; padding: 14px 28px; border-radius: 0; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; border: 2px solid var(--gold); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--pale); border-color: var(--pale); color: var(--ink); }
.btn:active { background: #e6aa00; border-color: #e6aa00; }
.btn:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary, .btn.ghost { background: transparent; color: var(--white); border-color: var(--mist); }
.btn.secondary:hover, .btn.ghost:hover { background: transparent; border-color: var(--white); color: var(--white); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.dark:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }
.link-light { color: var(--white); }
.link-light:hover, .hero a.link-light:hover { color: var(--gold); }
/* Landing hero with the full logo */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.hero-logo { display: none; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1fr 325px; align-items: center; } .hero-grid .hero-logo { display: block; order: 2; width: 325px; height: auto; justify-self: end; } }

/* Sections */
.hero { background: var(--deep); color: var(--white); padding: 64px 0 72px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 28px; }
.band { padding: 56px 0; }
.band.grey { background: var(--paper); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border-radius: 0; padding: 20px; }
.band.grey .card { background: var(--white); }
.band:not(.grey) .card { background: var(--paper); }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps > div { counter-increment: s; }
.steps > div::before { content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }

/* Forms: dark square fields on evergreen, as on thealderfiles.com */
.dark-band { background: var(--deep); color: var(--white); }
.dark-band .lede, .dark-band label { color: var(--white); }
.dark-band .hint { color: var(--mist); }
.dark-band a:not(.btn):not(.link-light) { color: var(--pale); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
.hint { font-weight: 400; color: var(--slate); font-size: 14px; }
input[type=text], input[type=email], input[type=url], textarea, select { width: 100%; padding: 14px 16px; border: 0; border-radius: 0; font: inherit; font-size: 17px; background: rgba(11, 29, 27, .85); color: var(--white); outline: 2px solid transparent; transition: outline-color .15s; }
input::placeholder, textarea::placeholder { font-family: var(--display); font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); opacity: .8; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--mist); outline-offset: 0; }
select option { color: var(--ink); background: var(--white); }
textarea { min-height: 110px; }
.two { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; background: rgba(11, 29, 27, .55); color: var(--white); border: 2px solid transparent; border-radius: 0; cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; transition: background .15s, border-color .15s; }
.checks label:hover { border-color: var(--mist); }
.checks label.on { background: var(--gold); color: var(--ink); }
.checks label:has(input:disabled) { cursor: default; }
.checks label:focus-within { outline: 2px solid var(--mist); outline-offset: 2px; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks label::before { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; flex: none; background: center / 10px 10px no-repeat; }
.checks label.on::before { border-color: var(--ink); background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 1.5l7 7M8.5 1.5l-7 7' stroke='%23FFBD00' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E"); }
/* Picked files list (files add up across picks) */
.picked { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.picked li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(11, 29, 27, .55); color: var(--paper); font-size: 15px; }
.picked li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked button { background: none; border: 0; color: var(--pale); font: inherit; font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 2px 4px; flex: none; }
.picked button:hover { color: var(--gold); }
.radio-row { display: flex; gap: 22px; }
.radio-row label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 18px; height: 18px; }
.file { display: block; padding: 14px 16px; background: rgba(11, 29, 27, .85); border: 2px dashed rgba(169, 172, 169, .5); border-radius: 0; color: var(--paper); }
.file:focus-within, .file:hover { border-color: var(--mist); }
.file input { width: 100%; font: inherit; font-size: 15px; color: var(--paper); }
.file input::file-selector-button { margin-right: 14px; padding: 8px 16px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sub-box { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(169, 172, 169, .35); }
.sub-box h3 { font-family: var(--display); font-size: 24px; font-weight: 700; }
.sub-box .checks { margin-top: 12px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.progress i { height: 6px; background: rgba(11, 29, 27, .55); }
.progress i.on { background: var(--gold); }
.step-label { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); margin: 0 0 8px; }
.step-nav { display: flex; gap: 12px; align-items: center; }
.step-nav #go { margin-left: auto; }
.note { background: var(--pale); color: var(--ink); border-radius: 0; padding: 14px 16px; margin: 0 0 22px; }
.note.grey { background: var(--paper); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 3px; flex: none; }
.error { color: var(--error); font-weight: 600; min-height: 1.5em; }
.dark-band .error { color: #ffb4a8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Loading */
.loading { background: var(--deep); color: var(--white); min-height: 70vh; padding: 64px 0; }
.loading .wrap { text-align: center; }
.loading .lede { margin-left: auto; margin-right: auto; }
.stages { list-style: none; padding: 0; margin: 36px auto 0; display: flex; flex-direction: column; align-items: center; max-width: 520px; }
.stages li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--mist); }
.stages li + li { padding-top: 44px; }
/* Connector between stages: a thin track, filled in gold as the audit reaches that stage */
.stages li + li::before, .stages li + li::after { content: ''; position: absolute; top: 6px; left: 50%; width: 2px; height: 32px; margin-left: -1px; }
.stages li + li::before { background: rgba(169, 172, 169, .3); }
.stages li + li::after { background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .9s ease-out; }
.stages li.active::after, .stages li.done::after { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .stages li + li::after { transition: none; } }
.stages li .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--mist); flex: none; }
.stages li.active { color: var(--white); } .stages li.active .dot { border-color: var(--gold); animation: pulse 1.2s infinite; }
.stages li.done { color: var(--paper); } .stages li.done .dot { background: var(--gold); border-color: var(--gold); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 189, 0, .25); } }
@media (prefers-reduced-motion: reduce) { .stages li.active .dot { animation: none; } }

/* Results */
.scores { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.score { text-align: center; }
.score .num { font-family: var(--display); font-size: clamp(88px, 16vw, 136px); font-weight: 700; line-height: 1; }
.score .of { font-size: 22px; color: var(--paper); }
.score .band-name { font-family: var(--display); font-size: 30px; font-weight: 600; }
.score.potential .num { color: var(--gold); } .score.potential .of, .score.potential .band-name, .score.potential .eyebrow { color: var(--pale); }
.scale { max-width: 820px; width: 100%; margin: 28px auto 0; }
.scale .bar { display: flex; height: 14px; border-radius: 0; overflow: hidden; }
.scale .marks { position: relative; height: 22px; }
.scale .labels { display: flex; font-size: 13px; color: var(--paper); }
.chip { display: inline-flex; gap: 8px; align-items: center; background: var(--ink); border-radius: 0; padding: 8px 16px; font-size: 15px; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); display: inline-block; }
.meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 22px; text-align: center; }
.weak { background: var(--paper); border-radius: 0; padding: 22px; }
.weak .n { font-family: var(--display); font-size: 48px; font-weight: 700; color: var(--deep); line-height: 1; }
.weak .n small { font-family: var(--body); font-size: 18px; color: var(--slate); font-weight: 400; }
.rows { display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: minmax(130px, 240px) 1fr 70px; gap: 14px; align-items: center; }
.row .track { height: 10px; background: var(--paper); border-radius: 0; overflow: hidden; }
.row .fill { height: 100%; background: var(--deep); }
.row .val { text-align: right; } .row .val span { color: var(--slate); }
.book { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 860px) { .book { grid-template-columns: 1fr 1fr; gap: 32px; } }
.calendly { min-height: 640px; border-radius: 0; overflow: hidden; }
.calendly.placeholder { min-height: 360px; border: 2px dashed var(--mist); display: flex; align-items: center; justify-content: center; color: var(--slate); text-align: center; padding: 24px; }
.locked .card { padding: 18px 20px; }
.locked .line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; color: var(--slate); margin-top: 6px; }
.locked .pill { background: var(--mist); color: var(--mist); border-radius: 0; padding: 0 10px; line-height: 1.4; font-size: 13px; user-select: none; }
@media (max-width: 560px) {
  .nav-link { display: none; } .brand { font-size: 17px; } .brand.full img { height: 44px; }
  .row { grid-template-columns: 1fr 64px; } .row .track { grid-column: 1 / -1; grid-row: 2; }
  .hero, .band { padding: 44px 0; }
}

/* Loading progress */
.load-progress { max-width: 520px; margin-left: auto; margin-right: auto; height: 8px; background: rgba(11, 29, 27, .55); margin-top: 26px; overflow: hidden; }
.load-fill { height: 100%; width: 0; background: var(--gold); transition: width .9s ease-out; }
.load-time { max-width: 520px; margin-left: auto; margin-right: auto; display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
.load-time #load-elapsed { color: var(--pale); }

/* Score scale: marker, potential line and margin-of-error bracket */
.scale .marks { height: 34px; }
.scale .marker { position: absolute; top: -24px; width: 4px; height: 34px; margin-left: -2px; background: var(--white); }
.scale .potential-line { position: absolute; top: -24px; height: 34px; border-left: 3px dashed var(--gold); margin-left: -1px; }
.scale .bracket { position: absolute; top: 8px; height: 10px; border: 2px solid var(--gold); border-top: 0; }
.retake #note { color: var(--paper); }
/* Score history */
.scale .prev-marker { position: absolute; top: -26px; width: 14px; height: 14px; margin-left: -7px; border: 2px solid var(--paper); border-radius: 50%; background: var(--deep); }
.chip.prev b { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--paper); display: inline-block; }
.delta { display: inline-block; margin-left: 8px; font-family: var(--body); font-size: 13px; font-weight: 600; white-space: nowrap; }
.delta.up, .row .val .delta.up { color: #2e7d4f; } .delta.down, .row .val .delta.down { color: var(--error); } .delta.same, .row .val .delta.same { color: var(--slate); font-weight: 400; }
@media (min-width: 561px) { .rows.has-prev .row { grid-template-columns: minmax(130px, 240px) 1fr 190px; } }
@media (max-width: 560px) { .rows.has-prev .row { grid-template-columns: 1fr auto; } }

/* Results finale */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
