/* CORDIS mockup — shared style. Earthy professional, density-first. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #1a4d40;
  --primary-light: #2d6e5c;
  --primary-dark: #0f3329;
  --accent: #d97706;
  --bg: #f5f4ed;
  --surface: #ffffff;
  --border: #e5e3da;
  --text: #1f2937;
  --text-muted: #6b7280;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --info: #1e40af;
}
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* Top nav */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-weight: 700; font-size: 22px; color: var(--primary); letter-spacing: -0.02em; }
.nav-brand small { color: var(--text-muted); font-weight: 400; font-size: 11px; display: block; line-height: 1.2; margin-top: -2px; }
.lang-switch { display: flex; gap: 8px; font-size: 12px; }
.lang-switch a { color: var(--text-muted); padding: 4px 8px; border-radius: 4px; }
.lang-switch a.active { background: var(--primary); color: white; }
.lang-switch a:hover { background: var(--bg); text-decoration: none; }
.lang-switch a.active:hover { background: var(--primary-light); }
.lang-switch a.disabled,
.lang-switch span.disabled {
  color: #b8b3a4; cursor: not-allowed; pointer-events: none;
  background: transparent; opacity: 0.6;
}
.lang-switch a.disabled:hover,
.lang-switch span.disabled:hover { background: transparent; text-decoration: none; }

/* Persona switcher — visually distinct from lang-switch via amber accent */
.persona-switch { display: flex; gap: 8px; font-size: 12px; align-items: center; }
.persona-switch .label { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; }
.persona-switch a {
  color: var(--text-muted); padding: 4px 10px; border-radius: 4px;
  border: 1px solid transparent;
}
.persona-switch a.active { background: var(--accent); color: white; border-color: var(--accent); }
.persona-switch a:hover { background: #fef3c7; color: #78350f; text-decoration: none; border-color: #fde68a; }
.persona-switch a.active:hover { background: var(--accent); color: white; border-color: var(--accent); }
.nav-switchers { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text); font-size: 14px; }
.nav-cta {
  background: var(--primary); color: white; padding: 8px 18px;
  border-radius: 6px; font-size: 14px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-light); text-decoration: none; color: white; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg) 0%, #ebe9dd 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 {
  font-size: 44px; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 18px; color: var(--primary-dark);
}
.hero .sub {
  font-size: 19px; color: var(--text-muted); margin-bottom: 28px;
  max-width: 540px;
}
.hero .ctas { display: flex; gap: 14px; }
.btn-primary {
  background: var(--primary); color: white; padding: 13px 24px;
  border-radius: 8px; font-weight: 600; font-size: 15px;
  display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--primary-light); text-decoration: none; color: white; }
.btn-secondary {
  background: transparent; color: var(--primary);
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--primary);
  display: inline-block;
}
.btn-secondary:hover { background: var(--primary); color: white; text-decoration: none; }

/* Dashboard preview mockup (inline SVG box) */
.preview {
  background: var(--surface); border-radius: 10px;
  border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(15, 51, 41, 0.12);
  padding: 14px; aspect-ratio: 16/10; overflow: hidden;
}
.preview-bar {
  display: flex; gap: 5px; margin-bottom: 10px;
}
.preview-bar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border);
}
.preview-content {
  background: var(--bg); border-radius: 6px; height: calc(100% - 26px); padding: 12px;
  font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11px;
  color: var(--text-muted);
}
.preview-content .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.preview-content .row:last-child { border-bottom: none; }
.preview-content .pill { background: var(--primary); color: white; padding: 1px 8px; border-radius: 10px; font-size: 10px; }
.preview-content .pill.amber,
.preview-content .pill.warning { background: var(--warning); }
/* .pill.amber — low-score warning; .pill.warning — alias (prefer .warning for new HTML) */

/* Section */
section { padding: 70px 0; }
.section-title {
  font-size: 28px; margin-bottom: 12px; color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.section-sub { color: var(--text-muted); margin-bottom: 38px; font-size: 16px; max-width: 600px; }

/* Three columns grid */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 26px;
}
.feat .num {
  display: inline-block; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: white; text-align: center; line-height: 32px;
  font-weight: 700; margin-bottom: 14px;
}
.feat h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary-dark); }
.feat p { color: var(--text-muted); font-size: 14px; }

/* Authority section */
.auth {
  background: var(--primary-dark); color: white; padding: 60px 0;
}
.auth .wrap { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.auth-photo {
  width: 180px; height: 180px; background: var(--primary-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: rgba(255,255,255,0.4);
}
.auth blockquote {
  font-size: 19px; line-height: 1.5; font-style: italic;
  margin-bottom: 14px; max-width: 700px;
}
.auth .who { font-size: 14px; opacity: 0.7; }
.auth .who strong { color: white; opacity: 1; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 26px;
}
.price-card.featured { border-color: var(--primary); border-width: 2px; position: relative; }
.price-card.featured::before {
  content: "Doporučeno"; position: absolute; top: -10px; left: 24px;
  background: var(--primary); color: white; padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.price-card.founding { border-color: var(--accent); border-width: 2px; position: relative; }
.price-card.founding::before {
  content: "25 spots"; position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: white; padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.price-card h4 { font-size: 16px; margin-bottom: 4px; color: var(--primary-dark); }
.price-card .amount { font-size: 32px; font-weight: 700; color: var(--primary-dark); margin: 8px 0; }
.price-card .amount small { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.price-card .strike { text-decoration: line-through; color: var(--text-muted); font-size: 18px; margin-right: 6px; }
.price-card ul { list-style: none; margin-top: 18px; }
.price-card li { padding: 6px 0; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.price-card li:last-child { border-bottom: none; }
.price-card .btn { margin-top: 18px; width: 100%; text-align: center; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; padding: 18px 22px; }
.faq-item summary { font-weight: 600; color: var(--primary-dark); cursor: pointer; font-size: 15px; }
.faq-item p { color: var(--text-muted); margin-top: 10px; font-size: 14px; }

/* Footer */
footer { background: var(--text); color: rgba(255,255,255,0.6); padding: 40px 0; font-size: 13px; }
footer a { color: rgba(255,255,255,0.9); }

/* === Dashboard layout === */
.app-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 22px 0;
}
.sidebar h2 { padding: 0 22px 14px; font-size: 16px; color: var(--primary); }
.sidebar ul { list-style: none; }
.sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 9px 22px;
  color: var(--text); font-size: 14px;
}
.sidebar a.active { background: var(--bg); color: var(--primary); font-weight: 600; border-right: 3px solid var(--primary); }
.sidebar a:hover { background: var(--bg); text-decoration: none; }
.sidebar .meta { padding: 18px 22px; margin-top: 30px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

.app-main { padding: 22px 32px; max-width: 100%; }
.search-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; padding: 14px 18px;
  margin-bottom: 18px;
}
.search-bar .icon { color: var(--text-muted); margin-right: 12px; font-size: 18px; }
.search-bar input { flex: 1; border: none; outline: none; font-size: 15px; font-family: inherit; background: transparent; }
.search-bar input::placeholder { color: var(--text-muted); }

.filters { display: flex; gap: 10px; margin-bottom: 22px; }
.filter-pill {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 6px 14px; font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.filter-pill.active { background: var(--primary); color: white; border-color: var(--primary); }

.result-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--text-muted); }
.result-meta strong { color: var(--text); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 24px; margin-bottom: 12px;
}
.card h3 { font-size: 16px; margin-bottom: 4px; color: var(--primary-dark); }
.card .topic { font-size: 12px; color: var(--text-muted); font-family: ui-monospace, monospace; margin-bottom: 12px; }
.card-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 14px; font-size: 13px; }
.card-row .cell-label { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.card-row .cell-val { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 2px; }
.card-row .cell-val.danger { color: var(--danger); }
.card-row .cell-val.warning { color: var(--warning); }
.card-row .cell-val.success { color: var(--success); }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge.low { background: #dcfce7; color: var(--success); }
.badge.medium { background: #fef3c7; color: var(--warning); }
.badge.high { background: #fee2e2; color: var(--danger); }

.score-mini { display: inline-flex; align-items: center; gap: 8px; }
.score-mini .num { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.score-mini .bar { width: 80px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.score-mini .bar-fill { height: 100%; background: var(--primary); }

.card-ctas { display: flex; gap: 10px; }
.btn-mini {
  padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  background: var(--bg); color: var(--primary-dark); border: 1px solid var(--border);
  cursor: pointer;
}
.btn-mini.primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-mini:hover { text-decoration: none; }

/* Project detail page */
.detail-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.detail-header .back { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; display: inline-block; }
.detail-header h1 { font-size: 26px; margin-bottom: 8px; color: var(--primary-dark); letter-spacing: -0.01em; }
.detail-meta { display: flex; gap: 22px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.detail-meta strong { color: var(--text); font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 28px 0; }
.detail-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px 26px; margin-bottom: 18px;
}
.detail-section h2 { font-size: 16px; margin-bottom: 14px; color: var(--primary-dark); }
.detail-section .desc { color: var(--text); font-size: 14px; line-height: 1.6; }

.score-big {
  text-align: center; padding: 18px 0;
}
.score-big .num { font-size: 56px; font-weight: 700; color: var(--primary); line-height: 1; }
.score-big .of { font-size: 18px; color: var(--text-muted); }
.score-big .bar { width: 100%; height: 10px; background: var(--border); border-radius: 5px; margin: 14px 0; overflow: hidden; }
.score-big .bar-fill { height: 100%; background: var(--primary); }

.signals { list-style: none; }
.signals li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.signals li:last-child { border-bottom: none; }
.signals .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.signals .dot.pos { background: var(--success); }
.signals .dot.neg { background: var(--danger); }

.partners { list-style: none; }
.partners li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.partners li:last-child { border-bottom: none; }
.partners .org-name { font-weight: 600; color: var(--text); }
.partners .org-meta { color: var(--text-muted); font-size: 12px; }
.partners .org-match { color: var(--primary); font-weight: 600; }

.table-winners { width: 100%; font-size: 13px; }
.table-winners th { text-align: left; padding: 8px 6px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.table-winners td { padding: 10px 6px; border-bottom: 1px solid var(--border); }
.table-winners td.num { font-weight: 600; color: var(--primary-dark); }

.callout {
  background: #fef3c7; border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 4px; font-size: 13px; color: #78350f;
  margin-top: 14px;
}


/* Live demo animations */
.preview-content .row {
  opacity: 0;
  animation: rowFadeIn 0.5s ease-out forwards;
}
.preview-content .row:nth-child(1) { animation-delay: 0.3s; }
.preview-content .row:nth-child(2) { animation-delay: 0.7s; }
.preview-content .row:nth-child(3) { animation-delay: 1.1s; }
.preview-content .row:nth-child(4) { animation-delay: 1.5s; }
.preview-content .row:nth-child(5) { animation-delay: 1.9s; }
.preview-content .row:nth-child(6) { animation-delay: 2.3s; }

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

/* Typing cursor in preview header */
.preview-content::before {
  content: "▌";
  color: var(--accent);
  animation: blink 1s infinite;
  margin-right: 4px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Pill pulse for emphasis */
.preview-content .pill {
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(26, 77, 64, 0.15); }
}

/* Dashboard interactive search styling */
.card.hidden { display: none; }
.search-bar input { transition: background 0.2s; }
.search-bar input:focus { background: rgba(217, 119, 6, 0.05); }

/* Query chips */
.query-chips {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.chips-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 5px 12px; font-size: 12px; color: var(--text-muted); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: #fef3c7; border-color: var(--accent); color: #78350f; }
.chip.active { background: var(--accent); border-color: var(--accent); color: white; }

/* "New" badge on card */
.new-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fef3c7; border: 1px solid #fde68a; color: #78350f;
  font-size: 11px; font-weight: 600; border-radius: 10px; padding: 2px 8px;
  margin-left: 10px; vertical-align: middle; white-space: nowrap;
}
.pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.6; }
}

/* Card hover lift */
.card { transition: box-shadow 0.18s, transform 0.18s; }
.card:hover { box-shadow: 0 4px 18px rgba(15, 51, 41, 0.1); transform: translateY(-1px); }

/* Btn-mini hover lift */
.btn-mini { transition: box-shadow 0.15s, transform 0.15s; }
.btn-mini:hover { box-shadow: 0 2px 8px rgba(15, 51, 41, 0.12); transform: translateY(-1px); }

/* Live demo floating badge (landing pages) */
.demo-badge {
  position: fixed; top: 14px; right: 14px; z-index: 1000;
  background: #fef3c7; border: 1px solid #fde68a; border-radius: 6px;
  padding: 6px 12px; font-size: 12px; color: #78350f; font-weight: 600;
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: badgePulse 3s ease-in-out infinite;
  transition: opacity 0.3s;
}
.demo-badge:hover { animation-play-state: paused; }
.demo-badge.hidden { opacity: 0; pointer-events: none; }
.demo-badge .red-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex-shrink: 0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
  50% { box-shadow: 0 2px 14px rgba(217, 119, 6, 0.3); }
}

/* Toast notification */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  background: var(--primary-dark); color: white;
  padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Score big — animated states */
.score-big .num { transition: color 0.4s; }
.score-big .bar-fill { transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
/* amber-pulse uses --warning (burnt orange) to signal low scores */
.score-big.amber-pulse .num { color: var(--warning); }
.score-big.amber-pulse .bar-fill { background: var(--warning); }

/* ===== Wrap width tokens (Fix 3) ===== */
.wrap--narrow { max-width: 760px; }
.wrap--medium { max-width: 880px; }
.wrap--wide { max-width: 940px; }

/* ===== Brand mark (ship's wheel) ===== */
.brand-mark {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 7px;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  color: var(--primary);
}
.brand-mark--lg {
  width: 72px;
  height: 72px;
  margin-right: 0;
  margin-bottom: 18px;
  display: block;
}
.brand-mark--lg svg {
  color: var(--primary);
}
/* Slow rotation on hover — kormidlo se otočí */
.brand-mark svg,
.brand-mark--lg svg {
  transition: transform 0.2s ease;
  transform-origin: center;
}
.brand-mark:hover svg,
.brand-mark--lg:hover svg,
.nav-brand:hover .brand-mark svg {
  animation: wheel-spin 3.5s linear infinite;
}
@keyframes wheel-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — Fix 1 (P1)
   ============================================================ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }
  .three-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .auth-photo {
    margin: 0 auto;
  }
  .app-shell {
    grid-template-columns: 180px 1fr;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }
  .nav-switchers {
    gap: 10px;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  h1 { font-size: 32px !important; }
  h2 { font-size: 24px !important; }
  .section-title { font-size: 26px !important; }

  .wrap { padding: 0 16px; }

  .hero { padding: 48px 0 36px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero .sub { font-size: 16px; }

  /* Preview goes under fold on mobile */
  .preview { order: 2; }

  .pricing { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }

  /* Dashboard: hide sidebar, full-width main */
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .app-main { padding: 16px; }

  .search-bar input { font-size: 14px; }

  .card { padding: 14px 16px; }

  /* Project detail: single column */
  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* Partners: single column */
  .partner-card { grid-template-columns: 1fr; }

  /* Nav: wrap links to avoid overflow */
  .nav-links {
    display: none; /* hide on mobile, users nav via scroll + CTA */
  }
  .nav-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Demo badge: reposition to bottom on narrow screens */
  .demo-badge {
    top: auto;
    bottom: 14px;
    right: 14px;
  }

  /* Search-results: collapse sidebar */
  .sr-shell { flex-direction: column; }
  .sr-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sr-main { padding: 16px; }
}

/* ── Small phone (≤480px) ── */
@media (max-width: 480px) {
  /* Persona-router buttons full-width */
  .persona-router-btns {
    flex-direction: column;
  }
  .persona-router-btns .btn-mini {
    width: 100%;
    text-align: center;
  }

  /* Pricing card minimal padding */
  .price-card { padding: 16px; }

  /* Demo badge hidden, avoid overlap with content */
  .demo-badge { display: none; }

  /* Demo tour commentary rail hidden — degrade gracefully */
  .commentary-rail { display: none; }

  /* Card row: 2 columns instead of 4 */
  .card-row { grid-template-columns: repeat(2, 1fr); }

  /* Auth section: tighter */
  .auth { padding: 40px 0; }
  .auth blockquote { font-size: 16px; }

  /* Onboarding / settings full width */
  .auth .wrap { gap: 24px; }

  /* Section padding tighter */
  section { padding: 48px 0; }
}
