/* Clubroll — dark theme, ported from the wrestling-club.html prototype.
   Shared variables + base; then component blocks for landing/auth/app. */

:root {
  --bg: #0B0D10;
  --panel: #14171C;
  --panel-2: #1C2028;
  --border: #262A33;
  --text: #F4F6FA;
  --muted: #838994;
  --accent: #C6FF3D;
  --accent-ink: #0B0D10;
  --accent-2: #FFB13D;
  --kids: #3DE0FF;
  --adults: #FF9A3D;
  --good: #2ecc71;
  --bad: #ff6b6b;
  --soft: #1C2028;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* --font-scale defaults to 1; app.js reads localStorage.fontScale and
     overrides on load so the user's text-size pick sticks. */
  font-size: calc(15px * var(--font-scale, 1));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

code {
  background: var(--soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ================ Site header / footer ================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand .logo {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); font-weight: 800; font-size: 14px;
}
.brand:hover { color: var(--text); }

.top-nav {
  display: flex; align-items: center; gap: 14px;
}
.top-nav a { color: var(--muted); font-size: 14px; }
.top-nav a:hover { color: var(--text); }
.inline-form { display: inline; margin: 0; padding: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-main { min-height: calc(100vh - 140px); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 22px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-links .sep { opacity: 0.4; margin: 0 4px; }

/* ================ Buttons ================ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: filter 0.12s, background 0.12s;
  text-align: center;
}
.btn:hover { filter: brightness(0.95); color: var(--accent-ink); }
.btn.large { padding: 12px 24px; font-size: 15px; }
.btn.small { padding: 5px 12px; font-size: 12px; }
.btn.block { display: block; width: 100%; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.ghost:hover { background: var(--panel-2); filter: none; color: var(--text); }

/* ================ Landing ================ */
.hero {
  padding: 80px 32px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(198,255,61,0.08), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; }
.hero h1 {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.0;
  margin: 0 0 20px 0;
  letter-spacing: -2px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--muted); margin: 0 0 28px; max-width: 480px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-proof {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.hero-proof span::before { content: '✓ '; color: var(--accent); font-weight: 700; }
/* Floating preview card on the right side of hero */
.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transform: rotate(-1.5deg) translateY(-8px);
}
.hero-card-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-card-title { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.hero-card-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hero-card-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.hero-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.hero-card-avatar {
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--panel-2);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.hero-card-name { flex: 1; font-size: 12px; }
.hero-card-weeks { font-size: 11px; color: var(--muted); }
.hero-card-check {
  width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800;
  flex-shrink: 0;
}
.hero-card-check.done { background: var(--accent); color: var(--accent-ink); }
.hero-card-check.pending { background: transparent; border: 1.5px solid var(--border); }
/* Floating stat badge */
.hero-stat-badge {
  position: absolute;
  bottom: -20px; right: -10px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  transform: rotate(3deg);
}
.hero-stat-badge .badge-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; opacity: 0.8; text-transform: uppercase; }
.hero-stat-badge .badge-value { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; margin-top: 2px; }
.hero-stat-badge .badge-sub { font-size: 11px; opacity: 0.75; margin-top: 2px; }

.features { padding: 40px 22px; max-width: 1100px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.feature-card h3 { margin: 10px 0 8px; font-size: 17px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 14px; }
.feature-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 14px;
}
.feature-icon.kids { background: var(--kids); color: var(--bg); }
.feature-icon.adults { background: var(--adults); color: var(--bg); }
.feature-icon.accent { background: var(--accent); color: var(--accent-ink); }

.cta-band {
  padding: 60px 32px;
  margin: 40px 32px 0;
}
.cta-band-inner {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 18px;
  padding: 50px 48px;
  text-align: center;
}
.cta-band h2 { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; margin: 0 0 10px; color: var(--accent-ink); }
.cta-band p { opacity: 0.8; margin: 0 0 26px; font-size: 16px; }
.cta-band .btn { background: var(--accent-ink); color: var(--accent); border: none; }
.cta-band .btn:hover { color: var(--accent); }
.cta-band .btn.ghost { background: transparent; color: var(--accent-ink); border: 1.5px solid var(--accent-ink); }
.cta-band .btn.ghost:hover { background: rgba(0,0,0,0.1); color: var(--accent-ink); }

/* ================ Pricing ================ */
.pricing { padding: 60px 22px; max-width: 520px; margin: 0 auto; text-align: center; }
.pricing h1 { font-size: 34px; margin: 0 0 6px; }
.pricing-card {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}
.price-head { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.price-head .price { font-size: 56px; font-weight: 800; letter-spacing: -1px; }
.price-head .per { color: var(--muted); font-size: 16px; }
.price-list {
  text-align: left;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}
.price-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: "✓";
  color: var(--good);
  font-weight: 700;
  margin-right: 10px;
}

/* ================ Auth pages ================ */
.auth { padding: 40px 22px; display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 140px); }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
}
.auth-card.wide { max-width: 560px; }
.auth-card.center { text-align: center; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; }
.auth-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

form.stacked label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 4px;
  font-weight: 500;
}
form.stacked input {
  width: 100%;
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
}
form.stacked input:focus { outline: none; border-color: var(--accent); }
form.stacked button { margin-top: 18px; }

.alert {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin: 10px 0;
}
.alert.error { background: rgba(255, 107, 107, 0.15); color: var(--bad); }
.alert.success { background: rgba(46, 204, 113, 0.15); color: var(--good); }

/* ================ App shell ================ */
.app-shell { max-width: 1100px; margin: 0 auto; padding: 28px 22px; }
.app-welcome { margin-bottom: 22px; }
.app-welcome h1 { margin: 0 0 4px; font-size: 24px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.stat .label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat .value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat.accent { border-top: 3px solid var(--accent); }
.stat.kids { border-top: 3px solid var(--kids); }
.stat.adults { border-top: 3px solid var(--adults); }
.stat.bal { border-top: 3px solid var(--accent-2); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.card h2 { margin: 0 0 10px; font-size: 16px; }

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.placeholder {
  background: var(--soft);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
}
.placeholder h3 { margin: 0 0 6px; font-size: 14px; }
.placeholder p { margin: 0; font-size: 12px; color: var(--muted); }

.join-code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 2px;
}

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(154, 163, 178, 0.15);
  color: var(--muted);
}
.pill.warn { background: rgba(255, 183, 3, 0.18); color: var(--accent-2); }
.pill.ok { background: rgba(46, 204, 113, 0.15); color: var(--good); }

.club-choice { margin: 10px 0; }
.club-choice-btn {
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}
.club-choice-btn:hover { border-color: var(--accent); }

/* ================ Phase 1b: page head, tables, forms, kiosk ================ */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head h1 { margin: 0 0 4px 0; }
.page-actions { display: flex; gap: 10px; align-items: center; }

.top-nav a.on { color: var(--accent); }

.filter-row { margin: 12px 0; }
.filter-bar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filter-bar select, .filter-bar input {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th { color: var(--muted); font-weight: 500; font-size: 13px; }
.data-table tr.dim { opacity: 0.5; }
.data-table td.right, .data-table th.right { text-align: right; }
.data-table tfoot td { border-top: 2px solid var(--border); border-bottom: none; padding-top: 14px; }

.row-actions a { font-size: 13px; color: var(--muted); }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
}
.pill.kids { background: rgba(76, 201, 240, 0.15); border-color: var(--kids); color: var(--kids); }
.pill.adults { background: rgba(247, 127, 0, 0.15); border-color: var(--adults); color: var(--adults); }
.pill.ok { background: rgba(46, 204, 113, 0.15); border-color: var(--good); color: var(--good); }
.pill.warn { background: rgba(255, 107, 107, 0.15); border-color: var(--bad); color: var(--bad); }

.stack-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}
.field textarea { resize: vertical; min-height: 70px; }
.field .err { color: var(--bad); font-size: 12px; }
.field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.field-set {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}
.field-set legend { padding: 0 6px; color: var(--muted); font-size: 13px; }

.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.form-actions.sticky {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding: 16px 0;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }

.detail-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 0;
}
.detail-grid dt { color: var(--muted); font-size: 13px; }
.detail-grid dd { margin: 0; }

.empty { text-align: center; padding: 40px 20px; }
.empty h2 { margin-top: 0; }

.placeholder.link { cursor: pointer; text-decoration: none; display: block; }
.placeholder.link:hover { border-color: var(--accent); }
.placeholder.link h3 { color: var(--text); }

.banner {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.banner.ok { background: rgba(46, 204, 113, 0.1); border-color: var(--good); color: var(--good); }

/* Kiosk grid of tap tiles */
.kiosk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kiosk-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  user-select: none;
  min-height: 76px;
  justify-content: center;
}
.kiosk-tile:hover { border-color: var(--muted); }
.kiosk-tile input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.kiosk-tile .tile-name { font-weight: 600; }
.kiosk-tile .tile-meta { font-size: 12px; color: var(--muted); }
.kiosk-tile.on {
  background: rgba(46, 204, 113, 0.15);
  border-color: var(--good);
}
.kiosk-tile:has(input:checked) {
  background: rgba(46, 204, 113, 0.15);
  border-color: var(--good);
}

.small { font-size: 12px; }

.inline-record { position: relative; display: inline-block; }
.inline-record > summary {
  list-style: none;
  cursor: pointer;
}
.inline-record > summary::-webkit-details-marker { display: none; }
.inline-record[open] > .stack-form.mini {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  width: 260px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.stack-form.mini label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.stack-form.mini input, .stack-form.mini select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 13px;
}

/* ================ Pricing / plans ================ */
.pricing-section { max-width: 1120px; margin: 0 auto; padding: 60px 24px 80px; }
.pricing-section .section-head { margin-bottom: 48px; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.plan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.plan-card.featured { border-color: var(--accent); background: rgba(198,255,61,0.04); }
.plan-badge {
  position: absolute;
  top: -11px; right: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
}
.plan-card h2 { margin: 0; font-size: 22px; }
.plan-card .small { font-size: 13px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .amt { font-size: 32px; font-weight: 700; }
.plan-price .per { color: var(--muted); font-size: 14px; }
.plan-card ul.price-list { flex: 1; padding-left: 18px; }
.plan-card ul.price-list li { font-size: 14px; margin-bottom: 6px; color: var(--text); }
.btn.block { display: block; text-align: center; }

.usage-grid { display: flex; flex-direction: column; gap: 10px; }
.usage-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.usage-label { color: var(--muted); }
.usage-bar { height: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.usage-fill { height: 100%; background: var(--good); }
.usage-fill.warn { background: var(--accent-2); }
.usage-count { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 110px; text-align: right; }

/* ================ Landing extras ================ */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-note { margin-top: 12px; font-size: 13px; }
.value-strip {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}
.value-strip-inner div { display: flex; flex-direction: column; gap: 4px; }
.value-strip-inner strong { font-size: 20px; color: var(--text); }
.value-strip-inner span { color: var(--muted); font-size: 13px; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; padding: 0 24px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin: 0 0 10px 0; }
.how-it-works { max-width: 1100px; margin: 0 auto; padding: 56px 24px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px 0; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ================ Legal / feedback pages ================ */
.legal-page { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-inner h1 { font-size: 30px; margin-top: 0; }
.legal-inner h2 { font-size: 18px; margin-top: 28px; }
.legal-inner p, .legal-inner li { color: var(--text); font-size: 15px; line-height: 1.6; }
.legal-inner ul { padding-left: 22px; }
.legal-inner .muted { color: var(--muted); }
.req { color: var(--accent); font-weight: 700; }
small.muted { display: block; margin-top: 4px; font-size: 12px; }

/* ================ Report-a-bug header link ================ */
.report-link {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
}
.report-link:hover { color: var(--text); border-color: var(--accent); }

/* ================ Shared bits ================ */
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-size: 14px; }
.flash.success { background: rgba(46, 204, 113, 0.14); border: 1px solid rgba(46, 204, 113, 0.5); color: var(--good); }
.flash.error { background: rgba(230, 57, 70, 0.12); border: 1px solid rgba(230, 57, 70, 0.5); color: var(--bad); }
.flash.info { background: rgba(76, 201, 240, 0.14); border: 1px solid rgba(76, 201, 240, 0.5); color: var(--kids); }

.std-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.std-table th, .std-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
.std-table th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.std-table tr:last-child td { border-bottom: none; }

.legal-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-bottom: 10px;
}

.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checkbox input { margin-top: 3px; }

/* ================ Calendar ================ */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--border);
  gap: 1px;
}
.cal-header {
  background: var(--panel);
  padding: 8px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-align: center;
}
.cal-cell {
  background: var(--panel);
  min-height: 96px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-cell.out { background: var(--bg); opacity: 0.55; }
.cal-day { font-size: 12px; color: var(--muted); font-weight: 500; }
.cal-slot {
  font-size: 12px;
  border-radius: 4px;
  padding: 3px 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(76, 201, 240, 0.12);
  border-left: 3px solid var(--kids);
  color: var(--text);
}
.cal-slot.adults { background: rgba(247, 127, 0, 0.12); border-left-color: var(--adults); }
.cal-slot .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-slot .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-slot a.n { color: var(--text); text-decoration: none; }
.cal-slot a.n:hover { text-decoration: underline; }

/* ================ Blog body ================ */
.blog-body { font-size: 16px; line-height: 1.7; }
.blog-body h2 { font-size: 22px; margin: 32px 0 10px; }
.blog-body h3 { font-size: 18px; margin: 24px 0 8px; }
.blog-body p, .blog-body li { color: var(--text); }
.blog-body a { color: var(--accent); text-decoration: underline; }
.blog-body ul, .blog-body ol { padding-left: 24px; }
.blog-body table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.blog-body th, .blog-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.blog-body th { background: var(--panel-2); color: var(--muted); font-weight: 500; }
.blog-body code { background: var(--panel-2); padding: 1px 6px; border-radius: 3px; font-size: 13px; }
.blog-body strong { color: var(--text); }
.blog-body hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.blog-body blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--muted); margin: 16px 0; }

/* ================ Slot add form ================ */
.slot-form { margin-top: 18px; }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}
.slot-grid .field { margin: 0; }
.slot-grid label { font-size: 13px; color: var(--muted); }
.slot-grid input, .slot-grid select {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
@media (max-width: 820px) {
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================ Messages ================ */
.msg {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 10px;
}
.msg-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.msg-body { margin-top: 8px; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }

/* ================ Invite page ================ */
.invite-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: flex-start;
}
.qr-wrap { text-align: center; }
.qr-wrap svg { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 6px; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.template-block { margin-bottom: 20px; }
.template-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}
.template-block textarea,
.template-block input[type=text] {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  box-sizing: border-box;
}

/* ================ Responsive ================ */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner > div:last-child { display: none; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 38px; letter-spacing: -1.2px; }
  .hero-sub { font-size: 16px; }
  .section-head h2 { font-size: 22px; }
  .site-header { padding: 10px 0; }
  .site-header-inner { flex-wrap: wrap; gap: 8px; }
  .brand { font-size: 15px; }
  .top-nav { flex-wrap: wrap; gap: 10px; width: 100%; justify-content: flex-start; }
  .top-nav a { padding: 4px 0; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-actions { flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid dt { margin-top: 8px; }
  .invite-grid { grid-template-columns: 1fr; }
  .app-shell { padding: 16px 14px; }
  .card { padding: 16px 14px; }

  .steps { grid-template-columns: 1fr; }
  .value-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px 14px; }
  .value-strip-inner strong { font-size: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat .value { font-size: 22px; }

  .btn.large { width: 100%; text-align: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }

  /* Tables scroll horizontally on small screens instead of squishing. */
  .std-table, .data-table { display: block; overflow-x: auto; white-space: nowrap; }

  .slot-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr; padding-top: 14px; }
  .plan-card.featured { order: -1; }
  .cal-grid { font-size: 11px; }
  .cal-cell { min-height: 64px; padding: 4px 5px; }
  .cal-slot .n { font-size: 11px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .stat-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: 1fr; }
}

/* ================ Today's schedule ================ */
.today-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  padding-bottom: 80px;
}
.today-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
}
.today-date-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.today-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 2px 0 0;
}
.today-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 0;
}
.today-brand { line-height: 1; }
.today-strip-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px 4px;
  scrollbar-width: none;
}
.today-strip-wrap::-webkit-scrollbar { display: none; }
.today-strip {
  display: flex;
  gap: 6px;
  padding: 2px 0;
  width: max-content;
}
.today-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}
.today-day.active {
  background: var(--accent);
  border-color: var(--accent);
}
.today-day-label {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  opacity: 0.75;
  color: var(--muted);
}
.today-day.active .today-day-label { color: var(--accent-ink); opacity: 0.8; }
.today-day-num {
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
  color: var(--text);
}
.today-day.active .today-day-num { color: var(--accent-ink); }
.today-section-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 20px 8px;
}
.today-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.today-cards { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.today-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.12s;
}
.today-card:hover { border-color: var(--accent); }
.today-card:active { background: var(--panel-2); }
.today-card-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 52px;
  padding-top: 2px;
}
.today-card-hhmm {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1;
}
.today-card-dur {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.today-card-body { flex: 1; min-width: 0; }
.today-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.today-card-name {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-card-sub {
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
  margin-bottom: 8px;
}
.today-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.today-chip.active-chip { background: var(--accent); color: var(--accent-ink); }
.today-chip.full-chip   { background: var(--accent-2); color: var(--bg); }
.today-chip.neutral-chip { background: var(--panel-2); color: var(--muted); }
.today-fill-bar {
  height: 4px;
  background: var(--panel-2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.today-fill-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}
.today-fill-label {
  font-size: 11px;
  color: var(--muted);
}
.today-card-arrow {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: var(--muted);
  padding-left: 4px;
}

/* ================ Mobile check-in (kiosk) ================ */
.checkin-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  padding-bottom: 80px; /* room for mobile tab bar */
}
.checkin-header {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.checkin-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.checkin-back {
  font-size: 22px;
  color: var(--text);
  line-height: 1;
  padding: 4px 8px 4px 0;
}
.checkin-more {
  font-size: 18px;
  color: var(--muted);
  padding: 4px;
}
.checkin-live-chip {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}
.checkin-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 8px 0 4px;
}
.checkin-meta {
  font-size: 13px;
  color: var(--muted);
  text-transform: capitalize;
}
.checkin-counts {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.checkin-count {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.checkin-count-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
.checkin-count-val.accent { color: var(--accent); }
.checkin-count-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 4px;
}
.checkin-date-picker {
  border-bottom: 1px solid var(--border);
}
.checkin-date-picker summary {
  padding: 11px 20px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.checkin-date-picker summary::-webkit-details-marker { display: none; }
.checkin-register-label {
  padding: 14px 20px 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkin-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}
.checkin-register { padding: 0 10px; }
.checkin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.checkin-row:active { background: var(--panel-2); }
.checkin-row.present { background: rgba(198,255,61,0.08); }
.checkin-avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--panel-2);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  transition: background 0.1s;
}
.checkin-row.present .checkin-avatar {
  background: rgba(198,255,61,0.15);
}
.checkin-info { flex: 1; min-width: 0; }
.checkin-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checkin-streak {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.checkin-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.checkin-badge.first { background: var(--accent-2); color: var(--bg); }
.checkin-tick {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: transparent;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
  color: var(--accent-ink);
}
.checkin-tick.done {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---- Trust / logo strip ---- */
.trust-strip {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip-inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}
.trust-strip-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.trust-strip-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.55;
}
.trust-strip-logos span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--muted);
}

/* ---- Quote / testimonial ---- */
.quote-section {
  padding: 60px 32px;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.quote-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.4;
  margin: 0 0 22px;
}
.quote-text em { font-style: normal; color: var(--accent); }
.quote-attr {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.quote-avatar {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px;
}
.quote-name { font-size: 13px; color: var(--muted); }

/* ---- Auth split-screen ---- */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
}
.auth-split-form {
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
}
.auth-split-form h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 6px;
}
.auth-split-form p.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 28px;
}
.auth-split-panel {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-split-panel .panel-headline {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.08;
  margin-bottom: 18px;
}
.auth-split-panel .panel-sub {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 400px;
}
.auth-split-panel .panel-card {
  margin-top: 36px;
  background: var(--bg);
  color: var(--text);
  border-radius: 14px;
  padding: 18px;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-split-panel .panel-card-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.8px;
  font-weight: 700;
  text-transform: uppercase;
}
.auth-split-panel .panel-card-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 4px;
}
.auth-split-panel .panel-footer {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 40px;
}
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-split-panel { display: none; }
  .auth-split-form { padding: 32px 24px; }
}

/* ---- Password show/hide + icon-inside-input wrapper ---- */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon-wrap input {
  flex: 1;
  padding-right: 40px;
}
.input-icon-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
}
.input-icon-btn:hover { color: var(--text); }

/* ---- Referral code collapsible ---- */
.referral-toggle {
  margin-top: 4px;
}
.referral-toggle summary {
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.referral-toggle summary::-webkit-details-marker { display: none; }
.referral-toggle summary::before {
  content: '+';
  font-weight: 700;
  transition: transform 0.15s;
  display: inline-block;
}
.referral-toggle[open] summary::before { content: '−'; }

/* ---- Pricing: featured card needs accent-ink text on badge ---- */
/* -------- Stat cards that link -------- */
.stat-link {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.stat-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.stat-link:focus-visible { outline: 2px solid var(--accent, #2a9d8f); outline-offset: 2px; }

/* -------- Dashboard: recent payments feed -------- */
.dash-feed { list-style: none; padding: 0; margin: 0; }
.dash-feed li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.dash-feed .feed-amount { font-weight: 700; min-width: 58px; color: var(--good); }
.dash-feed .feed-who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-feed .feed-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.feed-method { font-size: 11px; background: var(--panel-2); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }

/* -------- Dashboard: today's sessions -------- */
.today-sessions { display: flex; flex-direction: column; gap: 10px; }
.today-session { display: flex; align-items: center; gap: 14px; }
.today-session .sess-time { font-size: 20px; font-weight: 700; min-width: 52px; font-variant-numeric: tabular-nums; }
.today-session .sess-info { flex: 1; }
.today-session .sess-checkin { font-size: 12px; color: var(--muted); }

@media (max-width: 768px) {
  /* On mobile, today's sessions floats above the stat grid */
  .app-shell { display: flex; flex-direction: column; }
  .dash-today-card { order: -1; }
}

/* -------- Calendar: public-holiday cells -------- */
.cal-cell.holiday {
  background: rgba(231, 111, 81, 0.08);
}
.cal-cell.holiday .cal-day {
  color: #c94a2e;
  font-weight: 600;
}
.cal-holiday {
  font-size: 10px;
  color: #c94a2e;
  margin-top: 2px;
  padding: 1px 4px;
  background: rgba(231, 111, 81, 0.12);
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------- Mobile polish (phones) -------- */
@media (max-width: 720px) {
  /* Top nav scrolls horizontally instead of wrapping/overflowing */
  .top-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding-bottom: 4px; }
  .top-nav a { white-space: nowrap; }

  /* Page head stacks vertically */
  .page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-actions { flex-wrap: wrap; gap: 6px; }

  /* Bigger tap targets */
  .btn, input[type="text"], input[type="number"], input[type="email"],
  input[type="password"], input[type="date"], input[type="time"],
  input[type="month"], select, textarea { min-height: 42px; }
  .btn.small { min-height: 36px; }

  /* Field rows collapse */
  .field-row { display: flex; flex-direction: column; gap: 10px; }
}

/* -------- Public content pages (about, faq, help) -------- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.help-card { display: block; padding: 20px 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: border-color .15s; }
.help-card:hover { border-color: var(--accent); }
.help-card h2 { font-size: 16px; margin: 0 0 8px; color: var(--text); font-weight: 600; }
.help-card p { font-size: 14px; color: var(--muted); margin: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary { cursor: pointer; font-size: 16px; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 0 14px; margin: 0; font-size: 15px; }
/* Demo type cards — feature-card used as a submit button */
.demo-type-btn { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; cursor: pointer; text-align: left; width: 100%; display: flex; flex-direction: column; gap: 0; transition: border-color .15s, box-shadow .15s; color: inherit; font-family: inherit; }
.demo-type-btn:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(198,255,61,0.12); }
.demo-type-btn:hover .demo-type-cta { filter: brightness(1.05); }
.demo-type-btn h3 { margin: 10px 0 8px; font-size: 17px; color: var(--text); }
.demo-type-btn p { color: var(--muted); margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
.demo-type-list { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.demo-type-list li { font-size: 13px; color: var(--muted); padding-left: 18px; position: relative; }
.demo-type-list li::before { content: '✓'; position: absolute; left: 0; color: var(--kids); font-size: 12px; }
.demo-type-cta { display: block; margin-top: auto; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; border-radius: 999px; text-align: center; transition: filter .15s; }
/* Share bar (interest lists) */
.share-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; }
.share-url-input { width: 100%; max-width: 520px; font-family: monospace; font-size: 12px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; cursor: text; }
/* eyebrow label (also used on landing hero) */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .3px; margin-bottom: 18px; padding: 6px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; flex-shrink: 0; }
/* Referral steps */
.referral-steps { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-bottom: 24px; }
.referral-step { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 160px; }
.referral-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.referral-step-arrow { color: var(--muted); font-size: 18px; flex-shrink: 0; }
@media (max-width: 640px) { .referral-step-arrow { display: none; } .referral-step { min-width: 100%; } }
/* Form field hints */
.field-hint { display: block; font-size: 12px; color: var(--muted); margin: 3px 0 10px; line-height: 1.4; }

/* ================ Mobile bottom tab bar ================ */
.mobile-tabs {
  display: none; /* shown only on small screens — see @media below */
}

@media (max-width: 768px) {
  /* Show the tab bar */
  .mobile-tabs {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px 8px;
    text-decoration: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.1s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tab svg {
    width: 22px; height: 22px;
    stroke: currentColor;
  }
  .mobile-tab.on { color: var(--accent); }
  .mobile-tab:active { color: var(--text); }

  /* Hide the desktop top nav links inside the app on mobile —
     the bottom tab bar replaces them. Keep the brand + logout. */
  .top-nav a:not(.btn):not([href="/app"]) { display: none; }

  /* Extra bottom padding on app shell pages so content doesn't hide behind the tab bar */
  .app-shell  { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0)); }
  .today-shell,
  .checkin-shell { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0)); }
}

/* -------- Mobile hamburger (public nav only, ≤600px) -------- */
@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  /* Hide public nav links until hamburger opens them */
  .pub-nav { display: none !important; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding: 10px 0 6px; }
  .pub-nav.open { display: flex !important; }
  .pub-nav.open a { white-space: normal; }
  .pub-nav .btn.small { width: 100%; text-align: center; box-sizing: border-box; min-height: 42px; }
}

/* -------- Activity picker grid (signup) -------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}
.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 10px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}
.activity-card:hover { border-color: var(--accent, #2a9d8f); background: #f0faf9; }
.activity-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.activity-card:has(input:checked) {
  border-color: var(--accent, #2a9d8f);
  background: #e6f7f5;
}
.activity-icon { font-size: 28px; line-height: 1; }
.activity-label { font-size: 12px; font-weight: 600; line-height: 1.3; color: #374151; }

/* ── Notification preference toggles ─────────────────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--accent, #2a9d8f); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }
