/* UClean: tokens (start.mjs brand palette) and page styles, moved from the prototype head */

:root {
  --p-bg: #ffffff; --p-surface: #efedf0; --p-ink: #181818; --p-muted: #5c5c5f;
  --p-accent: #181818; --p-accent-ink: #ffffff; --p-action: #181818; --p-action-ink: #ffffff;
  --p-inv-bg: #181818; --p-inv-surface: #252525; --p-inv-ink: #ffffff; --p-inv-muted: #9e9e9e;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #181818; --p-inv-action: #ffffff; --p-inv-action-ink: #181818;
  --font-display: "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
  --font-promise: "Source Serif 4", Georgia, serif;
}


  /* the promise line: one whole line of the h1 (and one h2) in an italic serif, the client's decision (PLAN.md, waivers) */
  .promise { display: block; font-family: var(--font-promise); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
  /* the logo fills the capsule's height with an even margin (its mark is tall and its wordmark small, so 28px read as off-centre) */
  .nav__logo { align-self: center; }
  .nav__logo img { height: 42px; width: auto; display: block; }
  @media (max-width: 1023px) { .nav__logo img { height: 36px; } }
  .nav__phone { font-variant-numeric: tabular-nums; white-space: nowrap; }
  @media (max-width: 1023px) { .nav__actions .nav__phone { display: none; } }

  /* hero: the kit's full-bleed photo hero (data-box none, dark tone). Desktop: the words straight on the photograph's
     calm left over a soft shade (Distinct, the client's choice: waiver), the price in a glass card on the right foot.
     From 1023 down the kit puts the photograph under the header and the words on the ground under it. */
  @media (min-width: 1024px) {
    .hero--uc::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
      background: linear-gradient(90deg, rgb(0 0 0 / .66) 0%, rgb(0 0 0 / .4) 45%, rgb(0 0 0 / 0) 72%), linear-gradient(180deg, rgb(0 0 0 / 0) 40%, rgb(0 0 0 / .5) 100%); }
  }
  .hero--uc .hero__text { width: min(100%, 760px); position: relative; z-index: 1; }
  .hero--uc h1 { max-width: 17ch; }
  .hero__promise { margin: var(--s-2) 0 0; font-size: var(--ly-h1-xl, var(--t-h1)); line-height: 1.05; }
  .hero--uc .hero__lead { max-width: 52ch; }
  .proof { position: absolute; right: 0; bottom: 0; z-index: 1; max-width: 300px; padding: var(--s-5); border-radius: 22px; color: #fff; }
  /* below 1024 the kit lays the words on the page ground; its dark-tone rule out-ranks that, so the page's ink is set back here */
  @media (max-width: 1023px) { .hero.hero--uc[data-box="none"][data-tone="dark"] { --ink: var(--p-ink); --muted: var(--p-muted); color: var(--p-ink); } }
  .proof p { margin: 0; font-size: var(--t-small); line-height: 1.45; color: rgb(255 255 255 / .86); }
  .proof .proof__price { display: block; margin-top: var(--s-2); font-size: var(--t-card); font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
  @media (max-width: 1023px) { .proof { display: none; } }
  @media (max-width: 359px) { #sectors, #services { --hm: 2; } }
  @media (max-width: 639px) {
    .hero--uc h1 { font-size: 34px; }
    .hero__promise { font-size: 30px; }
  }

  /* photo cards: the words on the ground, the photograph under them, the price in the card's padding */
  .aud .panel { --p-h: 470px; }
  .rows__value { font-variant-numeric: tabular-nums; }
  @media (min-width: 1024px) and (max-width: 1279px) { #services .rows p { display: none; } }
  @media (min-width: 640px) and (max-width: 1023px) {
    .aud .panel { --p-h: 420px; }
    #questions { --h: 2 }
    .calc__photo { aspect-ratio: 3 / 1; }
  }
  @media (max-width: 639px) {
    #calculator, #questions { --hm: 2; }
    .calc { padding: var(--s-5); }
    .calc__total { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
    .aud .panel { --p-h: 220px; }
    #sectors .frame, #services .frame { max-height: 240px; }
    #sectors .rows p, #services .rows p { display: none; }
  }

  /* calculator */
  .frame--wide { aspect-ratio: 16 / 9; }
  .calc__photo, .clients__photo { margin-top: var(--s-4); }
  .calc__photo { aspect-ratio: 5 / 4; }
  .clients__photo { aspect-ratio: 5 / 2; }
  @media (max-width: 639px) { .calc__photo, .clients__photo { aspect-ratio: 4 / 5; } }
  .calc.form { grid-template-columns: minmax(0, 1fr); }
  .calc__total output { white-space: nowrap; }
  .calc { display: grid; gap: var(--s-6); padding: var(--s-7); border-radius: var(--r-lg); background: var(--p-surface); }
  .calc fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
  .calc legend { font-size: var(--t-small); font-weight: 500; margin-bottom: var(--s-3); padding: 0; }
  .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .chip { position: relative; }
  .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border-radius: 999px; background: var(--p-bg); border: 1px solid color-mix(in oklab, var(--p-ink) 16%, transparent); font-size: var(--t-body); transition: background-color .3s cubic-bezier(.215,.61,.355,1), color .3s cubic-bezier(.215,.61,.355,1); }
  .chip input:checked + span { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }
  .chip input:focus-visible + span { outline: 2px solid var(--p-ink); outline-offset: 2px; }
  .calc__total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
  .calc__total output { font-size: var(--t-h2); line-height: 1.05; letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; }

  /* clients: names set large, fading toward the foot */
  .names { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-h2); line-height: 1.1; letter-spacing: var(--display-tracking);
           -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }

/* the fonts come from next/font (self-hosted), under the names it gives them */
:root { --font-display: var(--font-onest), "Onest", system-ui, sans-serif; --font-text: var(--font-onest), "Onest", system-ui, sans-serif; --font-promise: var(--font-serif), "Source Serif 4", Georgia, serif; }
