/* ============================================
   VRTIC APP — Warm Institutional Design
   Fraunces (display) + Outfit (body)
   ============================================ */

:root {
  /* Theme — overridden per kindergarten */
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #E8F5E9;
  --primary-subtle: #f1f8f2;
  --secondary: #2E7D32;

  /* Neutrals — warm undertone */
  --bg: #faf9f7;
  --bg-warm: #f5f0eb;
  --card-bg: #ffffff;
  --text: #2c2416;
  --text-light: #6b5e50;
  --text-muted: #a89f94;
  --border: #e8e2db;
  --border-light: #f0ece7;

  /* Semantics */
  --success: #4a9d5b;
  --success-light: #e8f5ea;
  --warning: #d4882a;
  --warning-light: #fdf3e3;
  --danger: #c4453e;
  --danger-light: #fde8e7;
  --info: #3a7fc7;
  --info-light: #e6f0fa;

  /* System */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(44,36,22,0.04);
  --shadow: 0 1px 3px rgba(44,36,22,0.06), 0 1px 2px rgba(44,36,22,0.04);
  --shadow-md: 0 4px 12px rgba(44,36,22,0.07), 0 1px 3px rgba(44,36,22,0.04);
  --shadow-lg: 0 12px 32px rgba(44,36,22,0.08), 0 4px 8px rgba(44,36,22,0.04);

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

a { color: var(--primary-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); text-decoration: none; }

/* Keyboard focus indicator */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--primary-dark);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }

p { line-height: 1.7; }

::selection {
  background: var(--primary-light);
  color: var(--secondary);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-narrow {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ============================================
   HEADER
   ============================================ */

.header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header-logo img {
  height: 36px;
  border-radius: var(--radius-sm);
}

.header-logo h1 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.header-nav a {
  color: var(--text-light);
  font-size: 13.5px;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.header-nav a:hover {
  color: var(--text);
  background: var(--primary-subtle);
}

.header-nav button {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  padding: 6px 14px;
  transition: all 0.2s;
}

.header-nav button:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-light);
}

.header-user {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 var(--sp-2);
}

/* ============================================
   HERO (landing page)
   ============================================ */

.hero {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative botanical circle */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.4;
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.25;
  bottom: -120px;
  left: -60px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto var(--sp-8);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-flat {
  box-shadow: none;
  border: 1px solid var(--border);
}

.card-flat:hover {
  box-shadow: none;
}

.card h3 {
  font-family: var(--font-display);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-light);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-light);
}

.card-clickable {
  cursor: pointer;
  transition: all 0.2s;
}

.card-clickable:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--primary-light);
  transform: translateY(-1px);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--sp-5);
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-group .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="datetime-local"],
input[type="color"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  transition: all 0.2s;
  background: var(--card-bg);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

input.error, select.error, textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-light);
}

input.valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px var(--success-light);
}

textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}

input[type="color"] {
  height: 44px;
  padding: 4px;
  cursor: pointer;
}

/* Radio & Checkbox groups */
.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-group label, .checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.radio-group label:hover, .checkbox-group label:hover {
  background: var(--bg-warm);
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

/* Consent boxes */
.consent-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-3);
  transition: border-color 0.2s;
}

.consent-box:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.consent-box .consent-text {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: var(--sp-3);
  line-height: 1.7;
}

/* File upload */
.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg);
}

.file-upload:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.file-upload.has-file {
  border-color: var(--success);
  border-style: solid;
  background: var(--success-light);
}

.file-upload input[type="file"] { display: none; }

.file-upload .file-label {
  font-size: 13.5px;
  color: var(--text-light);
  font-weight: 400;
}

.file-upload .file-name {
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  margin-top: var(--sp-1);
}

.file-upload .file-icon {
  font-size: 28px;
  margin-bottom: var(--sp-2);
  filter: grayscale(0.3);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: var(--secondary);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-success:hover { background: #3f8a4e; }

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-warning {
  background: var(--warning);
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: none;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-warm);
}

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 7px 16px; font-size: 12.5px; border-radius: 6px; }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-group {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* ============================================
   STEPPER (multi-step forms)
   ============================================ */

.stepper {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: var(--sp-6) 0;
  padding: 0 var(--sp-4);
  flex-wrap: wrap;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.25s;
}

.stepper-step.active {
  color: var(--primary-dark);
  font-weight: 600;
  background: var(--primary-light);
}

.stepper-step.completed {
  color: var(--success);
}

.stepper-step .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--border-light);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.25s;
}

.stepper-step.active .step-num {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}

.stepper-step.completed .step-num {
  background: var(--success);
  color: white;
}

/* Connector lines between steps */
.stepper-step:not(:last-child)::after {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--border);
  margin-left: 4px;
}

.stepper-step.completed:not(:last-child)::after {
  background: var(--success);
}

/* ============================================
   BADGES / STATUS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-submitted { background: var(--info-light); color: #2563a8; }
.badge-submitted::before { background: #3a7fc7; }

.badge-review { background: var(--warning-light); color: #92600e; }
.badge-review::before { background: var(--warning); }

.badge-interview { background: #f0eaff; color: #6b40b8; }
.badge-interview::before { background: #805ad5; }

.badge-accepted { background: var(--success-light); color: #1e6b30; }
.badge-accepted::before { background: var(--success); }

.badge-rejected { background: var(--danger-light); color: #a13029; }
.badge-rejected::before { background: var(--danger); }

/* ============================================
   TABLE
   ============================================ */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead {
  background: var(--bg);
}

th {
  text-align: left;
  padding: 11px 14px;
  font-weight: 600;
  color: var(--text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 1.5px solid var(--border);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

tbody tr {
  transition: background 0.15s;
}

tbody tr:hover td {
  background: var(--primary-subtle);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   STATS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
  transition: all 0.2s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   ALERTS / MESSAGES
   ============================================ */

.alert {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-4);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  animation: alertIn 0.3s ease-out;
}

@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: var(--success-light); color: #1e6b30; border-left-color: var(--success); }
.alert-error { background: var(--danger-light); color: #a13029; border-left-color: var(--danger); }
.alert-warning { background: var(--warning-light); color: #92600e; border-left-color: var(--warning); }
.alert-info { background: var(--info-light); color: #2563a8; border-left-color: var(--info); }

/* ============================================
   LOADING
   ============================================ */

.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.loading-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  margin-top: var(--sp-8);
}

.section-label:first-child { margin-top: 0; }

/* ============================================
   DATA DISPLAY (staff detail views)
   ============================================ */

.data-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-6);
  font-size: 14px;
  padding: var(--sp-2) 0;
}

.data-row + .data-row {
  border-top: 1px solid var(--border-light);
}

.data-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-value {
  color: var(--text);
  font-weight: 500;
}

/* Parent/person card within detail view */
.person-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-3);
}

.person-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.person-card-header strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.person-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px var(--sp-6);
  font-size: 13.5px;
}

.person-card-grid span {
  color: var(--text-light);
}

/* Document row */
.doc-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-light);
}

.doc-row:last-child { border-bottom: none; }

.doc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--danger-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-info .doc-name {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-info .doc-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Status history timeline */
.timeline-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 7px;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   SCORE TABLE
   ============================================ */

.score-table {
  width: 100%;
  border-collapse: collapse;
}

.score-table th {
  font-size: 11px;
  padding: 8px 12px;
}

.score-table td {
  padding: 10px 12px;
}

.score-table input[type="number"] {
  width: 72px;
  padding: 6px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--sp-4);
  filter: grayscale(0.2);
}

.empty-state h3 {
  font-family: var(--font-display);
  margin-bottom: var(--sp-2);
}

.empty-state p {
  color: var(--text-light);
  font-size: 14px;
  max-width: 320px;
  margin: 0 auto var(--sp-6);
}

/* ============================================
   SUCCESS STATE
   ============================================ */

.success-state {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
}

.success-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  font-size: 32px;
  animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.success-state h2 {
  font-family: var(--font-display);
  margin-bottom: var(--sp-3);
}

.success-state .app-number {
  display: inline-block;
  padding: var(--sp-4) var(--sp-8);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin: var(--sp-5) 0;
}

.success-state .app-number-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.success-state .app-number-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

/* ============================================
   ENROLLMENT STATUS INDICATOR
   ============================================ */

.enrollment-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: var(--success-light);
  color: #1e6b30;
}

.enrollment-open::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.enrollment-closed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-warm);
  color: var(--text-muted);
}

/* ============================================
   HOW IT WORKS — landing page
   ============================================ */

.how-it-works {
  counter-reset: step;
}

.how-it-works-step {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  align-items: flex-start;
}

.how-it-works-step::before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.how-it-works-step p {
  font-size: 15px;
  padding-top: 4px;
}

/* ============================================
   CONTACT INFO (landing)
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) var(--sp-8);
  font-size: 14px;
}

.contact-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-value {
  font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  :root {
    --sp-6: 20px;
    --sp-8: 28px;
  }

  .hero { padding: var(--sp-10) 0 var(--sp-8); }
  .hero h1 { font-size: 26px; }

  .header-logo h1 { font-size: 14px; }
  .header-nav { gap: 2px; }
  .header-nav a { font-size: 12px; padding: 6px 8px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn-group { flex-direction: column; }

  .stepper { gap: 0; }
  .stepper-step { font-size: 0; padding: 6px 4px; }
  .stepper-step .step-num { width: 28px; height: 28px; font-size: 13px; }
  .stepper-step::after { width: 12px; }

  .data-row { grid-template-columns: 1fr; }
  .person-card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .card { padding: var(--sp-4); border-radius: var(--radius); }
  .hero::before, .hero::after { display: none; }
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

#app > :first-child {
  animation: pageIn 0.3s ease-out;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   UTILITY
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: var(--sp-1); }
.mt-8 { margin-top: var(--sp-2); }
.mt-16 { margin-top: var(--sp-4); }
.mt-24 { margin-top: var(--sp-6); }
.mt-32 { margin-top: var(--sp-8); }
.mb-8 { margin-bottom: var(--sp-2); }
.mb-16 { margin-bottom: var(--sp-4); }
.mb-24 { margin-bottom: var(--sp-6); }
.gap-8 { gap: var(--sp-2); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   PRINT
   ============================================ */

@media print {
  body { background: white; font-size: 12px; }
  body::before { display: none; }
  .header, .no-print { display: none !important; }
  .card { border: 1px solid #ddd; box-shadow: none; break-inside: avoid; }
  .card:hover { box-shadow: none; }
  .btn { display: none !important; }
  .badge::before { display: none; }
  #app { animation: none; }
  #app > :first-child { animation: none; }
  a { color: inherit; text-decoration: none; }
  .container, .container-wide { max-width: 100%; padding: 0; }
}
