/* Infolytics Precision — landing campaign styles
   White-dominant (~80%), Deep Teal (~15%), Gold accents (~5%). */

:root {
  --teal: #154B4D;
  --teal-deep: #0F3A3C;
  --gold: #FFE085;
  --soft: #EEF4F3;
  --mid: #71898A;
  --ink: #253238;
  --rule: #D7DEE2;
  --white: #FFFFFF;
  --muted: #4A5A60;

  --font: Aptos, "Aptos Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Aptos Display", Aptos, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --rail: 0px;
  --radius: 4px;
  --section: clamp(64px, 9vw, 112px);
}

*, *::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(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--teal);
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--teal); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

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

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.45rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.measure { max-width: 64ch; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.45; color: var(--ink); font-weight: 600; }
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 36px; max-width: 760px; }
.section-head p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 52px; width: auto; }
.logo .wordmark {
  display: none; font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--teal); letter-spacing: -0.01em;
}
.logo.no-img img { display: none; }
.logo.no-img .wordmark { display: inline; }
.site-header .btn .short { display: none; }
@media (max-width: 640px) {
  .site-header .btn .full { display: none; }
  .site-header .btn .short { display: inline; }
  .hero-visual { padding: 10px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--teal);
  background: var(--teal); color: var(--white);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--teal-deep); color: var(--white); }
.btn .pt {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none;
}
.btn-quiet { background: transparent; color: var(--teal); }
.btn-quiet:hover { background: var(--soft); color: var(--teal); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.cta-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero .wrap {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.category { font-weight: 600; color: var(--teal); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.category::before {
  content: ""; width: 50px; height: 9px; flex: none;
  background:
    linear-gradient(var(--teal), var(--teal)) left center / 40px 1px no-repeat,
    radial-gradient(circle, var(--gold) 0 3.5px, var(--teal) 3.6px 4.4px, transparent 4.5px) right center / 9px 9px no-repeat;
}
.hero h1 { max-width: 15ch; }
.hero h1.long { font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-width: 18ch; }
.hero .lead { margin-top: 24px; max-width: 34em; }
.hero .body { margin-top: 16px; max-width: 36em; color: var(--muted); }
.hero-visual { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; background: var(--white); }
.visual-caption { margin-top: 12px; font-size: 0.85rem; color: var(--mid); }

/* ---------- Client strip ---------- */

.clients { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 26px 0; }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.clients p { margin: 0; font-size: 0.92rem; color: var(--muted); flex: 0 0 auto; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.clients img { height: 44px; width: auto; filter: grayscale(1); opacity: 0.9; }
.clients .partner a { font-weight: 600; font-size: 0.92rem; }

/* ---------- Symptoms ---------- */

.split { display: grid; gap: 32px 64px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.split .section-head { margin-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.checklist li {
  position: relative; padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--rule);
}
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 15px; height: 15px; border: 1.5px solid var(--teal); border-radius: 2px;
}

/* ---------- Statement band (the teal moment) ---------- */

.band { background: var(--teal); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.band p.statement {
  margin: 0; max-width: 26ch;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em;
}
.band .statement-line { display: flex; align-items: center; margin-top: 28px; max-width: 320px; }
.band .statement-line::before { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.5); }
.band .statement-line::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }

/* ---------- Prose block ---------- */

.prose { max-width: 680px; }
.prose p { font-size: 1.1rem; }
.prose .pull { color: var(--teal); font-weight: 600; }

/* ---------- Capability list ---------- */

.capabilities {
  display: grid; gap: 0 48px; grid-template-columns: 1fr; margin: 0;
}
@media (min-width: 760px) { .capabilities { grid-template-columns: 1fr 1fr; } }
.capabilities div { border-top: 1px solid var(--rule); padding: 20px 0 24px; }
.capabilities dt { font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.capabilities dd { margin: 0; color: var(--muted); }

/* ---------- Approach (three moves) ---------- */

.moves { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .moves { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.moves h3 { margin-bottom: 8px; }
.moves p { color: var(--muted); }

/* ---------- Lifecycle (a real sequence) ---------- */

.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.lifecycle li { position: relative; counter-increment: step; padding: 0 0 28px 44px; }
.lifecycle li::before {
  content: ""; position: absolute; left: 7px; top: 22px; bottom: -4px; width: 1px; background: var(--teal); opacity: .45;
}
.lifecycle li:last-child::before { display: none; }
.lifecycle li::after {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--teal);
}
.lifecycle li:last-child::after { background: var(--gold); }
.lifecycle .num { display: block; font-size: 0.85rem; font-weight: 700; color: var(--mid); margin-bottom: 2px; }
.lifecycle .num::before { content: counter(step, decimal-leading-zero); }
.lifecycle h3 { margin-bottom: 6px; }
.lifecycle p { color: var(--muted); margin: 0; }

@media (min-width: 980px) {
  .lifecycle { grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 24px; }
  .lifecycle li { padding: 40px 0 0 0; }
  .lifecycle li::before { left: 15px; right: -24px; top: 7px; bottom: auto; width: auto; height: 1px; }
  .lifecycle li::after { top: 0; }
}

/* ---------- Assessment panel ---------- */

.assess {
  background: var(--soft);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}
.assess-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .assess-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.assess h3 { font-size: 1.35rem; margin-bottom: 6px; }
.assess .hint { color: var(--muted); margin-bottom: 18px; font-size: 0.95rem; }
fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
legend { font-weight: 700; color: var(--ink); margin-bottom: 10px; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  font: 500 0.98rem/1.25 var(--font); text-align: left; cursor: pointer;
}
.chip::before {
  content: ""; width: 14px; height: 14px; flex: none;
  border: 1.5px solid var(--mid); border-radius: 2px; background: var(--white);
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--white); }
.chip[aria-pressed="true"]::before { border-color: var(--gold); background: var(--gold); }
.chips.single .chip::before { border-radius: 50%; }

.count { margin: 14px 0 0; font-weight: 600; color: var(--teal); }
.disclaimer { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

label.field { display: block; font-weight: 700; margin-bottom: 8px; }
.input, textarea, select {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
.input:focus, textarea:focus, select:focus { border-color: var(--teal); }
.field-row { margin-bottom: 18px; }

.diagram-wrap { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; }

/* Calculator */
.calc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .calc-grid { grid-template-columns: 1fr 1fr 1fr; } }
.result {
  background: var(--teal); color: var(--white); border-radius: var(--radius);
  padding: 28px; margin-top: 8px;
}
.result .label { font-size: 0.95rem; opacity: 0.85; }
.result .value {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1; margin: 10px 0 12px; display: flex; align-items: baseline; gap: 12px;
}
.result .value small { font-size: 1.1rem; font-weight: 500; }
.result .note { font-size: 0.88rem; opacity: 0.85; margin: 0; }
.result .gold { width: 48px; height: 3px; background: var(--gold); margin-top: 16px; }

/* Interactive SVG states */
.node rect, .node circle.n { fill: var(--white); stroke: var(--rule); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
.node text { fill: var(--mid); font: 600 13px var(--font); }
.node.on rect, .node.on circle.n { fill: var(--teal); stroke: var(--teal); }
.node.on text { fill: var(--white); }
.link { stroke: var(--rule); stroke-width: 1.5; stroke-dasharray: 5 6; fill: none; transition: stroke .2s; }
.link.on { stroke: var(--teal); stroke-dasharray: none; stroke-width: 2; }
.endpoint { fill: var(--white); stroke: var(--teal); stroke-width: 1.5; }
.endpoint.on, .hubpt { fill: var(--gold); stroke: var(--teal); stroke-width: 1.5; }
.seg { fill: var(--white); stroke: var(--rule); stroke-width: 1.5; transition: fill .2s; }
.seg.on { fill: var(--gold); stroke: var(--teal); }

/* Maturity comparison */
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; background: var(--white); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { color: var(--teal); font-family: var(--font-display); font-size: 1.05rem; border-bottom: 2px solid var(--teal); }
.compare tbody th { font-weight: 700; color: var(--ink); width: 26%; }
.compare td.after { color: var(--teal); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Proof ---------- */

.proof-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.quote { margin: 0; border-top: 2px solid var(--teal); padding-top: 24px; }
.quote blockquote { margin: 0; }
.quote .pull {
  font-family: var(--font-display); font-weight: 600; color: var(--teal);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.25; margin-bottom: 14px;
}
.quote .body { color: var(--muted); }
.quote figcaption { margin-top: 18px; font-size: 0.95rem; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.quote .tags span { font-size: 0.82rem; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }

.outcome {
  background: var(--teal); color: var(--white); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.outcome .who { font-weight: 600; opacity: .85; }
.outcome .what {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.08;
}
.outcome p { margin: 0; opacity: .9; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-top: 8px; font-weight: 600; }
.flow span { padding: 4px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); font-size: .9rem; }
.flow i { width: 18px; height: 1px; background: var(--gold); display: inline-block; }

/* ---------- Fit ---------- */

.fit { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .fit { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 48px; } }
.fit-list { list-style: none; margin: 0; padding: 0; }
.fit-list li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--rule); }
.fit-list li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
}
.not-fit { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; }
.not-fit p { color: var(--muted); }
.not-fit p.yes { color: var(--teal); font-weight: 600; }

/* ---------- Consultation ---------- */

.consult { background: var(--soft); }
.consult-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .consult-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; } }
.questions { list-style: none; margin: 18px 0 0; padding: 0; }
.questions li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-weight: 600; color: var(--ink); }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.tab {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 14px 18px; font: 600 1rem/1.2 var(--font); color: var(--muted); cursor: pointer; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--teal); border-bottom-color: var(--teal); }
.panel { background: var(--white); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.panel[hidden] { display: none; }
.embed { width: 100%; border: 0; display: block; height: 1050px; }
@media (min-width: 600px) { .embed { height: 820px; } }
@media (min-width: 1024px) { .embed { height: 720px; } }
.embed-fallback { padding: 16px 20px; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--muted); }
.attached {
  display: none; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--rule);
  background: var(--white); font-size: 0.92rem; color: var(--teal);
}
.attached.show { display: block; }

/* ---------- Hub index ---------- */

.problems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.problems a {
  display: grid; grid-template-columns: 1fr; gap: 6px; padding: 24px 0; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) { .problems a { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: baseline; } }
.problems strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--teal); }
.problems span { color: var(--muted); }
.problems a:hover strong { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { background: var(--teal); color: var(--white); padding: 48px 0 32px; }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer .sign { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.site-footer .sign .pt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-left: 6px; }
.site-footer p { margin: 0; opacity: .85; font-size: .92rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 20px; }

/* ---------- Photography ---------- */
.hero-photo, .result-photo {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--soft); aspect-ratio: 4 / 3;
}
.result-photo { aspect-ratio: 3 / 2; }
.hero-photo img, .result-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
/* Precision motif on the opening photo only: teal line ending in a gold point */
.hero-photo::after {
  content: ""; position: absolute; left: 24px; bottom: 24px; width: 96px; height: 11px;
  background:
    linear-gradient(var(--white), var(--white)) left center / 84px 1px no-repeat,
    radial-gradient(circle, var(--gold) 0 4.5px, var(--teal) 4.6px 5.5px, transparent 5.6px) right center / 11px 11px no-repeat;
}
.result-split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .result-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; } }
.result-split .section-head { margin-bottom: 20px; }
.selection { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 24px; }
.selection h3 { margin-bottom: 12px; }

/* ---------- Thank you and index ---------- */
.thanks h1 { max-width: 18ch; }
.hero-index .wrap, .thanks .wrap { grid-template-columns: 1fr; }
.panel-solo { border-top: 1px solid var(--rule); border-radius: var(--radius); }
.index-list { padding-top: 0; }

/* ---------- Utilities and small parts ---------- */
.mt { margin-top: 24px; }
.mt-s { margin-top: 12px; }
.mt-l { margin-top: 48px; }
.after-list { margin-top: 20px; color: var(--ink); font-weight: 600; }
.assess > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 30ch; }
.assess .hint { margin-top: 10px; margin-bottom: 28px; font-size: 1.02rem; }
.assess .btn { margin-top: 8px; }
.discuss h3 { margin-bottom: 12px; }
.discuss-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.discuss-list li { padding: 10px 0 10px 24px; border-bottom: 1px solid var(--rule); position: relative; font-weight: 600; color: var(--teal); }
.discuss-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 1px solid var(--teal); }
.discuss-list li.empty { color: var(--muted); font-weight: 400; padding-left: 0; }
.discuss-list li.empty::before { display: none; }
.compare-title { margin: 48px 0 12px; font-size: 1.15rem; }
.seg.idle { fill: var(--soft); stroke: var(--teal); stroke-width: 1; }
.consult h3 { font-size: 1.25rem; }

/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 92px; }

/* ---------- Native booking and enquiry form ---------- */
:root { --error: #9B2C2C; }
.lead-form { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.lead-form[hidden], .done[hidden], .when[hidden] { display: none; }
.lead-form fieldset { margin: 0 0 6px; }
.lead-form legend { font-size: 1rem; }
.lead-form .opt { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.when { display: flex; flex-direction: column; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; min-height: 76px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); color: var(--ink);
  font: 500 0.9rem/1.2 var(--font); cursor: pointer;
}
.day .dnum { font-size: 1.35rem; font-weight: 700; color: var(--teal); }
.day .dow, .day .mon { color: var(--muted); }
.day:hover { border-color: var(--teal); }
.day[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); }
.day[aria-pressed="true"] .dnum, .day[aria-pressed="true"] .dow, .day[aria-pressed="true"] .mon { color: var(--white); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; min-height: 48px; }
.times .hint-line { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.95rem; align-self: center; }
.slot {
  min-height: 44px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white);
  color: var(--teal); font: 600 1rem/1 var(--font); cursor: pointer; font-variant-numeric: tabular-nums;
}
.slot:hover { border-color: var(--teal); }
.slot[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
.details { display: grid; grid-template-columns: 1fr; gap: 16px 18px; }
@media (min-width: 640px) { .details { grid-template-columns: 1fr 1fr; } }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f.wide { grid-column: 1 / -1; }
.f > label { font-weight: 600; font-size: 0.95rem; }
.f .input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.err { margin: 0; color: var(--error); font-size: 0.88rem; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-actions .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-msg { margin: 0; color: var(--error); font-weight: 600; font-size: 0.95rem; }
.form-msg:empty { display: none; }
.lead-box .attached { margin: 0; padding: 12px 16px; border-radius: var(--radius); background: var(--soft); border-bottom: 0; }
.done { padding: 40px 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; outline: none; }
.done h3 { font-size: 1.6rem; }
.done p { margin: 0; color: var(--muted); max-width: 46ch; }
.done-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); position: relative; }
.done-mark::after { content: ""; position: absolute; left: 17px; top: 12px; width: 11px; height: 20px; border: solid var(--gold); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.lead-box .panel { border-top: 1px solid var(--rule); border-radius: 0 0 var(--radius) var(--radius); }
.lead-box .tabs { border-bottom: 0; }
[hidden] { display: none !important; }
.f > label.check { font-weight: 400; }
