/* Tiny Homes Blueprint - site stylesheet */
:root {
  --ink: #1b2a2f;
  --muted: #56676d;
  --bg: #f7f5f0;
  --paper: #fffdf9;
  --surface: #ffffff;
  --line: #e4dfd4;
  --teal: #0f6b72;
  --teal-d: #0b4e54;
  --teal-l: #e3f1f1;
  --bp: #0d3c48;          /* blueprint navy */
  --bp-line: rgba(255,255,255,.07);
  --wood: #c47a2c;
  --wood-d: #9c5d1c;
  --wood-l: #fbefe1;
  --ok: #2f7d4f;
  --warn: #b5521b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,40,45,.06), 0 8px 24px rgba(20,40,45,.07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-d); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; border-radius: 4px; }
.sr { 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(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .45em; padding: .8em 1.35em; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--teal); cursor: pointer; font: 600 1rem/1.2 var(--sans); transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-wood { background: var(--wood); border-color: var(--wood); }
.btn-wood:hover { background: var(--wood-d); border-color: var(--wood-d); }
.btn-outline { background: transparent; color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--bp); }
.btn-light:hover { background: var(--wood-l); border-color: var(--wood-l); color: var(--bp); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,249,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { display: block; width: 138px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: .55em .8em; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; border-radius: 8px; }
.site-nav a:hover, .site-nav a.active { color: var(--teal); background: var(--teal-l); }
.sub-toggle { display: none; }
.site-nav .sub { position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { font-size: .93rem; padding: .5em .75em; }
.nav-cta { color: #fff !important; }
.nav-cta:hover { background: var(--teal-d) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .ico { width: 28px; height: 28px; }
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  /* backdrop-filter would make the header the containing block for the fixed menu and collapse it */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .site-nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: var(--paper); flex-direction: column; align-items: stretch; padding: 16px 16px 32px; overflow-y: auto; overscroll-behavior: contain; display: none; z-index: 60; border-top: 1px solid var(--line); }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-toggle .ico-close { display: none; }
  .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ico-close { display: block; }
  body.nav-open { overflow: hidden; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li > a { font-size: 1.1rem; padding: .8em .6em; }
  .has-sub { display: grid; grid-template-columns: 1fr auto; }
  .sub-toggle { display: block; width: 48px; background: none; border: 0; cursor: pointer; position: relative; }
  .sub-toggle::after { content: ""; position: absolute; left: 18px; top: 18px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
  .sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); top: 22px; }
  .site-nav .sub { position: static; grid-column: 1 / -1; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; display: none; }
  .site-nav .has-sub.open .sub { display: block; }
  .nav-cta { justify-content: center; margin-top: 12px; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b3aca0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }

/* Blueprint hero */
.bp { background-color: var(--bp); color: #e8f2f2; background-image: linear-gradient(var(--bp-line) 1px, transparent 1px), linear-gradient(90deg, var(--bp-line) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
.bp h1, .bp h2, .bp h3 { color: #fff; }
.bp a:not(.btn) { color: #9fe0dc; }
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
.hero h1 em { font-style: normal; color: #f2c58d; }
.hero .lead { font-size: 1.18rem; color: #cfe3e3; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: #bcd6d6; }
.hero-proof li { display: flex; gap: 8px; align-items: center; }
.hero-proof .ico { color: #f2c58d; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .photo { position: absolute; right: -4%; bottom: -30%; width: 44%; border-radius: 12px; border: 6px solid #fff; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 520px; } .hero-art .photo { right: 0; } }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--wood); margin-bottom: .8em; }
.bp .eyebrow { color: #f2c58d; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 5vw, 48px); }
.page-hero.bp { margin-top: 0; }
.page-hero .lead { max-width: 68ch; }
.bp.page-hero .lead { color: #cfe3e3; }
.t-style .crumbs, .t-tool .crumbs, .t-guide .crumbs, .t-plan .crumbs, .t-catalog .crumbs, .t-hub .crumbs, .t-company .crumbs, .t-legal .crumbs { padding-bottom: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.hero-facts li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: .45em .9em; border-radius: 999px; font-size: .92rem; }
.page-hero:not(.bp) .hero-facts li { background: var(--surface); border-color: var(--line); }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-inline: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col.top { align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.link-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.link-card strong { font-family: var(--serif); font-size: 1.15rem; }
.link-card span:not(.link-ico) { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.link-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-l); color: var(--teal); margin-bottom: 6px; }
.link-ico .ico { width: 26px; height: 26px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .link-ico { margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Plan cards */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.plan-card[hidden] { display: none; }
.plan-drawing { margin: 0 0 24px; background: var(--bp); border-radius: var(--radius); overflow: hidden; }
.plan-drawing img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.plan-custom { background: var(--wood-l); border-style: dashed; border-color: #e3c39c; }
.plan-custom .link-ico { background: #fff; color: var(--wood); }
.plan-img img { display: block; width: 100%; aspect-ratio: 800/430; object-fit: cover; }
.plan-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.plan-no { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wood); margin: 0 0 4px; }
.plan-body h3 { font-size: 1.15rem; margin-bottom: 12px; }
.plan-body h3 a { color: var(--ink); text-decoration: none; }
.plan-specs { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); }
.plan-specs .ico { color: var(--teal); }
.plan-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.filters label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.filters select { min-width: 150px; }
.filter-count { margin-left: auto; color: var(--muted); font-size: .95rem; align-self: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--teal); }
.stat span { color: var(--muted); font-size: .92rem; }
.bp .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.bp .stat b { color: #f2c58d; }
.bp .stat span { color: #cfe3e3; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wood); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--teal-d), var(--teal)); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d7ecec; margin: 0; max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq { margin-top: 48px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 20px 16px; color: var(--muted); }
.faq-a p:last-child { margin: 0; }

/* Article / prose */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .article-aside { display: none; } }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.5em; scroll-margin-top: 90px; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 28px 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; text-align: center; }
.byline { color: var(--muted); font-size: .92rem; }
.bp .byline { color: #bcd6d6; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.toc strong { display: block; margin-bottom: 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.toc a { text-decoration: none; }
.article-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.aside-box h3 { font-size: 1.05rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; font-size: .94rem; }
.aside-box li { padding: 6px 0; border-top: 1px solid var(--line); }
.aside-box li:first-child { border: 0; }
.aside-box a { text-decoration: none; }
.aside-cta { background: var(--bp); color: #dbeaea; border: 0; }
.aside-cta h3 { color: #fff; }

.callout { border-left: 4px solid var(--teal); background: var(--teal-l); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.callout.wood { border-color: var(--wood); background: var(--wood-l); }
.callout p:last-child { margin: 0; }
.callout strong:first-child { display: block; margin-bottom: 4px; }
.key-takeaways { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 28px; }
.key-takeaways h2 { font-size: 1.15rem; margin: 0 0 8px; font-family: var(--sans); }
.key-takeaways ul { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pros / cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.pros-cons > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pros-cons h3 { font-size: 1.05rem; font-family: var(--sans); }
.pros-cons .pros h3 { color: var(--ok); }
.pros-cons .cons h3 { color: var(--warn); }
.pros-cons ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }

/* Floor plan diagrams (inline SVG) */
.diagram { background: var(--bp); border-radius: var(--radius); padding: 18px; margin: 24px 0; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { color: #bcd6d6; }

/* Forms and tools */
.tool-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .tool-shell { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.panel h2 { font-size: 1.35rem; }
.result-panel { background: var(--bp); color: #e3efef; border: 0; position: sticky; top: 96px; }
.result-panel h2, .result-panel h3 { color: #fff; }
.result-big { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; color: #f2c58d; line-height: 1.1; margin: 4px 0 6px; }
.result-sub { color: #bcd6d6; font-size: .95rem; }
.result-rows { list-style: none; padding: 0; margin: 18px 0 0; }
.result-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.result-rows b { font-variant-numeric: tabular-nums; color: #fff; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: #f2c58d; border-radius: 99px; transition: width .3s; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label { font-weight: 600; font-size: .95rem; }
.field small, .hint { color: var(--muted); font-size: .85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7em .85em; border: 1.5px solid #d6d0c4; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(15,107,114,.15); }
textarea { min-height: 130px; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--teal); }
.range-out { font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: .55em 1em; border: 1.5px solid #d6d0c4; border-radius: 999px; cursor: pointer; font-size: .93rem; background: #fff; }
.seg input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--wood); outline-offset: 2px; }
.form-note { font-size: .88rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; }
.alert-ok { background: #e6f4ea; color: #1f5c36; border: 1px solid #bfe0c9; }
.alert-err { background: #fdecea; color: #8a2a1b; border: 1px solid #f3c4bc; }
.hp { position: absolute; left: -5000px; }

/* Plan detail */
.plan-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .plan-hero { grid-template-columns: 1fr; } }
.plan-hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.buy-box { position: sticky; top: 96px; }
.buy-box .price { font-size: 2.2rem; display: block; margin: 6px 0 14px; }
.buy-box .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .95rem; background: var(--paper); }

/* Quiz */
.quiz-q { display: none; }
.quiz-q.active { display: block; }
.quiz-opts { display: grid; gap: 10px; margin: 18px 0; }
.quiz-opts button { text-align: left; padding: 14px 18px; border: 1.5px solid #d6d0c4; background: #fff; border-radius: 12px; font: inherit; cursor: pointer; transition: .12s; }
.quiz-opts button:hover { border-color: var(--teal); background: var(--teal-l); }
.quiz-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.quiz-progress i { display: block; height: 100%; background: var(--wood); transition: width .3s; }

/* Layout planner */
.planner { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .planner { grid-template-columns: 1fr; } }
.planner-stage { background: var(--bp); border-radius: var(--radius); padding: 14px; overflow: auto; }
.planner-stage svg { display: block; touch-action: none; user-select: none; }
.palette { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.palette button { padding: 10px 8px; font: 500 .85rem/1.2 var(--sans); border: 1.5px solid #d6d0c4; border-radius: 10px; background: #fff; cursor: pointer; }
.palette button:hover { border-color: var(--teal); background: var(--teal-l); }

/* Footer */
.site-footer { background: #13262b; color: #b9c8ca; padding: 56px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { background: #fff; border-radius: 10px; padding: 6px 10px; width: 150px; }
.footer-h { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #b9c8ca; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-contact { display: grid; gap: 6px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0 24px; font-size: .85rem; }
.footer-base p { margin: 0; }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; background: var(--wood-l); color: var(--wood-d); padding: .2em .65em; border-radius: 999px; }
@media print { .site-header, .site-footer, .cta-band, .article-aside { display: none; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 600px) {
  .hero-art .photo { display: none; }
  .stat b { font-size: 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
}
