:root {
  --sky:       #E7EDE8;
  --paper:     #F8FAF8;
  --ink:       #17241C;
  --ink-soft:  #4A5A50;
  --paloverde: #5F7F3F;
  --paloverde-deep: #46602D;
  --caliche:   #C9BB9B;
  --gravel:    #7C8079;
  --hairline:  #CBD5CC;
  --alert:     #A33B2A;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.08; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--paloverde-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  background: var(--sky);
}
.wordmark { display: flex; }
.wordmark img { display: block; width: clamp(168px, 22vw, 220px); }

.masthead-nav { display: flex; align-items: center; gap: 1.5rem; }
.masthead-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.masthead-nav a:hover { border-bottom-color: var(--paloverde); }
.masthead-phone { border-bottom-color: var(--hairline) !important; }

/* ---------- Hero ---------- */
.hero { background: var(--sky); position: relative; }
.hero-copy {
  padding: clamp(2.2rem, 6vw, 5rem) var(--gutter) clamp(2.8rem, 7vw, 5.5rem);
  max-width: 46rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.038em;
}
.lede {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.08rem, 2.1vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 1.5rem 0 2.2rem;
}
.hero-meta { margin: 1.1rem 0 0; font-size: 0.88rem; color: var(--gravel); }

/* ---------- Ridge ---------- */
.ridge { display: block; width: 100%; height: clamp(66px, 11vw, 140px); margin-bottom: -1px; }
.ridge-far  { fill: var(--caliche); opacity: 0.55; }
.ridge-near { fill: var(--gravel);  opacity: 0.42; }

.gravel {
  height: 14px;
  background:
    radial-gradient(circle at 12% 40%, rgba(23,36,28,.16) 1.1px, transparent 1.4px),
    radial-gradient(circle at 43% 72%, rgba(23,36,28,.13) 1.3px, transparent 1.6px),
    radial-gradient(circle at 71% 28%, rgba(23,36,28,.15) 1px,   transparent 1.3px),
    radial-gradient(circle at 88% 62%, rgba(23,36,28,.11) 1.2px, transparent 1.5px),
    var(--caliche);
  background-size: 22px 14px, 31px 14px, 17px 14px, 27px 14px, auto;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--paloverde-deep);
  color: #F4F7F2;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.82rem 1.6rem;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
}
.button:hover { background: var(--paloverde); }
.button[disabled] { opacity: 0.5; cursor: progress; }

.button-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 0.4rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
}
.button-quiet:hover { border-color: var(--paloverde); }

/* ---------- Section shell ---------- */
main > section { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
main > section h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); margin-bottom: 2rem; }

/* ---------- Steps ---------- */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.step-list li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.step-n {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--paloverde-deep);
  margin-bottom: 0.5rem;
}
.step-list h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.step-list p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Included ---------- */
.included-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.included-grid > p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.68;
  color: var(--ink-soft);
  margin: 0;
  max-width: var(--measure);
}
.task-list { list-style: none; margin: 0; padding: 0; }
.task-list li { padding: 0.62rem 0; border-bottom: 1px solid var(--hairline); font-size: 0.98rem; }
.task-list li:first-child { padding-top: 0; }

/* ---------- Plans ---------- */
.plans { background: var(--sky); }
.plan-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.plan { padding: 0 clamp(1.1rem, 2.6vw, 2.2rem); border-left: 1px solid var(--hairline); }
.plan:first-child { padding-left: 0; border-left: none; }
.plan h3 { font-size: 1.12rem; }
.plan-price { font-size: 2.15rem; font-weight: 700; letter-spacing: -0.035em; margin: 0.55rem 0 0.9rem; }
.plan-price span { font-size: 0.88rem; font-weight: 500; letter-spacing: 0; color: var(--gravel); }
.plan-blurb { margin: 0; font-size: 0.97rem; line-height: 1.6; color: var(--ink-soft); }
.plan-footnote {
  margin: 2.6rem 0 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- Owner ---------- */
.owner-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
  max-width: 56rem;
}
.owner-mark { width: clamp(72px, 9vw, 112px); flex: none; }
.owner h2 { margin-bottom: 1rem; }
.owner p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.66;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 1rem;
}
.owner p:last-child { margin-bottom: 0; }

/* ---------- Area ---------- */
.area { background: var(--sky); }
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: start;
}
.area-list {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 2rem;
}
.area-list li { padding: 0.42rem 0; font-size: 1rem; break-inside: avoid; }
.area-note {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list { margin: 0; max-width: 46rem; }
.faq-list dt {
  font-weight: 600;
  font-size: 1.02rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--hairline);
}
.faq-list dd {
  margin: 0.4rem 0 1.15rem;
  color: var(--ink-soft);
  font-size: 0.99rem;
  line-height: 1.6;
}

/* ---------- Request ---------- */
.request-inner { max-width: 40rem; }
.request-lede {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin: -1rem 0 2.4rem;
}
.field { margin-bottom: 1.15rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.86rem; font-weight: 500; margin-bottom: 0.34rem; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.68rem 0.75rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--paloverde); }
input[aria-invalid="true"] { border-color: var(--alert); }

.form-status { margin: 1rem 0 0; font-size: 0.94rem; min-height: 1.4em; }
.form-status[data-state="error"]   { color: var(--alert); }
.form-status[data-state="success"] { color: var(--paloverde-deep); font-weight: 500; }

/* ---------- Colophon ---------- */
.colophon {
  background: var(--ink);
  color: #C6D2C8;
  padding: clamp(2.6rem, 6vw, 4rem) var(--gutter);
  font-size: 0.92rem;
  line-height: 1.7;
}
.colophon-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
}
.colophon-logo { width: clamp(108px, 13vw, 150px); }
.colophon-logo text { fill: #F0F4F0; }
.colophon-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.colophon-h { font-weight: 600; color: #F0F4F0; margin: 0 0 0.3rem; font-size: 0.9rem; }
.colophon p { margin: 0; }
.colophon a { color: #C6D2C8; }
.disclaimer {
  grid-column: 1 / -1;
  color: #8A9A8D;
  font-size: 0.82rem;
  border-top: 1px solid #2C3B32;
  padding-top: 1.4rem;
  margin-top: 0.6rem !important;
}

/* ============================================================
   Admin
   ============================================================ */
.admin-shell { max-width: 78rem; margin: 0 auto; padding: 1.5rem var(--gutter) 5rem; }

.admin-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1rem var(--gutter);
  background: var(--sky);
  border-bottom: 1px solid var(--hairline);
}
.admin-bar img { width: 176px; display: block; }
.admin-who { font-size: 0.86rem; color: var(--ink-soft); }

.tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; margin: 1.6rem 0 1.8rem; border-bottom: 1px solid var(--hairline); }
.tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  font-family: inherit; font-size: 0.96rem; font-weight: 500; color: var(--ink-soft);
  padding: 0.6rem 0.9rem; cursor: pointer; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--paloverde-deep); font-weight: 600; }

.panel[hidden] { display: none; }
.panel h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.panel-lede { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1.6rem; max-width: var(--measure); }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th {
  text-align: left; font-weight: 600; font-size: 0.8rem; color: var(--ink-soft);
  padding: 0.5rem 0.7rem 0.5rem 0; border-bottom: 1px solid var(--ink);
}
td { padding: 0.72rem 0.7rem 0.72rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tr:hover td { background: rgba(95,127,63,0.04); }
.table-wrap { overflow-x: auto; }

.pill {
  display: inline-block; font-size: 0.74rem; font-weight: 600;
  padding: 0.16rem 0.5rem; border-radius: 999px; white-space: nowrap;
}
.pill-new      { background: #DCE7D6; color: #2F4A1E; }
.pill-contacted{ background: #E4E2D6; color: #57502F; }
.pill-quoted   { background: #DAE2E8; color: #2B4453; }
.pill-won      { background: var(--paloverde-deep); color: #F0F4F0; }
.pill-lost     { background: #E8DAD6; color: #6B3226; }
.pill-yes      { background: var(--paloverde-deep); color: #F0F4F0; }
.pill-no       { background: #E2E6E2; color: var(--ink-soft); }

.admin-form { max-width: 34rem; }
.admin-form .field-pair { gap: 0.9rem; }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.5rem 1.2rem; margin: 0.4rem 0 1.2rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.93rem; }
.check input { width: auto; margin: 0; }
.check label { margin: 0; font-size: 0.93rem; color: var(--ink); font-weight: 400; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

.notice { padding: 0.85rem 1rem; border-radius: 2px; font-size: 0.92rem; margin: 1rem 0; }
.notice-ok    { background: #DCE7D6; color: #2F4A1E; }
.notice-err   { background: #F2E0DC; color: #7A2B1C; }
.notice-info  { background: var(--sky); color: var(--ink-soft); }

.guard {
  border-left: 3px solid var(--paloverde-deep);
  background: var(--sky);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.guard strong { color: var(--ink); }

.signin { max-width: 22rem; margin: 5rem auto; padding: 0 var(--gutter); }
.signin img { width: 200px; margin-bottom: 2rem; }

.empty { color: var(--gravel); font-size: 0.94rem; padding: 1.5rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .included-grid, .area-grid { grid-template-columns: 1fr; }
  .plan-row { grid-template-columns: 1fr; gap: 1.9rem; }
  .plan { padding-left: 0; padding-right: 0; border-left: none; border-top: 1px solid var(--hairline); padding-top: 1.6rem; }
  .plan:first-child { border-top: none; padding-top: 0; }
  .owner-inner { grid-template-columns: 1fr; }
  .colophon-inner { grid-template-columns: 1fr; }
  .colophon-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .step-list { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .colophon-cols { grid-template-columns: 1fr; }
  .area-list { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.linky {
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: inherit; color: var(--paloverde-deep);
  text-decoration: underline; cursor: pointer;
}
.linky:hover { color: var(--paloverde); }
