/* Digital Plug Co. — septic answering landing page
   Static styles. No build step. */

:root {
  --bg: #f3efe6;
  --bg-alt: #e7efe8;
  --ink: #16211c;
  --muted: #5a645c;
  --pine: #14332b;
  --pine-2: #1c473c;
  --needle: #2d6a56;
  --copper: #b56820;
  --copper-2: #8f4e16;
  --cream: #fffaf2;
  --line: #d5cec2;
  --gold-line: #e8c9a0;
  --focus: #1c473c;
  --danger: #8a1f1f;
  --shadow: 0 16px 40px rgba(20, 51, 43, 0.12);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--pine-2); }
a:hover { color: var(--copper-2); }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cream);
  color: var(--pine);
  padding: 8px 12px;
  z-index: 100;
  border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine);
  color: #f4efe6;
  border-bottom: 1px solid rgba(232, 201, 160, 0.25);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand img, .brand svg { width: 42px; height: 42px; flex: none; }

.brand-name {
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-tag {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.nav a {
  color: #f4efe6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover { color: var(--gold-line); }

.btn {
  display: inline-block;
  background: var(--copper);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.2;
}

.btn:hover { background: var(--copper-2); color: #fff; }

.btn-light {
  background: transparent;
  color: #f4efe6;
  border: 1px solid rgba(244, 239, 230, 0.45);
}

.btn-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-block { width: 100%; text-align: center; }

.header-cta { flex: none; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(45, 106, 86, 0.22), transparent 60%),
    linear-gradient(160deg, #14332b 0%, #1c473c 55%, #0f2a24 100%);
  color: #f6f1e8;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: linear-gradient(to bottom right, transparent 49%, var(--bg) 51%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-block;
  background: rgba(232, 201, 160, 0.14);
  color: #f0d7b2;
  border: 1px solid rgba(232, 201, 160, 0.35);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fffaf2;
}

.lede {
  font-size: 1.14rem;
  color: #dce6e1;
  margin: 0 0 14px;
  max-width: 38rem;
}

.lede:last-of-type { margin-bottom: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ticket {
  background: var(--cream);
  color: var(--ink);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-line);
  position: relative;
}

.ticket::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--pine) 0 10px,
    transparent 10px 16px
  );
  border-radius: 0 0 2px 2px;
}

.ticket-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-2);
  margin: 8px 0 6px;
}

.ticket h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: var(--pine);
}

.ticket ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.98rem;
}

.ticket li:first-child { border-top: 0; }

.ticket li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--needle);
  flex: none;
}

.ticket-foot {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sections */
section { padding: 72px 0; }
section[id], #contact { scroll-margin-top: 96px; }

h2.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  color: var(--pine);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 40rem;
  font-size: 1.08rem;
}

.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

.feat-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}

.feat h3 {
  margin: 0 0 8px;
  color: var(--pine);
  font-size: 1.12rem;
}

.feat p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--needle);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-weight: 800;
  color: var(--copper);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.step h3 { margin: 0 0 8px; color: var(--pine); }
.step p { margin: 0; color: var(--muted); }

/* Service area */
.area {
  background: var(--pine);
  color: #f4efe6;
}

.area .section-title { color: #fffaf2; }
.area .section-lead { color: #c5d4ce; }

.counties {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.county {
  background: rgba(255, 250, 242, 0.06);
  border: 1px solid rgba(232, 201, 160, 0.3);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.county strong {
  display: block;
  font-size: 1.15rem;
  color: #fffaf2;
  margin-bottom: 4px;
}

.county span { color: #c5d4ce; font-size: 0.92rem; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.plan {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  position: relative;
}

.plan-rec {
  border: 2px solid var(--pine);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--pine);
  color: #fffaf2;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 99px;
}

.plan h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--pine);
}

.price {
  margin: 10px 0 6px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.2em;
}

.plan-cap {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-top: 1px solid #eee6d8;
}

.plan li:first-child { border-top: 0; }

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--needle);
  font-weight: 800;
}

.pricing-notes {
  margin-top: 28px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}

.pricing-notes p { margin: 0 0 10px; }
.pricing-notes p:last-child { margin: 0; }

.fine {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Form */
.contact { background: var(--bg-alt); }

form.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label, .label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 14px 0 6px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #c5cdd0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 16px;
  font-size: 0.88rem;
  color: #3f4943;
  line-height: 1.5;
}

.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--pine);
}

.form-note, .legal-links {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.placeholder-phone {
  display: inline-block;
  background: #fff3c4;
  color: #6a5200;
  padding: 1px 7px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 700;
}

.placeholder-flag {
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 4px;
  color: #6a5200;
}

.form-status {
  display: none;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff3c4;
  border: 1px solid #e0c86a;
  color: #4a3b00;
  font-weight: 600;
}

.form-status.is-visible { display: block; }

.form-error {
  display: none;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-error.is-visible { display: block; }



.hero-fine {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 36rem;
}

.trial-form {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
}

.trial-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink, #14332b);
}

.trial-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(20, 51, 43, 0.22);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.trial-form input:focus {
  outline: 2px solid #2d6a56;
  outline-offset: 1px;
}

.trial-form .btn {
  margin: 6px 0 0;
}

.contact-mail p { margin: 0 0 14px; }
.contact-mail .btn { margin: 10px 0 16px; }
/* Footer */
.site-footer {
  background: #0f241f;
  color: #b9c8c2;
  padding: 36px 0 28px;
  font-size: 0.92rem;
}

.site-footer a { color: #e8c9a0; }
.site-footer .brand-name { color: #fffaf2; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* Legal pages */
.draft-banner {
  background: #3d1515;
  color: #f6e8e8;
  padding: 16px 0;
  font-size: 0.95rem;
}

.draft-banner strong {
  display: block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #f0c9c9;
}

.legal-main {
  background: var(--cream);
  padding: 56px 0 80px;
}

.legal-main .prose {
  max-width: 44rem;
  margin: 0 auto;
}

.legal-main h1 {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--pine);
  margin: 0 0 8px;
}

.legal-main h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--pine);
  margin: 32px 0 8px;
}

.legal-main p, .legal-main li { color: #2a332e; }

/* Utilities */
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap,
  .grid-3,
  .steps,
  .plans,
  .counties,
  .row,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .counties { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 64px; }
}

@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .site-header .wrap {
    flex-wrap: wrap;
    min-height: 0;
    padding: 14px 0 10px;
    gap: 8px 12px;
  }
  /* Hero already has the same CTA; hiding it here keeps the sticky bar short. */
  .header-cta {
    display: inline-flex;
    font-size: 0.82rem;
    padding: 8px 12px;
    white-space: nowrap;
  }
  .nav {
    width: 100%;
    order: 3;
    padding-bottom: 2px;
    gap: 8px 14px;
  }
  .hero .wrap,
  .grid-3,
  .steps,
  .plans,
  .counties,
  .row,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  section { padding: 52px 0; }
  section[id], #contact { scroll-margin-top: 108px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* Sample summary + FAQ (added 2026-11-20) */
.sample-summary { max-width: 720px; }
.sample-text { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; background: #f4efe6; border-radius: 10px; padding: 16px; margin: 12px 0; line-height: 1.5; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid rgba(20,51,43,.15); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }
.plan .btn-block { margin-top: 18px; }
