/* ═══════════════════════════════════════════════════════════════════
   THE COMPASS · ALA Brand v2 (locked)
   Midnight #0A1F44 · Sapphire #1E3A8A · Gold #C9A961
   Fraunces (display) · Inter (body) · IBM Plex Mono (data)
   Restraint is the new luxury.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --midnight: #0A1F44;
  --sapphire: #1E3A8A;
  --sapphire-hover: #2947A3;
  --gold: #C9A961;
  --gold-hover: #D9BA6F;
  --charcoal: #1F2933;
  --pearl: #F7F8FA;
  --pearl-2: #EDEFF3;
  --white: #FFFFFF;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-2: #D1D5DB;
  --success: #059669;
  --error: #B91C1C;
  --warn: #B45309;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;

  --shadow-sm: 0 1px 3px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 31, 68, 0.10);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

html, body {
  background: var(--pearl);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--midnight);
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.1;
}
h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; }
h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 10px; }
em { font-style: italic; color: var(--sapphire); }
strong, b { font-weight: 600; color: var(--midnight); }

p { color: var(--charcoal); margin-bottom: 12px; }
.p { font-size: 17px; line-height: 1.75; color: var(--charcoal); margin-bottom: 16px; }
.lede { font-size: 19px; line-height: 1.6; color: var(--charcoal); margin-bottom: 20px; max-width: 640px; }
.mini { font-size: 13px; color: var(--muted); margin-top: 8px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin-bottom: 14px;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.error { color: var(--error); }

a { color: var(--sapphire); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s ease, color 0.15s ease; }
a:hover { color: var(--midnight); border-bottom-color: var(--gold); }

/* ─── Layout ─── */
.shell {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ─── Topbar ─── */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
}
.brand-link:hover { border: none; }
.brand-rule {
  display: inline-block;
  width: 40px;
  height: 1.5px;
  background: var(--gold);
}
.brand-wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--midnight);
}
.brand-product {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.topnav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.topnav a {
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 500;
  border: none;
}
.topnav a:hover { color: var(--sapphire); border: none; }
.topnav a.ghost {
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}
.topnav a.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Flash messages ─── */
.flash-container {
  max-width: 780px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.flash {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 14px;
  border-left: 3px solid;
}
.flash-error { background: #FEF2F2; border-color: var(--error); color: var(--error); }
.flash-warning { background: #FEF3C7; border-color: var(--warn); color: var(--warn); }
.flash-success { background: #D1FAE5; border-color: var(--success); color: var(--success); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); border-bottom: 1px solid transparent; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.large { font-size: 16px; padding: 16px 32px; }
.btn.tiny { font-size: 12px; padding: 8px 14px; letter-spacing: 0.02em; }
.btn.full { width: 100%; }

.btn.primary { background: var(--sapphire); color: var(--white); border-color: var(--sapphire); }
.btn.primary:hover:not(:disabled) { background: var(--sapphire-hover); border-color: var(--sapphire-hover); color: var(--white); }
.btn.gold { background: var(--gold); color: var(--midnight); border-color: var(--gold); font-weight: 700; }
.btn.gold:hover:not(:disabled) { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--midnight); }
.btn.ghost { background: transparent; color: var(--charcoal); border-color: var(--line-2); }
.btn.ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--midnight); background: var(--white); }

/* ─── Sections ─── */
.section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

/* ─── Landing ─── */
.hero-landing {
  padding: 80px 0 60px;
  text-align: left;
}
.hero-landing h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 24px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-small {
  padding: 60px 0 40px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.step {
  padding: 24px 0;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}

.checklist {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 17px;
  color: var(--charcoal);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 2px;
  background: var(--gold);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.feature { padding: 0; }
.feature h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--charcoal); font-size: 15px; }

.cta-section {
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section .btn { margin-top: 24px; }

/* ─── Pricing ─── */
.pricing-card {
  max-width: 480px;
  margin: 40px auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}
.pricing-inner { text-align: center; }
.pricing-tier {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}
.pricing-currency { font-family: var(--font-display); font-size: 32px; color: var(--charcoal); font-weight: 600; }
.pricing-number { font-family: var(--font-display); font-size: 80px; line-height: 1; color: var(--midnight); font-weight: 700; }
.pricing-unit { font-family: var(--font-body); font-size: 16px; color: var(--muted); font-weight: 500; }
.pricing-trial { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}
.pricing-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.pricing-fine {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}

/* ─── Auth ─── */
.auth-card {
  max-width: 480px;
  margin: 60px auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.auth-form input {
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
}
.auth-form input:focus {
  border-color: var(--sapphire);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ─── Quiz ─── */
.quiz-hero {
  padding: 60px 0 40px;
  text-align: left;
}
.quiz-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}
.quiz-question {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.quiz-question:last-of-type { border-bottom: none; }
.q-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}
.q-label {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--midnight);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}
.q-help {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: var(--pearl);
}
.q-option:hover { border-color: var(--sapphire); background: var(--white); }
.q-option input[type="radio"] { margin-top: 3px; accent-color: var(--sapphire); }
.q-option input[type="radio"]:checked + span { color: var(--midnight); font-weight: 500; }
.q-option:has(input:checked) { border-color: var(--sapphire); background: var(--white); box-shadow: 0 0 0 1px var(--sapphire); }

.quiz-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
  min-height: 90px;
}
.quiz-form textarea:focus { border-color: var(--sapphire); box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08); }
.quiz-form input[type="text"] {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
}
.quiz-form input[type="text"]:focus { border-color: var(--sapphire); }

.quiz-submit {
  text-align: center;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

/* ─── Generating (roadmap) ─── */
.generating {
  text-align: center;
  padding: 80px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.pulse-large {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sapphire);
  margin: 40px auto;
  animation: pulse-lg 1.6s ease-out infinite;
}
@keyframes pulse-lg {
  0% { box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.5); }
  70% { box-shadow: 0 0 0 30px rgba(30, 58, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 58, 138, 0); }
}

/* ─── Dashboard ─── */
.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0 32px;
  flex-wrap: wrap;
}
.dash-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.north-star {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 17px;
  max-width: 560px;
}

.trial-badge {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  min-width: 200px;
  box-shadow: var(--shadow-sm);
}
.trial-badge.active { border-color: var(--success); }
.trial-badge.warn { border-color: var(--warn); }
.trial-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 4px;
}
.trial-badge.active .trial-label { color: var(--success); }
.trial-badge.warn .trial-label { color: var(--warn); }
.trial-days {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--midnight);
  font-weight: 700;
  margin-bottom: 10px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 2px solid var(--gold);
}
.card.small { padding: 20px 24px; }
.card-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.card-body {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--midnight);
  font-weight: 600;
}

.dash-week {
  padding: 32px;
}
.action-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
}
.action-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--charcoal);
}
.action-list li:last-child { border-bottom: none; }
.action-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.resource-hint {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
}
.week-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.risk-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--charcoal);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.risk-list li:last-child { border-bottom: none; }
.risk-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: var(--warn);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ─── Roadmap page ─── */
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.week-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  border-left: 3px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.week-card.current { border-left-color: var(--gold); box-shadow: var(--shadow-md); }
.week-card.past { opacity: 0.65; }
.week-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.week-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.week-phase {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--sapphire);
  background: rgba(30, 58, 138, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.week-badge {
  font-size: 10px;
  color: var(--midnight);
  background: var(--gold);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.week-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--midnight);
  margin-bottom: 12px;
}
.week-actions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.week-actions-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: var(--charcoal);
}
.week-actions-list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--gold);
  font-weight: 700;
}

/* ─── Check-in form ─── */
.checkin-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}
.field { margin-bottom: 28px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--midnight);
  font-weight: 600;
  margin-bottom: 6px;
}
.field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  resize: vertical;
  min-height: 100px;
}
.field textarea:focus { border-color: var(--sapphire); box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08); }
.mood-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.mood-options label {
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--pearl);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 500;
}
.mood-options label:hover { border-color: var(--sapphire); background: var(--white); }
.mood-options input[type="radio"] { accent-color: var(--sapphire); }
.mood-options label:has(input:checked) { border-color: var(--sapphire); background: var(--white); box-shadow: 0 0 0 1px var(--sapphire); }

/* ─── Coach reply ─── */
.coach-reply {
  border-left: 3px solid var(--gold);
  border-top: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  padding: 32px 36px;
}
.reply-body p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.reply-body p:last-child { margin-bottom: 0; }
.checkin-original {
  margin: 24px 0;
  padding: 12px 0;
  color: var(--muted);
}
.checkin-original summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
}
.checkin-original summary:hover { color: var(--sapphire); }
.back-links { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ─── History ─── */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.history-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  color: var(--charcoal);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.history-item:hover { border-color: var(--gold); transform: translateX(2px); border-bottom: 1px solid var(--gold); }
.history-week { font-family: var(--font-display); font-weight: 700; color: var(--midnight); font-size: 16px; }
.history-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.history-summary { font-size: 14px; color: var(--charcoal); }
.arrow { color: var(--muted); font-size: 18px; }
.history-item:hover .arrow { color: var(--gold); }

/* ─── Legal ─── */
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; color: var(--charcoal); }
.legal li { margin-bottom: 8px; }

/* ─── Footer ─── */
.footer {
  max-width: 780px;
  margin: 60px auto 0;
  padding: 32px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--midnight);
  margin-right: 16px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); border: none; }
.footer-links a:hover { color: var(--sapphire); border: none; }

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .topbar { padding: 16px 20px; }
  .topnav { gap: 12px; }
  .topnav a { font-size: 13px; }
  .shell { padding: 24px 16px 60px; }
  .card { padding: 24px 20px; }
  .quiz-form, .checkin-form { padding: 24px 20px; }
  .pricing-card, .auth-card { padding: 32px 24px; }
  .dash-hero { flex-direction: column; }
  .trial-badge { width: 100%; }
  .history-item { grid-template-columns: 1fr auto; }
  .history-date { display: none; }
}
