:root {
  --bg: #f7f8fa;
  --fg: #0f1b2d;
  --muted: #566176;
  --line: #e1e5ec;
  --brand: #0b2545;
  --brand-2: #13315c;
  --accent: #1d5bd8;
  --accent-hover: #1749b0;
  --accent-fg: #fff;
  --accent-soft: #e8f0fe;
  --ok: #15803d;
  --card: #fff;
  --err: #b91c1c;
  --hero-fg: #fff;
  --hero-muted: #c3cfe2;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420; --fg: #e6eaf1; --muted: #9aa6b9; --line: #223047; --brand: #08111f; --brand-2: #0f2038;
    --accent: #6b98f7; --accent-hover: #8aaefa; --accent-fg: #08111f; --accent-soft: #15243d;
    --ok: #4ade80; --card: #131d2c; --err: #f87171; --hero-fg: #f2f5fa; --hero-muted: #a9b7cc;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
@media (prefers-color-scheme: dark) {
  header.top .brand svg rect { fill: #1d5bd8; }
  .price-card, .cta, .tile { border: 1px solid var(--line); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img, svg { max-width: 100%; }

/* ---- Header ---- */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .bar { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--fg); letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--fg); }
nav.main { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.main a:hover { color: var(--fg); }
nav.main a.btn { color: var(--accent-fg); }
@media (max-width: 760px) { nav.main a:not(.btn) { display: none; } }

/* ---- Buttons ---- */
button, .btn { display: inline-block; font: inherit; font-weight: 600; font-size: 16px; padding: 11px 20px; border-radius: 8px; border: 1px solid transparent; background: var(--accent); color: var(--accent-fg); cursor: pointer; text-decoration: none; line-height: 1.3; }
button:hover, .btn:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn.small { padding: 8px 14px; font-size: 15px; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); color: inherit; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--line); padding: 6px 12px; font-weight: 500; }

/* ---- Content pages (town, search, sign, legal) ---- */
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
h1 { font-size: 2rem; line-height: 1.2; margin: .2em 0; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin-top: 2em; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
.sub, .muted, .crumb, .note { color: var(--muted); }
.crumb { font-size: 14px; margin: 0; }
.lead { font-size: 1.2rem; }
.lead.ok { color: var(--ok); }
.domain { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; word-break: break-all; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 24px 0; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: 0; }
fieldset { border: none; padding: 0; margin: 0 0 16px; }
legend { font-weight: 600; margin-bottom: 6px; }
label { display: block; margin: 8px 0; }
input[type=text], input:not([type]), input[type=email], input[type=tel] { display: block; width: 100%; padding: 11px 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
input:focus-visible, button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
label.check { display: flex; gap: 10px; align-items: flex-start; }
label.check input { margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.search { display: flex; gap: 8px; margin: 16px 0; }
.search input { flex: 1; min-width: 0; }
ul.towns { list-style: none; padding: 0; columns: 2 260px; }
ul.towns li { padding: 3px 0; break-inside: avoid; }
.facts li { margin-bottom: 8px; }
.letter { background: var(--card); border: 1px solid var(--line); padding: 18px; border-radius: 8px; font-size: 15px; }
canvas#pad { width: 100%; max-width: 600px; height: 180px; border: 1px dashed var(--muted); border-radius: 6px; background: #fff; touch-action: none; }
.error { color: var(--err); font-weight: 600; }

/* ---- Footer ---- */
footer.site { background: var(--brand); color: var(--hero-muted); font-size: 14px; margin-top: 0; }
footer.site .cols { max-width: 1120px; margin: 0 auto; padding: 44px 16px 20px; display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
footer.site h4 { color: var(--hero-fg); font-size: 14px; margin: 0 0 10px; letter-spacing: .02em; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 6px 0; }
footer.site a { color: var(--hero-muted); text-decoration: none; }
footer.site a:hover { color: var(--hero-fg); }
footer.site .brand { color: var(--hero-fg); margin-bottom: 10px; }
footer.site p { margin: 6px 0; }
footer.site .legal { max-width: 1120px; margin: 0 auto; padding: 16px 16px 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > :first-child { grid-column: 1 / -1; } }

/* ---- Home ---- */
main.home { max-width: none; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }

.hero { background: radial-gradient(1200px 500px at 80% -10%, #1f4f9a 0%, transparent 60%), linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%); color: var(--hero-fg); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero .eyebrow { color: #8fb4ff; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.03em; }
.hero .lead { color: var(--hero-muted); font-size: 1.15rem; margin: 0 0 26px; max-width: 34em; }
.hero .search { max-width: 520px; margin: 0 0 14px; }
.hero .search input { background: #fff; color: #0f1b2d; border-color: transparent; padding: 13px 14px; }
.hero .search button { padding-left: 22px; padding-right: 22px; }
.hero .alt { margin: 0; font-size: 15px; color: var(--hero-muted); }
.hero .alt a { color: #fff; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--hero-muted); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: #2f6fea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Product mock in the hero */
.mock { background: #fff; color: #0f1b2d; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; font-size: 14px; }
.mock .chrome { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #eef1f6; border-bottom: 1px solid #dde2ea; }
.mock .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5df; }
.mock .url { margin-left: 10px; flex: 1; background: #fff; border: 1px solid #dde2ea; border-radius: 6px; padding: 4px 10px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #33415c; display: flex; align-items: center; gap: 6px; }
.mock .url b { color: #15803d; font-weight: 600; }
.mock .body { padding: 18px; }
.mock .site-title { font-weight: 700; font-size: 17px; margin: 0 0 2px; }
.mock .site-sub { color: #64708a; margin: 0 0 14px; font-size: 13px; }
.mock .mail { border: 1px solid #e3e7ee; border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.mock .mail .from { font-weight: 600; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.mock .mail .subj { color: #33415c; }
.mock .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mock .tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #e7f6ec; color: #166534; }
.mock .tag.blue { background: #e8f0fe; color: #1d4ed8; }
.mock .caption { font-size: 12px; color: #64708a; margin: 12px 0 0; }

section.band { padding: 80px 0; }
section.band.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; line-height: 1.2; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
section.band.alt .tile { background: var(--bg); box-shadow: none; }
.tile h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.group-label { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-label + .grid { margin-bottom: 40px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.pricing { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
.price-card { background: var(--brand); color: var(--hero-fg); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.price-card .eyebrow { color: #8fb4ff; }
.price-card .amount { font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 4px 0 6px; }
.price-card .per { color: var(--hero-muted); margin: 0 0 22px; }
.price-card p { color: var(--hero-muted); font-size: 15px; }
.price-card .btn { margin-top: 10px; background: #fff; color: var(--brand); }
.price-card .btn:hover { background: #e8eefb; }
ul.ticks { list-style: none; padding: 0; margin: 0; columns: 2 260px; column-gap: 28px; }
ul.ticks li { break-inside: avoid; padding: 7px 0 7px 30px; position: relative; font-size: 15.5px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231d5bd8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.fine { color: var(--muted); font-size: 14.5px; }
.fine ul { padding-left: 18px; margin: 6px 0 0; }

.facts-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.facts-grid blockquote { margin: 0; }
.facts-grid .tile p { color: var(--fg); }
.facts-grid .src { display: inline-block; margin-top: 10px; font-size: 14px; }

.cta { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%); color: var(--hero-fg); border-radius: 18px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.cta h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.cta p { margin: 0; color: var(--hero-muted); }
.cta .search { margin: 0; }
.cta .search input { background: #fff; color: #0f1b2d; border-color: transparent; }
.cta .contact { margin-top: 12px; font-size: 15px; color: var(--hero-muted); }
.cta .contact a { color: #fff; }
.cta:has(.inquiry) { grid-template-columns: 1fr 1.4fr; }
.cta > div { min-width: 0; }
.inquiry { background: var(--bg); color: var(--fg); border-radius: 14px; padding: 22px; }
.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.inquiry label { font-size: 14px; font-weight: 600; }
.inquiry input, .inquiry textarea { margin-top: 4px; font-weight: 400; }
.inquiry textarea { display: block; width: 100%; padding: 11px 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); resize: vertical; }
.inquiry fieldset { min-width: 0; border: 0; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.inquiry legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 2px; width: 100%; }
.inquiry label.check { font-weight: 400; margin: 2px 0; }
.inquiry label.check input { margin-top: 5px; }
.inquiry .opt { font-weight: 400; color: var(--muted); }
.inquiry .note { color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.inquiry .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .hero .wrap, .pricing, .cta { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; gap: 36px; }
  .grid, .facts-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta { padding: 32px 22px; }
  .cta:has(.inquiry) { grid-template-columns: 1fr; }
  .inquiry .row { grid-template-columns: 1fr; }
  .inquiry { padding: 18px; }
}
@media (max-width: 600px) {
  .grid, .facts-grid, .steps { grid-template-columns: 1fr; }
  section.band { padding: 56px 0; }
  .search { flex-wrap: wrap; }
  .search button { width: 100%; }
}
.hero .wrap > *, .pricing > *, .cta > *, .grid > *, .steps > *, .facts-grid > * { min-width: 0; }
.mock .url { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.hero .btn.ghost { color: #fff; }
ul.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
ul.pills li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 500; }
h2.flush { margin-top: 0; }
.cta .btn { background: #fff; color: var(--brand); }
.cta .btn:hover { background: #e8eefb; color: var(--brand); }

/* Website pricing */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan h3 { margin: 0 0 10px; }
.plan .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 0; color: var(--fg); }
.plan .amount span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan .per { margin: 6px 0 16px; font-size: 14.5px; }
.plan ul.ticks { margin: 0 0 16px; flex: 1; columns: 1; }
.plan .ticks li { font-size: 15px; }
.plan .fine { margin: 0; }
.plan.featured { border: 2px solid var(--accent); }
