/* IRONCLAD · site.css
   Three looks live on html[data-look]. Every pairing below was checked for contrast at AA. */
:root {
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 4px;
  --wrap: 1120px;
  --bg: #1c1f24; --bg2: #24282e; --panel: #2c3138; --line: #3d434c;
  --ink: #f1efe9; --ink2: #c9c5bb; --accent: #e8642c; --accent-ink: #14100c; --link: #ffa46f;
  --hero-a: #10141a; --hero-b: #2a2f38; --roof: #e8642c; --rain: rgba(255,255,255,.28);
  --foot: #101215; --foot-ink: #cfcabf;
}
html[data-look="slate"] {
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --bg: #f7f8fa; --bg2: #eceff3; --panel: #ffffff; --line: #cfd5dd;
  --ink: #171c24; --ink2: #3f4854; --accent: #1f4e8c; --accent-ink: #ffffff; --link: #1a4a86;
  --hero-a: #1c2b3f; --hero-b: #33507a; --roof: #d8dee7; --rain: rgba(255,255,255,.35);
  --foot: #1c2b3f; --foot-ink: #d5dce6;
}
html[data-look="ember"] {
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --bg: #f6efe4; --bg2: #efe4d3; --panel: #fffaf2; --line: #d9cbb6;
  --ink: #2a1d14; --ink2: #5a4838; --accent: #a8341e; --accent-ink: #ffffff; --link: #8f2a15;
  --hero-a: #3a2016; --hero-b: #6b3a26; --roof: #f2b68a; --rain: rgba(255,230,200,.35);
  --foot: #2a1d14; --foot-ink: #e6d7c4;
}
html[data-font="oswald"] { --font-head: "Oswald", "Arial Narrow", Impact, sans-serif; }
html[data-font="fraunces"] { --font-head: "Fraunces", Georgia, serif; }
html[data-font="system"] { --font-head: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html[data-corners="round"] { --radius: 14px; }
html[data-corners="sharp"] { --radius: 2px; }
html[data-zone="center"] .hero-in { text-align: center; }
html[data-zone="center"] .hero-in .ctas { justify-content: center; }
html[data-zone="right"] .hero-in { text-align: right; }
html[data-zone="right"] .hero-in .ctas { justify-content: flex-end; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font-body); }
img, svg { max-width: 100%; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 50; border-radius: var(--radius); }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
html[data-look="foundry"] :focus-visible { outline-color: #ffd166; }
.tiny { font-size: .85rem; color: var(--ink2); }
.lead { font-size: 1.1rem; color: var(--ink2); max-width: 62ch; }
.mt { margin-top: 2.5rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.linkish { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: var(--radius); padding: 11px 20px; font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.big { padding: 15px 26px; font-size: 1.1rem; }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.chip { display: inline-block; background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0 8px 8px 0; text-decoration: none; font: inherit; font-size: .95rem; cursor: pointer; }
.chip:hover { border-color: var(--accent); }

/* ribbon (demo only) */
.ribbon { background: #fff4d6; color: #3a2a00; border-bottom: 3px solid #e2b23a; font-size: .92rem; }
.ribbon .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding: 8px 0; }
.ribbon p { margin: 0; }
.ribbon a { color: #7a4a00; }
.yours { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: end; }
.yours label { display: flex; flex-direction: column; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.yours input, .yours select { font: inherit; font-size: .95rem; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 6px 8px; border: 1px solid #b89658; border-radius: 4px; background: #fff; color: #222; min-width: 0; width: 150px; }
.yours-lead { font-weight: 700; }
.yours .btn.small { background: #7a4a00; border-color: #7a4a00; color: #fff; }
.yours .btn.small.ghost { background: transparent; color: #7a4a00; }
@media (max-width: 720px) { .yours { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: end; } .yours .yours-lead { grid-column: 1 / -1; } .yours input, .yours select { width: 100%; } }

/* header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
html[data-look="foundry"] .top { background: #14171b; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.35rem/1 var(--font-head); letter-spacing: .02em; text-transform: uppercase; }
.mark { width: 32px; height: 32px; fill: var(--accent); }
.mark-cut { fill: var(--bg); }
html[data-look="foundry"] .mark-cut { fill: #14171b; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.call b { font-weight: 700; }
@media (max-width: 720px) { .call span b { display: none; } .bar { padding: 10px 0; } .brand { font-size: 1.15rem; } }

/* language picker (from lib/i18n) */
.langpick { position: relative; }
.langpick summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: .9rem; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick .globe { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langmenu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; display: grid; min-width: 150px; z-index: 30; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.langmenu a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: var(--radius); }
.langmenu a:hover, .langmenu a[aria-current] { background: var(--bg2); }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #fff; padding: clamp(56px, 9vw, 120px) 0 clamp(90px, 12vw, 160px); isolation: isolate; }
.hero.small { padding: clamp(40px, 6vw, 72px) 0 clamp(70px, 9vw, 110px); }
.hero.small h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.hero-in { position: relative; z-index: 2; max-width: 800px; }
.kicker { font: 700 .85rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--roof); margin-bottom: 14px; }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.88); max-width: 60ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.roofline { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: clamp(70px, 14vw, 180px); fill: var(--bg); z-index: 1; }
.roofline .line { fill: none; stroke: var(--roof); stroke-width: 5; stroke-linejoin: round; }
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rain { position: absolute; inset: -20% 0 0 0; background-image: repeating-linear-gradient(115deg, transparent 0 22px, var(--rain) 22px 23px, transparent 23px 90px); background-size: 200px 140px; opacity: .5; animation: rain 9s linear infinite; }
.rain.r2 { background-size: 340px 220px; opacity: .3; animation-duration: 14s; }
.rain.r3 { background-size: 120px 90px; opacity: .22; animation-duration: 6s; }
@keyframes rain { from { transform: translate3d(0, -140px, 0); } to { transform: translate3d(-40px, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .rain { animation: none; } }
html[data-still] .rain { animation: none; }
.still { position: absolute; right: 0; bottom: -46px; background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 12px; font: .8rem var(--font-body); cursor: pointer; }
.hero .still { bottom: 0; }
.hero-in { padding-bottom: 40px; }

/* bands */
.band { padding: clamp(44px, 6vw, 80px) 0; }
.band.alt { background: var(--bg2); }
.trust { background: var(--accent); color: var(--accent-ink); }
.trust-row { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 24px; font-size: .95rem; }
.trust-row li::before { content: "✓ "; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 14px; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--link); text-decoration: underline; }
.expect-head { font-weight: 700; margin: .5em 0 .2em; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.expect { margin: 0 0 1em; padding-left: 20px; }
.review { border-left: 4px solid var(--accent); font-style: italic; }
.review footer { font-style: normal; font-weight: 600; color: var(--ink2); margin-top: .6em; }
.sample-note { font-size: .95rem; }
.faq .qa { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.faq h3 { margin-bottom: .3em; }
.hours { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hours th, .hours td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hours thead th { background: var(--bg2); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* the ring of towns */
.ring-wrap { max-width: 560px; margin: 0 auto 32px; }
.ring { width: 100%; height: auto; display: block; }
.ring-road { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 10 8; }
.ring-spoke { stroke: var(--line); stroke-width: 1.5; }
.ring-home { fill: var(--accent); }
.ring-stop { fill: var(--panel); stroke: var(--accent); stroke-width: 3; }
.ring-label { font: 600 15px var(--font-body); fill: var(--ink); }
.ring-label.home { fill: var(--accent-ink); font-weight: 700; }

/* forms */
label { display: block; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; width: 100%; margin-top: 4px; }
input[type="color"] { width: 48px; height: 36px; padding: 2px; vertical-align: middle; margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.block { margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 600; }
.quote-band { background: var(--bg2); }
.receipt { background: var(--panel); border: 2px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.signup { border-top: 1px solid var(--line); }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.signup-form input { flex: 1 1 240px; margin: 0; }
.fallback { background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--radius); }

/* footer */
.foot { background: var(--foot); color: var(--foot-ink); padding: 44px 0 90px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; margin-bottom: 30px; }
.foot-brand { font: 700 1.3rem/1 var(--font-head); text-transform: uppercase; color: #fff; }
.foot-head { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-line { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .9rem; }
.foot .linkish { color: var(--foot-ink); }
.foot .tiny { color: var(--foot-ink); opacity: .85; }
.noscript { margin: 0; padding: 10px 16px; background: var(--bg2); text-align: center; font-size: .9rem; }

/* fixed call bar on phones */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .callbar[hidden] { display: none; }
  .callbar svg { width: 20px; height: 20px; fill: currentColor; }
  .top .call { display: none; }
}
html[data-demo] .callbar { bottom: 0; }

/* owner toolbar */
.owner { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--panel); color: var(--ink); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0,0,0,.3); z-index: 40; overflow-y: auto; padding: 0 18px 30px; font-size: .95rem; }
.owner[hidden] { display: none; }
.owner-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; position: sticky; top: 0; background: var(--panel); }
.owner-title { margin: 0; font: 700 1.1rem var(--font-head); }
.owner-title .tiny { display: block; font: .8rem var(--font-body); }
.x { background: none; border: 1px solid var(--line); color: inherit; border-radius: 50%; width: 34px; height: 34px; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.tabs button { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; font: 600 .8rem var(--font-body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pane .lead { font-size: 1rem; }
.pane label { margin-bottom: 8px; }
.pane .row label { flex: 1 1 160px; }
.looks { display: grid; gap: 8px; margin-bottom: 12px; }
.look { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; background: var(--bg2); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px; cursor: pointer; font: inherit; }
.look[aria-pressed="true"] { border-color: var(--accent); }
.look .swatch { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); }
.look small { color: var(--ink2); }
.swatch-foundry { background: linear-gradient(135deg, #1c1f24 50%, #e8642c 50%); }
.swatch-slate { background: linear-gradient(135deg, #f7f8fa 50%, #1f4e8c 50%); }
.swatch-ember { background: linear-gradient(135deg, #f6efe4 50%, #a8341e 50%); }
.sections { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sections li { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; }
.sections li b { flex: 1; }
.sections li.off b { text-decoration: line-through; color: var(--ink2); }
.sections button { background: none; border: 1px solid var(--line); color: inherit; border-radius: var(--radius); padding: 3px 8px; cursor: pointer; font: inherit; font-size: .85rem; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.checks li { padding: 6px 10px; border-radius: var(--radius); background: var(--bg2); border-left: 4px solid #4caf50; }
.checks li.warn { border-left-color: #e2b23a; }
.checks li.bad { border-left-color: #d13b2c; }
.ld { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; font-size: .75rem; max-height: 260px; overflow: auto; white-space: pre-wrap; }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.team a { display: block; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; color: var(--ink); text-decoration: none; }
.team a span { display: block; font-size: .85rem; color: var(--ink2); }
.url { display: block; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; word-break: break-all; font-size: .85rem; flex: 1 1 200px; }
.answer { white-space: pre-wrap; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 40px; }
.answer:empty { display: none; }
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 14px; }
.nums div { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.nums dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
.nums dd { margin: 0; font: 700 1.8rem var(--font-head); font-variant-numeric: tabular-nums; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 6px; }
body.editing [data-edit] { outline: 2px dashed var(--accent); outline-offset: 3px; cursor: text; }
[data-edit][contenteditable="true"]:focus { outline: 3px solid var(--accent); }

/* front desk */
.desk-open { position: fixed; left: 16px; bottom: 16px; z-index: 26; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.desk-open[hidden] { display: none; }
@media (max-width: 720px) { .desk-open { bottom: 76px; } }
.desk-panel { position: fixed; left: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); max-height: min(70vh, 560px); background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0,0,0,.35); z-index: 41; padding: 0 14px 14px; display: flex; flex-direction: column; }
.desk-panel[hidden] { display: none; }
.desk-log { overflow-y: auto; flex: 1; display: grid; gap: 8px; margin-bottom: 10px; }
.desk-log p { margin: 0; padding: 8px 12px; border-radius: var(--radius); background: var(--bg2); max-width: 92%; }
.desk-log p.you { background: var(--accent); color: var(--accent-ink); margin-left: auto; }
.starters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.starters .chip { margin: 0; font-size: .85rem; padding: 4px 10px; }
.desk-form { display: flex; gap: 6px; }
.desk-form input { margin: 0; }
