/* ==========================================================================
   /calculator/price-landing-page/ — landing page price calculator, restored
   2026-10-12. Same page language as the other restored tools (banner creator,
   AI text cleaner, signature generator, price quote generator, logo cost): the theme
   tokens, a 6% accent tint for surfaces, radii 22/16/10, the shared .btn and the
   portfolio.css orbit. Mobile First, every rule scoped under .plp-page.

   Breakpoints: 768px (padding), 1100px (choices and offer side by side, the
   offer sticky), 1200px (orbit shown).
   ========================================================================== */

.plp-page {
  --plp-surface: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface));
  --plp-error: #B3261E;
  --plp-h1: var(--h1-page);
  --plp-h2: clamp(1.375rem, 1.9vw, 1.75rem);
  --plp-h3: clamp(1.125rem, 1.6vw, 1.25rem);
  color: var(--color-text-primary);
  padding-block: var(--space-6) var(--space-12);
  overflow-x: clip;
}
.plp-container { max-width: 1600px; margin-inline: auto; padding-inline: var(--space-4); }
.plp-inner { max-width: 1200px; margin-inline: auto; }
.plp-page [hidden] { display: none !important; }
.plp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Intro ---------- */
.plp-intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding-block: var(--space-3) var(--space-6); }
.plp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-secondary); }
.plp-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--color-text-secondary); transition: color 180ms ease; }
.plp-breadcrumb a:hover { color: var(--color-accent); }
.plp-breadcrumb [aria-current] { color: var(--color-text-primary); font-weight: var(--font-bold); }
.plp-title { margin: 0; font-size: var(--plp-h1); font-weight: var(--font-black); line-height: var(--leading-h1-page); letter-spacing: -0.01em; }
.plp-lead { display: flex; flex-direction: column; gap: var(--space-2); max-width: 68ch; }
.plp-lead p { margin: 0; font-size: var(--text-body); line-height: var(--leading-lead); color: var(--color-text-secondary); }
.plp-lead .plp-lead__first { font-weight: var(--font-bold); color: var(--color-text-primary); }
.plp-subtitle { margin: var(--space-4) 0 var(--space-1); font-size: var(--plp-h2); font-weight: var(--font-bold); line-height: var(--leading-heading); }
.plp-subtitle__hint { margin: 0 0 var(--space-5); font-size: var(--text-body); line-height: var(--leading-lead); color: var(--color-text-secondary); }
.plp-page .portfolio-hero__graphic { display: none; position: absolute; inset: auto; top: 0; left: 20px; width: 180px; height: 180px; }
.plp-page .portfolio-hero__orbit { inset: 0; width: auto; height: auto; }

/* ---------- No-JS ---------- */
.plp-needs-js { margin: 0 0 var(--space-6); padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-stat); background: var(--plp-surface); font-size: var(--text-md); }
.plp-js .plp-needs-js { display: none; }
html:not(.plp-js) .plp-workspace { display: none; }

/* ---------- Workspace ---------- */
.plp-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.plp-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: var(--space-5); min-width: 0; }
.plp-card__title { margin: 0 0 var(--space-2); font-size: var(--plp-h3); font-weight: var(--font-bold); line-height: var(--leading-heading); }
.plp-hint { margin: 0; font-size: var(--text-xs); line-height: 1.55; color: var(--color-text-secondary); }
.plp-form { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-4); }
.plp-fieldset { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.plp-fieldset legend { padding: 0; margin-bottom: var(--space-2); font-size: var(--text-ui); font-weight: var(--font-bold); }


/* Sliders: native, accent-coloured, 44px touch height, with the number beside them */
.plp-slider { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.plp-slider > label { font-size: var(--text-ui); font-weight: var(--font-bold); color: var(--color-text-primary); }
.plp-slider__row { display: flex; align-items: center; gap: var(--space-3); }
.plp-slider input[type="range"] { flex: 1 1 auto; min-width: 0; min-height: 44px; margin: 0; accent-color: var(--color-accent); cursor: pointer; }
.plp-slider input[type="range"]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
.plp-slider__value { flex: none; min-width: 2.75rem; padding: 0.4rem 0.6rem; border-radius: var(--radius-button); border: 1px solid var(--color-border); background: var(--plp-surface); font-size: var(--text-ui); font-weight: var(--font-black); text-align: center; font-variant-numeric: tabular-nums; }

/* Tick boxes (native, accent-coloured, 44px targets) with the price at the end of the row */
.plp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 2px; font-size: var(--text-ui); cursor: pointer; }
.plp-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent); cursor: pointer; flex: none; }
.plp-check input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.plp-check__text { flex: 0 1 auto; min-width: 0; }
.plp-price { flex: none; font-size: var(--text-sm); font-weight: var(--font-bold); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The base page is always part of the offer: shown as a fact, not as a choice */
.plp-fixed { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: var(--space-2) var(--space-4); border-radius: var(--radius-stat); background: var(--plp-surface); font-size: var(--text-ui); }
.plp-fixed__text { flex: 0 1 auto; min-width: 0; font-weight: var(--font-bold); }
.plp-note-inline { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--color-text-secondary); }

/* Running total: only where the offer is under the choices (below 1100px); it sticks under the site header while choosing */
.plp-running { position: sticky; top: calc(var(--header-h-mobile) + var(--space-4)); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-stat); background: var(--color-text-primary); color: #ffffff; box-shadow: 0 4px 14px rgba(17, 17, 17, .18); }
.plp-running__label { font-size: var(--text-sm); font-weight: var(--font-bold); }
.plp-running__value { font-size: var(--text-body-lg); font-weight: var(--font-black); font-variant-numeric: tabular-nums; }


/* ---------- The offer ---------- */
.plp-summary { display: flex; flex-direction: column; gap: var(--space-4); }
.plp-summary .plp-card__title { margin-bottom: 0; }
.plp-lines { width: 100%; border-collapse: collapse; }
.plp-lines th, .plp-lines td { padding: 10px 6px; border-bottom: 1px solid var(--color-border); font-size: var(--text-md); line-height: 1.5; vertical-align: top; }
.plp-lines__label { font-weight: var(--font-regular, 400); text-align: start; overflow-wrap: anywhere; }
.plp-lines tr:first-child .plp-lines__label { font-weight: var(--font-bold); }
.plp-lines__amount { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plp-totals { display: grid; gap: 2px; margin: 0; padding: 0; }
.plp-totals__row { display: flex; justify-content: space-between; gap: var(--space-3); padding: 6px; font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.plp-totals__row dt, .plp-totals__row dd { margin: 0; }
.plp-total { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-4); border-radius: var(--radius-stat); background: var(--color-text-primary); color: #ffffff; text-align: center; }
.plp-total__label { font-size: var(--text-sm); font-weight: var(--font-bold); }
.plp-total__value { font-size: var(--plp-h2); font-weight: var(--font-black); font-variant-numeric: tabular-nums; }
.plp-note { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-stat); background: color-mix(in srgb, #E0A800 14%, var(--color-surface)); border: 1px solid color-mix(in srgb, #E0A800 40%, var(--color-border)); font-size: var(--text-sm); line-height: 1.6; }
.plp-actions { display: flex; flex-direction: column; gap: var(--space-3); }
.plp-btn { width: 100%; height: auto; min-height: 54px; padding-block: 12px; white-space: normal; text-align: center; }
.plp-status { margin: 0; min-height: 1.5em; font-size: var(--text-sm); font-weight: var(--font-bold); line-height: 1.5; color: var(--color-accent); }
.plp-status.is-error { color: var(--plp-error); }

/* ---------- The article under the tool ---------- */
.plp-article { margin-top: var(--space-10); max-width: 78ch; }
.plp-article h2 { margin: var(--space-8) 0 var(--space-3); font-size: var(--plp-h2); font-weight: var(--font-bold); line-height: var(--leading-heading); }
.plp-article h2:first-child { margin-top: 0; }
.plp-article h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--plp-h3); font-weight: var(--font-bold); line-height: var(--leading-heading); }
.plp-article p { margin: 0 0 var(--space-3); font-size: var(--text-body); line-height: var(--leading-lead); color: var(--color-text-secondary); }
.plp-article ul { display: grid; gap: var(--space-1); margin: 0 0 var(--space-4); padding-inline-start: 1.25rem; font-size: var(--text-body); line-height: var(--leading-ui); color: var(--color-text-secondary); }
.plp-article a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.plp-article a:hover { text-decoration-thickness: 2px; }
.plp-article a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 3px; }

.plp-article--after { margin-top: var(--space-8); }

/* ---------- Questions ---------- */
.plp-faq { margin-top: var(--space-8); max-width: 78ch; }
.plp-section-title { margin: 0 0 var(--space-4); font-size: var(--plp-h2); font-weight: var(--font-bold); line-height: var(--leading-heading); }
.plp-faq__list { display: grid; gap: var(--space-3); }
.plp-faq__item { border-radius: var(--radius-stat); background: var(--plp-surface); }
.plp-faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; padding: var(--space-3) var(--space-5); font-size: var(--text-ui); font-weight: var(--font-bold); line-height: var(--leading-heading); cursor: pointer; list-style: none; border-radius: var(--radius-stat); }
.plp-faq__q::-webkit-details-marker { display: none; }
.plp-faq__q::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: var(--font-regular, 400); line-height: 1; transition: transform 160ms ease; }
.plp-faq__item[open] > .plp-faq__q::after { transform: rotate(45deg); }
.plp-faq__q:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.plp-faq__a { padding: 0 var(--space-5) var(--space-4); }
.plp-faq__a p { margin: 0 0 var(--space-2); font-size: var(--text-md); line-height: var(--leading-ui); color: var(--color-text-secondary); }
.plp-faq__a p:last-child { margin-bottom: 0; }

/* ---------- Tablet, >=768px ---------- */
@media (min-width: 768px) {
  .plp-page { padding-block: var(--space-8) var(--space-13); }
  .plp-intro { padding-block: var(--space-5) var(--space-6); }
  .plp-card { padding: var(--space-7); }
  .plp-actions { flex-direction: row; }
  .plp-actions .plp-btn { flex: 1 1 0; }
  .plp-btn { width: auto; padding-inline: var(--space-6); }
}

/* ---------- Choices and offer side by side, >=1100px ---------- */
@media (min-width: 1100px) {
  .plp-running { display: none; }
  .plp-workspace { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  /* A long offer makes the card taller than the screen: it then scrolls inside itself, so the buttons stay reachable. */
  /* The site header is 80px tall from 768px and 110px from 1200px, so the offer sticks under the header that is really there. */
  .plp-summary { position: sticky; top: calc(80px + var(--space-4)); max-height: calc(100vh - 80px - var(--space-8)); overflow-y: auto; }
}

@media (min-width: 1200px) {
  .plp-page .portfolio-hero__graphic { display: block; }
  .plp-title { max-width: min(68ch, calc(100% - 220px)); }
  .plp-summary { top: calc(var(--header-h-desktop) + var(--space-4)); max-height: calc(100vh - var(--header-h-desktop) - var(--space-8)); }
}

@media (prefers-reduced-motion: reduce) {
  .plp-breadcrumb a, .plp-faq__q::after { transition: none; }
}
