/* ═══ CARMA · Subpages — shared styles ═══
   Loads ALONGSIDE carma-site.css (reuses its tokens, nav, buttons, footer,
   .exits / .faq / .compare). Homepage does NOT load this file. */

/* Nav (active state + mobile menu) moved to carma-site.css — Nav.astro is
   global chrome and renders on pages that skip this file. See the note there
   and src/lib/nav-chrome-css.test.ts. */

/* ── Breadcrumb ── */
.crumb { padding: 96px 24px 0; max-width: 1180px; margin: 0 auto; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-soft); }
.crumb a { color: var(--gray-soft); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb li[aria-current] { color: var(--ink); }
.crumb .sep { opacity: 0.5; }

/* ── Subpage hero (static, fast — no 3D) ── */
.subhero { padding: 30px 24px 0; text-align: center; position: relative; overflow: hidden; }
.subhero-aura {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: min(820px, 120vw); height: 520px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, var(--accent-tint) 0%, transparent 66%);
}
.subhero > *:not(.subhero-aura) { position: relative; z-index: 1; }
.subhero h1 {
  font-family: var(--f-display); font-size: clamp(36px, 7vw, 72px); font-weight: 400;
  letter-spacing: -0.03em; line-height: 1.04; max-width: 17ch; margin: 20px auto 0; text-wrap: balance;
}
.subhero h1 em { font-style: normal; color: var(--gray-soft); }
.subhero-sub { font-size: clamp(15px, 2.4vw, 19px); line-height: 1.65; color: var(--gray); max-width: 560px; margin: 24px auto 0; text-wrap: pretty; }
.subhero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* Confirmed-facts stat strip */
.factstrip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  max-width: 880px; margin: clamp(48px, 7vw, 72px) auto 0;
  border: 1px solid var(--line-soft);
}
.fact { flex: 1 1 50%; padding: 24px 16px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.fact:nth-child(odd) { border-right: 1px solid var(--line-soft); }
@media (min-width: 760px) {
  .fact { flex: 1; border-bottom: none; border-right: 1px solid var(--line-soft); }
  .fact:last-child { border-right: none; }
  .fact:nth-child(odd) { border-right: 1px solid var(--line-soft); }
}
.fact strong { display: block; font-family: var(--f-display); font-size: clamp(26px, 4vw, 38px); font-weight: 300; letter-spacing: -0.03em; }
.fact small { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-soft); margin-top: 9px; }

/* ── Intro / definition block ── */
.intro { max-width: 720px; margin: 0 auto; text-align: center; }
.intro .h2 { margin-top: 18px; }
.intro p { font-size: clamp(15px, 2.2vw, 18px); line-height: 1.8; color: var(--gray); margin-top: 22px; text-wrap: pretty; }
.intro p strong { color: var(--ink); font-weight: 500; }

/* ── Process timeline ── */
.proc { max-width: 840px; margin: clamp(44px, 7vw, 72px) auto 0; }
.proc-step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 32px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.proc-step:last-child { border-bottom: 1px solid var(--line-soft); }
.proc-n { font-family: var(--f-mono); font-size: 13px; color: var(--accent); padding-top: 7px; }
.proc-t { font-family: var(--f-display); font-size: clamp(20px, 3vw, 27px); font-weight: 400; letter-spacing: -0.02em; }
.proc-b { font-size: 15px; line-height: 1.7; color: var(--gray); margin-top: 10px; max-width: 54ch; }
.proc-b strong { color: var(--ink); font-weight: 500; }

/* ── Formula / cost block ── */
.formula { max-width: 760px; margin: clamp(40px, 6vw, 60px) auto 0; border: 1px solid var(--line-soft); background: var(--paper); padding: clamp(28px, 5vw, 52px); }
.formula-eq { font-family: var(--f-mono); font-size: clamp(13px, 2.3vw, 18px); line-height: 1.9; color: var(--ink); text-align: center; text-wrap: balance; }
.formula-eq b { color: var(--accent); font-weight: 600; }
.formula-eq .op { color: var(--gray-soft); }
.formula-ex { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 32px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 620px) { .formula-ex { grid-template-columns: repeat(3, 1fr); } }
.fx { background: var(--paper); padding: 22px 18px; text-align: center; }
.fx small { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-soft); }
.fx span { display: block; font-family: var(--f-display); font-size: clamp(20px, 3vw, 27px); font-weight: 400; letter-spacing: -0.02em; margin-top: 8px; }
.fx.is-out span { color: var(--accent); }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 26px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--gray); }
.tiers b { color: var(--ink); font-weight: 600; }
.formula-note { font-size: 13.5px; line-height: 1.7; color: var(--gray); margin-top: 24px; text-align: center; max-width: 56ch; margin-left: auto; margin-right: auto; }
.formula-link { text-align: center; margin-top: 22px; }

/* ── Real-life story / pull quote ── */
.story { max-width: 720px; margin: clamp(40px, 6vw, 60px) auto 0; padding-left: clamp(20px, 4vw, 34px); border-left: 2px solid var(--ink); text-align: left; }
.story p { font-family: var(--f-display); font-size: clamp(20px, 3.4vw, 30px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.story-nums { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 26px; }
.story-num small { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-soft); }
.story-num span { display: block; font-family: var(--f-display); font-size: clamp(20px, 3vw, 26px); font-weight: 400; letter-spacing: -0.02em; margin-top: 6px; }

/* ── Section intro (left-aligned variant) ── */
.sec-head { max-width: 720px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── CTA band ── */
.cta-band { text-align: center; }
.cta-band .h2 { margin-top: 14px; }
.cta-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

/* ── Cross-link cards (e.g. Ambasadorzy ⇄ Dla dealerów) ── */
.xlinks { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 60px); }
@media (min-width: 720px) { .xlinks { grid-template-columns: repeat(2, 1fr); } }
.xlink { display: block; padding: 32px 30px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color 0.18s, transform 0.18s; }
.xlink:hover { border-color: var(--ink); transform: translateY(-3px); }
.xlink .label { color: var(--accent); }
.xlink h3 { font-family: var(--f-display); font-size: 24px; font-weight: 400; letter-spacing: -0.02em; margin-top: 12px; }
.xlink p { font-size: 14px; line-height: 1.6; color: var(--gray); margin-top: 10px; }
.xlink .go { display: inline-block; margin-top: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }

/* ══ Blog article ══ */
.article-header { max-width: 820px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) var(--gutter) 0; }
.article-cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.article-header h1 { font-family: var(--f-display); font-size: clamp(30px, 5.2vw, 52px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; margin: 16px 0 0; text-wrap: balance; color: var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-soft); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-soft); }

.article-media { max-width: 1000px; margin: clamp(28px, 4vw, 44px) auto 0; padding: 0 var(--gutter); }
.article-media .ph { aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-soft); }

.article { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.article-lead { margin: clamp(36px, 6vw, 56px) 0 0; padding: 24px 28px; background: var(--accent-tint); border-left: 2px solid var(--accent); }
.article-lead .lead-k { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.article-lead p { font-size: clamp(16px, 2.4vw, 19px); line-height: 1.62; color: var(--ink); margin: 0; }

.prose { margin-top: clamp(32px, 5vw, 48px); }
.prose h2 { font-family: var(--f-display); font-size: clamp(23px, 3.2vw, 30px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); margin: clamp(38px, 5vw, 54px) 0 0; text-wrap: balance; }
.prose > h2:first-child { margin-top: 0; }
.prose p { font-size: 16.5px; line-height: 1.75; color: var(--gray); margin: 18px 0 0; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 20px 0 0; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 24px; font-size: 16.5px; line-height: 1.7; color: var(--gray); margin-top: 12px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose ul li strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--silver); }
.prose a:hover { text-decoration-color: var(--ink); }

.takeaways { max-width: 720px; margin: clamp(44px, 6vw, 64px) auto 0; padding: 30px 32px; border: 1px solid var(--line); background: var(--panel); }
.takeaways .label { color: var(--accent); }
.takeaways h2 { font-family: var(--f-display); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); margin: 12px 0 0; }
.takeaways ul { margin: 16px 0 0; padding: 0; list-style: none; }
.takeaways li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; color: var(--ink); margin-top: 13px; }
.takeaways li::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--f-mono); }

.article-related { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.article-related .related-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: clamp(28px, 4vw, 40px); }
@media (min-width: 720px) { .article-related .related-grid { grid-template-columns: repeat(3, 1fr); } }
.article-related .blog-card { flex: initial; }

/* Legal pages (regulamin / polityka-prywatnosci) — .prose covers h2/p/ul/li/strong/a;
   legal copy also uses <h3> and a <blockquote> DRAFT/lawyer-review banner. Shared here
   (not per-page) so both legal pages + the Phase-10 /en/ variants stay in sync. */
.legal-prose h3 {
  font-family: var(--f-display);
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: clamp(26px, 3.4vw, 34px) 0 0;
}
.legal-prose blockquote {
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding: 16px 20px;
  background: var(--accent-tint, #fdecea);
  border-left: 3px solid var(--accent, #c0392b);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ══════════════════════════════════════════════════════════════════════════
   Kalkulator — 2026-10-03 design handoff
   ("Jak to działa + Kalkulator", README §Kalkulator — anatomia)

   These shipped as a <style> block inside the handoff's kalkulator.html; the
   README asks for them to live in the page stylesheet instead.

   Prefixes are deliberate. The handoff's §"Uwaga o nazwach klas" records that
   carma-pages.css's short names (.fx, .fact, .intro, .lead) had previously
   overridden new components, so this page's own components are namespaced
   fq- / lad- / sty-. The one genuine overlap is .story, which .sty re-styles
   on purpose rather than renaming.
   ══════════════════════════════════════════════════════════════════════════ */

.calc-page { max-width: 760px; }

/* ── Formuła: three terms, Czynsz = opłata + kapitał ÷ 120 ───────────────── */
.fq { max-width: 880px; margin: 0 auto; border: 1px solid var(--line-soft); background: var(--paper); }
.fq-eq { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Centred: the three terms read as one equation across the row, and a
   left rag under centred operators made the middle term look misaligned. */
.fq-t { padding: 26px 26px 24px; min-width: 0; text-align: center; }
.fq-t small {
  display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gray-soft);
}
.fq-t b {
  display: block; font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin-top: 12px; white-space: nowrap;
}
.fq-t p { font-size: 13px; line-height: 1.55; color: var(--gray); margin-top: 10px; text-wrap: pretty; }
.fq-t--res { background: var(--ink); color: var(--paper); }
.fq-t--res small { color: rgba(244, 242, 238, .5); }
.fq-t--res p { color: rgba(244, 242, 238, .72); }
.fq-op {
  display: flex; align-items: center; justify-content: center; font-family: var(--f-mono);
  font-size: 18px; color: var(--gray-soft); height: 34px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 760px) {
  .fq-eq { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr); }
  .fq-op { height: auto; border: none; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
  .fq-t--res + .fq-op { border-left: none; }
}
.fq-ft {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 15px 26px;
  border-top: 1px solid var(--line-soft); font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .02em; color: var(--gray);
}
.fq-ft b { color: var(--ink); font-weight: 500; }

/* ── Drabina czynszu — rows computed live from the calculator ────────────── */
.lad { max-width: 880px; margin: clamp(40px, 6vw, 56px) auto 0; }
.lad-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.lad-ctl .calc-input-wrap { width: 200px; }
.lad-ctl .calc-input-wrap input { font-size: 20px; padding: 9px 0; }
.lad-chip {
  height: 38px; padding: 0 14px; background: transparent; border: 1px solid var(--line);
  border-radius: 2px; font-family: var(--f-mono); font-size: 12px; color: var(--gray);
  cursor: pointer; transition: border-color .18s, color .18s, background .18s;
}
.lad-chip:hover { border-color: var(--ink); color: var(--ink); }
.lad-chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lad-rows { margin-top: 32px; border-top: 1px solid var(--line-soft); }
.lad-r {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 128px; align-items: center;
  gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.lad-q { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink); }
.lad-q small { display: block; font-size: 10px; color: var(--gray-soft); margin-top: 3px; letter-spacing: .06em; }
.lad-track { height: 10px; background: var(--line-soft); position: relative; }
.lad-fill { position: absolute; inset: 0 auto 0 0; display: flex; transition: width .5s ease; }
.lad-fill i { display: block; height: 100%; }
/* Grey stub = the fixed admin fee; dark remainder = the part that shrinks. */
.lad-fill .adm { background: var(--silver); }
.lad-fill .cap { background: var(--ink); flex: 1; }
.lad-v { text-align: right; font-family: var(--f-display); font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.lad-v small {
  display: block; white-space: normal; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .06em; color: var(--gray-soft); margin-top: 4px; line-height: 1.5;
}
.lad-v em { display: block; font-style: normal; color: var(--ink); }
.lad-r--end .lad-v { font-size: 15px; }
.lad-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-family: var(--f-mono); font-size: 10.5px; color: var(--gray); }
.lad-legend span { display: flex; align-items: center; gap: 8px; }
.lad-legend i { width: 10px; height: 10px; display: block; }
.lad-sum { margin-top: 22px; font-size: 15px; line-height: 1.6; color: var(--gray); text-align: center; text-wrap: balance; }
.lad-sum b { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
  .lad-r { grid-template-columns: 60px minmax(0, 1fr) 104px; gap: 12px; }
  .lad-v { font-size: 16px; }
}

/* ── Przykład z życia ────────────────────────────────────────────────────── */
.sty { max-width: 760px; margin: clamp(36px, 5vw, 52px) auto 0; }
/* The page-wide .story caps its own width and centres itself; inside .sty the
   grid below it owns the measure, so both are neutralised here. */
.sty .story { max-width: none; margin: 0; }
.sty-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 34px;
  border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft);
}
@media (min-width: 700px) { .sty-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sty-c {
  padding: 18px 18px 20px; border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft); min-width: 0;
}
.sty-c small {
  display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gray-soft);
}
.sty-c b {
  display: block; font-family: var(--f-display); font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 400; letter-spacing: -.02em; margin-top: 8px; white-space: nowrap;
}
.sty-total {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 32px; align-items: end;
  padding: 24px; background: var(--ink); color: var(--paper);
}
@media (min-width: 700px) { .sty-total { grid-template-columns: auto minmax(0, 1fr); } }
.sty-total small {
  display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(244, 242, 238, .5);
}
.sty-total b {
  display: block; font-family: var(--f-display); font-size: clamp(34px, 5vw, 48px);
  font-weight: 400; letter-spacing: -.03em; line-height: 1; margin-top: 10px; white-space: nowrap;
}
.sty-total p { font-size: 14px; line-height: 1.6; color: rgba(244, 242, 238, .74); text-wrap: pretty; }

/* ── Jak to działa: the fact bar's numbers must not wrap ─────────────────── */
/* Handoff §"Jak to działa": "Do 18 mies." was breaking across two lines. */
.fact strong { white-space: nowrap; font-size: clamp(15px, 1.9vw, 18px); }
