/* NoticeKit — site styles. No web fonts, no external requests. */

:root {
  --bg: #f6f3ec;
  --bg-2: #efeae0;
  --paper: #fffefb;
  --ink: #15181c;
  --ink-2: #3a4048;
  --muted: #6c7480;
  --line: #e3ddd1;
  --line-strong: #cfc6b5;
  --accent: #8a2b20;
  --accent-dark: #6d1f17;
  --accent-soft: #f6e8e4;
  --green: #1f3d33;
  --gold: #a98542;
  --radius: 12px;
  --shadow: 0 24px 60px -34px rgba(21, 24, 28, 0.5);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Liberation Serif", "FreeSerif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[id] { scroll-margin-top: 84px; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin-top: 1.6em; }
h3 { font-size: 1.18rem; line-height: 1.3; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; }
.narrow { width: min(780px, 100%); }
.wrap.narrow { width: min(780px, calc(100% - 3rem)); margin-left: max(1.5rem, calc((100% - 1160px) / 2)); margin-right: auto; }
.section { padding: 4.2rem 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-sub { color: var(--muted); max-width: 640px; }
.section-note { color: var(--muted); font-size: 0.95rem; }
.small { color: var(--muted); font-size: 0.9rem; }
.eyebrow { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 0.9rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.site-head { background: rgba(246, 243, 236, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.head-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--paper); }
.brand-name { font-family: var(--serif); font-size: 1.22rem; }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.head-inner > .btn { margin-left: 0.4rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 8px; padding: 0.78rem 1.25rem; font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 0.5rem 0.8rem; font-size: 0.88rem; }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1.03rem; }
.btn-wide { width: 100%; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.is-inactive { opacity: 0.72; }

/* hero */
.hero { padding: 2.4rem 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 3.4rem; align-items: start; padding-bottom: 2.6rem; }
.hero-copy { padding-top: 1.4rem; }
.hero-copy h1 { max-width: 15ch; }
.hero-lede { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0.9rem; }
.hero-fine { color: var(--muted); font-size: 0.9rem; }
.hero-paper { position: relative; max-height: 620px; overflow: hidden; border-radius: 4px; }
.hero-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgba(246, 243, 236, 0) 0%, var(--bg) 82%); pointer-events: none; }
.hero-paper .paper { transform: rotate(-1.1deg); }
.hero-paper-small { max-height: 540px; }
.hero-paper-small .paper { transform: none; }

.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 254, 251, 0.6); }
.trust-bar span { display: inline-flex; align-items: center; gap: 0.55rem; padding: 1rem 1.2rem; font-size: 0.86rem; color: var(--ink-2); border-right: 1px solid var(--line); }
.trust-bar span:last-child { border-right: 0; }
.trust-bar svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* paper */
.paper { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 1.6rem 1.7rem; font-family: var(--serif); font-size: 0.86rem; line-height: 1.5; color: #1b1b1b; overflow: hidden; }
.paper-inner { position: relative; z-index: 1; }
.paper-head { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.paper-sender { white-space: pre-line; font-size: 0.8rem; }
.paper-date { font-size: 0.8rem; color: #333; }
.paper-recipient { white-space: pre-line; font-size: 0.8rem; margin-top: 0.4rem; }
.paper-delivery { font-size: 0.72rem; color: #555; font-style: italic; }
.paper-subject { font-family: var(--serif); font-size: 0.98rem; font-weight: 700; margin: 0.9rem 0 0.9rem; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.paper-salutation { margin-bottom: 0.7rem; }
.paper-body p { margin: 0 0 0.7rem; text-align: justify; hyphens: auto; }
.paper-body { font-size: 0.83rem; }
.letter-list { margin: 0 0 0.8rem 1.1rem; padding: 0; font-size: 0.83rem; }
.letter-list li { margin-bottom: 0.25rem; }
.letter-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 0.9rem; font-size: 0.8rem; }
.letter-table caption { text-align: left; font-weight: 700; padding-bottom: 0.25rem; font-size: 0.78rem; }
.letter-table th, .letter-table td { border-bottom: 1px solid #ddd; padding: 0.32rem 0.2rem; text-align: left; }
.letter-table td { text-align: right; font-variant-numeric: tabular-nums; }
.paper-sign { margin-top: 1rem; font-size: 0.83rem; }
.paper-sign p { margin: 0 0 0.2rem; }
.sign-name { font-weight: 700; }
.enclosures { margin-top: 1rem; font-size: 0.75rem; color: #444; }
.enclosures span { font-weight: 700; display: block; margin-bottom: 0.2rem; }
.enclosures ul { margin: 0 0 0 1rem; padding: 0; }

.watermark { position: absolute; inset: -15%; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 2.2rem; pointer-events: none; transform: rotate(-24deg); }
.watermark span { display: block; font-family: var(--sans); font-weight: 700; letter-spacing: 0.30em; font-size: 0.62rem; color: rgba(138, 43, 32, 0.20); white-space: nowrap; padding-left: 1rem; }
.paper.is-locked .paper-inner { opacity: 0.92; }

/* sections */
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.type-card { display: flex; flex-direction: column; gap: 0.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,0.02); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.type-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.type-card h2, .type-card h3 { margin: 0.2rem 0 0.4rem; }
.type-card p { color: var(--ink-2); font-size: 0.98rem; }
.type-kicker { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.type-meta { font-size: 0.85rem; color: var(--muted); margin-top: auto; }
.type-go { font-size: 0.9rem; font-weight: 600; color: var(--accent); margin-top: 0.6rem; }

.why-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: start; }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.stat-list li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; }
.stat-list strong { font-family: var(--serif); font-size: 1.7rem; color: var(--accent); }
.stat-list span { color: var(--ink-2); font-size: 0.93rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-n { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); display: block; margin-bottom: 0.6rem; }
.steps h3 { font-size: 1.03rem; margin-bottom: 0.4rem; }
.steps p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }

.jurisdiction-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.jurisdiction-block { margin-bottom: 1.6rem; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 0; padding: 0; }
.chip-list a { display: inline-block; padding: 0.35rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); font-size: 0.88rem; text-decoration: none; color: var(--ink-2); }
.chip-list a:hover { border-color: var(--accent); color: var(--accent); }

.pricing-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; align-items: start; }
.price-card { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.price-eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 0.4rem; }
.price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0 0 0.4rem; }
.price-amount { font-family: var(--serif); font-size: 3rem; line-height: 1; }
.price-unit { color: var(--muted); }
.price-note { font-size: 0.9rem; color: var(--ink-2); }
.price-fine { font-size: 0.8rem; color: var(--muted); margin: 0.7rem 0 0; text-align: center; }
.tick-list, .cross-list { list-style: none; margin: 0.6rem 0 1.4rem; padding: 0; }
.tick-list li, .cross-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--ink-2); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.cross-list li::before { content: "×"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

.faq-list { display: grid; gap: 0.6rem; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0.2rem 1.1rem; }
.faq summary { cursor: pointer; padding: 0.85rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq-body p { margin: 0 0 1rem; color: var(--ink-2); font-size: 0.96rem; }

/* breadcrumbs */
.crumbs { padding: 1.1rem 0 0; font-size: 0.83rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink); }

/* place hero */
.place-hero { padding: 2.2rem 0 0; }
.place-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: start; }
.place-hero-grid > div:first-child { padding-top: 1.2rem; }
.place-hero h1 { max-width: 18ch; font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.lede { font-size: 1.06rem; color: var(--ink-2); max-width: 60ch; }
.place-hero.simple { padding: 2.2rem 0 1.2rem; }
.place-hero.simple + .section { padding-top: 1.6rem; }
.place-hero.simple h1 { max-width: 24ch; }
.place-hero.simple .lede { font-size: 1.1rem; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); margin: 2.4rem 0 0; }
.fact { padding: 1rem 1.2rem 1rem 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.fact-label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.fact strong { font-size: 0.93rem; font-weight: 600; line-height: 1.35; display: block; }

.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 3rem; align-items: start; }
.prose-block h2:first-child { margin-top: 0; }
.prose-block p { color: var(--ink-2); }
.prose-block .kv { margin-top: 0.5rem; }
.side-col { display: grid; gap: 1rem; position: sticky; top: 90px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.side-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.side-note { font-size: 0.9rem; color: var(--ink-2); }
.accent-card { background: var(--green); color: #f4f1e9; border-color: var(--green); }
.accent-card h3 { color: #fff; }
.accent-card .side-note { color: #e5e0d4; }
.calc { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.calc-out { font-size: 0.9rem; background: var(--bg); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 0.7rem 0.8rem; }
.calc-placeholder { margin: 0; color: var(--muted); font-size: 0.85rem; }
.calc-result { margin: 0; }
.calc-result strong { color: var(--accent); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0; font-size: 0.88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); }
.kv-wide { grid-template-columns: 8rem 1fr; gap: 0.6rem 1rem; font-size: 0.94rem; }

.numbered { counter-reset: item; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; max-width: 800px; }
.numbered li { counter-increment: item; position: relative; padding-left: 2.4rem; color: var(--ink-2); }
.numbered li::before { content: counter(item); position: absolute; left: 0; top: 0.1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }

.link-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.link-grid a { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); height: 100%; }
.link-grid a:hover { border-color: var(--accent); }
.link-grid strong { font-size: 0.95rem; }
.link-grid span { font-size: 0.82rem; color: var(--muted); }
.related-more { margin-top: 1rem; font-size: 0.9rem; }

.cta-band { background: var(--ink); color: #f6f3ec; padding: 3rem 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #cfc9bd; margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

.notice { border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); background: var(--paper); padding: 1.2rem 1.4rem; border-radius: 6px; margin: 2rem 0; font-size: 0.88rem; color: var(--ink-2); }
.notice strong { color: var(--ink); }
.notice p { margin: 0.4rem 0 0; }

/* builder */
.builder-shell { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 16px; padding: 1.8rem; margin: 3.2rem 0; box-shadow: var(--shadow); }
.builder-head { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.builder-head h2 { margin: 0.2rem 0 0.2rem; font-size: 1.5rem; }
.builder-sub { color: var(--muted); font-size: 0.88rem; margin: 0; }
.builder-switch { display: grid; gap: 0.2rem; font-size: 0.85rem; color: var(--muted); text-align: right; }
.switch-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 2rem; align-items: start; }

fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
legend { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.legend-n { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 0.72rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field { display: grid; gap: 0.3rem; font-size: 0.86rem; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-weight: 600; color: var(--ink-2); }
.field-label em { color: var(--accent); font-style: normal; }
.field input, .field textarea, .field select { width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--bg); font: inherit; font-size: 0.9rem; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 3rem; }
.field-hint { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.paste-box { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 0.9rem; margin: 0.4rem 0 1rem; background: var(--bg); }
.paste-box textarea { width: 100%; margin-top: 0.4rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 7px; font: inherit; font-size: 0.88rem; background: #fff; }
.paste-row { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 0.28rem 0.7rem; font-size: 0.8rem; cursor: pointer; font-family: var(--sans); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip small { color: var(--muted); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.form-progress { font-size: 0.82rem; color: var(--muted); margin: 0; }
.form-progress strong { color: var(--green); }

.builder-preview { position: sticky; top: 88px; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.preview-state { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.preview-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.preview-hint { font-size: 0.78rem; color: var(--muted); margin: 0 0 0.7rem; }
.builder-preview .paper { font-size: 0.9rem; }

/* chooser */
.chooser { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.8rem; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-top: 1.6rem; }

/* unlock */
.unlock-card { display: grid; gap: 0.85rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.8rem; margin: 1.2rem 0 2rem; box-shadow: var(--shadow); }
.unlock-card .field, .unlock-card p { margin: 0; }
.unlock-card .btn { justify-self: start; }
.unlock-status { margin: 0.8rem 0 0; font-size: 0.9rem; min-height: 1.2em; }
.unlock-status.ok { color: var(--green); font-weight: 600; }
.unlock-status.err { color: var(--accent); }
.unlock-note { font-size: 0.9rem; color: var(--ink-2); }
.unlock-manage { margin-top: 1rem; }
.unlock-buy { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.unlock-buy .small { margin: 0; }
.dev-panel { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 0.9rem; margin-top: 1rem; font-size: 0.85rem; background: var(--bg); }
.dev-panel p { margin: 0 0 0.6rem; }
.dev-panel code { font-family: var(--mono); background: #fff; padding: 0.1rem 0.3rem; border-radius: 4px; }

/* data tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.data-table tbody tr:hover { background: #fbf9f4; }
.data-table th a { color: var(--ink); font-weight: 600; text-decoration: none; }
.data-table th a:hover { color: var(--accent); text-decoration: underline; }
.cell-cta { text-align: right; white-space: nowrap; }
.cell-cta a { text-decoration: none; font-weight: 600; }

/* guides */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.guide-card { display: flex; flex-direction: column; gap: 0.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--accent); color: var(--ink); box-shadow: var(--shadow); }
.guide-card h2 { font-size: 1.35rem; margin: 0.2rem 0 0.3rem; }
.guide-card p { color: var(--ink-2); font-size: 0.95rem; }
.article-hero { padding: 2rem 0 0.5rem; }
.article { padding-top: 1.4rem; }
.article-close { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; }
.article-close p { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
.mini-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.mini-card p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.mini-n { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; display: block; margin-bottom: 0.4rem; }

/* footer */
.site-foot { background: var(--ink); color: #d9d4c8; padding: 3.2rem 0 1.6rem; margin-top: 0; }
.site-foot .brand-name { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-foot h3 { color: #fff; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.7rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-foot a { color: #cfc9bd; text-decoration: none; font-size: 0.88rem; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand p { font-size: 0.9rem; color: #b8b2a5; max-width: 34ch; }
.foot-privacy { font-size: 0.82rem !important; color: #9c968a !important; }
.foot-legal { border-top: 1px solid #2c3138; margin-top: 2.4rem; padding-top: 1.2rem; }
.foot-legal .disclaimer { font-size: 0.78rem; color: #9c968a; max-width: 90ch; }
.foot-legal .disclaimer strong { color: #d9d4c8; }
.foot-meta { font-size: 0.75rem; color: #7f7a70; margin: 0.6rem 0 0; }

/* print */
#print-root { display: none; }

@media print {
  @page { size: A4; margin: 14mm 18mm; }
  html, body { background: #fff; }
  body { font-size: 11pt; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .paper { border: 0; box-shadow: none; padding: 0; font-size: 10pt; line-height: 1.4; }
  #print-root .paper-subject { font-size: 11pt; }
  #print-root .paper-body, #print-root .paper-body p, #print-root .letter-list { font-size: 10pt; }
  #print-root .paper-body p { margin-bottom: 0.5rem; }
  #print-root .paper-sign { break-inside: avoid; }
  #print-root .paper-body > p:last-child { break-after: avoid; }
  #print-root .watermark { position: fixed; inset: -10%; }
  #print-root .watermark span { font-size: 7pt; color: rgba(138, 43, 32, 0.35); }
  a { color: #000; text-decoration: none; }
  #print-root .paper-body p { text-align: left; }
  #print-root .paper-head { margin-bottom: 1.2rem; }
}

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .place-hero-grid, .why-grid, .pricing-grid, .split, .builder-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .hero-paper { max-height: 460px; }
  .place-hero-grid .hero-paper { max-height: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .side-col, .price-card, .builder-preview { position: static; }
  .link-grid, .guide-grid, .three-col { grid-template-columns: 1fr 1fr; }
  .site-nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 1.1rem; padding: 0 0 0.7rem; font-size: 0.88rem; }
  .head-inner { flex-wrap: wrap; padding-top: 0.6rem; }
  .head-inner > .btn { margin-left: auto; }
  .builder-switch { text-align: left; }
  .chooser { grid-template-columns: 1fr; }
  .jurisdiction-columns { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 2rem); }
  .section { padding: 2.8rem 0; }
  .type-grid, .steps, .guide-grid, .link-grid, .three-col, .foot-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-bar span { border-right: 0; border-bottom: 1px solid var(--line); }
  .builder-shell { padding: 1.1rem; }
  .paper { padding: 1.1rem; }
  .hero-actions .btn { width: 100%; }
}
