:root {
  --brand: #0e7c66;
  --brand-dark: #064038;
  --opt-a: #c6335e; /* crimson */
  --opt-b: #2c8fc9; /* azure */
  --opt-c: #e0982a; /* gold */
  --opt-d: #1f9c6b; /* esmeralda */
  --stage-1: #133a33; /* fondo de las diapositivas de presentación/juego */
  --stage-2: #050c0b; /* casi negro */
  --bg: #f2f7f6;
  --card: #ffffff;
  --text: #142420;
  --muted: #5b6f6a;
  --border: #dce7e3;
  --radius: 14px;
  font-size: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.lang-switch { display: inline-flex; border: 1.5px solid var(--border); border-radius: 99px; padding: 2px; gap: 2px; flex-shrink: 0; }
.lang-switch a {
  padding: 0.3rem 0.6rem; border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.03em; color: var(--muted); text-decoration: none;
}
.lang-switch a.active { background: var(--brand); color: #fff; }
.lang-switch--dark { border-color: rgba(255, 255, 255, 0.3); }
.lang-switch--dark a { color: rgba(255, 255, 255, 0.7); }
.lang-switch--dark a.active { background: rgba(255, 255, 255, 0.18); color: #fff; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}
.brand span { color: var(--opt-a); }

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.3rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: #eee; color: var(--text); }
.btn-danger { background: #fdecec; color: var(--opt-a); }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--border); }
.btn-large { padding: 1rem 2rem; font-size: 1.15rem; border-radius: 14px; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(30, 10, 70, 0.12);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.auth-card .lang-switch { position: absolute; top: 1rem; right: 1rem; }
.auth-subtitle { color: var(--muted); margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.auth-form-row { display: flex; gap: 1rem; }
.auth-form-row label { flex: 1; min-width: 0; }
.auth-form label { font-size: 0.9rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 0.35rem; }
.auth-form input {
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.auth-form input:focus { outline: none; border-color: var(--brand); }
.auth-form .btn { margin-top: 0.5rem; }
.auth-switch { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }

.error-page-message { margin-top: 1.5rem; }

.pending-badge {
  display: inline-block; background: var(--opt-c); color: #3a2a00; font-weight: 700; font-size: 0.8rem;
  padding: 0.3rem 0.8rem; border-radius: 99px; margin: 0 0 1rem;
}
.pending-lede { text-align: left; }
.pending-steps { text-align: left; background: var(--bg); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 0.5rem; font-size: 0.92rem; }
.pending-steps p { margin: 0 0 0.5rem; font-weight: 600; }
.pending-steps ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.alert {
  background: #fdecec;
  color: var(--opt-a);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* App shell */
.page { max-width: 1000px; margin: 0 auto; padding: 1.5rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }

.dashboard-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.inline-form { display: flex; gap: 0.6rem; }
.inline-form input {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  min-width: 220px;
}

.trivia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.trivia-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 18px rgba(30, 10, 70, 0.06);
}
.trivia-card h3 { margin: 0 0 0.3rem; }
.trivia-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; }
.trivia-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trivia-card-actions form { display: inline; }
.empty-state { color: var(--muted); }

/* Trivia editor */
.editor-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.editor-header input#trivia-title {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  flex: 1;
  min-width: 200px;
}
.editor-header input#trivia-title:focus { outline: none; border-color: var(--border); }
.save-status { color: var(--opt-d); font-size: 0.85rem; min-width: 90px; }
.present-form { margin-left: auto; }

.settings-panel { background: var(--card); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 4px 18px rgba(30, 10, 70, 0.06); }

.account-heading { margin: 0 0 1.25rem; }
.alert-success { background: #e3f3ee; color: var(--brand); }
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.kv-table td:first-child { color: var(--muted); font-weight: 600; width: 40%; }
.account-password-form { max-width: 360px; }
.settings-panel h3 { margin: 0 0 1rem; font-size: 1rem; }
.settings-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.toggle-row { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  flex-shrink: 0; width: 40px; height: 24px; border-radius: 99px; background: var(--border);
  position: relative; transition: background 0.15s ease; margin-top: 0.1rem;
}
.toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease;
}
.toggle-row input:checked + .toggle-track { background: var(--brand); }
.toggle-row input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); }
.toggle-row input:focus-visible + .toggle-track { outline: 2px solid var(--brand); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; gap: 0.15rem; }
.toggle-text strong { font-size: 0.92rem; }
.toggle-text small { color: var(--muted); font-size: 0.8rem; }

.questions-list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 2rem; }
.question-card { background: var(--card); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: 0 4px 18px rgba(30, 10, 70, 0.06); }
.question-card-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.comment-type-badge {
  display: inline-block; background: var(--bg); color: var(--brand); border: 1.5px solid var(--brand);
  font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 99px; margin-bottom: 0.8rem;
}
.question-number {
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.85rem;
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.question-card-header h4 { margin: 0; font-size: 1.05rem; }
.option-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.option-pill { padding: 0.45rem 0.7rem; border-radius: 8px; font-size: 0.85rem; color: #fff; opacity: 0.55; }
.option-pill.is-correct { opacity: 1; box-shadow: 0 0 0 2px var(--opt-d) inset; background: var(--opt-d) !important; }
.option-pill.option-a { background: var(--opt-a); }
.option-pill.option-b { background: var(--opt-b); }
.option-pill.option-c { background: var(--opt-c); }
.option-pill.option-d { background: var(--opt-d); }
.question-card-actions { display: flex; gap: 0.5rem; }

.question-form-section { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 4px 18px rgba(30, 10, 70, 0.06); }
.question-form-section h3 { margin-top: 0; }
.question-form { display: flex; flex-direction: column; gap: 1rem; }
.question-form label { font-weight: 600; font-size: 0.9rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.35rem; }
.type-switch { display: inline-flex; gap: 0.4rem; background: var(--bg); padding: 0.3rem; border-radius: 99px; align-self: flex-start; }
.type-btn {
  border: none; background: transparent; padding: 0.5rem 1rem; border-radius: 99px; font-weight: 700;
  font-size: 0.85rem; color: var(--muted); cursor: pointer;
}
.type-btn.active { background: var(--brand); color: #fff; }
.comment-hint { color: var(--muted); font-size: 0.88rem; margin: -0.4rem 0 0; }
.question-form input[type="text"] {
  font-size: 1rem; padding: 0.6rem 0.8rem; border-radius: 8px; border: 1.5px solid var(--border); color: var(--text);
}
.option-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8rem; }
.option-input { border-radius: 10px; padding: 0.7rem; color: #fff; display: flex; flex-direction: column; gap: 0.4rem; }
.option-input .letter { display: inline-block; width: 22px; font-weight: 800; }
.option-input label:first-child { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; color: #fff; }
.option-input input.option-text { flex: 1; border-radius: 6px; border: none; padding: 0.4rem 0.5rem; font-size: 0.95rem; }
.option-input .radio-label { flex-direction: row; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #fff; font-weight: 500; }
.option-a { background: var(--opt-a); }
.option-b { background: var(--opt-b); }
.option-c { background: var(--opt-c); }
.option-d { background: var(--opt-d); }
.question-form-actions { display: flex; gap: 0.7rem; }

/* Host presentation stage */
.host-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--stage-1), var(--stage-2));
  color: #fff;
}
.slide { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.loading { font-size: 1.3rem; }

.host-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; background: rgba(0,0,0,0.15);
}
.trivia-name { font-weight: 600; opacity: 0.85; }
.host-controls-right { display: flex; align-items: center; gap: 1rem; }

.slide-lobby h1 { font-size: 2.4rem; margin-bottom: 1.5rem; }
.lobby-body { display: flex; gap: 3rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.qr-code { background: #fff; padding: 1rem; border-radius: var(--radius); width: 260px; height: 260px; }
.lobby-info { text-align: left; }
.join-url { font-size: 1.1rem; opacity: 0.85; margin: 0 0 0.5rem; }
.join-code { font-size: 1.6rem; margin: 0 0 1.2rem; }
.join-code strong { letter-spacing: 4px; }
.lobby-count-label { opacity: 0.85; margin-bottom: 0.6rem; }
.player-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 480px; }
.player-chip { background: rgba(255,255,255,0.15); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.9rem; }

.question-progress { opacity: 0.75; font-weight: 600; margin-bottom: 0.5rem; }
.slide-question h1, .slide-results h1, .slide-comments h1 { font-size: 2.2rem; margin: 0 0 1.8rem; max-width: 900px; }

.slide-comments { width: 100%; max-width: 900px; }
.comment-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem;
  max-height: 55vh; overflow-y: auto; padding: 0.3rem;
}
.comment-card {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px; padding: 1rem 1.1rem; text-align: left; animation: comment-in 0.25s ease-out;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.comment-text { margin: 0 0 0.5rem; font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.comment-author { font-size: 0.8rem; font-weight: 700; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.04em; }
.comment-wall-empty { grid-column: 1 / -1; opacity: 0.6; padding: 2rem 0; }
.comments-tally { margin-top: 1.2rem; opacity: 0.75; }
@keyframes comment-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto; }
.option-box { border-radius: var(--radius); padding: 1.3rem; display: flex; align-items: center; gap: 0.8rem; font-size: 1.2rem; font-weight: 600; text-align: left; }
.option-box .letter { font-size: 1.4rem; font-weight: 800; background: rgba(255,255,255,0.25); border-radius: 8px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.option-box.option-a { background: var(--opt-a); }
.option-box.option-b { background: var(--opt-b); }
.option-box.option-c { background: var(--opt-c); }
.option-box.option-d { background: var(--opt-d); }
.answer-tally { margin-top: 1.5rem; opacity: 0.8; font-size: 1.1rem; }

.results-bars { display: flex; flex-direction: column; gap: 0.7rem; max-width: 800px; margin: 0 auto; }
.result-row { display: flex; align-items: center; gap: 0.8rem; }
.result-row .letter { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; background: rgba(255,255,255,0.2); }
.result-row .letter.is-correct { background: var(--opt-d); box-shadow: 0 0 0 3px #fff inset; }
.result-bar-track { flex: 1; background: rgba(255,255,255,0.12); border-radius: 8px; position: relative; height: 42px; overflow: hidden; }
.result-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,0.35); border-radius: 8px; transition: width 0.4s ease; }
.result-bar.is-correct { background: var(--opt-d); }
.result-text { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding: 0 0.8rem; font-weight: 600; text-align: left; }
.result-count { min-width: 30px; font-weight: 700; text-align: right; }
.total-votes { margin-top: 1.2rem; opacity: 0.75; }

.slide-leaderboard h1 { font-size: 2.4rem; margin-bottom: 1.5rem; }
.leaderboard-list { list-style: none; padding: 0; max-width: 500px; margin: 0 auto 1.5rem; text-align: left; }
.leaderboard-list li {
  display: flex; justify-content: space-between; padding: 0.8rem 1.2rem; margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.12); border-radius: 10px; font-size: 1.15rem; font-weight: 600;
}
.leaderboard-list li:first-child { background: var(--opt-c); color: #3a2a00; }

/* Player stage */
.play-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--stage-1), var(--stage-2));
  color: #fff;
  padding: 1.2rem;
}
.play-lang-switch { position: absolute; top: 1rem; right: 1rem; }
.play-content { width: 100%; max-width: 420px; }
.play-message { text-align: center; }
.play-message h1 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.play-message .accent { color: var(--opt-c); }
.code-label { font-size: 1.1rem; margin-bottom: 1.5rem; opacity: 0.9; }
#join-form { display: flex; flex-direction: column; gap: 1rem; }
#join-form input {
  padding: 0.9rem 1rem; border-radius: 10px; border: none; font-size: 1.1rem; text-align: center;
}
.anonymous-hint { opacity: 0.8; font-size: 0.95rem; margin: 0; }
.score-label { font-size: 1.2rem; opacity: 0.9; }

.comment-form { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.comment-textarea {
  width: 100%; min-height: 140px; padding: 1rem; border-radius: 12px; border: none;
  font-size: 1.1rem; font-family: inherit; resize: vertical; color: var(--text);
}

.spinner {
  margin: 1.5rem auto 0; width: 42px; height: 42px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.25); border-top-color: #fff; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.play-answer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  width: 100%; height: 60vh; max-height: 420px;
}
.answer-btn {
  border: none; border-radius: var(--radius); font-size: 3rem; font-weight: 800; color: #fff; cursor: pointer;
}
.answer-btn.option-a { background: var(--opt-a); }
.answer-btn.option-b { background: var(--opt-b); }
.answer-btn.option-c { background: var(--opt-c); }
.answer-btn.option-d { background: var(--opt-d); }
.answer-btn:active, .answer-btn.selected { filter: brightness(0.85); transform: scale(0.97); }
.answer-btn:disabled { opacity: 0.55; }

.reveal-correct h1 { color: var(--opt-d); }
.reveal-incorrect h1 { color: var(--opt-a); }
.reveal-neutral h1 { color: var(--opt-c); }

@media (max-width: 640px) {
  .lobby-body { flex-direction: column; }
  .lobby-info { text-align: center; }
  .option-grid { grid-template-columns: 1fr; }
}

/* ---- Landing page ---- */
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 1.5rem;
}
.landing-nav .brand { font-size: 1.4rem; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.landing-hero {
  max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center;
}
.hero-copy h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; margin: 0 0 1.1rem; letter-spacing: -0.01em; }
.hero-copy .lede { color: var(--muted); font-size: 1.12rem; line-height: 1.6; max-width: 46ch; margin: 0 0 1.75rem; }
.hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.hero-visual {
  position: relative; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden;
  background: linear-gradient(155deg, var(--stage-1), var(--stage-2));
  box-shadow: 0 24px 60px -22px rgba(46, 15, 94, 0.5);
}
.classroom-blur { position: absolute; inset: -12%; filter: blur(7px); opacity: 0.92; }
.desk {
  position: absolute; bottom: 6%; width: 15%; aspect-ratio: 1.7 / 1;
  background: rgba(0, 0, 0, 0.28); border-radius: 8px;
}
.desk.d1 { left: 4%; bottom: 4%; }
.desk.d2 { left: 24%; bottom: 1%; }
.desk.d3 { left: 44%; bottom: 7%; }
.projector-question {
  position: absolute; top: 9%; left: 8%; right: 22%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px; padding: 9%;
}
.pq-bar { height: 12%; background: rgba(255, 255, 255, 0.45); border-radius: 6px; margin-bottom: 10%; width: 78%; }
.pq-bar.short { width: 48%; margin-bottom: 16%; }
.pq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; }
.pq-opt { display: block; aspect-ratio: 2.4 / 1; border-radius: 8px; }
.pq-opt.a { background: var(--opt-a); }
.pq-opt.b { background: var(--opt-b); }
.pq-opt.c { background: var(--opt-c); }
.pq-opt.d { background: var(--opt-d); }

.phone-mock {
  position: absolute; right: 7%; bottom: 7%; height: 58%; width: auto; aspect-ratio: 9 / 18.5;
  background: #16162a; border-radius: 22px; padding: 8%;
  box-shadow: 0 30px 55px -18px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.07);
}
.phone-mock .screen {
  background: var(--brand-dark); border-radius: 20px; height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 9%;
}
.phone-mock .abcd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; width: 100%; }
.phone-mock .abcd-grid div {
  aspect-ratio: 1; border-radius: 20%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.15rem; font-family: system-ui, sans-serif;
}
.phone-mock .abcd-grid .a { background: var(--opt-a); }
.phone-mock .abcd-grid .b { background: var(--opt-b); }
.phone-mock .abcd-grid .c { background: var(--opt-c); }
.phone-mock .abcd-grid .d { background: var(--opt-d); }

.join-band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.join-inner { max-width: 640px; margin: 0 auto; padding: 3rem 1.5rem; text-align: center; }
.join-inner h2 { margin: 0 0 0.5rem; font-size: 1.6rem; }
.join-inner p { color: var(--muted); margin: 0 0 1.5rem; }
.join-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.join-form input {
  font-size: 1.3rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; text-align: center;
  padding: 0.75rem 1rem; border-radius: 10px; border: 2px solid var(--border); width: 220px; color: var(--text);
}
.join-form input:focus { outline: none; border-color: var(--brand); }

.how-it-works { max-width: 1040px; margin: 0 auto; padding: 4rem 1.5rem; }
.how-it-works h2 { text-align: center; font-size: 1.7rem; margin: 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.25rem; }
.how-step { background: var(--card); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 4px 18px rgba(30, 10, 70, 0.06); }
.how-step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 0.85rem;
}
.how-step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.how-step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.landing-footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .landing-hero { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 420px; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; }
}
