/* ==========================================================================
   Line Item Advisors — site-v1
   Design system per site-prototype/2026-08-20_LIA-BLACK-SITE-DESIGN-CONTROL.html
   (Coach-directed corrective pass, 2026-08-20): near-black ground #050505,
   off-white type #f7f7f3, muted #aeaea8, hairlines #292925, brand green
   #189953, Inter throughout with tight-tracked headline weight 650, and the
   deterministic reversed horizontal wordmark SVG at editorial scale.
   No light-mode variant. Every colour is set explicitly.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable, latin subset) ------------------ */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --black:      #050505;   /* ground */
  --panel:      #0B0B09;   /* lifted surface: fit check, Lisa, embed, tints  */
  --panel-2:    #101010;   /* hover surface */
  --white:      #F7F7F3;   /* primary type */
  --muted:      #AEAEA8;   /* secondary type — 9.2:1 on ground */
  --muted-deep: #8B8B85;   /* quiet captions — 5.6:1 on ground */

  /* Control-page brand green. 5.5:1 on the ground — passes AA as text. */
  --green:       #189953;
  --green-hover: #1FB562;
  --green-press: #12793F;

  --line:        #292925;  /* hairline rules, per control page */
  --line-strong: #3A3A35;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --measure: 66ch;
  --gutter:  clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 148px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 760px) { body { font-size: 18px; } }

img, svg { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Focus -------------------------------------------------------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn--primary:focus-visible { outline-color: var(--white); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--black);
  padding: 12px 18px; z-index: 100; font-size: 15px; font-weight: 600;
}
.skip:focus { left: 0; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ------------------------------------------------------- */
.wrap {
  width: min(1240px, 100% - (2 * var(--gutter)));
  margin-inline: auto;
}
.wrap--narrow { width: min(820px, 100% - (2 * var(--gutter))); }
.wrap--tool   { width: min(880px, 100% - (2 * var(--gutter))); }

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
/* On the black system a "tinted" section is a hairline-framed band, not a
   different paper. The panels inside it carry the lift. */
.section--tint { background: var(--black); }

.measure { max-width: var(--measure); }

/* ---------- Type ---------------------------------------------------------
   Control page: Inter only; headline weight 650, letter-spacing -0.045em,
   line-height 1.02. The serif voice lives in the wordmark itself.          */
.display {
  font-family: var(--sans);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-size: clamp(38px, 6.4vw, 76px);
  color: var(--white);
  text-wrap: balance;
}
.h2 {
  font-family: var(--sans);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--white);
  text-wrap: balance;
}
.h3 {
  font-family: var(--sans);
  font-weight: 620;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--white);
}
.lede {
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.45;
  color: var(--muted);
}
.body  { color: var(--muted); }
.body + .body { margin-top: 1.05em; }
.body strong { color: var(--white); font-weight: 600; }
.caption {
  font-size: 13px; line-height: 1.5; color: var(--muted-deep);
  letter-spacing: 0.005em;
}
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-hover); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15.5px; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.002em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
/* Control page: green fill, white type. */
.btn--primary { background: var(--green); color: #FFFFFF; }
.btn--primary:hover { background: var(--green-hover); color: #FFFFFF; }
.btn--quiet {
  background: transparent; color: var(--white);
  border-color: var(--line-strong);
}
.btn--quiet:hover { background: var(--panel); border-color: var(--muted-deep); color: var(--white); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--green);
  text-decoration: none; border-bottom: 1px solid rgba(24,153,83,.45);
  padding-bottom: 1px;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
.textlink:hover { color: var(--green-hover); border-bottom-color: var(--green-hover); }

.actions { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }

/* ---------- Header / footer ----------------------------------------------
   Control page header: large reversed wordmark left, quiet nav right, single
   hairline underneath. Not sticky — the brand is an editorial statement.   */
.masthead {
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.masthead__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
  padding-block: clamp(20px, 3vw, 30px);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border: 0; }
.masthead .brand img { width: min(560px, 56vw); height: auto; }
.footer .brand img { width: min(320px, 70vw); height: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.is-cta) { display: none; }
@media (min-width: 900px) {
  .nav a:not(.is-cta) { display: inline-flex; }
}
.nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a.is-cta { color: var(--green); }
.nav a.is-cta:hover { color: var(--green-hover); }

.footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 76px);
}
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 860px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 56px; }
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.footer__links a, .footer__links span {
  font-size: 13.5px; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer__links a:hover { color: var(--white); }

.claimfoot {
  font-size: 13.5px; line-height: 1.62; color: var(--muted);
  max-width: 74ch;
}

/* ---------- Hero --------------------------------------------------------- */
.hero { padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; gap: clamp(44px, 6vw, 74px); }
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; }
}
.hero__lede { margin-top: clamp(24px, 3vw, 34px); max-width: 46ch; }
.hero__body { margin-top: 22px; max-width: var(--measure); }
.hero__actions { margin-top: clamp(30px, 3.4vw, 42px); }

/* The two ICP conditions — styled as the control page's green-edged brief. */
.conds {
  margin-top: clamp(30px, 3.4vw, 42px); max-width: 58ch;
  border-left: 1px solid var(--green);
  padding-left: clamp(18px, 2.4vw, 25px);
}
.conds__head {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.cond {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px;
  border-top: 1px solid var(--line);
  padding-block: 15px;
  font-size: 16px; line-height: 1.55; color: var(--muted);
}
.cond:last-of-type { border-bottom: 1px solid var(--line); }
.cond strong { color: var(--white); font-weight: 600; }
.cond__n { font-size: 14px; color: var(--muted-deep); line-height: 1.75; }
.conds__note { margin-top: 14px; }

/* ---------- Steps -------------------------------------------------------- */
.steps { display: grid; gap: clamp(38px, 4.6vw, 58px); margin-top: clamp(40px, 5vw, 62px); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .step { border-top: 0; border-left: 1px solid var(--line); padding: 0 28px; }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step:last-child { padding-right: 0; }
}
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step__n {
  font-size: 14px; color: var(--muted-deep); display: block; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.step__body { margin-top: 12px; font-size: 16px; }

/* ---------- Fee interlude ------------------------------------------------ */
.interlude {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--white);
  padding-block: clamp(84px, 12vw, 160px);
}
.interlude .body { color: var(--muted); }
.interlude .caption { color: var(--muted-deep); }
.interlude a { color: var(--green); }
.interlude a:hover { color: var(--green-hover); }

/* MOTIF — the fee-condition section marker */
.interlude__mark {
  width: 44px; height: 4px; background: var(--green);
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.feeline {
  font-family: var(--sans);
  font-weight: 650;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--white);
  max-width: 21ch;
  text-wrap: balance;
}
.interlude__after { margin-top: clamp(32px, 3.8vw, 48px); max-width: var(--measure); }

/* ---------- Q & A row ---------------------------------------------------- */
.qa { display: grid; gap: 0; margin-top: clamp(34px, 4vw, 50px); }
.qa__item { border-top: 1px solid var(--line); padding-block: clamp(26px, 3vw, 36px); }
.qa__item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .qa__item { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 44px; align-items: start; }
}
.qa__q { font-family: var(--sans); font-weight: 620; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; color: var(--white); }
.qa__a { color: var(--muted); font-size: 16px; margin-top: 12px; }
@media (min-width: 900px) { .qa__a { margin-top: 0; } }

/* ---------- Contact tiers ------------------------------------------------ */
.tiers { display: grid; gap: 0; margin-top: clamp(38px, 4.4vw, 56px); border-top: 1px solid var(--line-strong); }
.tier {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 3.2vw, 38px) 0 clamp(28px, 3.2vw, 38px) clamp(18px, 2.2vw, 30px);
  text-decoration: none;
  color: var(--white);
  transition: background-color 180ms var(--ease);
}
.tier:hover, .tier:focus-visible { background: var(--panel); color: var(--white); }

/* MOTIF — selected-line hover on the three contact tiers */
.tier::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  width: 4px; height: calc(100% - 24px);
  background: var(--green);
  transition: transform 190ms var(--ease);
}
.tier:hover::before, .tier:focus-visible::before { transform: translateY(-50%) scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .tier::before { transition: none; }
}
.tier__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.tier__title { font-family: var(--sans); font-weight: 650; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.2; letter-spacing: -0.03em; color: var(--white); }
.tier__body { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 58ch; }
.tier__meta { font-size: 13.5px; color: var(--muted-deep); margin-top: 12px; }

/* ---------- Fit check ---------------------------------------------------- */
.fit {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(26px, 3.6vw, 52px);
  margin-top: clamp(36px, 4.4vw, 54px);
}
.fit__progress { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(26px, 3vw, 36px); }
.fit__count { font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* MOTIF — fit-check progress marker */
.fit__track { position: relative; flex: 1; height: 3px; background: var(--line); }
.fit__mark { position: absolute; left: 0; top: 0; height: 3px; background: var(--green); width: 0; transition: width 200ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .fit__mark { transition: none; } }

.fit__q {
  font-family: var(--sans);
  font-weight: 650; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.18;
  letter-spacing: -0.035em; text-wrap: balance; color: var(--white);
}
.fit__helper { margin-top: 14px; font-size: 15.5px; color: var(--muted); max-width: 58ch; }
.fit__choices { display: grid; gap: 10px; margin-top: clamp(24px, 2.8vw, 32px); }
.choice {
  display: flex; align-items: center; text-align: left;
  width: 100%; min-height: 56px;
  padding: 14px 20px;
  background: var(--black);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--white);
  font-size: 16px; font-weight: 500; line-height: 1.35;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.choice:hover { border-color: var(--muted-deep); background: var(--panel-2); }
.choice[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

.fit__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(24px, 2.8vw, 32px); flex-wrap: wrap; }
.linkback {
  background: none; border: 0; padding: 10px 0; min-height: 44px;
  font-size: 14.5px; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.linkback:hover { color: var(--white); }
.linkback[hidden] { display: none; }

/* ---------- Lisa --------------------------------------------------------- */
.talk {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  overflow: hidden;
}
.talk__bar {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 16px clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
  background: var(--black);
}
/* Deliberately no presence indicator: a coloured "online" dot would imply a
   person is available, which is exactly what Lisa is not. */
.talk__who { font-size: 14.5px; font-weight: 600; color: var(--white); }
.talk__role { font-size: 13px; color: var(--muted-deep); }
.talk__log {
  padding: clamp(20px, 2.8vw, 30px) clamp(18px, 2.4vw, 26px);
  display: grid; gap: 16px;
  max-height: 60vh; overflow-y: auto;
}
.bubble { max-width: 88%; border-radius: 3px; padding: 15px 18px; font-size: 16px; line-height: 1.55; }
.bubble--lisa { background: var(--black); border: 1px solid var(--line-strong); color: var(--white); justify-self: start; }
.bubble--you  { background: var(--white); color: var(--black); justify-self: end; text-align: right; font-weight: 500; }
.bubble p + p { margin-top: 0.75em; }
.bubble__name { display: block; font-size: 12px; letter-spacing: 0.05em; color: var(--muted-deep); margin-bottom: 6px; font-weight: 600; }
.bubble--you .bubble__name { color: rgba(5,5,5,.55); }
.talk__ask {
  padding: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
  background: var(--black);
  display: grid; gap: 10px;
}
.talk__asklabel { font-size: 13px; color: var(--muted-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.chips__sep {
  flex-basis: 100%; margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted-deep);
}
.chip {
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line-strong); background: var(--panel);
  color: var(--white);
  border-radius: 2px; font-size: 15px; cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.chip:hover { border-color: var(--muted-deep); background: var(--panel-2); }

/* ---------- Booking ------------------------------------------------------ */
.bookgrid { display: grid; gap: clamp(38px, 4.5vw, 58px); }
@media (min-width: 1000px) {
  .bookgrid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 60px; align-items: start; }
}
.embedbox {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  padding: 6px;
  overflow: hidden;
}
.embedbox > * { max-width: 100%; }
#cal-inline { width: 100%; min-height: 600px; }
.embedstate { padding: clamp(26px, 3vw, 40px); display: grid; gap: 16px; }

/* ---------- 404 ---------------------------------------------------------- */
.stage {
  min-height: 66vh;
  display: flex; align-items: center;
  padding-block: clamp(72px, 10vw, 140px);
}

/* ---------- Imagery ------------------------------------------------------
   The photographs are warm-paper documents; on the black ground they read as
   lit pages in a dark room. A hairline frame and a slight settle keep them
   from glowing against the ground.
   ------------------------------------------------------------------------ */
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--panel);
  filter: brightness(.94) saturate(.96);
}
.shot__cap { margin-top: 14px; max-width: 46ch; }
.shot--book { margin-top: clamp(34px, 4vw, 46px); max-width: 560px; }

.band {
  margin: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band img {
  width: 100%; height: auto;
  max-height: clamp(220px, 34vw, 460px);
  object-fit: cover;
  object-position: center 48%;
  filter: brightness(.9) saturate(.96);
}

/* ---------- Recap -------------------------------------------------------- */
.recap {
  border-left: 3px solid var(--green);
  background: var(--panel);
  padding: 16px 20px;
  border-radius: 2px;
  max-width: 60ch;
}
.section--tint .recap { background: var(--panel); }
.recap__label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-deep);
}
.recap__line {
  margin-top: 8px;
  font-size: 16px; line-height: 1.5; color: var(--white); font-weight: 500;
}
.recap__note { margin-top: 10px; font-size: 13.5px; color: var(--muted-deep); }
.recap--talk { margin-top: 14px; border-left-color: var(--green); background: var(--black); }

/* ---------- Prose pages (privacy, terms) --------------------------------- */
.prose .h3 { margin-top: clamp(34px, 4vw, 46px); }
.prose .body { font-size: 16px; }
.nowrap { white-space: nowrap; }

.chip--go {
  background: var(--green); color: #FFFFFF;
  border-color: var(--green); font-weight: 700;
}
.chip--go:hover { background: var(--green-hover); border-color: var(--green-hover); }

/* ---------- Utility ------------------------------------------------------ */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: clamp(30px, 3.6vw, 44px); }
[hidden] { display: none !important; }

@media (max-width: 899px) {
  .masthead__in { align-items: flex-start; }
  .masthead .brand img { width: min(360px, 78vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .masthead, .nav, .fit__choices, .talk__ask { display: none; }
  body { background: #fff; color: #000; }
  .display, .h2, .h3, .qa__q, .tier__title, .fit__q, .feeline { color: #000; }
  .body, .lede, .qa__a, .tier__body { color: #222; }
}
