/* Smart Hometown: evergreen, cream and brass. Nonpartisan "Main Street" palette. */
:root {
  --green: #1f4a3a;
  --green-dark: #153428;
  --green-soft: #e3ece6;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --brass: #c8912f;
  --brass-dark: #a8761f;
  --brass-text: #8a5f14;
  --ink: #1d2320;
  --muted: #4d5752;
  --line: #e2dccd;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(21, 52, 40, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.section { padding: 96px 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--green-dark); }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.1rem); letter-spacing: -.01em; margin-bottom: 22px; }
h1 em { font-style: normal; color: var(--brass-text); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; }

.kicker {
  font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  font-size: .82rem; color: var(--brass-text); margin-bottom: 12px;
}
.kicker.light { color: #e7bd6e; }
.section-lede { max-width: 660px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; padding: 15px 30px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-dark); }
.btn-ghost { border-color: var(--green); color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--paper); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--paper); }
.btn-sm { padding: 9px 20px; font-size: .95rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); }
.logo-mark { width: 38px; height: 38px; }
.logo-text { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--green-dark); }
.logo-text b { font-weight: 700; color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--ink); font-size: 1rem; }
.site-nav a:not(.btn):hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--green-dark); margin: 5px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(200, 145, 47, .14), transparent 45%),
    linear-gradient(var(--cream), var(--paper));
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 80px 0 96px; }
.hero-copy { min-width: 0; }
.eyebrow { font-weight: 700; color: var(--green); margin-bottom: 18px; font-size: 1rem; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-price { color: var(--muted); font-size: 1rem; }
.hero-price strong { color: var(--ink); }

.hero-visual { position: relative; padding: 0 40px 50px 0; }
.browser {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.06);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: #efeae0; border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d8cfbd; }
.browser-bar span {
  margin-left: 12px; flex: 1; font-size: .78rem; color: var(--muted);
  background: #fff; border-radius: 6px; padding: 3px 12px; max-width: 280px;
}
.phone {
  position: absolute; right: 0; bottom: 0; width: 30%; max-width: 170px;
  border: 7px solid var(--green-dark); border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* Live, scaled-down previews of example sites */
.frame { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-soft); }
.frame-phone { aspect-ratio: 9 / 19; }
.frame iframe {
  position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0;
  pointer-events: none;
}

/* ===== Strip ===== */
.strip { background: var(--green); color: var(--paper); }
.strip-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: space-around;
  gap: 14px 32px; padding: 22px 0; font-weight: 600;
}
.check {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px;
  border-radius: 50%; background: var(--brass); color: var(--ink); font-size: .85rem;
}

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-copy p { color: var(--muted); font-size: 1.15rem; margin-bottom: 18px; }
.why-copy p:last-child { color: var(--green-dark); font-weight: 700; font-family: var(--serif); font-size: 1.4rem; }

/* ===== Examples ===== */
.examples { background: var(--cream); }
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.example {
  display: block; text-decoration: none; background: var(--paper); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
a.example:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.example-shot { border-bottom: 1px solid var(--line); }
.example-info { padding: 20px 22px 24px; }
.example-info p { color: var(--muted); font-size: .98rem; }
.example-link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--brass-text); }
.example-style { font-size: .8rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-text) !important; margin-bottom: 6px; }
.examples-disclaimer { text-align: center; margin-top: 26px; font-size: .9rem; color: var(--muted); }

/* ===== How ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; counter-reset: step; }
.steps li { position: relative; padding-top: 8px; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 50%; background: var(--green); color: var(--paper);
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
}
.steps p { color: var(--muted); }

/* ===== Pricing ===== */
.pricing { background: var(--green-soft); }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 28px; margin-top: 44px; }
.price-card {
  position: relative; background: var(--paper); border-radius: 14px; padding: 36px 32px;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.price-card.featured { border: 3px solid var(--brass); box-shadow: var(--shadow); }
.badge {
  position: absolute; top: -15px; left: 32px; background: var(--brass); color: var(--ink);
  font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 14px; border-radius: 999px;
}
.price { color: var(--muted); margin-top: 6px; }
.price span { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--green-dark); margin-right: 6px; }
.price-sub { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }
.price-list { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; flex: 1; }
.price-list li { position: relative; padding-left: 30px; }
.price-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-note { text-align: center; margin-top: 32px; color: var(--muted); }

/* ===== About ===== */
.about-inner { max-width: 760px; }
.about-inner p { color: var(--muted); font-size: 1.12rem; margin-bottom: 16px; }

/* ===== FAQ ===== */
.faq { background: var(--cream); }
.faq-inner { max-width: 820px; }
.faq h2 { margin-bottom: 36px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 700; font-size: 1.08rem; color: var(--green-dark);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--brass-text);
}
details[open] summary::after { content: "\2212"; }
details p { padding: 0 24px 22px; color: var(--muted); }

/* ===== Start ===== */
.start { background: var(--green); color: var(--paper); }
.start h2 { color: var(--paper); }
.start-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.start-copy p { opacity: .92; margin-bottom: 16px; font-size: 1.1rem; }
.start-alt a { color: #e7bd6e; font-weight: 700; }
.start-form { display: grid; gap: 16px; background: var(--green-dark); padding: 32px; border-radius: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.start-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.start-form input, .start-form textarea {
  font: inherit; font-weight: 400; font-size: 1.05rem; padding: 13px 15px; width: 100%;
  border: 2px solid transparent; border-radius: 8px; background: var(--paper); color: var(--ink);
}
.start-form input::placeholder { color: #8b918d; }
.start-form input:focus, .start-form textarea:focus { outline: none; border-color: var(--brass); }
.start-form .btn { justify-self: start; }
.start-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-note { color: #e7bd6e; font-weight: 700; }
.hp-field { position: absolute; left: -9999px; }

/* ===== Legal page ===== */
.legal-inner { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.9rem; margin: 56px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; display: grid; gap: 6px; }
.legal a { color: var(--green); font-weight: 600; }
.legal-updated { font-size: .95rem; }
.legal-toc { display: flex; gap: 24px; margin: 20px 0 8px; }
.legal-contact { margin-top: 40px; font-weight: 600; }
.site-nav-simple { position: static !important; max-height: none !important; background: none !important; border: 0 !important; flex-direction: row !important; }
.site-nav-simple .btn { margin: 0 !important; }

/* ===== Footer ===== */
.site-footer { background: var(--green-dark); color: #c9d6cf; padding: 44px 0; font-size: .98rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid > div:last-child { text-align: right; }
.footer-logo { font-family: var(--serif); font-size: 1.4rem; color: var(--paper); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .why-grid, .start-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-grid { padding: 56px 0 72px; }
  .hero-visual { max-width: 620px; }
  .example-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .site-nav.open { max-height: 440px; }
  .site-nav a:not(.btn) { padding: 15px 0; width: 100%; text-align: center; border-top: 1px solid var(--line); }
  .site-nav .btn { margin: 14px 0 18px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 68px 0; }
  .example-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .hero-visual { padding: 0 24px 40px 0; }
  .start-form { padding: 22px; }
  .footer-grid > div:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .example, .site-nav { transition: none; }
}
