/* one radius for every button, chip and button-like control (and the form fields beside them): a rounded rectangle, never a pill */
:root { --btn-radius: 8px; }
/* ============================================================
   PPP Septic: foundation (reset, type, buttons, forms, FAQ, prose, utilities)
   Tokens live in theme.css.
   ============================================================ */

/* phones and tablets: font-display block, so the hero text first appears in the real font and never jumps when the font arrives (the font is preloaded, so the wait is a few ms).
   Desktop keeps swap, exactly as before. */
@media (max-width: 63.99rem) {
  @font-face {   /* Arial scaled to Hanken's average width (measured 0.93 to 0.98), so even the fallback lays the hero out almost like the real font */
    font-family: 'Hanken Fallback';
    src: local('Arial'), local('Helvetica'), local('ArimoRegular');
    size-adjust: 95%;
  }
  @font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 400 800;
    font-display: block;
    src: url(fonts/hanken-grotesk-latin.woff2?v=271d5973) format('woff2');
  }
}
@media (min-width: 64rem) {
  @font-face {
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(fonts/hanken-grotesk-latin.woff2?v=271d5973) format('woff2');
  }
}

/* --- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { margin: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
[id] { scroll-margin-top: 6rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 50%; translate: -50% -120%; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 .5rem .5rem;
  font-weight: 600; text-decoration: none; transition: translate .15s;
}
.skip-link:focus { translate: -50% 0; }

/* --- Page frame ----------------------------------------------- */
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { width: min(100% - min(2.5rem, 10vw), var(--measure)); margin-inline: auto; }
.wrap--narrow { width: min(100% - min(2.5rem, 10vw), 50rem); }
.wrap--post { width: min(100% - min(2.5rem, 10vw), 46rem); }
.wrap--figure { width: min(100% - 2.5rem, 64rem); }
.section { padding-block: var(--space-section); position: relative; }
.section--mint { background: var(--mint); }

/* --- Type ----------------------------------------------------- */
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: var(--h2); }
h3 { font-size: 1.25rem; line-height: 1.25; }
.lede { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
p { text-wrap: pretty; }
.small { font-size: .875rem; color: var(--ink-2); }
.nw { white-space: nowrap; }

.head { margin-bottom: 2.5rem; }
.head--center { text-align: center; max-width: 46rem; margin-inline: auto; margin-bottom: 3rem; }
.head--center .lede { margin-top: 1rem; }
.head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; text-align: left; }

/* --- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .5rem 1.6rem; border-radius: var(--btn-radius); border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn--green { background: var(--btn); color: var(--btn-fg); }
.btn--green:hover { background: var(--btn-hover); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--mint); }
.btn--white svg { color: var(--btn); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--ghost svg { color: var(--btn); }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.more { display: flex; justify-content: center; margin-top: 2.5rem; }

/* --- Forms ---------------------------------------------------------- */
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: min(1.75rem, 5vw); }
.form h2 { font-size: 1.625rem; margin-bottom: 1.1rem; }
.form__blurb { color: var(--ink-2); margin: -.5rem 0 1rem; }
.field { margin-bottom: 1rem; min-width: 0; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
.field .opt, .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: .7rem 1rem; border: 1px solid var(--field-border, #85947c); border-radius: var(--btn-radius);
  background: var(--field); font-size: 1rem; font-size: max(1rem, 16px); color: var(--ink);
}
.field textarea { min-height: 5.5rem; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); background: #fff; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a42a1d; border-width: 2px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select svg { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; width: 1.1rem; height: 1.1rem; pointer-events: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
@container form (max-width: 25rem) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .78125rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 1.1rem; cursor: pointer; }
.consent input { width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; flex: none; accent-color: var(--btn); }
.consent a { color: inherit; }
.form { container-type: inline-size; container-name: form; }
.form__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr)); gap: .75rem; }
.form__actions .btn { width: 100%; height: auto; min-height: 52px; padding-block: .5rem; padding-inline: .75rem; justify-content: center; text-align: center; white-space: normal; }
/* pair sits side by side once the form's content box is 13.75rem x 2 + gap wide (452px at normal text); "Call now" label from 30rem */
.form__actions .lab { display: none; }
@container form (min-width: 30rem) { .form__actions .lab { display: inline; } }
.form__status { margin-top: .75rem; font-size: .9375rem; }
.form__status.is-error { color: #a42a1d; }
.form__done h3 { margin: .25rem 0 .5rem; }

/* --- FAQ accordion --------------------------------------------------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .85rem; overflow: hidden; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; min-height: 56px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--btn); flex: none; transition: transform .2s, background-color .2s, color .2s; }
.faq__ico svg { width: 1rem; height: 1rem; }
.faq details[open] .faq__ico { background: var(--btn); color: #fff; transform: rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.25rem; color: var(--ink-2); }
.faq details > div p + p { margin-top: .75rem; }

/* --- Prose (blog, privacy) --------------------------------------------- */
.prose { font-size: 1.0625rem; color: #26301f; }
.prose p { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; margin: 2.2em 0 .5em; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 1em 0; }
.prose li { margin-top: .4em; }
.prose a:not(.btn) { color: var(--btn); text-underline-offset: 2px; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.prose th, .prose td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--mint); }
.cta-inline { background: var(--mint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.cta-inline__label { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--btn); }
.cta-inline__text { font-size: 1.125rem; font-weight: 600; margin: .35rem 0 1rem; color: var(--ink); }
.prose .cta-inline p { margin-top: 0; }

/* --- Internal notes (visible at ?draft only) -------------------------------- */
.needs { background: #fff0a8; color: #4a3b00; border-radius: 4px; padding: .1em .4em; font-size: .8125em; font-weight: 600; line-height: 1.5; }
p.needs { display: inline-block; margin: 1rem 0 0; }
.clean .needs { display: none !important; }
.needs-slot { padding-block: 1.25rem; background: #fffbe0; border-block: 1px dashed #d9c75a; }
.clean .needs-slot { display: none; }
.ph-img { display: block; background: var(--ph); position: relative; width: 100%; height: 100%; }
html:not(.clean) .ph-img::after {
  content: attr(data-slot) '.jpg'; position: absolute; left: .6rem; bottom: .5rem; z-index: 3;
  font: 600 .6875rem/1 ui-monospace, monospace; color: rgba(255, 255, 255, .55);
}
html:not(.clean) .ph-clean { display: none; }

/* --- Reveal (visible at rest; animates only when JS and motion are OK) ------------ */
.reveal { transition: opacity .5s ease, transform .5s ease; }
[data-anim="on"] .reveal:not([data-shown]) { opacity: 0; transform: translateY(14px); }

/* --- Form checkboxes (reason lines) ------------------------------------------------ */
.checks { display: grid; gap: .55rem; margin-bottom: 1.1rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; min-height: 24px; }
.check input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; accent-color: var(--btn); }
.check b { display: block; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.check small { display: block; font-size: .75rem; line-height: 1.4; color: var(--ink-2); }
.form__fine { margin-top: .85rem; font-size: .75rem; color: var(--ink-2); }
.form__fine a { color: inherit; }
.faq__src { font-size: .875rem; }
.faq__src a { text-underline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
