/* ============================================================
   AI TOOLS — editorial restyle of the three widgets
   ============================================================ */

.tool-section { padding-block: var(--section); border-top: 1px solid var(--stone-line); scroll-margin-top: 90px; }
.tool-section:first-of-type { border-top: none; }

/* Intro header for each tool */
.tool-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-bottom: var(--sp-8); align-items: end; }
.tool-intro .ti-num { grid-column: 1 / 2; font-family: var(--font-display); font-size: var(--text-lg); color: var(--stone-dark); }
.tool-intro .ti-head { grid-column: 2 / 8; }
.tool-intro .ti-head h2 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 300; letter-spacing: -0.02em; margin-top: var(--sp-1); }
.tool-intro .ti-desc { grid-column: 8 / 13; color: var(--ink-soft); font-size: var(--text-base); align-self: end; }

.status-pill { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.4rem; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status-pill.live .dot { background: #4a7c59; }
.status-pill.live { color: #4a7c59; }

/* The widget card shell */
.widget {
  background: var(--paper);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

/* Form label / small label */
.w-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin-bottom: 0.9rem; display: block; }

/* Editorial select buttons (replaces teal chips) */
.opt-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.opt {
  font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink-soft);
  padding: 0.7em 1.2em; border: 1px solid var(--stone-line); background: transparent;
  border-radius: 100px; cursor: pointer; transition: all var(--t-int);
}
.opt:hover { border-color: var(--ink); color: var(--ink); }
.opt.active { background: var(--charcoal); color: var(--off-white); border-color: var(--charcoal); }

/* Cards for choices (project type / finish) */
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
.opt-card {
  text-align: left; border: 1px solid var(--stone-line); background: transparent;
  border-radius: var(--radius); padding: var(--sp-3); cursor: pointer; transition: all var(--t-int);
}
.opt-card:hover { border-color: var(--ink); }
.opt-card.active { border-color: var(--accent); background: rgba(184,84,58,0.04); }
.opt-card strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; }
.opt-card small { color: var(--ink-muted); font-size: var(--text-sm); }

/* ---------- VISUALISER ---------- */
.viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.viz-controls > * + * { margin-top: var(--sp-4); }
.viz-uploader {
  border: 1px dashed var(--stone-dark); border-radius: var(--radius);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; position: relative; background: var(--off-white-2);
  transition: border-color var(--t-int);
}
.viz-uploader:hover { border-color: var(--accent); }
.viz-uploader .viz-hint { text-align: center; color: var(--ink-muted); padding: var(--sp-3); }
.viz-uploader .viz-hint svg { color: var(--stone-dark); margin-bottom: 0.6rem; }
.viz-uploader img.preview { width: 100%; height: 100%; object-fit: cover; }
.viz-preview-box {
  aspect-ratio: 4/3; border-radius: var(--radius); background: var(--off-white-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.viz-preview-box .viz-empty { color: var(--ink-muted); text-align: center; padding: var(--sp-4); font-size: var(--text-sm); }
.viz-loading { text-align: center; padding: var(--sp-4); width: 100%; }
.viz-loading strong { display: block; font-family: var(--font-display); font-weight: 400; margin: var(--sp-2) 0; }
.spinner { width: 34px; height: 34px; border: 2px solid var(--stone); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viz-loading .bar { height: 3px; background: var(--stone); border-radius: 2px; margin: var(--sp-3) auto 0; max-width: 200px; overflow: hidden; }
.viz-loading .bar i { display: block; height: 100%; width: 40%; background: var(--accent); animation: load 1.4s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* before/after compare */
.compare { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; user-select: none; border-radius: var(--radius); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid var(--off-white); }
.compare .after-wrap img { width: auto; min-width: 1000px; max-width: none; height: 100%; }
.compare .tag { position: absolute; bottom: 12px; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; background: rgba(15,15,15,0.7); color: var(--off-white); padding: 0.3em 0.8em; border-radius: 100px; }
.compare .tag.before { left: 12px; }
.compare .tag.after { right: 12px; background: var(--accent); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; cursor: ew-resize; }
.compare .handle span { width: 40px; height: 40px; border-radius: 50%; background: var(--off-white); color: var(--charcoal); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.25); font-size: 1rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-3); }
.share-btn { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--text-sm); color: var(--ink-soft); border: 1px solid var(--stone-line); background: transparent; border-radius: 100px; padding: 0.55em 1.1em; cursor: pointer; transition: all var(--t-int); }
.share-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- ESTIMATOR ---------- */
.est-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-3); }
.est-head .est-step-label { font-size: var(--text-sm); color: var(--ink-muted); }
.est-progress { height: 3px; background: var(--stone-line); border-radius: 2px; overflow: hidden; margin-bottom: var(--sp-6); }
.est-progress i { display: block; height: 100%; background: var(--accent); width: 20%; transition: width 400ms var(--ease-out); }
.est .step { display: none; }
.est .step.active { display: block; animation: fadeUp 400ms var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.est .step h3 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 300; letter-spacing: -0.02em; margin-bottom: var(--sp-1); }
.est .step .step-sub { color: var(--ink-muted); margin-bottom: var(--sp-4); }
.range-wrap { margin-top: var(--sp-2); }
.range-wrap output { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 300; color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: var(--stone-line); border-radius: 2px; margin-top: var(--sp-3); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer; }
.est-nav { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-6); }
.est-nav.hidden { display: none; }
.est-result { text-align: center; padding: var(--sp-4) 0; }
.est-result .er-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-muted); }
.est-result .er-price { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -0.02em; margin: var(--sp-2) 0; }
.est-result .er-price .cur { white-space: nowrap; }
.est-summary { display: flex; justify-content: center; gap: var(--sp-6); flex-wrap: wrap; margin: var(--sp-4) 0; }
.est-summary .es-item { text-align: center; }
.est-summary dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); }
.est-summary dd { font-family: var(--font-display); font-size: var(--text-xl); margin: 0.3rem 0 0; }
.est-fields .field-row { margin-top: var(--sp-4); }
.est-select { border: none; border-bottom: 1px solid var(--stone-dark); background: transparent; padding: 0.7rem 0; font-size: var(--text-base); color: var(--ink); width: 100%; }
.est-select:focus { outline: none; border-color: var(--accent); }
input[type=number].est-num { border: none; border-bottom: 1px solid var(--stone-dark); background: transparent; padding: 0.6rem 0; font-size: var(--text-base); width: 120px; color: var(--ink); }
input[type=number].est-num:focus { outline: none; border-color: var(--accent); }

/* ---------- CHATBOT + DA ---------- */
.chat-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.quick-q { display: grid; gap: 0.6rem; }
.quick-q button { text-align: left; font-size: var(--text-sm); color: var(--ink-soft); border: 1px solid var(--stone-line); background: transparent; border-radius: var(--radius); padding: 0.8em 1em; cursor: pointer; transition: all var(--t-int); }
.quick-q button:hover { border-color: var(--accent); color: var(--ink); }
.chat-box { border: 1px solid var(--stone-line); border-radius: var(--radius); display: flex; flex-direction: column; height: 460px; background: var(--off-white); }
.chat-log { flex: 1; overflow-y: auto; padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.msg { display: flex; gap: 0.7rem; max-width: 90%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--charcoal); color: var(--off-white); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-family: var(--font-display); }
.msg.user .avatar { background: var(--accent); }
.msg .bubble { background: var(--paper); border: 1px solid var(--stone-line); border-radius: 12px; padding: 0.7em 1em; font-size: var(--text-sm); line-height: 1.55; color: var(--ink-soft); }
.msg.user .bubble { background: var(--charcoal); color: var(--off-white); border-color: var(--charcoal); }
.msg .bubble strong { color: inherit; font-weight: 600; }
.typing { background: var(--paper); border: 1px solid var(--stone-line); border-radius: 12px; padding: 0.9em 1em; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; background: var(--stone-dark); border-radius: 50%; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,60%,100% { opacity: 0.3; } 30% { opacity: 1; } }
.chat-input { display: flex; gap: 0.6rem; padding: var(--sp-2); border-top: 1px solid var(--stone-line); }
.chat-input input { flex: 1; border: none; background: transparent; padding: 0.6rem 0.4rem; font-size: var(--text-sm); color: var(--ink); }
.chat-input input:focus { outline: none; }
.chat-input button { flex-shrink: 0; border: none; background: var(--charcoal); color: var(--off-white); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.da-checker { margin-top: var(--sp-8); border-top: 1px solid var(--stone-line); padding-top: var(--sp-6); }
.da-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); align-items: end; }
.da-result { margin-top: var(--sp-4); border: 1px solid var(--stone-line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: var(--sp-4); background: var(--paper); }
.da-result h4 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; margin-bottom: 0.5rem; }
.da-result p { color: var(--ink-soft); font-size: var(--text-sm); }

/* Lead form inside widgets */
.widget-lead { margin-top: var(--sp-6); border-top: 1px solid var(--stone-line); padding-top: var(--sp-6); }
.widget-lead.hidden { display: none; }
.widget-lead h4 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; margin-bottom: var(--sp-3); }
.lead-success { border: 1px solid var(--stone-line); border-left: 3px solid #4a7c59; border-radius: var(--radius); padding: var(--sp-4); background: var(--paper); display: flex; gap: var(--sp-3); align-items: flex-start; }
.lead-success .check { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #4a7c59; color: #fff; display: flex; align-items: center; justify-content: center; }
.lead-success h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; margin-bottom: 0.2rem; }
.lead-success p { color: var(--ink-muted); font-size: var(--text-sm); }

/* Teaser cards */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.teaser-card { border: 1px solid var(--stone-line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); position: relative; overflow: hidden; background: var(--paper); }
.teaser-card::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(184,84,58,0.03) 12px, rgba(184,84,58,0.03) 13px); pointer-events: none; }
.teaser-card .status-pill { color: var(--ink-muted); }
.teaser-card .status-pill .dot { background: var(--stone-dark); }
.teaser-card h3 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 300; letter-spacing: -0.02em; margin: var(--sp-1) 0 var(--sp-2); }
.teaser-card p { color: var(--ink-soft); font-size: var(--text-base); max-width: 42ch; }
.teaser-card .teaser-icon { color: var(--stone-dark); margin-bottom: var(--sp-3); }
.notify-inline { display: flex; gap: 0.6rem; margin-top: var(--sp-4); max-width: 340px; }
.notify-inline input { flex: 1; border: none; border-bottom: 1px solid var(--stone-dark); background: transparent; padding: 0.6rem 0; font-size: var(--text-sm); color: var(--ink); }
.notify-inline input:focus { outline: none; border-color: var(--accent); }
.notify-inline button { flex-shrink: 0; }

/* Tools index nav */
.tools-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: var(--sp-8); }
.tool-nav-card { display: block; border: 1px solid var(--stone-line); border-radius: var(--radius); padding: var(--sp-4); transition: all var(--t-int); }
.tool-nav-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.tool-nav-card .tnc-num { font-family: var(--font-display); font-size: var(--text-lg); color: var(--stone-dark); }
.tool-nav-card h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; margin: 0.5rem 0; }
.tool-nav-card p { font-size: var(--text-sm); color: var(--ink-muted); }

@media (max-width: 900px) {
  .tool-intro .ti-num { grid-column: 1 / -1; }
  .tool-intro .ti-head { grid-column: 1 / -1; }
  .tool-intro .ti-desc { grid-column: 1 / -1; margin-top: var(--sp-2); }
  .viz-grid, .chat-grid { grid-template-columns: 1fr; }
  .da-fields { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .tools-nav { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCTION ADDITIONS — hero, feasibility, s107, verdicts
   ============================================================ */

/* Tools hero (dark) */
.tools-hero, .feas-hero {
  background: var(--charcoal); color: var(--off-white);
  padding-block: clamp(6rem, 12vh, 10rem) clamp(3rem, 6vh, 5rem);
}
.tools-hero h1, .feas-hero h1 {
  font-size: var(--text-3xl); font-weight: 400; max-width: 20ch;
  margin: var(--sp-3) 0 var(--sp-4); line-height: 1.03; letter-spacing: -0.02em;
}
.th-sub, .fh-sub { font-size: var(--text-lg); max-width: 62ch; color: rgba(245,242,237,0.82); }
.tools-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-6); }
.tools-jump a {
  font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55em 1.1em; border: 1px solid rgba(245,242,237,0.28); border-radius: 100px;
  color: rgba(245,242,237,0.9); transition: all var(--t-int);
}
.tools-jump a:hover { background: var(--accent); border-color: var(--accent); color: var(--off-white); }
.ti-more { grid-column: 2 / -1; margin-top: var(--sp-2); }

.tool-section.alt { background: var(--paper); }

/* Feasibility widget */
.fz-form .fz-input-row { display: flex; gap: 0.75rem; margin-top: 0.6rem; }
.fz-form input {
  flex: 1; border: 1px solid var(--stone-line); border-radius: var(--radius);
  padding: 0.95rem 1.1rem; font-size: var(--text-base); font-family: inherit; background: var(--off-white);
}
.fz-form input:focus { outline: none; border-color: var(--accent); }
.fz-help { font-size: var(--text-sm); color: var(--ink-muted); margin-top: 0.8rem; }

.fz-result { margin-top: var(--sp-6); }
.fz-result.hidden { display: none; }
.fz-report { border: 1px solid var(--stone-line); border-radius: var(--radius); overflow: hidden; }
.fz-head { padding: var(--sp-5) var(--sp-5) var(--sp-4); border-bottom: 1px solid var(--stone-line); }
.fz-head h3 { font-size: var(--text-2xl); font-weight: 400; margin: 0.3rem 0 0.2rem; }
.fz-sub { color: var(--ink-muted); font-size: var(--text-sm); }
.fz-metrics { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--stone-line); }
.fz-metric { padding: var(--sp-4); border-right: 1px solid var(--stone-line); display: flex; flex-direction: column; gap: 0.3rem; }
.fz-metric:last-child { border-right: none; }
.fz-m-label { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.fz-m-val { font-family: var(--font-display); font-size: var(--text-xl); }
.fz-verdicts { display: grid; grid-template-columns: 1fr 1fr; }
.fz-verdict { padding: var(--sp-5); border-right: 1px solid var(--stone-line); }
.fz-verdict:last-child { border-right: none; }
.fz-v-top { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.8rem; }
.fz-verdict h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; }
.fz-verdict p { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.55; }
.fz-uses { padding: var(--sp-5); border-top: 1px solid var(--stone-line); background: var(--paper); }
.fz-uses h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; margin-bottom: 0.4rem; }
.fz-uses p { font-size: var(--text-sm); color: var(--ink-soft); }
.fz-notes { padding: var(--sp-4) var(--sp-5); margin: 0; list-style: none; background: rgba(184,84,58,0.06); border-top: 1px solid var(--stone-line); }
.fz-notes li { font-size: var(--text-sm); color: var(--ink-soft); padding-left: 1.2em; position: relative; margin-bottom: 0.4rem; }
.fz-notes li::before { content: "!"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.fz-demo { padding: var(--sp-3) var(--sp-5); font-size: var(--text-xs); color: var(--ink-muted); background: var(--paper); border-top: 1px solid var(--stone-line); }
.fz-disclaimer { padding: var(--sp-4) var(--sp-5); font-size: var(--text-xs); color: var(--ink-muted); line-height: 1.5; border-top: 1px solid var(--stone-line); }
.fz-loading { padding: var(--sp-8); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }

/* Verdict badges */
.verdict-badge { display: inline-block; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4em 0.9em; border-radius: 100px; font-weight: 500; align-self: flex-start; }
.v-green { background: rgba(47,125,79,0.14); color: #2f7d4f; }
.v-amber { background: rgba(184,121,31,0.16); color: #9a6416; }
.v-red { background: rgba(163,50,35,0.14); color: #a33223; }

/* DA result verdict variants */
.da-result.verdict-green { border-left-color: #2f7d4f; }
.da-result.verdict-amber { border-left-color: #b8791f; }
.da-result.verdict-red { border-left-color: #a33223; }

/* Section 10.7 concierge */
.s107-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
.s107-explain h4 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; margin-bottom: var(--sp-2); }
.s107-explain p { color: var(--ink-soft); font-size: var(--text-base); margin-bottom: var(--sp-3); }
.s107-list { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.s107-list li { font-size: var(--text-sm); color: var(--ink-soft); padding: 0.5rem 0; border-bottom: 1px solid var(--stone-line); }
.s107-order { background: var(--paper); border: 1px solid var(--stone-line); border-radius: var(--radius); padding: var(--sp-5); }
.s107-price-tag { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: var(--sp-4); }
.s107-price-tag span { font-size: var(--text-sm); color: var(--ink-muted); }
.s107-price-tag strong { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 400; color: var(--accent); }

/* Feasibility SEO page content */
.feas-copy h2 { font-size: var(--text-2xl); font-weight: 400; margin-bottom: var(--sp-3); letter-spacing: -0.015em; }
.feas-copy p { color: var(--ink-soft); margin-bottom: var(--sp-3); line-height: 1.7; }
.feas-standards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin: var(--sp-5) 0; }
.fs-card { border: 1px solid var(--stone-line); border-radius: var(--radius); padding: var(--sp-4); text-align: center; }
.fs-val { display: block; font-family: var(--font-display); font-size: var(--text-2xl); color: var(--accent); }
.fs-label { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.feas-steps { padding-left: 1.2rem; }
.feas-steps li { color: var(--ink-soft); margin-bottom: var(--sp-2); line-height: 1.6; }

/* FAQ */
.faq-list { border-top: 1px solid var(--stone-line); }
.faq-item { border-bottom: 1px solid var(--stone-line); padding: var(--sp-3) 0; }
.faq-item summary { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: var(--text-xl); transition: transform var(--t-int); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: var(--sp-3); color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 820px) {
  .fz-metrics { grid-template-columns: repeat(2, 1fr); }
  .fz-metric:nth-child(2n) { border-right: none; }
  .fz-verdicts { grid-template-columns: 1fr; }
  .fz-verdict { border-right: none; border-bottom: 1px solid var(--stone-line); }
  .s107-grid { grid-template-columns: 1fr; }
  .feas-standards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fz-form .fz-input-row { flex-direction: column; }
  .fz-metrics { grid-template-columns: 1fr; }
  .fz-metric { border-right: none; border-bottom: 1px solid var(--stone-line); }
}

/* ---------- Full planning report (v2) ---------- */
.fz-metrics.fz-metrics-6 { grid-template-columns: repeat(6, 1fr); }
.fz-full { border-top: 1px solid var(--stone-line); }
.fz-full-head { padding: var(--sp-4) var(--sp-5) var(--sp-2); }
.fz-full-head h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; }
.fz-full-head p { font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-top: 0.3rem; }
.fz-group { border-top: 1px solid var(--stone-line); }
.fz-group summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0.9rem var(--sp-5); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.02em; }
.fz-group summary::-webkit-details-marker { display: none; }
.fz-group summary::after { content: "+"; font-size: 1.1rem; color: var(--ink-muted); margin-left: 0.8rem; }
.fz-group[open] summary::after { content: "\2013"; }
.fz-group summary span { margin-left: auto; font-size: var(--text-xs); color: var(--ink-muted); background: var(--paper); border: 1px solid var(--stone-line); border-radius: 999px; padding: 0.1rem 0.55rem; }
.fz-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.fz-table th, .fz-table td { text-align: left; vertical-align: top; padding: 0.55rem var(--sp-5); border-top: 1px solid rgba(0,0,0,0.05); }
.fz-table th { width: 42%; font-weight: 400; color: var(--ink-muted); }
.fz-table td { color: var(--ink); overflow-wrap: anywhere; }
.fz-table td a { color: var(--accent-deep, var(--accent)); text-decoration: underline; text-underline-offset: 2px; }
.fz-table tr.is-flag td { color: var(--accent-deep, #8a3b25); font-weight: 500; }
.fz-none { color: var(--ink-muted); font-weight: 400; }
@media (max-width: 900px) { .fz-metrics.fz-metrics-6 { grid-template-columns: repeat(3, 1fr); } .fz-metrics-6 .fz-metric:nth-child(3n) { border-right: none; } }
@media (max-width: 560px) { .fz-metrics.fz-metrics-6 { grid-template-columns: repeat(2, 1fr); } .fz-table th { width: 48%; } .fz-table th, .fz-table td { padding-inline: var(--sp-3); } }
/* Fix: widgets inside dark heroes inherited off-white text; --sp-5 was undefined */
.widget { color: var(--ink); }
.fz-report { --sp-5: clamp(1rem, 2.4vw, 1.75rem); background: #fff; color: var(--ink); }
.fz-report h3, .fz-report h4, .fz-m-val { color: var(--ink); }
.fz-metrics-6 .fz-m-val { font-size: clamp(1.15rem, 1.6vw, 1.5rem); white-space: nowrap; }
