/* twelvedimensions.co ("12D") — reuses site.css's tokens and generic
   section classes (.hero, .persps, .steps, .checks, .two, .cta, .legal,
   footer, nav — all already host-agnostic) plus score.css (the embedded
   sample report) and plans.css (single-product cards on /blueprint,
   /pulse, /radar). This file only covers what's new to the product site:
   the home hero's inline scorer, the sample-score teaser, the pricing
   strip, the trust block, the plans comparison table, and the FAQ list. */

/* ---------- home hero: inline scorer (no floating widget on the home page) ---------- */

.hero-scorer { margin-top: 8px; max-width: 480px; }
.hero-scorer form { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-scorer input {
  flex: 1 1 220px;
  font: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bone);
  color: var(--ink);
}
.hero-scorer input:focus { border-color: var(--ink); }
.hero-scorer button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--bone);
  cursor: pointer;
  white-space: nowrap;
}
.hero-scorer button:hover { background: var(--ink); border-color: var(--ink); }
.hero-scorer button:disabled { opacity: 0.6; cursor: default; }
.hero-scorer .cf-turnstile { margin-top: 10px; }
.hero-scorer .hero-scorer-message { margin-top: 10px; font-size: 0.9rem; color: var(--bone-soft); }
.hero-scorer .hero-scorer-message.is-error { color: var(--orange); }
/* Shown only while Turnstile is actually displaying a visible challenge
   (public/assets/heroScorer.js's before/after-interactive callbacks) — the
   button itself stays enabled throughout, this just points at the box. */
.hero-scorer .hero-scorer-hint { margin-top: 8px; font-size: 0.85rem; color: var(--bone-soft); }

/* "Customers in" (task 6, 2026-10-28) — optional country choice, inside
   the same form/flex row as the URL input, so it's part of the page from
   first paint (no dynamically-inserted layout shift). Dark text on a
   light background for the closed control AND its open option list —
   same AA-contrast reasoning as the demo region selector's own fix. */
.hero-scorer-country { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; }
.hero-scorer-country label { font-size: 0.85rem; color: var(--bone-soft); white-space: nowrap; }
.hero-scorer-country select {
  font: inherit;
  font-size: 0.92rem;
  padding: 8px 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bone);
  color: var(--ink);
  cursor: pointer;
}
.hero-scorer-country select:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.hero-scorer-country select option { color: var(--ink); background: var(--bone); }

/* ---------- home: embedded chalega.tours sample teaser ---------- */

.sample-summary { border: 1px solid var(--line); padding: 32px 30px; max-width: 360px; }
.sample-summary-score { display: flex; align-items: baseline; gap: 6px; }
.sample-summary-score .num { font-size: 3.4rem; }
.sample-summary-outof { font-family: var(--serif); font-size: 1.3rem; color: var(--stone); }
.sample-summary-host { font-family: var(--serif); font-size: 1.2rem; margin: 6px 0 2px; }
.sample-summary-status { font-size: 0.9rem; color: var(--stone); margin-bottom: 18px; }

/* ---------- pricing strip ---------- */

.pricing-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pricing-strip .price-item { border-top: 1px solid var(--line); padding-top: 16px; }
.pricing-strip .price-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pricing-strip .price-item .amount { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }
.pricing-strip .price-item p { font-size: 0.88rem; color: var(--stone); }
@media (max-width: 820px) { .pricing-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- trust block ---------- */

.trust-block { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 30px; }
.trust-block .trust-item { font-size: 0.9rem; color: var(--stone); max-width: 32ch; }
.trust-block .trust-item strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.ink .trust-block .trust-item { color: var(--bone-soft); }
.ink .trust-block .trust-item strong { color: var(--bone); }

/* ---------- /plans comparison table ----------
   One source of truth: the table below is the only place these facts are
   written down. public/assets/plansCompare.js reads this same table's own
   DOM at runtime and builds the small-screen card view from it (below), so
   the two can never drift apart — there is no second, hand-maintained copy
   of the data anywhere. */

.plans-compare { margin: 32px 0 56px; }

/* No overflow-x here at the widths the table is actually shown at (>=768px,
   see the media query below for the <768px JS-disabled fallback) —
   deliberately: `overflow-x: auto` on this box would compute overflow-y to
   `auto` too (CSS Overflow spec, section 3), making .compare-table-wrap itself the
   nearest scrolling ancestor for thead th's position:sticky below, instead
   of the page. That's what caused a real, reproducible bug during this
   redesign — the sticky header repainted a second time over the row
   beneath it (visibly, as overlapping/garbled text) — since it was sticking
   relative to a scroll container that never actually scrolls. */
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table col.param-col { width: 21%; }
.compare-table th, .compare-table td { padding: 16px 14px; border-top: 1px solid var(--line); text-align: left; font-size: 0.92rem; vertical-align: top; overflow-wrap: break-word; }
.compare-table thead th {
  border-top: none; font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
  /* Stays visible while scrolling down the page — 66px clears .nav's own
     sticky height (site.css) so the two never overlap. */
  position: sticky; top: 66px; background: var(--bone); z-index: 2;
}
.compare-table thead th:not(:first-child) { border-top: 3px solid var(--orange); padding-top: 13px; }
.compare-table tbody th { font-weight: 600; color: var(--ink); white-space: normal; }
.compare-table tfoot td { padding-top: 20px; }
.compare-table tfoot a { font-weight: 600; text-decoration: underline; }

/* .yes/.no/.price-cell are shared with the small-screen cards below (the
   card's own <dd> copies the table cell's class along with its content —
   see plansCompare.js) — scoped to .plans-compare, not .compare-table, so
   the same rule colours both. */
.plans-compare .yes { color: var(--ink); }
.plans-compare .no { color: var(--stone); }

/* Plan price: each currency on its own line, the billing period beneath in
   small muted text — never a mid-price wrap like "£29 /\n₹1,499". */
.plans-compare .price-cell { font-family: var(--serif); }
.plans-compare .price-cell .amt { display: block; font-size: 1.15rem; white-space: nowrap; }
.plans-compare .price-cell .period { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--stone); margin-top: 4px; }

/* Orange tick, replacing the word "Yes" — an ink glyph on an orange badge,
   not orange text on the page background (which fails WCAG AA contrast:
   ~2.98:1, under the 3:1/4.5:1 minimums). "Yes" itself stays in the DOM for
   screen readers (.visually-hidden), only hidden visually. */
.plans-compare .tick { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 0.72rem; font-weight: 700; line-height: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Plan buttons: orange is the accent (fill for the paid plans, outline for
   Free) — ink text throughout, never bone-on-orange (same contrast reason
   as the tick above: ink/orange is ~5.4:1, bone/orange is ~3:1). */
.plans-compare .btn { display: block; text-align: center; background: var(--orange); border-color: var(--orange); color: var(--ink); }
.plans-compare .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.plans-compare .btn.ghost { background: transparent; border-color: var(--orange); color: var(--ink); }
.plans-compare .btn.ghost:hover { background: var(--orange); color: var(--ink); }

/* ---------- /plans: small-screen cards (below ~768px) ---------- */
/* Built by public/assets/plansCompare.js from the table above. The table
   itself stays the fallback if that script doesn't run (e.g. JS disabled)
   — only hidden once .has-compare-cards confirms the cards actually exist. */

.compare-cards { display: none; }
@media (max-width: 767px) {
  /* Fallback only: reached when .plansCompare.js hasn't hidden the table in
     favour of the cards below (JS disabled). Safe to make this a scroll
     container down here — thead th's sticky positioning is moot once cards
     take over, and even in the fallback a horizontal scrollbar beats
     clipped text. */
  .compare-table-wrap { overflow-x: auto; }
  .plans-compare.has-compare-cards .compare-table-wrap { display: none; }
  .plans-compare.has-compare-cards .compare-cards { display: block; }

  .plan-card { border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; margin-bottom: 18px; }
  .plan-card:last-child { margin-bottom: 0; }
  .plan-card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; border-top: 3px solid var(--orange); padding-top: 12px; margin-bottom: 4px; }
  .plan-card dl { margin: 0; }
  .plan-card dt { font-weight: 600; color: var(--ink); font-size: 0.82rem; margin-top: 16px; }
  .plan-card dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .plan-card dd:last-of-type { border-bottom: none; padding-bottom: 0; }
  .plan-card .price-cell .amt { font-size: 1.3rem; }
  .plan-card .btn { margin-top: 2px; }
}

.billing-faq { max-width: 760px; margin-top: 8px; }
.billing-faq h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin: 22px 0 6px; }
.billing-faq h3:first-child { margin-top: 0; }
.billing-faq p { color: var(--stone); }

/* ---------- /faq ---------- */

.faq-list { max-width: 760px; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { padding-bottom: 0; }
.faq-item h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.faq-item p { color: var(--stone); }

/* ---------- /how-it-works ---------- */

.dim-explainer { border-top: 1px solid var(--line); padding: 26px 0; }
.dim-explainer:first-child { border-top: none; }
.dim-explainer .dim-group-tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.dim-explainer h3 { margin-bottom: 8px; }
.dim-explainer .levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.dim-explainer .levels div { border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.88rem; color: var(--stone); }
.dim-explainer .levels strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }
@media (max-width: 700px) { .dim-explainer .levels { grid-template-columns: 1fr; } }

/* ---------- sample report: Blueprint excerpt ---------- */

.blueprint-toc-desc { color: var(--stone); font-size: 0.92rem; margin-bottom: 12px; max-width: 56ch; }
.blueprint-toc-list { list-style: none; max-width: 480px; }
.blueprint-toc-list li { font-size: 0.92rem; padding: 8px 0; border-top: 1px solid var(--line); }
.blueprint-toc-list li:first-child { border-top: none; }

/* ---------- single-product pages (/blueprint, /pulse, /radar) ---------- */

.product-page-hero { padding: 56px 0 8px; }
.product-detail { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; margin: 40px 0 64px; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.product-who-for { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
