/* See You at Camp — marketing site. Palette matches the app (Campregistration repo: client/src/styles/global.css). */
:root {
  --green-900: #143d2b;
  --green-800: #174d37;
  --green-700: #1b5e43;
  --green-600: #23744f;
  --green-100: #e3f2ea;
  --green-50: #f2f9f5;
  --sand-50: #faf8f4;
  --sand-100: #f3efe6;
  --ember: #d9822b;
  --ink: #22302a;
  --ink-soft: #5b6b63;
  --line: #dde5e0;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(20, 61, 43, 0.1), 0 10px 30px rgba(20, 61, 43, 0.08);
  --wrap: 1120px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.6rem; color: var(--green-900); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.6rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-ghost:hover { background: var(--green-50); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-50); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--green-900);
  text-decoration: none;
}
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--green-700); }
.header-cta { display: flex; gap: 0.6rem; align-items: center; }
.header-cta .signin { font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--ink); }
.header-cta .btn { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.95rem; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .nav, .header-cta .signin { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: none; border: 0; color: var(--green-900); cursor: pointer;
  }
  .site-header.open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 20px 1rem;
    gap: 0;
  }
  .site-header.open .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .site-header.open .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 479px) {
  .header-cta .btn { display: none; }
}
.nav .mobile-only { display: none; }
@media (max-width: 899px) { .site-header.open .nav .mobile-only { display: block; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--green-600); }
.hero .lede { font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1rem; }
.hero-note { font-size: 0.92rem; color: var(--ink-soft); }
.hero-scene {
  position: relative;
  margin-top: 56px;
  height: 140px;
}
.hero-scene svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
@media (min-width: 1024px) {
  .hero { padding-top: 88px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; }
}

/* ---------- Mock app windows ---------- */
.mock {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  text-align: left;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--sand-100);
  border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d0c4; display: block; }
.mock-bar .url {
  margin-left: 10px;
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  color: var(--ink-soft);
  font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-top {
  background: var(--green-700); color: #fff;
  padding: 9px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600;
}
.mock-top span { font-weight: 400; opacity: 0.85; font-size: 12px; }
.mock-body { padding: 14px; }
.mock h4 { margin: 0 0 10px; font-size: 14px; color: var(--green-900); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--green-50); border: 1px solid var(--line); color: var(--ink-soft); }
.chip.on { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.mtable { width: 100%; border-collapse: collapse; }
.mtable th { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mtable td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mtable tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.pill.ok { background: #e5f4ea; color: #1b6e3d; }
.pill.warn { background: #fdf3e0; color: #9a6b15; }
.pill.info { background: #e7f1f8; color: #1d5f86; }
.cap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cap > div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.cap b { display: block; font-size: 18px; color: var(--green-900); }
.bar { height: 6px; background: var(--green-100); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--green-600); }
.hero-mock { position: relative; }
.hero-mock .mock-phone {
  position: absolute;
  right: -64px; bottom: -72px;
  width: 190px;
  border-radius: 22px;
  border: 6px solid #22302a;
  box-shadow: var(--shadow);
  background: #fff;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 12px;
}
.mock-phone .mock-top { padding: 8px 10px; font-size: 12px; }
.mock-phone .pb { padding: 10px; }
.mock-phone .step { display: flex; gap: 4px; margin-bottom: 8px; }
.mock-phone .step i { flex: 1; height: 4px; border-radius: 2px; background: var(--green-100); }
.mock-phone .step i.done { background: var(--green-600); }
.mock-phone .opt { border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; margin-bottom: 6px; }
.mock-phone .opt.sel { border-color: var(--green-600); background: var(--green-50); }
.mock-phone .opt small { display: block; color: var(--ink-soft); font-size: 10.5px; }
.mock-phone .go { background: var(--green-700); color: #fff; border-radius: 8px; text-align: center; padding: 7px; font-weight: 600; margin-top: 4px; }
@media (max-width: 639px) {
  .hero-mock .mock-phone { display: none; }
  .hide-sm { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-green { background: var(--green-900); color: #e8f1ec; }
.band-green h2, .band-green h3 { color: #fff; }
.band-green .lede { color: #b9d2c4; }
.band-green .eyebrow { color: #8fd3ae; }

.trust { padding: 36px 0; }
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
}
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust svg { width: 20px; height: 20px; color: var(--green-600); flex: none; }

/* audience tabs */
.split { display: grid; gap: 48px; align-items: center; margin-top: 56px; }
.split + .split { margin-top: 96px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
}
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.8rem; }
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: 0.3em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323744f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.ticks b { color: var(--green-900); }

/* feature grid */
.grid { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.band-green .card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.band-green .card p { color: #b9d2c4; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700);
  margin-bottom: 14px;
}
.band-green .card .ico { background: rgba(143, 211, 174, 0.14); color: #8fd3ae; }
.card .ico svg { width: 22px; height: 22px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* till mock */
.till { display: grid; grid-template-columns: 1fr 150px; min-height: 250px; }
.till .tiles { padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.till .tile { border-radius: 8px; padding: 10px 8px; color: #fff; font-weight: 600; font-size: 12px; min-height: 58px; display: flex; flex-direction: column; justify-content: space-between; }
.till .tile small { font-weight: 400; opacity: 0.9; }
.till .cart { border-left: 1px solid var(--line); padding: 12px; background: var(--sand-50); display: flex; flex-direction: column; }
.till .cart .line { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.till .cart .tot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; display: flex; justify-content: space-between; }
.till .cart .go { background: var(--green-700); color: #fff; border-radius: 8px; text-align: center; padding: 8px; font-weight: 600; margin-top: 8px; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { list-style: none; position: relative; padding-top: 52px; }
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  background: var(--green-700); color: #fff;
}
.steps ol { padding: 0; margin: 0; }
.steps p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  color: var(--green-900);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--green-600);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-soft); padding-bottom: 6px; }

/* CTA */
.cta {
  background: var(--green-700);
  color: #fff;
  border-radius: 24px;
  padding: 56px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { color: #d4e8dc; max-width: 36rem; margin: 0 auto 1.6rem; font-size: 1.1rem; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }
.cta .btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* footer */
.site-footer { padding: 48px 0 40px; color: var(--ink-soft); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--green-700); }

/* simple content pages */
.page { padding: 64px 0 88px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.page p, .page li { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
