/* Scout Check-In marketing site. Palette and backdrop follow the app (frontend/css/styles.css):
   a bright sky-to-meadow gradient with content on white cards. Always light, like the app. */

:root {
  color-scheme: light;

  --forest: #2c5f2d;
  --forest-hover: #3d7c3e;
  --tent: #f5a623;
  --tent-dark: #e0901a;

  --sky-top: #87ceeb;
  --sky-mid: #bfe3f2;
  --horizon: #e4f1ea;
  --meadow: #9cc994;
  --meadow-deep: #6b8e6f;

  --surface: #ffffff;
  --surface-soft: #f6faf5;
  --text: #1f2a1f;
  --muted: #4d5a4d;
  --border: #dfe8dd;
  --shadow: 0 10px 30px rgba(31, 60, 40, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background-color: var(--horizon);
  background-image: linear-gradient(180deg,
      var(--sky-top) 0%,
      var(--sky-mid) 30%,
      var(--horizon) 50%,
      var(--meadow) 75%,
      var(--meadow-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest-hover);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #173a18;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #173a18;
}

h3 {
  font-size: 1.2rem;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 6px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--forest-hover);
  color: #fff;
}

.btn-outline {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--surface);
  padding: 0.45em 1.1em;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--forest);
  color: #fff;
}

.btn-ghost {
  color: var(--forest);
  border-color: var(--surface);
  background: var(--surface);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--forest);
}

.btn-accent {
  background: var(--tent);
  color: #3a2500;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--tent-dark);
  color: #3a2500;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: #fff;
  color: var(--forest);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(31, 60, 40, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
}

.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--forest);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .header-inner > .btn {
    margin-left: auto;
  }
}

/* Hero: sits straight on the sky */

.hero {
  padding: 56px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}

.lead {
  font-size: 1.2rem;
  color: #2f3d30;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
}

.hero-note {
  color: #2f3d30;
  font-size: 0.95rem;
  margin: 0;
}

.hero-art {
  text-align: center;
}

.hero-art img {
  width: min(320px, 70vw);
  filter: drop-shadow(0 14px 28px rgba(31, 60, 40, 0.25));
}

.hero-short {
  padding-bottom: 24px;
}

.hero-short .lead {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .hero {
    padding: 28px 0 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    width: 160px;
  }
}

/* Sections: white cards floating on the backdrop, like the app's pages */

.section {
  padding: 20px 0;
}

.panel {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40em;
  margin: 0 0 28px;
}

.card,
.step,
.unit {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.prose p {
  max-width: 46em;
}

.prose .checks {
  margin-top: 20px;
}

/* How it works */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tent);
  color: #3a2500;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Features */

.feature-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card h3 {
  color: var(--forest);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--forest)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.checks li:last-child {
  margin-bottom: 0;
}

/* Events */

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

.unit {
  border-top: 5px solid var(--tent);
}

.unit p {
  margin: 0;
  color: var(--muted);
}

.also-for {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: #eaf4fb;
  color: #24485a;
}

/* Privacy */

.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Cost */

.cost {
  text-align: center;
}

.cost .section-lead,
.cost p {
  margin-left: auto;
  margin-right: auto;
  max-width: 40em;
}

.cost .section-lead {
  margin-bottom: 16px;
}

.cost p:last-of-type {
  color: var(--muted);
  margin-bottom: 0;
}

/* FAQ */

.faq details {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq details:last-child {
  margin-bottom: 0;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Final call to action */

.cta {
  background: var(--forest);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 48px 24px;
}

.cta h2 {
  color: #fff;
}

.cta .section-lead {
  color: rgba(255, 255, 255, 0.88);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.cta .hero-actions {
  justify-content: center;
}

/* Footer: on the meadow, so light text */

.site-footer {
  padding: 32px 0 40px;
  color: #fff;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(20, 40, 25, 0.45);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner nav a {
  color: #fff;
}

.disclaimer {
  flex-basis: 100%;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* 404 */

.not-found {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.not-found .panel {
  max-width: 560px;
  text-align: center;
}

.not-found .hero-actions {
  justify-content: center;
}

/* Narrow screens */

@media (max-width: 900px) {
  .unit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 12px 0;
  }

  .panel {
    padding: 24px 20px;
  }

  .steps,
  .feature-columns,
  .privacy,
  .unit-grid {
    grid-template-columns: 1fr;
  }

  .privacy {
    gap: 0;
  }
}
