/* ═══════════════════════════════════════════════════════════════
   Planning — Design system
   Mobile-first, refined for desktop. Flat, high-contrast, restrained.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Neutrals */
  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --border: #e5e8ee;
  --border-strong: #d3d8e0;

  --ink: #0b0e14;
  --text: #0b0e14;
  --text-secondary: #4a5468;
  --text-muted: #8891a3;

  /* Brand */
  --accent: #1456f0;
  --accent-hover: #103fc0;
  --accent-light: #eaf0fe;
  --accent-text: #0f3fc9;

  /* legacy alias used across templates */
  --primary: var(--accent);
  --primary-hover: var(--accent-hover);
  --primary-light: var(--accent-light);
  --primary-text: var(--accent-text);

  /* Status */
  --green: #0e9f6e;
  --green-light: #ecfdf5;
  --green-text: #04785a;

  --orange: #d97706;
  --orange-light: #fffbeb;
  --orange-text: #a35709;

  --red: #dc2626;
  --red-light: #fef2f2;
  --red-text: #b42318;

  --purple: #6d5ce8;
  --purple-light: #f2f0fd;

  /* Radius */
  --radius-xl: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --radius-pill: 999px;

  /* Shadow — used sparingly, borders do most of the work */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --container: 880px;
  --site-container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

svg.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: -3px;
}
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Layout ─────────────────────────────────────────────────── */
.app-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 100px;
}

.site-container {
  max-width: var(--site-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Logo mark ──────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}
.logo-mark-lg { width: 44px; height: 44px; }

/* ── App top bar (authenticated) ───────────────────────────── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.top-bar .org-name {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}
.top-bar-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.top-bar-actions a, .top-bar-actions button {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-family: var(--font);
}
.top-bar-actions a:hover, .top-bar-actions button:hover {
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none;
}
.top-bar-user {
  font-size: .85rem;
  color: var(--text-secondary);
  padding: 8px 4px 8px 12px;
}

/* ── Marketing nav (public / landing) ──────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: var(--site-container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.navbar-links a {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
}
.navbar-links a:hover { color: var(--text); text-decoration: none; }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px) {
  .navbar-links { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  font-size: .89rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .12s, border-color .12s, color .12s, transform .06s;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #0a8158; color: #fff; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface-alt); border-color: var(--text-muted); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 9px 12px;
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}
.btn-sm {
  padding: 7px 12px;
  font-size: .8rem;
  border-radius: var(--radius-xs);
}

.btn-block { display: flex; width: 100%; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 5px; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  transition: border-color .12s, box-shadow .12s;
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--accent-light);
}
.form-input::placeholder { color: var(--text-muted); }

select.form-input { cursor: pointer; }
textarea.form-input { min-height: 90px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-section {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: .9rem;
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ── Flashes ────────────────────────────────────────────────── */
.flash {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: .88rem;
  font-weight: 500;
  animation: flash-in .3s ease;
  border: 1px solid transparent;
}
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.flash-success { background: var(--green-light); color: var(--green-text); border-color: rgba(14,159,110,.18); }
.flash-error   { background: var(--red-light); color: var(--red-text); border-color: rgba(220,38,38,.18); }
.flash-info    { background: var(--accent-light); color: var(--accent-text); border-color: rgba(20,86,240,.15); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-clickable { cursor: pointer; display: block; text-decoration: none; color: inherit; }
.card-clickable:hover { text-decoration: none; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.card-title { font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.card-meta { font-size: .84rem; color: var(--text-secondary); line-height: 1.7; }
.card-meta .meta-row { display: flex; align-items: center; gap: 6px; }
.card-meta svg { color: var(--text-muted); }

/* ── Badges / Status ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: .01em;
  white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-green  { background: var(--green-light); color: var(--green-text); }
.badge-orange { background: var(--orange-light); color: var(--orange-text); }
.badge-red    { background: var(--red-light); color: var(--red-text); }
.badge-blue   { background: var(--accent-light); color: var(--accent-text); }
.badge-muted  { background: var(--surface-alt); color: var(--text-secondary); }

.badge-role {
  font-size: .72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: #fff;
}

/* ── Progress bar ───────────────────────────────────────────── */
.progress-bar { height: 6px; background: var(--surface-alt); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.progress-fill.green  { background: var(--green); }
.progress-fill.orange { background: var(--orange); }
.progress-fill.red    { background: var(--red); }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-container { max-width: 420px; margin: 40px auto; padding: 0 20px; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-title { font-size: 1.35rem; font-weight: 700; text-align: center; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: .89rem; margin-bottom: 26px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: .85rem; color: var(--text-secondary); }

/* ── Section titles ─────────────────────────────────────────── */
.section-title {
  font-size: .98rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.section-title svg { color: var(--text-muted); }
.section-count {
  font-size: .75rem;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text-secondary);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

/* ── People list ────────────────────────────────────────────── */
.person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.person-row:last-child { border-bottom: none; }
.person-info { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  color: #fff;
  flex-shrink: 0;
}
.person-name { font-weight: 600; font-size: .9rem; }
.person-role { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.person-actions { display: flex; gap: 6px; flex-shrink: 0; }
.person-actions .btn { padding: 7px 12px; font-size: .78rem; }

/* ── Invite link box ────────────────────────────────────────── */
.invite-box {
  background: var(--accent-light);
  border: 1px solid rgba(20, 86, 240, .14);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.invite-box p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.invite-link-row { display: flex; gap: 8px; }
.invite-link-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: .82rem;
  border: 1px solid rgba(20, 86, 240, .22);
  border-radius: var(--radius-xs);
  background: #fff;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.btn-copy {
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--accent-hover); }

/* ── Time slot editor ───────────────────────────────────────── */
.slot-card {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.slot-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.slot-time-inputs { display: flex; align-items: center; gap: 8px; }
.slot-time-inputs input { width: 110px; padding: 8px; font-size: .9rem; }
.slot-time-inputs span { color: var(--text-muted); font-size: .85rem; }
.slot-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.slot-role-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.slot-role-item input {
  width: 56px;
  padding: 6px 8px;
  text-align: center;
  font-size: .9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-family: var(--font);
}

.btn-remove-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
}
.btn-remove-slot:hover { background: var(--red-light); }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.empty-state-icon svg { width: 24px; height: 24px; }
.empty-state p { font-size: .92rem; margin-bottom: 18px; line-height: 1.6; }

/* ── Respond page (employee) ────────────────────────────────── */
.respond-hero { text-align: center; padding: 36px 20px 26px; }
.respond-hero h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.respond-hero .date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.respond-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 24px;
}
.respond-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.respond-btn-yes { background: var(--green-light); color: var(--green-text); border-color: rgba(14,159,110,.3); }
.respond-btn-yes:hover { background: var(--green); color: #fff; border-color: var(--green); }
.respond-btn-no { background: var(--red-light); color: var(--red-text); border-color: rgba(220,38,38,.25); }
.respond-btn-no:hover { background: var(--red); color: #fff; border-color: var(--red); }

.respond-status { text-align: center; padding: 26px; border-radius: var(--radius); margin: 16px auto; max-width: 400px; }
.respond-status.confirmed { background: var(--green-light); color: var(--green-text); }
.respond-status.waitlist { background: var(--orange-light); color: var(--orange-text); }
.respond-status.unavailable { background: var(--surface-alt); color: var(--text-secondary); }
.respond-status h3 { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.08rem; margin-bottom: 5px; }
.respond-status p { font-size: .86rem; }

/* ── Slot display (read-only) ───────────────────────────────── */
.slot-display { background: var(--surface-alt); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; }
.slot-display-time { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--text-secondary); }
.slot-display-roles { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Utility ────────────────────────────────────────────────── */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: .85rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flex-row { display: flex; align-items: center; gap: 8px; }
.page-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.page-subtitle { font-size: .88rem; color: var(--text-secondary); margin-top: 3px; }

/* ═══════════════════════════════════════════════════════════════
   Landing page (marketing)
   ═══════════════════════════════════════════════════════════════ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-light);
  padding: 6px 13px 6px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(560px 320px at 88% -10%, rgba(20, 86, 240, .08), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 2.3rem;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.hero-copy h1 .accent { color: var(--accent); }
.hero-copy p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-note { font-size: .8rem; color: var(--text-muted); }

/* Abstract product preview built from real UI components — no stock art */
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transform: rotate(0.4deg);
}
.hero-visual-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hero-visual-title { font-size: .95rem; font-weight: 700; }
.hero-visual-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.hero-visual-card:last-child { margin-bottom: 0; }
.hero-visual-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.hero-visual-row:last-child { margin-bottom: 0; }
.hero-visual-name { font-size: .86rem; font-weight: 600; }
.hero-visual-meta { font-size: .76rem; color: var(--text-muted); }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-subtle); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.section-head h2 { font-size: 1.7rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

.tracks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.track {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.track-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.track-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.track-head h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.track-head span { font-size: .8rem; color: var(--text-muted); }

.step { display: flex; gap: 14px; padding: 12px 0; }
.step:not(:last-child) { border-bottom: 1px solid var(--border); }
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h4 { font-size: .92rem; font-weight: 600; margin-bottom: 3px; }
.step-body p { font-size: .84rem; color: var(--text-secondary); line-height: 1.55; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: .98rem; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.01em; }
.feature-card p { font-size: .86rem; color: var(--text-secondary); line-height: 1.6; }

.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.cta-banner p { color: rgba(255, 255, 255, .68); font-size: 1rem; margin-bottom: 28px; }
.cta-banner .btn-primary { background: #fff; color: var(--ink); }
.cta-banner .btn-primary:hover { background: rgba(255, 255, 255, .88); }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.site-footer p { font-size: .82rem; color: var(--text-muted); }

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; }
.footer-links a { font-size: .82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-secondary); }

/* App-shell footer (authenticated / auth pages) */
.app-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 20px 0 4px;
  text-align: center;
}
.app-footer .footer-links { margin-bottom: 4px; }
.app-footer p { font-size: .76rem; color: var(--text-muted); }

/* ── Legal pages ────────────────────────────────────────────── */
.legal-page { max-width: 720px; margin: 0 auto; padding: 8px 0 60px; }
.legal-header { margin-bottom: 8px; }
.legal-header h1 { font-size: 1.7rem; margin-bottom: 8px; }
.legal-updated { font-size: .82rem; color: var(--text-muted); }

.legal-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--orange-light);
  color: var(--orange-text);
  border: 1px solid rgba(217, 119, 6, .18);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .85rem;
  line-height: 1.55;
  margin: 22px 0 8px;
}
.legal-notice svg { flex-shrink: 0; margin-top: 1px; }

.legal-toc {
  margin: 28px 0;
  padding: 16px 18px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}
.legal-toc-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 10px; }
.legal-toc ol { list-style: none; display: grid; gap: 6px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; font-size: .87rem; }
.legal-toc li::before { content: counter(toc) ". "; color: var(--text-muted); font-weight: 600; }
.legal-toc a { color: var(--text-secondary); }
.legal-toc a:hover { color: var(--accent); }

.legal-section { padding: 26px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.legal-placeholder-badge {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}
.legal-section p { font-size: .92rem; color: var(--text-secondary); line-height: 1.7; }
.legal-section p.placeholder { color: var(--text-muted); font-style: italic; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-copy h1 { font-size: 2.9rem; }
  .hero { padding: 88px 0 60px; }
  .tracks { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .section-head h2 { font-size: 2rem; }
  .site-footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 860px) {
  .top-bar { padding: 20px 0; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .slot-roles { grid-template-columns: 1fr; }
  .top-bar h1, .logo { font-size: 1.02rem; }
  .respond-buttons { grid-template-columns: 1fr; }
  .hero-visual { transform: none; }
  .cta-banner { padding: 40px 22px; }
}
