/* Toronto Painters AI design system */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); }

:root {
  --bg: #F7F4EF;
  --bg-2: #EFEAE2;
  --card: #FFFFFF;
  --card-2: #FBF9F6;
  --text: #1C1917;
  --text-2: #5B554F;
  --text-3: #8A837B;
  --line: #E7E1D8;
  --line-2: #D8D1C6;
  --accent: #E0562B;
  --accent-2: #C4451E;
  --accent-soft: #FBE9E2;
  --accent-ink: #FFFFFF;
  --ok: #2E8B57;
  --warn: #C98A1A;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 2px 8px rgba(28, 25, 23, .05);
  --shadow-lg: 0 1px 3px rgba(28, 25, 23, .05), 0 6px 18px rgba(28, 25, 23, .07);
  --radius: 22px;
  --radius-sm: 14px;
  --pill: 999px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --max: 1400px;
  --gutter: 16px;
  --container: min(95%, 1400px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #121110; --bg-2: #1A1816; --card: #1E1B19; --card-2: #262220; --text: #F3EFE9; --text-2: #B8B0A6; --text-3: #7F786F; --line: #2E2926; --line-2: #3B3531; --accent: #F0673B; --accent-2: #F5825C; --accent-soft: #3A2318; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.3); --shadow-lg: 0 1px 3px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.35); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #121110; --bg-2: #1A1816; --card: #1E1B19; --card-2: #262220; --text: #F3EFE9; --text-2: #B8B0A6; --text-3: #7F786F; --line: #2E2926; --line-2: #3B3531; --accent: #F0673B; --accent-2: #F5825C; --accent-soft: #3A2318; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.3); --shadow-lg: 0 1px 3px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.35); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.wrap { width: var(--container); max-width: var(--max); margin: 0 auto; }
@media (max-width: 480px) { :root { --container: calc(100% - 2 * var(--gutter)); } }
.narrow { max-width: 760px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: var(--pill); box-shadow: var(--shadow); z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 12px; z-index: 50; }
.header-inner { width: var(--container); max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; margin-right: auto; }
.brand svg { width: 30px; height: 30px; }
.brand .ai { color: var(--accent); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 14px; border-radius: var(--pill); color: var(--text-2); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-2); color: var(--text); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .15s; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .sun, :root:not([data-theme]) .sun { display: none; }
:root[data-theme="light"] .moon { display: none; }
:root[data-theme="dark"] .sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .sun { display: block; } :root:not([data-theme]) .moon { display: none; } }
.menu-btn { display: none; }
.mobile-nav { display: none; }
@media (max-width: 760px) {
  .estimator { height: calc(100svh - 24px); min-height: 520px; max-height: none; }
  .progress .bar { width: 56px; }
  .est-head { padding: 11px 14px; }
  .thread-inner { padding: 16px 14px 18px; gap: 12px; }
  .composer { padding: 8px 12px 12px; }
  .suggest .chip:nth-child(n+3) { display: none; }
  .result-top, .lines, .result-meta, .result-actions, .assumptions { padding-left: 16px; padding-right: 16px; }
  .nav, .header .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 90px var(--gutter) 24px; flex-direction: column; gap: 6px; }
  .mobile-nav[data-open="true"] { display: flex; }
  .mobile-nav a { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--card); font-size: 1.15rem; font-weight: 600; border: 1px solid var(--line); }
  .mobile-nav .close { position: absolute; top: 20px; right: 20px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1; transition: transform .15s ease, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { padding: 9px 14px; font-size: .875rem; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow); margin-bottom: 20px; }
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 { max-width: 820px; margin: 0 auto .4em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-2); max-width: 640px; margin: 0 auto 8px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--text-2); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------- Estimator panel: one scroll container, inline inputs ---------- */
.estimator { text-align: left; width: 100%; margin: 28px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 75vh; min-height: 560px; max-height: 960px; }
.est-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--card); flex-shrink: 0; }
.est-head .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.est-head .avatar svg { width: 17px; height: 17px; }
.est-head .title { white-space: nowrap; font-weight: 700; font-family: var(--font-display); font-size: .95rem; line-height: 1.2; }
.est-head .status { font-size: .76rem; color: var(--text-3); }
.est-head .status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.progress { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.progress[hidden] { display: none; }
.progress .txt { white-space: nowrap; }
.progress .bar { width: 96px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.thread::-webkit-scrollbar { width: 8px; }
.thread::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; border: 2px solid var(--card); }
.thread-inner { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; max-width: 100%; }
.msg { display: flex; gap: 12px; align-items: flex-start; max-width: 100%; animation: rise .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg .av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.msg .av svg { width: 15px; height: 15px; }
.msg.bot .body { flex: 1 1 auto; min-width: 0; max-width: 68ch; font-size: 1rem; line-height: 1.55; padding-top: 3px; position: relative; overflow-wrap: anywhere; }
.msg.bot .body p { margin: 0 0 .7em; }
.msg.bot .body p:last-child, .msg.bot .body div > p:last-child { margin-bottom: 0; }
.skip-float { position: sticky; bottom: 6px; align-self: flex-end; margin-top: -6px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); font-size: .8rem; font-weight: 500; z-index: 2; }
.skip-float:hover { color: var(--text); border-color: var(--accent); }
.msg.user { justify-content: flex-end; }
.msg.user .pill { display: inline-block; max-width: min(85%, 60ch); padding: 9px 14px; border-radius: 16px; border-bottom-right-radius: 5px; background: var(--accent); color: var(--accent-ink); font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.msg.input { flex-direction: column; align-items: stretch; gap: 10px; padding-left: 40px; }
@media (max-width: 480px) { .msg.input { padding-left: 0; } }
.msg.input .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.msg.input .actions .link-btn { margin-left: auto; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 24px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 15px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--card); font-weight: 500; font-size: .93rem; transition: border-color .15s, background .15s, transform .12s; text-align: left; max-width: 100%; }
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.chip .sub { display: block; font-size: .78rem; font-weight: 400; opacity: .75; margin-top: 1px; }
.chip-wide { flex: 1 1 calc(50% - 8px); border-radius: var(--radius-sm); }
@media (min-width: 900px) { .chip-wide { flex: 1 1 calc(33.333% - 8px); max-width: 360px; } }
@media (max-width: 480px) { .chip-wide { flex-basis: 100%; } }
.link-btn { background: none; border: 0; color: var(--text-2); font-size: .875rem; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.counter { display: grid; gap: 6px; max-width: 520px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 6px 8px; background: var(--card-2); }
.crow { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 10px; }
.crow + .crow { border-top: 1px solid var(--line); border-radius: 0; }
.crow .lbl { flex: 1; font-size: .93rem; min-width: 0; }
.crow .lbl small { display: block; color: var(--text-3); font-size: .76rem; }
.crow .ctl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.crow button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); font-size: 1.15rem; line-height: 1; display: grid; place-items: center; transition: background .15s, transform .12s; }
.crow button:hover { background: var(--accent-soft); border-color: var(--accent); }
.crow button:active { transform: scale(.92); }
.crow .val { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Thinking: one live-updating assistant message */
.think .row { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text-2); padding: 3px 0; animation: rise .25s both; }
.think .row.done { color: var(--text-3); }
.think .row svg { width: 16px; height: 16px; flex-shrink: 0; }
.think .row .spin { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
.think .row .check { color: var(--ok); display: inline-flex; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Composer: sticky bar at the bottom of the card, only for free text */
.composer { flex-shrink: 0; border-top: 1px solid var(--line); background: var(--card); padding: 10px 24px 14px; }
.composer[hidden] { display: none; }
.chat-form { display: flex; gap: 8px; align-items: center; }
.chat-form input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--card); font-size: 1rem; }
.chat-form input:focus { border-color: var(--accent); outline: none; }
.chat-form input:disabled, .chat-form .send:disabled, .suggest .chip:disabled { opacity: .55; cursor: default; }
.chat-form .unit { color: var(--text-3); font-size: .875rem; white-space: nowrap; }
.chat-form .send { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; padding: 0; }
.chat-form .send svg { width: 18px; height: 18px; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.suggest .chip { padding: 7px 12px; font-size: .84rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--pill); font-size: .875rem; font-weight: 500; opacity: 0; transition: opacity .25s, transform .25s; z-index: 80; pointer-events: none; }
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

/* Result card inside the thread */
.result { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; animation: rise .4s both; }
.result-top { padding: 22px 24px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.result-top .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); font-weight: 600; }
.result-top .range { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.result-top .range .sep { color: var(--text-3); font-weight: 500; font-size: .6em; margin: 0 .2em; }
.result-top .sub { font-size: .875rem; color: var(--text-2); }
.conf { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .8rem; font-weight: 600; padding: 5px 10px 5px 8px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line); }
.conf .pips { display: inline-flex; gap: 3px; }
.conf .pips i { width: 14px; height: 6px; border-radius: 3px; background: var(--line-2); }
.conf[data-level="3"] .pips i { background: var(--ok); }
.conf[data-level="2"] .pips i:nth-child(-n+2) { background: var(--warn); }
.conf[data-level="1"] .pips i:first-child { background: var(--accent); }
.lines { padding: 6px 24px 10px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); animation: rise .3s both; }
.line:first-child { border-top: 0; }
.line .n { font-weight: 600; font-size: .95rem; }
.line .d { grid-column: 1; font-size: .8rem; color: var(--text-3); max-width: 68ch; }
.line .v { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .93rem; white-space: nowrap; }
.line.total { border-top: 2px solid var(--line-2); margin-top: 4px; }
.line.total .n, .line.total .v { font-size: 1.05rem; font-weight: 800; font-family: var(--font-display); }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 24px 14px; font-size: .84rem; color: var(--text-2); }
.result-meta b { color: var(--text); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 24px 22px; border-top: 1px solid var(--line); background: var(--card-2); }
.result-actions .btn { white-space: normal; text-align: center; line-height: 1.25; }
.result-actions .btn-primary { flex: 1 1 100%; }
@media (min-width: 560px) { .result-actions .btn-primary { flex: 0 1 auto; } }
.assumptions { padding: 0 24px 18px; }
.assumptions summary { cursor: pointer; font-size: .875rem; color: var(--text-2); font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; }
.assumptions summary::-webkit-details-marker { display: none; }
.assumptions summary::before { content: "+"; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-grid; place-items: center; font-size: .8rem; }
.assumptions[open] summary::before { content: "\2013"; }
.assumptions ul { margin: 8px 0 0; padding-left: 18px; font-size: .84rem; color: var(--text-2); }
.assumptions li { margin-bottom: 4px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { color: var(--text-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.card .num { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text-2); margin: 0; font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.split > * { min-height: 100%; min-width: 0; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split .img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split .img img { width: 100%; height: 100%; object-fit: cover; }
.rate-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rate-table th, .rate-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rate-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.rate-table td:last-child, .rate-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Guide cards */
.guide-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.guide-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.guide-card .body { padding: 18px 20px 20px; }
.guide-card .cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.guide-card h3 { font-size: 1.05rem; line-height: 1.3; }
.guide-card .meta { font-size: .8rem; color: var(--text-3); margin-top: 8px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq summary { padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 1.3rem; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 16px; }

/* CTA band */
.cta { background: var(--text); color: var(--bg); border-radius: var(--radius); padding: 44px 32px; text-align: center; }
.cta .btn-primary { color: #fff; }
.cta h2 { color: inherit; }
.cta p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 560px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 32px; border-top: 1px solid var(--line); margin-top: 32px; font-size: .875rem; color: var(--text-2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a:hover { color: var(--text); }
.footer .fine { margin-top: 18px; font-size: .8rem; color: var(--text-3); max-width: 720px; }

/* ---------- Article ---------- */
.article-hero { width: var(--container); max-width: var(--max); margin: 24px auto 0; }
.article-hero .article-hero-text { max-width: 68ch; }
.article-hero .cat { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.article-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 8px 0 12px; }
.article-hero .meta { color: var(--text-3); font-size: .875rem; }
.article-hero .lead { font-size: 1.15rem; color: var(--text-2); }
.article-hero figure { margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .article-hero figure { aspect-ratio: 2.4 / 1; } }
.article-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.article { width: var(--container); max-width: 68ch; margin: 36px auto 0; font-size: 1.05rem; }
.article a.btn { color: var(--accent-ink); text-decoration: none; }
.article a.btn-ghost { color: var(--text); }
.article h2 { margin-top: 2em; font-size: 1.65rem; }
.article h3 { margin-top: 1.6em; font-size: 1.2rem; }
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: .4em; }
.article figure { margin: 32px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article figcaption { font-size: .8rem; color: var(--text-3); padding: 8px 14px; background: var(--card); }
.article table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 20px 0; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.article blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); }
.callout { width: var(--container); max-width: var(--max); margin: 40px auto 0; padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 16px 28px; align-items: center; flex-wrap: wrap; }
.callout p { margin: 0; flex: 1 1 320px; font-size: 1rem; color: var(--text-2); }
.callout strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }
.callout .btn { color: var(--accent-ink); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 24px; font-size: .93rem; }
.toc b { display: block; margin-bottom: 8px; font-family: var(--font-display); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.related { width: var(--container); max-width: var(--max); margin: 56px auto 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }
