/* ============================================================
   Townline Web — shared stylesheet
   Tokens ported from the Townline Brand Guide (v1.0)
   ============================================================ */

:root {
  --bg: #EFEBDD;
  --surface: #FAF8EF;
  --surface-alt: #E5DFC9;
  --ink: #23282B;
  --ink-muted: #5C5B4C;
  --accent: #1F4438;
  --accent-strong: #163229;
  --accent-contrast: #F4EFDD;
  --rust: #A6462A;
  --rust-strong: #8A3A22;
  --brass: #8C6D28;
  --line: #C9C2AC;
  --shadow: rgba(35, 40, 43, 0.16);

  --font-display: 'Futura', 'Century Gothic', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  --font-body: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;

  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141F1A;
    --surface: #1B2A22;
    --surface-alt: #23342A;
    --ink: #ECE7D6;
    --ink-muted: #A6A38E;
    --accent: #74C29E;
    --accent-strong: #93D8B7;
    --accent-contrast: #0F1D16;
    --rust: #E28E67;
    --rust-strong: #F0A883;
    --brass: #D7B564;
    --line: #37493E;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  --bg: #141F1A;
  --surface: #1B2A22;
  --surface-alt: #23342A;
  --ink: #ECE7D6;
  --ink-muted: #A6A38E;
  --accent: #74C29E;
  --accent-strong: #93D8B7;
  --accent-contrast: #0F1D16;
  --rust: #E28E67;
  --rust-strong: #F0A883;
  --brass: #D7B564;
  --line: #37493E;
  --shadow: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 { text-wrap: balance; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin: 0 0 1.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin: 0.4rem 0 1rem;
  line-height: 1.2;
}

.lede {
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--rust); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--rust-strong); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--accent-contrast); }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 3px solid var(--accent);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 1.3rem;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.wordmark span { color: var(--ink); font-weight: 400; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg { display: block; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 3px solid var(--accent);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
}

/* ---------- Hero sign ---------- */
.hero { text-align: center; padding: 4rem 0 3rem; }
.hero.compact { padding: 3rem 0 2rem; }
.sign {
  position: relative;
  display: inline-block;
  background: var(--accent);
  border: 9px solid var(--accent-contrast);
  border-radius: 3px;
  padding: 2.75rem 3rem 2.4rem;
  box-shadow: 0 16px 40px var(--shadow);
  max-width: 100%;
}
.bolt { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-contrast); opacity: 0.55; }
.bolt.tl { top: 12px; left: 12px; }
.bolt.tr { top: 12px; right: 12px; }
.bolt.bl { bottom: 12px; left: 12px; }
.bolt.br { bottom: 12px; right: 12px; }
.sign-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent-contrast);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 0;
  line-height: 1.25;
  text-wrap: balance;
}
.hero-sub {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  color: var(--ink-muted);
  font-size: 1.1rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.card p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; list-style: none; margin: 1.5rem 0 0; }
.tag-list li {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  color: var(--ink);
}

/* ---------- Steps (How It Works) ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; max-width: 68ch; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  color: var(--brass);
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.step p { margin: 0; color: var(--ink-muted); }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  box-shadow: 0 6px 18px var(--shadow);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.plan-plus { border-top-color: var(--brass); }
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
}
.plan-tag { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; font-size: 1rem; text-transform: uppercase; }
.plan-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 2rem; font-weight: 600; margin: 0; color: var(--accent-strong); }
.plan-plus .plan-price { color: var(--brass); }
.plan-price .currency { font-size: 1.1rem; vertical-align: 0.5em; }
.plan-price .per { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-muted); font-weight: 400; }
.plan-features { list-style: none; margin: 0 0 1.25rem; padding: 0; flex-grow: 1; }
.plan-features li { position: relative; padding-left: 1.1rem; margin-bottom: 0.6rem; font-size: 0.95rem; }
.plan-features li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.plan-plus .plan-features li::before { color: var(--brass); }
.plan-terms { font-size: 0.82rem; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 0.9rem; }
.plan-cta { margin-top: 1.25rem; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 68ch; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq summary {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--rust); font-weight: 700; }
.faq details[open] summary::before { content: "– "; }
.faq p { color: var(--ink-muted); margin: 0.8rem 0 0; }

.excluded {
  background: var(--surface-alt);
  border-left: 4px solid var(--rust);
  padding: 1.5rem 1.75rem;
}
.excluded ul { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }
.excluded li { margin-bottom: 0.5rem; break-inside: avoid; }
@media (max-width: 560px) { .excluded ul { columns: 1; } }

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 1.25rem; max-width: 560px; }
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.85rem;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; min-height: 120px; }

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.contact-direct a { color: var(--accent); text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px solid var(--accent);
  padding: 2.5rem 0;
  margin-top: 3rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer-nav ul { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-muted); text-decoration: none; font-size: 0.88rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-meta { font-size: 0.8rem; color: var(--ink-muted); margin-top: 1.5rem; }

@media (max-width: 480px) {
  .hero { padding: 3rem 0 2rem; }
  .sign { padding: 2rem 1.5rem; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
