/* FlockGuard coming-soon site. Palette taken from the app icon:
   barn tan, comb red, beak yolk, feather white. No web fonts, so the
   page makes no third-party requests (see privacy/). */

:root {
  --bg: #fbf7f1;
  --bg-alt: #f3ebdf;
  --panel: #ffffff;
  --border: #e6d9c6;
  --text: #2b2118;
  --heading: #1c140d;
  --muted: #6b5a48;
  --tan: #c79a6c;
  --tan-deep: #8a6038;
  --red: #c8322d;
  --red-hover: #a82621;
  --yolk: #f1b13b;
  --yolk-soft: #fdf0d2;
  --green: #3f7d4e;
  --green-soft: #e3f1e6;
  --amber-soft: #fbe9c8;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 8px 24px -12px rgba(60, 40, 20, 0.18);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120d;
    --bg-alt: #201911;
    --panel: #251d15;
    --border: #3a2e22;
    --text: #eadfd2;
    --heading: #fbf4ea;
    --muted: #b3a18d;
    --tan-deep: #d9b38a;
    --red: #e0544e;
    --red-hover: #ea6d67;
    --yolk-soft: #3a2c12;
    --green: #7cc28e;
    --green-soft: #1d3324;
    --amber-soft: #3a2c12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tan-deep); text-underline-offset: 3px; }
a:hover { color: var(--red); }

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--panel);
  padding: 8px 12px;
  border-radius: 8px;
}

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }

.header-cta {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--red);
  border: 1.5px solid currentColor;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover { color: var(--red-hover); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0 80px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tan-deep);
  background: var(--yolk-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

/* Waitlist form */
.waitlist {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 560px;
}

.waitlist-row {
  display: flex;
  gap: 10px;
}

.waitlist label,
.waitlist legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

input[type="email"],
select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
}
input[type="email"]:focus,
select:focus { border-color: var(--tan); outline: none; box-shadow: 0 0 0 3px var(--yolk-soft); }

.button {
  font: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  color: var(--on-accent);
  background: var(--red);
  border-radius: 12px;
  padding: 12px 22px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.button:hover { background: var(--red-hover); }
.button:disabled { opacity: 0.6; cursor: progress; }

.waitlist-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.waitlist-extra label { display: block; margin-bottom: 4px; font-weight: 500; color: var(--muted); }

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.form-status {
  margin: 12px 0 0;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: var(--red); }

/* Hero visual: a phone mock-up of the dashboard */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 8% 0;
  background: radial-gradient(closest-side, var(--yolk-soft), transparent);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(330px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow), 0 30px 60px -30px rgba(60, 40, 20, 0.45);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.phone-top strong { color: var(--heading); font-size: 1rem; }

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--green);
}
.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.mock-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.mock-card h4 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.bird {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.pill-normal { background: var(--green-soft); color: var(--green); }
.pill-high { background: var(--yolk-soft); color: var(--tan-deep); }
.pill-low { background: var(--amber-soft); color: var(--red); }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
}
.bars span {
  flex: 1;
  background: var(--tan);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

.alert-card {
  border-left: 4px solid var(--yolk);
}
.alert-card p { margin: 0; }
.alert-card small { color: var(--muted); }

.mock-caption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--yolk-soft);
  color: var(--tan-deep);
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--on-accent);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Honest-notes list */
.notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.notes li {
  padding-left: 30px;
  position: relative;
}
.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--tan);
}
.notes strong { color: var(--heading); }

/* FAQ */
.faq {
  max-width: 760px;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--tan-deep);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Closing call to action */
.closing {
  text-align: center;
}
.closing .waitlist { margin: 28px auto 0; text-align: left; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Prose pages (privacy, 404) */
.prose {
  max-width: 720px;
  padding: 40px 0 80px;
}
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { color: var(--muted); }

/* Responsive */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding: 56px 0; }
  .waitlist-row { flex-direction: column; }
  .waitlist-extra { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .header-cta { padding: 7px 12px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
