[hidden] { display: none !important; }
/* Hard Hat Tip site styles.
   Layout: a navy masthead and footer like the morning email, a paper-coloured page,
   one readable column (about 65 characters) with wider bands for the sample and pricing.
   Colours and fonts match the approved email: navy, brass, Fraunces + Inter + IBM Plex Mono. */
:root {
  --bg: #f5f3ee;        /* paper */
  --surface: #ffffff;   /* cards, forms */
  --ink: #111827;
  --mute: #545b66;
  --line: #dcd8ce;
  --band: #0e1a2b;      /* navy masthead and footer, same in both themes */
  --band-ink: #f1ede4;
  --band-mute: #b7bfcc;
  --accent: #a8741f;    /* brass */
  --accent-ink: #7a5313;
  --accent-soft: #f7f0e3;
  --btn: #0e1a2b;
  --btn-ink: #ffffff;
  --ok: #1f6b45; --ok-soft: #e7f4ec;
  --warn: #8a5a00; --warn-soft: #fff6dc;
  --err: #a12a1c; --err-soft: #fdeceA;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1420; --surface: #131e2e; --ink: #ece8df; --mute: #a9b0ba; --line: #2a3850;
    --band: #070d17; --band-ink: #f1ede4; --band-mute: #a9b0ba;
    --accent: #d9a44c; --accent-ink: #e8bb6a; --accent-soft: #2a2215;
    --btn: #d9a44c; --btn-ink: #0e1a2b;
    --ok: #7fd1a3; --ok-soft: #12291d; --warn: #f0c56a; --warn-soft: #2b2312; --err: #ff9d8f; --err-soft: #331713;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1420; --surface: #131e2e; --ink: #ece8df; --mute: #a9b0ba; --line: #2a3850;
  --band: #070d17; --band-ink: #f1ede4; --band-mute: #a9b0ba;
  --accent: #d9a44c; --accent-ink: #e8bb6a; --accent-soft: #2a2215;
  --btn: #d9a44c; --btn-ink: #0e1a2b;
  --ok: #7fd1a3; --ok-soft: #12291d; --warn: #f0c56a; --warn-soft: #2b2312; --err: #ff9d8f; --err-soft: #331713;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--body); font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.8vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow > * { max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 2rem; }

/* Masthead */
.mast { background: var(--band); color: var(--band-ink); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; color: var(--band-ink); text-decoration: none; font: 600 1.35rem/1 var(--display); }
.brand small { font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #c9a35b; }
.mast nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.mast nav a { color: var(--band-ink); text-decoration: none; font-size: .95rem; }
.mast nav a:hover { text-decoration: underline; }
.mast nav a.btn { padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; }

/* Preview ribbon (shown only off the real domain) */
.ribbon { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--line); font-size: .9rem; }
.ribbon .wrap { padding-block: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  background: var(--btn); color: var(--btn-ink); font: 600 1rem/1.2 var(--body); text-decoration: none; border: 2px solid var(--btn); cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.mast .btn { background: #c9a35b; border-color: #c9a35b; color: #0e1a2b; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: var(--err); border-color: var(--err); color: var(--surface); }
.btn[disabled] { opacity: .6; cursor: progress; }

main section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow { font: 700 .75rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.lead { font-size: 1.15rem; color: var(--mute); max-width: 38em; }
.muted { color: var(--mute); }
.small { font-size: .9rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) 2rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero .cta-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: .75rem 0 0; font-size: .95rem; }
.ticket dt { color: var(--mute); }
.ticket dd { margin: 0; font-variant-numeric: tabular-nums; }
.ticket .stamp { font: 500 .8rem/1.4 var(--mono); color: var(--mute); border-top: 1px dashed var(--line); margin-top: .9rem; padding-top: .6rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.steps li { border-top: 3px solid var(--accent); padding-top: .9rem; }
.steps li::before { counter-increment: s; content: "Step " counter(s); display: block; font: 700 .75rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .35rem; }

/* Sample email viewer */
.sample-band { background: var(--surface); border-block: 1px solid var(--line); }
.picker { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.picker button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 .95rem/1 var(--body); cursor: pointer; }
.picker button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.picker .n { font-variant-numeric: tabular-nums; opacity: .75; margin-left: .3rem; }
.inbox { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #f5f3ee; }
.inbox-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--mute); }
.inbox-bar strong { color: var(--ink); }
.email-frame { max-height: 720px; overflow: auto; -webkit-overflow-scrolling: touch; }
.email-frame > div { min-width: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.plan.featured { border: 2px solid var(--accent); }
.price { font: 700 2.6rem/1 var(--body); font-variant-numeric: tabular-nums; }
.price span { font: 400 1rem/1 var(--body); color: var(--mute); }
.plan ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.plan .btn { margin-top: auto; }
.fine { font-size: .9rem; color: var(--mute); margin-top: 1rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 1.25rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .25rem 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: .85rem 0; min-height: 44px; list-style-position: outside; }
.faq details p { padding: 0 0 1rem; color: var(--mute); max-width: 42em; }

/* Forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); }
form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, fieldset legend { font-weight: 600; }
.hint { font-size: .9rem; color: var(--mute); }
input[type=email], input[type=text], select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--mute); border-radius: 6px; background: var(--surface); color: var(--ink); font: 400 1rem/1.3 var(--body); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.areas input { text-transform: uppercase; font-family: var(--mono); letter-spacing: .05em; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.check label { font-weight: 400; }
.error { color: var(--err); font-size: .92rem; font-weight: 600; }
.notice { border-radius: 6px; padding: 1rem 1.1rem; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice p + p { margin-top: .4rem; }
.notice strong { color: inherit; }
.captcha { font-size: .85rem; color: var(--mute); border: 1px dashed var(--line); border-radius: 6px; padding: .6rem .8rem; }

/* Legal / long text */
.prose { max-width: 42em; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; margin-bottom: .6rem; }
.prose h3 { margin-top: 1.4rem; margin-bottom: .4rem; }
.prose p, .prose ul { margin-bottom: .9rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .3rem; }
.draft { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: .8rem 1rem; font-size: .95rem; }
table.simple { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.simple th, table.simple td { text-align: left; border-bottom: 1px solid var(--line); padding: .55rem .5rem; vertical-align: top; }
.table-scroll { overflow-x: auto; }
code, .mono { font-family: var(--mono); font-size: .92em; }

/* Lead board: big targets, plain layout (phone + work gloves) */
.btn.big { min-height: 56px; font-size: 1.1rem; padding-inline: 26px; }
.board h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.board-head .lead { font-size: 1.05rem; }
.wins { background: var(--ok-soft); color: var(--ok); border-radius: 6px; padding: .7rem 1rem; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--line); padding: 6px; border-radius: 10px; }
.tabs button { min-height: 56px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: 700 1.05rem/1.2 var(--body); cursor: pointer; padding: 6px; }
.tabs button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.leads { display: flex; flex-direction: column; gap: 14px; }
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lead-card.priority { border-left: 6px solid var(--accent); }
.lead-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.lead-where { min-width: 0; }
.lead-where h3 { font-size: 1.3rem; }
.lead-value { font: 700 1.25rem/1.2 var(--body); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.lead-value span { display: block; font: 400 .8rem/1.3 var(--body); color: var(--mute); }
.lead-what { font-size: 1rem; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .9rem; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .85rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); }
.pill.won { background: var(--ok-soft); color: var(--ok); }
.pill.pri { background: var(--band); color: #f3d9a4; }
.soon { background: var(--accent-soft); border-radius: 6px; padding: .6rem .8rem; font-size: .95rem; }
.lead-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lead-actions .btn { min-height: 52px; padding: 8px; font-size: 1rem; }
.won-box { display: flex; flex-direction: column; gap: 6px; }
.won-box label { font-weight: 600; }
.won-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.tools { border-top: 1px solid var(--line); padding-top: 1rem; }
.tools summary { min-height: 56px; display: flex; align-items: center; font: 700 1.1rem/1.2 var(--body); cursor: pointer; }
.tools-body { padding-top: 1rem; }
.tools h2 { font-size: 1.2rem; }
.refcode { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 1.3rem; }
.hanger { display: flex; justify-content: center; }
.hanger .dh { width: 220px; min-height: 420px; background: #fff; color: #111; border: 1px dashed #999; border-radius: 8px; padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.hanger .dh-hole { width: 80px; height: 80px; border-radius: 50%; border: 1px dashed #999; margin: 0 auto 4px; }
.hanger .dh-hi { font-size: 1rem; } .hanger .dh-name { font-size: 1.4rem; font-weight: 700; } .hanger .dh-phone { font-size: 1.3rem; font-weight: 700; }
.hanger .dh-lic { font-size: .8rem; } .hanger .dh-foot { margin-top: auto; font-size: .75rem; color: #555; }
a.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Test site only */
.test-box { border: 2px dashed var(--accent); }
div.test-box.small { border: 0; padding: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; font: inherit; cursor: pointer; min-height: 0; }
.test-table td.yes { color: var(--ok); font-weight: 600; }
.test-table td.no { color: var(--err); }
.test-table td { overflow-wrap: anywhere; }

/* Footer */
.foot { background: var(--band); color: var(--band-mute); font-size: .9rem; margin-top: 2rem; }
.foot .wrap { padding-block: 2.2rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; }
.foot a { color: var(--band-ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-content: start; }
.foot .licence { color: var(--band-ink); }

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero-grid, .plans, .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .mast nav a.nav-extra { display: none; }
  .mast nav { gap: .9rem; }
  .email-frame { max-height: 560px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Search landing pages: simple link lists, big tap targets */
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.link-grid a { display: flex; align-items: center; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.link-grid a:hover { border-color: var(--accent); }

/* ---------- Area and trade buttons (settings + lead board) ---------- */
.region-picker { border: 0; padding: 0; margin: 0; }
.region-picker legend { font-weight: 700; margin-bottom: .35rem; }
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.region-btn { min-height: 52px; padding: 8px 10px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 1rem/1.2 var(--body); cursor: pointer; text-align: center; }
.region-btn[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.region-btn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.region-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.filters-body { gap: .75rem; }
.filter-label { margin: 0 0 .35rem; font-weight: 700; }
.advanced { margin-top: .75rem; }
.advanced summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--mute); }
.filters { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); }
.filters > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 56px; padding: 8px 14px; cursor: pointer; font-size: 1.05rem; }
.filters > summary::-webkit-details-marker { display: none; }
.filter-change { flex: none; font-weight: 700; color: var(--accent-ink); text-decoration: underline; }
.filters[open] .filter-change { visibility: hidden; }
.filters-body { padding: 4px 14px 14px; }

/* ---------- Waitlist page: what you get ---------- */
.get-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; font-size: 1.1rem; }
.get-list li { padding-left: 2rem; position: relative; }
.get-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--ok); font-size: 1.2rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.tick-list, .cross-list { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-direction: column; gap: .45rem; font-size: 1.05rem; }
.tick-list li::before { content: "\2713\00a0\00a0"; color: var(--ok); font-weight: 800; }
.cross-list li::before { content: "\2715\00a0\00a0"; color: var(--err); font-weight: 800; }
