/* AI School — house design system (DESIGN-SYSTEM.md tokens) + school styles.
   Only --accent / brand mark vary per sub-brand. School = playful orange. */

:root {
  --paper: #f8fafc;
  --panel: #ffffff;
  --panel-alt: #f1f5f9;
  --ink: #1e293b;
  --ink-strong: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: #fff7ed;

  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px -1px rgba(15,23,42,0.06);
  --shadow-lg: 0 10px 25px -8px rgba(15,23,42,0.15), 0 4px 10px -4px rgba(15,23,42,0.08);

  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  font-size: 16px;
}
:root[data-text="lg"] { font-size: 18px; }
:root[data-text="sm"] { font-size: 14px; }

:root[data-theme="dark"] {
  --paper: #0f172a;
  --panel: #1e293b;
  --panel-alt: #0f172a;
  --ink: #f1f5f9;
  --ink-strong: #ffffff;
  --muted: #94a3b8;
  --line: #334155;
  --line-strong: #475569;
  --accent: #fb923c;
  --accent-hover: #fdba74;
  --accent-soft: #2a1c0e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink-strong); line-height: 1.12; letter-spacing: -0.02em; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ==== shared site navbar (OFO "stores" pattern) =========================== */
header.site { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.site > .container { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 40px; height: 40px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink-strong); letter-spacing: -0.01em; }
.brand-tag { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
nav.site-links { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
nav.site-links > a { color: var(--muted); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
nav.site-links > a:hover { color: var(--ink-strong); }
.header-right { display: flex; align-items: center; gap: 0.4rem; }
.theme-toggle, .icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); cursor: pointer; font-size: 0.98rem; font-family: inherit; }
.theme-toggle:hover, .icon-btn:hover { border-color: var(--line-strong); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; border: 1px solid transparent; white-space: nowrap; }
.nav-cta:hover { color: #fff; background: var(--accent-hover); transform: translateY(-1px); }
.nav-toggle { display: none; width: 40px; height: 40px; margin-left: auto; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); cursor: pointer; font-size: 1.25rem; }
.nav-close { display: none; }
.nav-overlay { position: fixed; inset: 0; background: rgba(20,10,0,0.4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-tools { display: none; }

@media (max-width: 720px) {
  .brand-tag { display: none; }
  .header-right { display: none; }
  .nav-toggle { display: grid; }
  nav.site-links {
    position: fixed; top: 0; right: 0; width: min(80vw, 300px); height: 100dvh;
    margin: 0; flex-direction: column; align-items: stretch; gap: 0.1rem;
    background: var(--panel); border-left: 1px solid var(--line);
    padding: 1rem 1.2rem 2rem; transform: translateX(100%);
    transition: transform .22s ease; z-index: 60; box-shadow: -8px 0 28px rgba(0,0,0,0.22);
    overflow-y: auto;
  }
  nav.site-links.open { transform: translateX(0); }
  nav.site-links > a { width: 100%; padding: 0.75rem 0; font-size: 1.05rem; font-weight: 700; color: var(--ink-strong); border-bottom: 1px solid var(--line); }
  .nav-close { display: inline-flex; align-self: flex-end; background: none; border: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0.2rem 0.4rem; }
  .drawer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.1rem; }
  .drawer-tools .nav-cta { flex: 1 1 100%; padding: 0.7rem 1rem; font-size: 0.95rem; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem; border-radius: var(--radius); font-weight: 700; font-size: 0.95rem;
  background: var(--accent); color: #fff; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s; font-family: var(--font-body);
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ink-strong); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--panel-alt); color: var(--ink-strong); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.pill {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-hover);
  font-weight: 700; font-size: 0.8rem;
}

/* ---- hero ---- */
.hero { padding: 4.5rem 0 3rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin: 1.1rem 0 1.8rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.hero-meta strong { color: var(--ink-strong); font-family: var(--font-display); }

/* ---- sections ---- */
section { padding: 3rem 0; }
.section-head { margin-bottom: 1.8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 0.5rem; max-width: 60ch; }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.6rem;
}
.card h3 { font-size: 1.25rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  background: var(--panel-alt); border: 1px solid var(--line);
  padding: 0.2rem 0.55rem; border-radius: var(--radius-sm);
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card .price { font-family: var(--font-display); font-weight: 800; color: var(--ink-strong); font-size: 1.1rem; }
.card .spots { font-size: 0.82rem; font-weight: 700; }
.spots.low { color: #dc2626; }
.spots.ok { color: #16a34a; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.4rem; }

.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; }
.step .num { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 1.4rem; }

/* ---- forms ---- */
.form-wrap { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink-strong); }
.field .hint { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
input, select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; font-size: 1rem; font-family: var(--font-body);
  color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: auto; margin-top: 0.25rem; }
.check label { font-weight: 500; color: var(--ink); }

.note { padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.92rem; font-weight: 600; }
.note.ok { background: #dcfce7; color: #166534; }
.note.err { background: #fee2e2; color: #991b1b; }
.note.info { background: var(--accent-soft); color: var(--accent-hover); }
:root[data-theme="dark"] .note.ok { background: #052e16; color: #86efac; }
:root[data-theme="dark"] .note.err { background: #450a0a; color: #fca5a5; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: 0.88rem; margin-top: 2rem; }
footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---- camp prep page ---- */
.callout {
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-lg); padding: 1.1rem 1.4rem; color: var(--accent-hover);
  font-weight: 600; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.callout .btn { margin-left: auto; }
.setup { display: grid; gap: 1rem; margin-top: 1.4rem; }
.setup-item {
  display: flex; gap: 1.1rem; align-items: flex-start; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow);
}
.setup-item .badge {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  color: #fff; font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; font-size: 1.15rem;
}
.setup-item h3 { font-size: 1.18rem; margin-bottom: 0.35rem; }
.setup-item p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.7rem; }
.setup-item .meta-line { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.safety {
  background: var(--panel-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--muted); margin-top: 1.4rem;
}
.safety strong { color: var(--ink-strong); }

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout .btn { margin-left: 0; width: 100%; }
  .card-foot { flex-wrap: wrap; }
  .hero { padding: 3.2rem 0 2.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
