/* Gablewell "Porchlight": flat solid color, rounded shapes, no shadows or gradients. */

:root {
  color-scheme: light;
  --ground: #F6F4EF;
  --surface: #FFFFFF;
  --line: #DDD8CC;
  --ink: #18392B;
  --ink-muted: #46594F;
  --brand: #18392B;
  --on-brand: #F6F4EF;
  --action: #2F6B4F;
  --action-strong: #25563F;
  --on-action: #FFFFFF;
  --porchlight: #F2B705;
  --on-porchlight: #18392B;
  --signal: #B83A4B;
  --mark: #18392B;
  --frame: #18392B;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #121A16;
    --surface: #1B2621;
    --line: #2C3A33;
    --ink: #EEF0EA;
    --ink-muted: #A9B8AF;
    --brand: #2E6B52;
    --action: #6FBF94;
    --action-strong: #86CBA5;
    --on-action: #0F1F17;
    --signal: #F08A99;
    --mark: #F6F4EF;
    --frame: #2C3A33;
  }
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/26px var(--sans);
}

h1, h2, h3, p, ol, ul, figure, fieldset { margin: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}
h1 { font-size: 34px; line-height: 38px; }
h2 { font-size: 32px; line-height: 38px; }

a { color: var(--action); text-underline-offset: 3px; }

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

/* Type helpers */
.card-title { font: 700 17px/24px var(--sans); }
.small { font-size: 13px; line-height: 20px; }
.fine { font-size: 11px; line-height: 16px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.label {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.label-signal { color: var(--signal); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}
.skip:focus { top: 12px; }

/* Layout */
.wrap {
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
}
.section { padding-block: 56px; }
.section > h2 { margin-bottom: 32px; }

/* Pills: the only button shape */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  min-height: 48px;
  padding: 8px 24px;
  border: 2px solid var(--action);
  border-radius: 999px;
  font: 700 16px/20px var(--sans);
  text-align: center;
  text-decoration: none;
}
a.pill, button.pill { cursor: pointer; }
.pill-action { background: var(--action); color: var(--on-action); }
a.pill-action:hover, button.pill-action:hover {
  background: var(--action-strong);
  border-color: var(--action-strong);
}
.pill-outline { background: transparent; color: var(--action); }
a.pill-outline:hover, button.pill-outline:hover {
  border-color: var(--action-strong);
  color: var(--action-strong);
}
.pill-small { min-height: 44px; padding: 6px 16px; font-size: 15px; width: 100%; }
button.pill:disabled { opacity: 0.6; cursor: default; }

/* Header and footer */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 400 22px/28px var(--serif);
  text-decoration: none;
}
.mark { width: 32px; height: 32px; flex: none; }
.mark path:first-child { fill: var(--mark); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.site-header .pill { min-height: 44px; padding-inline: 18px; font-size: 15px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 32px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
}
.site-footer .lockup { margin-right: auto; }
.site-footer p { color: var(--ink-muted); }

/* Hero */
.hero {
  display: grid;
  gap: 48px;
  padding-block: 24px 56px;
}
.hero-copy { min-width: 0; }
.hero h1 { margin-top: 16px; }
.hero-sub { margin-top: 16px; max-width: 34em; }

/* Waitlist form */
.join { margin-top: 28px; max-width: 520px; scroll-margin-top: 24px; }
.field-label { display: block; margin-bottom: 6px; font: 700 13px/20px var(--sans); }
.join-row { display: flex; flex-direction: column; gap: 8px; }

input[type="email"], input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--ink-muted);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/24px var(--sans);
}
input::placeholder { color: var(--ink-muted); opacity: 1; }
input[aria-invalid="true"] { border: 2px solid var(--ink); }

/* Honeypot: off-screen for people, still present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hint, .error { margin-top: 10px; font-size: 13px; line-height: 20px; }
.hint { font-weight: 700; }
.error {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--porchlight);
  color: var(--on-porchlight);
  font-weight: 700;
}
.hint:empty, .error:empty { display: none; }
.join .fine { margin-top: 10px; }

.joined {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.joined-title { font: 700 17px/24px var(--sans); }
.joined .small { margin-top: 4px; color: var(--ink-muted); }

/* Survey */
.survey {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.survey fieldset, .survey-field { margin-top: 20px; padding: 0; border: 0; min-width: 0; }
.survey legend, .survey .legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 700; }
.survey-field input { max-width: 160px; }
.survey .fine { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border: 1.5px solid var(--ink-muted);
  border-radius: 999px;
  line-height: 20px;
}
.chip input:checked + span {
  border-color: var(--action);
  background: var(--action);
  color: var(--on-action);
  font-weight: 700;
}
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.survey-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Phone mockup, drawn in CSS */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 348px;
  padding: 14px 16px 24px;
  border: 10px solid var(--frame);
  border-radius: 48px;
  background: var(--ground);
}
.phone-screen::before {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: var(--line);
}
.phone-title { margin-top: 4px; font: 400 24px/28px var(--serif); }
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: var(--brand);
  color: var(--on-brand);
}
.stat p { font-weight: 700; line-height: 22px; }
.stat-disc {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--porchlight);
  color: var(--on-porchlight);
  font: 700 18px/1 var(--sans);
}
.phone-card {
  margin-block: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.phone-card .card-title { margin-top: 6px; }
.phone-card .small { margin-top: 4px; }
.phone-card .pill { margin-top: 14px; }
.phone .fine { margin-top: 12px; text-align: center; }

/* How it works: a numbered sequence */
.steps {
  display: grid;
  gap: 32px;
  padding: 0;
  list-style: none;
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--porchlight);
  color: var(--on-porchlight);
  font: 700 17px/1 var(--sans);
}
.steps p { margin-top: 6px; }

/* Pre-Check band */
.band {
  margin-block: 24px;
  padding-block: 64px;
  background: var(--brand);
  color: var(--on-brand);
}
.band-grid { display: grid; gap: 24px; }
.band .fine { margin-top: 16px; color: var(--on-brand); }
.openings { display: block; width: 100%; max-width: 304px; height: auto; margin-bottom: 24px; }

/* Three cards */
.cards { display: grid; gap: 16px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.card p { margin-top: 6px; }

/* Reserve panel */
.panel {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}
.reserve { display: grid; gap: 24px; }
.reserve h2 + p { margin-top: 12px; max-width: 34em; }
.reserve-status { font-weight: 700; }
.reserve-status:empty { display: none; }
.reserve-action .fine { margin-top: 12px; }

/* FAQ */
.faq details { max-width: 760px; border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 12px;
  font: 700 17px/24px var(--sans);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 24px/24px var(--sans); color: var(--action); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { max-width: 38em; padding-bottom: 20px; }

/* Privacy and other plain text pages */
.page { padding-block: 32px 64px; }
.page > * { max-width: 720px; }
.page h1 + p { margin-top: 12px; }
.page > p + p { margin-top: 24px; }
.plain-list { margin-top: 24px; padding-left: 20px; }
.plain-list li + li { margin-top: 12px; }

@media (min-width: 560px) {
  .join-row { flex-direction: row; }
  .join-row input { flex: 1; min-width: 0; }
  .join-row .pill { flex: none; }
}

@media (min-width: 720px) {
  h1 { font-size: 44px; line-height: 48px; }
  .wrap { width: min(100% - 64px, 1080px); }
  .section { padding-block: 72px; }
  .site-header { padding-block: 24px; }
  .hero { padding-block: 40px 80px; }
  .band { padding-block: 88px; }
  .steps, .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel { padding: 40px; }
  .page { padding-block: 56px 96px; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 348px; gap: 72px; align-items: start; }
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: end; }
  .reserve { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
  .reserve-action { max-width: 300px; }
}
