/* ==========================================================================
   Tempo — funnel page (lancer-un-projet.html). Uses the tokens from tempo.css.
   ========================================================================== */

.tunnel { padding-block: clamp(28px, 4vw, 56px) clamp(80px, 8vw, 120px); }
.tunnel-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.tunnel-steps { grid-column: 1 / span 5; min-width: 0; }
.tunnel-preview {
  grid-column: 6 / -1;
  position: sticky;
  top: calc(var(--head-h) + 24px);
  min-width: 0;
}

.tunnel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tunnel-title {
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  font-variation-settings: "wdth" var(--d-wdth);
  letter-spacing: var(--d-track);
  font-size: calc(clamp(2rem, 3.6vw, 3.25rem) * var(--d-scale));
  line-height: 0.95;
  text-transform: uppercase;
}
.tunnel-restart {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.tunnel-restart:hover { color: var(--accent); }

/* progress: seven cells on the grid */
.tunnel-progress { margin: 24px 0 28px; }
.tp-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tp-cells li { height: 8px; border: 1px solid var(--accent-dash); background: var(--paper); transition: background-color 240ms ease, border-color 240ms ease; }
.tp-cells li.is-done { border-color: var(--accent); background: var(--accent-soft); }
.tp-cells li.is-current { border-color: var(--accent); background: var(--accent); }
.tp-label { margin-top: 8px; color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }

/* steps */
.tn-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.tn-step[hidden] { display: none; }
.tn-step legend {
  margin-bottom: 18px;
  padding: 0;
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  font-variation-settings: "wdth" var(--d-wdth);
  letter-spacing: var(--d-track);
  font-size: calc(clamp(24px, 2.4vw, 34px) * var(--d-scale));
  line-height: 1.05;
  text-transform: uppercase;
}
.tn-step legend:focus { outline: none; }
.tn-step legend:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
html.motion .tn-step:not([hidden]) { animation: step-in 420ms var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }

.tn-help { margin: -6px 0 16px; color: var(--ink-2); font-size: 15px; max-width: 48ch; }
.tn-sub { margin-bottom: 22px; }
.tn-sub-label { margin-bottom: 10px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.opts--stack { flex-direction: column; align-items: stretch; }

/* project type: big choices */
.tn-choices { display: grid; gap: 10px; }
.tn-choice { position: relative; cursor: pointer; }
.tn-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.tn-choice span {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px dashed var(--ink-3);
  background: var(--paper);
  border-radius: var(--radius);
  corner-shape: var(--corner);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.tn-choice strong {
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  font-variation-settings: "wdth" var(--d-wdth);
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}
.tn-choice small { color: var(--ink-2); font-size: 14px; }
.tn-choice input:checked + span { border-style: solid; border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tn-choice input:checked + span small { color: var(--on-accent-2); }
.tn-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.tn-choice:active span { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .tn-choice:hover input:not(:checked) + span { border-color: var(--accent); }
}

.tn-check { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; cursor: pointer; }
.tn-check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* checkbox chips reuse .opt-chip; mark the "mentioned" ones */
.opt-chip input[type="checkbox"] { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt-chip input[type="checkbox"]:checked + span { border-style: solid; border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.opt-chip input[type="checkbox"]:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.tn-suggested {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* fields */
.tn-field { display: grid; gap: 6px; margin-top: 14px; }
.tn-field label { color: var(--ink-2); font-size: 14px; }
.tn-field input,
.tn-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grid-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  border-radius: var(--radius);
  corner-shape: var(--corner);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.tn-field textarea { resize: vertical; min-height: 150px; }
.tn-field input:focus,
.tn-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tn-count { justify-self: end; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.tn-error { margin-top: 12px; color: var(--ink); font-size: 14px; font-weight: 600; padding-left: 10px; border-left: 2px solid var(--accent); }
.tn-error[hidden] { display: none; }

/* nav */
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--grid-strong); }
.step-nav [data-next] { margin-left: auto; min-width: 200px; }
.step-nav [hidden] { display: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---------- preview panel ---------- */
.tp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 12px; }
.tp-title { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tp-tag { padding: 2px 8px; border: 1px solid var(--accent); color: var(--accent); font-size: 13px; }
.tp-tag[hidden] { display: none; }

/* AI at work: status line with three grid cells + a scan band over the preview.
   Shown only while a request is pending; the 250 ms delay keeps fast answers from flashing it. */
.tp-ai { display: none; align-items: center; gap: 8px; font-family: var(--f-code); font-size: 12px; color: var(--ink-3); }
body[data-ai="loading"] .tp-ai { display: inline-flex; animation: pv-ai-in 240ms var(--ease-out) 250ms both; }
.tp-ai-dots { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; }
.tp-ai-dots i { width: 6px; height: 6px; background: var(--accent); }
html.motion .tp-ai-dots i { animation: tp-ai-cell 900ms var(--ease-in-out) infinite; }
html.motion .tp-ai-dots i:nth-child(2) { animation-delay: 120ms; }
html.motion .tp-ai-dots i:nth-child(3) { animation-delay: 240ms; }
@keyframes tp-ai-cell { 0%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
/* Mobile: the preview sits in a closed sheet, so the strip that opens it shows the same three cells */
.ps-ai { display: none; }
body[data-ai="loading"] .ps-ai { display: inline-grid; flex: none; animation: pv-ai-in 240ms var(--ease-out) 250ms both; }

.pv-root { position: relative; }
body[data-ai="loading"] .pv-root { overflow: hidden; }
body[data-ai="loading"] .pv-root::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 35%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent,
    color-mix(in oklab, var(--pv-accent) 10%, transparent) 80%,
    color-mix(in oklab, var(--pv-accent) 45%, transparent) 99%,
    var(--pv-accent));
  transform: translateY(-100%);
}
/* The band sweeps top to bottom at constant speed (its own height is 35%, so 286% carries it past the bottom) */
html.motion body[data-ai="loading"] .pv-root::after {
  animation: pv-ai-scan 1.6s linear 250ms infinite, pv-ai-in 300ms var(--ease-out) 250ms both;
}
@keyframes pv-ai-scan { from { transform: translateY(-100%); } to { transform: translateY(286%); } }
@keyframes pv-ai-in { from { opacity: 0; } }
.tp-close { display: none; }
.tp-note { margin-top: 10px; color: var(--ink-3); font-size: 13px; }

.pv-root {
  --pv-accent: #0a3cff;
  --pv-paper: #ffffff;
  --pv-ink: #111216;
  --pv-font: "Chakra Petch", sans-serif;
  --pv-radius: 0px;
  --pv-soft: color-mix(in oklab, var(--pv-accent) 14%, var(--pv-paper));
  --pv-line: color-mix(in oklab, var(--pv-ink) 14%, var(--pv-paper));
  --pv-accent2: color-mix(in oklab, var(--pv-accent) 45%, var(--pv-paper));
  --pv-on-accent: var(--pv-paper);
}
.pv-frame { border: 1px solid var(--ink); background: var(--pv-paper); color: var(--pv-ink); overflow: hidden; }
.pv-frame--browser { min-height: min(68vh, 640px); }
.pv-frame--phone { width: min(320px, 100%); margin-inline: auto; border-width: 6px; border-radius: max(var(--pv-radius), 22px); }
.pv-bar { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--pv-line); background: var(--pv-paper); }
.pv-bar i { width: 7px; height: 7px; background: var(--pv-ink); opacity: 0.6; }
.pv-bar i:nth-child(3) { background: var(--pv-accent); opacity: 1; }
.pv-url { margin-left: 10px; padding: 1px 8px; border: 1px solid var(--pv-line); font-family: var(--f-code); font-size: 12px; opacity: 0.8; }
.pv-frame--phone .pv-bar { justify-content: center; }
.pv-frame--phone .pv-url { margin-left: 0; }
.pv-screen { display: grid; gap: 10px; padding: 12px; }
.pv-screen > * { border-radius: var(--pv-radius); }
html.motion .pv-in { animation: pv-in 520ms var(--ease-out); }
@keyframes pv-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

.pv-root strong, .pv-hero-title, .pv-wordmark, .pv-type-big { font-family: var(--pv-font); }
.pv-nav { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--pv-line); }
.pv-logo { width: 16px; height: 16px; background: var(--pv-accent); }
.pv-name { font-size: 15px; text-transform: uppercase; }
.pv-links { display: flex; gap: 10px; margin-left: auto; font-size: 11px; opacity: 0.75; }
.pv-cart { display: flex; justify-content: flex-end; align-items: center; gap: 8px; font-size: 12px; }
.pv-pill { padding: 1px 8px; border: 1px solid var(--pv-accent); color: var(--pv-accent); border-radius: 999px; }
.pv-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: center; padding: 14px; background: var(--pv-soft); }
.pv-hero-title { font-size: clamp(18px, 2vw, 26px); line-height: 1.1; font-weight: 600; margin-bottom: 10px; }
.pv-cta { display: inline-block; padding: 6px 12px; background: var(--pv-accent); color: var(--pv-on-accent); font-size: 12px; font-weight: 600; border-radius: var(--pv-radius); }
.pv-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 3px; }
.pv-cell { aspect-ratio: 1; background: var(--pv-line); }

/* Art: our own colour-free SVGs, painted by the palette */
.pv-art { display: block; }
.pv-art svg { display: block; width: 100%; height: auto; }
.pv-art .p { fill: var(--pv-paper); }
.pv-art .s { fill: var(--pv-soft); }
.pv-art .i { fill: var(--pv-ink); }
.pv-art .a { fill: var(--pv-accent); }
.pv-art .b { fill: var(--pv-accent2); }

/* Hero layouts */
.pv-hero--plein { grid-template-columns: 1fr; }
.pv-hero--plein .pv-hero-art { order: -1; }
.pv-hero--plein .pv-hero-art svg { aspect-ratio: 16 / 7; }
.pv-hero--editorial { grid-template-columns: 1fr 0.8fr; grid-template-areas: "title title" "cta art"; align-items: end; }
.pv-hero--editorial .pv-hero-copy { display: contents; }
.pv-hero--editorial .pv-hero-title { grid-area: title; font-size: clamp(22px, 2.6vw, 34px); margin-bottom: 0; }
.pv-hero--editorial .pv-cta { grid-area: cta; justify-self: start; align-self: end; }
.pv-hero--editorial .pv-hero-art { grid-area: art; }
html.motion .pv-swap { animation: pv-fade 240ms var(--ease-out); }
@keyframes pv-fade { from { opacity: 0; } }

.pv-product-art { width: 40px; }
.pv-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pv-gallery-grid .pv-art { background: var(--pv-soft); }
.pv-gallery-grid svg { aspect-ratio: 4 / 3; }
.pv-emblem { width: 56px; flex: none; }
.pv-welcome { display: grid; gap: 8px; padding: 10px; background: var(--pv-soft); font-size: 13px; }
.pv-welcome-art svg { height: 90px; width: auto; margin-inline: auto; }
.pv-cell--on { background: var(--pv-accent); }
html.motion .pv-cell--wave { animation: pv-wave 2.4s ease-in-out infinite; }
html.motion .pv-cell--wave:nth-child(2n) { animation-delay: 0.3s; }
html.motion .pv-cell--wave:nth-child(3n) { animation-delay: 0.6s; }
@keyframes pv-wave { 50% { background: var(--pv-accent); } }
.pv-sections, .pv-products, .pv-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.pv-card, .pv-product { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--pv-line); font-size: 12px; border-radius: var(--pv-radius); }
.pv-card strong, .pv-product strong { font-size: 13px; }
.pv-line { display: block; height: 6px; background: var(--pv-line); }
.pv-line--accent { background: var(--pv-accent); }
.pv-band { padding: 8px 12px; border: 1px solid var(--pv-line); font-size: 12px; font-weight: 600; }
.pv-band--accent { background: var(--pv-accent); color: var(--pv-on-accent); border-color: var(--pv-accent); }
.pv-band--dash { border-style: dashed; border-color: var(--pv-accent); }
.pv-booking, .pv-form, .pv-reviews, .pv-blog, .pv-gallery, .pv-table { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--pv-line); font-size: 12px; }
.pv-booking .pv-cells { grid-template-columns: repeat(7, 1fr); }
.pv-review { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; }
.pv-review .pv-cells { grid-template-columns: repeat(5, 1fr); }
.pv-footer { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--pv-ink); color: var(--pv-paper); font-size: 11px; }
.pv-appbar { display: flex; justify-content: space-between; align-items: center; }
.pv-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--pv-accent); }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pv-stat { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--pv-line); font-size: 11px; }
.pv-list { display: grid; gap: 6px; }
.pv-row { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--pv-line); font-size: 12px; }
.pv-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 8px; border: 1px solid var(--pv-line); }
.pv-chart-bar { flex: 1; background: var(--pv-accent); }
.pv-logo-board { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--pv-soft); }
.pv-monogram { display: grid; place-items: center; width: 64px; height: 64px; background: var(--pv-accent); color: var(--pv-on-accent); font-family: var(--pv-font); font-size: 34px; font-weight: 700; border-radius: var(--pv-radius); }
.pv-wordmark { font-size: 26px; text-transform: uppercase; }
.pv-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pv-sw { aspect-ratio: 1.4; border: 1px solid var(--pv-line); }
.pv-sw--accent { background: var(--pv-accent); }
.pv-sw--ink { background: var(--pv-ink); }
.pv-sw--paper { background: var(--pv-paper); }
.pv-sw--soft { background: var(--pv-soft); }
.pv-sw--deep { background: color-mix(in oklab, var(--pv-accent) 70%, black); }
.pv-type { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--pv-line); font-size: 13px; }
.pv-type-big { font-size: 46px; line-height: 1; }
.pv-motion .pv-cells { grid-template-columns: repeat(10, 1fr); }
.pv-scene { display: grid; place-items: center; height: 120px; background: var(--pv-soft); perspective: 400px; }
.pv-cube { width: 56px; height: 56px; background: var(--pv-accent); transform: rotateX(55deg) rotateZ(45deg); box-shadow: 10px 10px 0 color-mix(in oklab, var(--pv-accent) 60%, black); }
html.motion .pv-cube { animation: pv-spin 6s linear infinite; }
@keyframes pv-spin { to { transform: rotateX(55deg) rotateZ(405deg); } }

/* Step 5: the proposed palette, shown as its two colours and given a full row */
.swatch--auto { grid-column: 1 / -1; }
.swatch--auto i { background: linear-gradient(135deg, var(--sw, var(--accent)) 50%, var(--sw2, var(--ink)) 50%); }

.preview-toggle { display: none; }

/* ---------- mobile: questions full screen, preview as a sheet ---------- */
@media (max-width: 900px) {
  .tunnel-steps, .tunnel-preview { grid-column: 1 / -1; }
  .tunnel-preview {
    position: fixed;
    inset: var(--head-h) 0 0 0;
    z-index: 48;
    padding: 16px var(--gutter) 24px;
    overflow-y: auto;
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 220ms ease, transform 280ms var(--ease-out), visibility 0s linear 280ms;
  }
  body.is-preview-open .tunnel-preview { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms ease, transform 280ms var(--ease-out), visibility 0s; }
  body.is-preview-open { overflow: hidden; }
  .tp-close {
    display: inline-flex;
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid var(--accent);
    background: var(--paper);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-btn);
    corner-shape: var(--corner);
  }
  .preview-toggle {
    position: sticky;
    top: var(--head-h);
    z-index: 47;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    margin: calc(clamp(28px, 4vw, 56px) * -1) 0 20px;
    padding: 8px var(--gutter);
    border: 0;
    border-bottom: 1px solid var(--accent);
    background: var(--paper);
    color: var(--ink);
    text-align: left;
  }
  .ps-swatch { flex: none; width: 28px; height: 28px; background: var(--pv-accent, var(--accent)); border: 1px solid var(--ink); }
  .ps-text { display: grid; min-width: 0; }
  .ps-text strong { overflow: hidden; font-family: var(--f-display); font-size: 16px; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
  .ps-text small { color: var(--ink-2); font-size: 13px; }
  .ps-cta { margin-left: auto; padding: 6px 10px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; white-space: nowrap; border-radius: var(--radius-btn); corner-shape: var(--corner); }
  .pv-frame--browser { min-height: 0; }
  .step-nav { position: sticky; bottom: 0; z-index: 2; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 72px; background: var(--paper); }
  .step-nav [data-next] { min-width: 0; width: auto; }
}
@media (max-width: 640px) {
  .step-nav .btn { width: auto; }
  .pv-hero { grid-template-columns: 1fr; }
  .pv-hero--editorial { grid-template-areas: "title" "art" "cta"; }
}

/* ---------- step 7 ---------- */
.fin-code { display: inline-flex; gap: 8px; align-items: baseline; padding: 4px 10px; border: 1px solid var(--accent); font-family: var(--f-code); font-size: 14px; }
.fin-code[hidden] { display: none; }
.fin-code strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.fin-estimate { margin: 18px 0 12px; padding: 18px; border: 1px solid var(--accent); background: var(--paper); border-radius: var(--radius); corner-shape: var(--corner); }
.fin-range {
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  font-variation-settings: "wdth" var(--d-wdth);
  font-size: calc(clamp(24px, 2.6vw, 34px) * var(--d-scale));
  line-height: 1.05;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.fin-lines { display: grid; gap: 6px; margin-top: 14px; }
.fin-lines li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--grid-strong); font-size: 15px; font-variant-numeric: tabular-nums; }
.fin-mention { margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.fin-actions { display: grid; gap: 18px; margin-top: 24px; }
.fin-call, .fin-callback { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--grid-strong); background: var(--paper); border-radius: var(--radius); corner-shape: var(--corner); }
.fin-call { border-color: var(--accent); }
.fin-call h3, .fin-callback h3 {
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  font-variation-settings: "wdth" var(--d-wdth);
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
}
.fin-call-btn { justify-self: start; }
.fin-call-btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.fin-number { display: grid; gap: 8px; justify-items: start; }
.fin-number[hidden] { display: none; }
.fin-number-big { font-family: var(--f-code); font-size: clamp(26px, 3vw, 36px); font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.fin-form { display: grid; gap: 12px; }
.fin-form[hidden] { display: none; }
.fin-slots { margin: 0; padding: 0; border: 0; }
.fin-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fin-done { padding: 14px 16px; background: var(--accent); color: var(--on-accent); font-weight: 600; border-radius: var(--radius); corner-shape: var(--corner); }
.fin-done[hidden] { display: none; }
.fin-done:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.tn-help[hidden] { display: none; }

/* ---------- print: the estimate as a one-page PDF ---------- */
@media print {
  .site-head, .site-foot, .dock, .cur, .demo-cursor, .gutter, .skip, .tunnel-progress, .tunnel-restart, .step-nav, .preview-toggle, .tp-close, .fin-actions, [data-pdf] { display: none !important; }
  body { background: #fff !important; }
  .tunnel-layout { display: block; }
  .tunnel-preview { position: static; visibility: visible !important; opacity: 1 !important; transform: none !important; margin-top: 24px; break-inside: avoid; }
  .tn-step[hidden] { display: none; }
}

/* fixes: legend inside step 7 is a small label, and the nav stops sticking on the last step */
.tn-step .fin-slots legend.tn-sub-label {
  margin-bottom: 10px;
  font-family: var(--f-text);
  font-size: 13px;
  font-weight: 600;
  font-variation-settings: normal;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--accent);
}
@media (max-width: 900px) {
  .tunnel-form[data-at="fin"] .step-nav { position: static; padding-bottom: 20px; }
  .tunnel { padding-bottom: 96px; }
}

/* printable recap of the answers: hidden on screen, part of the PDF */
.fin-recap { display: none; }
@media print {
  .fin-recap { display: block; margin-bottom: 18px; }
  .fin-recap dl { display: grid; grid-template-columns: 9em 1fr; gap: 4px 12px; }
  .fin-recap dt { font-weight: 600; }
}

/* mobile: sticky strip on top and sticky nav at the bottom must never hide the element being reached */
@media (max-width: 900px) {
  html:has(body[data-page="tunnel"]) {
    scroll-padding-top: calc(var(--head-h) + 72px);
    scroll-padding-bottom: 150px;
  }
}

/* Privacy notes at the point of collection (step 3 and step 7) */
.tn-privacy, .fin-privacy { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.tn-privacy a, .fin-privacy a { color: inherit; text-underline-offset: 3px; }
