/* Permitame: sand, evergreen and Puget Sound blue. Light and dark themes share these tokens. */
:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #efe9dd;
  --ink: #17201d;
  --muted: #55615c;
  --line: #e2dacb;
  --primary: #1e5a4c;
  --primary-ink: #f6f3ec;
  --primary-soft: #dcebe4;
  --sound: #2a7690;
  --sound-soft: #e1f0f4;
  --warn: #8a5a12;
  --warn-soft: #f8eed6;
  --yes: #1e5a4c;
  --no: #a1392c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(23 32 29 / 6%), 0 6px 24px rgb(23 32 29 / 7%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1715;
    --surface: #16211e;
    --surface-2: #1c2a26;
    --ink: #ebe7de;
    --muted: #a3b2ab;
    --line: #2a3833;
    --primary: #5fb99c;
    --primary-ink: #0d1613;
    --primary-soft: #1d3a32;
    --sound: #7fc4d6;
    --sound-soft: #17313a;
    --warn: #e2b866;
    --warn-soft: #33291a;
    --yes: #6cc7a8;
    --no: #ee8a7c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; }
a { color: var(--sound); text-underline-offset: 2px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--sound); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 4rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--serif); letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a.btn { color: var(--primary-ink); }

/* Type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 .8rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 3.2rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0 0 1.6rem; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sound); margin: 0 0 .8rem; }
.muted { color: var(--muted); }
small, .small { font-size: .9rem; }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-ink);
  border-radius: 10px; padding: .65rem 1.1rem; font: 600 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: transform .08s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.08); color: var(--primary-ink); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--primary); }
.btn.secondary:hover { background: var(--primary-soft); color: var(--primary); }
.btn.danger { background: transparent; border-color: var(--no); color: var(--no); }
.btn.small { padding: .4rem .75rem; font-size: .9rem; }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
input[type=email], input[type=text] { font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; max-width: 26rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.notice { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); border-radius: 12px; padding: .9rem 1.1rem; }
.notice.info { background: var(--sound-soft); border-color: color-mix(in srgb, var(--sound) 35%, transparent); }
code, pre { font-family: var(--mono); font-size: .9em; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: .6rem 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.meter { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; max-width: 26rem; margin: .5rem 0; }
.meter > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
[hidden] { display: none !important; }

/* Hero */
.hero { display: grid; gap: 2.5rem; grid-template-columns: 1.05fr .95fr; align-items: center; padding: 3.5rem 0 1rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 2rem; } }
.demo { padding: 1.2rem; }
.demo .ask { background: var(--sound-soft); border-radius: 12px 12px 12px 4px; padding: .7rem .9rem; font-weight: 600; margin-bottom: .9rem; }
.answers { display: grid; gap: .55rem; }
.answer { display: grid; grid-template-columns: 1fr auto; gap: .25rem .8rem; align-items: start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.answer strong { font-size: .98rem; }
.answer .why { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.pill { display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 99px; white-space: nowrap; }
.pill.yes { background: color-mix(in srgb, var(--no) 14%, transparent); color: var(--no); }
.pill.no { background: color-mix(in srgb, var(--yes) 16%, transparent); color: var(--yes); }
.pill.ask { background: var(--warn-soft); color: var(--warn); }
.demo .foot { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }

/* Feature and coverage lists */
.feature h3 { display: flex; align-items: center; gap: .5rem; }
.feature .dot { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--primary-soft); color: var(--primary); font: 700 .95rem/1 var(--sans); flex: none; }
.coverage .card h3 { margin-bottom: .2rem; }
.tag { display: inline-block; font: 600 .75rem/1 var(--sans); padding: .3rem .5rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); margin-bottom: .6rem; }

/* Install cards */
.install .card { display: flex; flex-direction: column; gap: .5rem; }
.install .card .btn { align-self: flex-start; margin-top: auto; }
.address { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.address pre { flex: 1; margin: 0; font-size: 1rem; min-width: 14rem; }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan .price { font: 700 2.2rem/1 var(--serif); margin: .6rem 0 .2rem; }
.plan .price span { font: 400 1rem var(--sans); color: var(--muted); }
.plan ul { padding-left: 1.1rem; margin: .8rem 0 1.2rem; flex: 1; }
.plan.featured { border: 2px solid var(--primary); }
details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
summary { cursor: pointer; font-weight: 600; }

/* Wave divider and footer */
.wave { display: block; width: 100%; height: 40px; color: var(--line); margin-top: 3rem; }
.site-footer { color: var(--muted); font-size: .92rem; padding: 1rem 0 2.5rem; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer .disclaim { max-width: 42rem; }
