/* ============================================================
   SwissTrust — Global Stylesheet
   Design: Swiss precision — white, charcoal #1A1A1A, red #D0021B
   ============================================================ */

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

:root {
  --red:       #D0021B;
  --red-dark:  #A50115;
  --charcoal:  #1A1A1A;
  --gray-800:  #2D2D2D;
  --gray-600:  #555555;
  --gray-400:  #888888;
  --gray-200:  #E5E5E5;
  --gray-100:  #F5F5F5;
  --white:     #FFFFFF;
  --green:     #0A7D44;
  --amber:     #B45309;
  --blue:      #1D4ED8;

  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius: 2px;
  --shadow: 0 1px 4px rgba(0,0,0,.10);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.12);
  --max-w: 1140px;
  --nav-h: 60px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--charcoal); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--gray-600); }
small { font-size: .8125rem; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark p { color: var(--gray-200); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-size: .9375rem; font-weight: 600; border: none;
  cursor: pointer; border-radius: var(--radius); transition: background .15s, transform .1s;
  white-space: nowrap; font-family: var(--font);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--gray-600); padding: 12px 16px; }
.btn-ghost:hover { color: var(--charcoal); }
.btn-sm { padding: 8px 18px; font-size: .875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-full { width: 100%; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h); background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; }
.nav__logo-mark {
  width: 32px; height: 32px; background: var(--red); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 900; font-size: 1rem;
}
.nav__links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__link { padding: 8px 14px; font-size: .9rem; color: var(--gray-600); border-radius: var(--radius); }
.nav__link:hover { color: var(--charcoal); background: var(--gray-100); }
.nav__link--active { color: var(--charcoal); font-weight: 600; }

/* Sidebar nav (app shell) */
.app-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--nav-h)); }
.sidebar {
  background: var(--gray-100); border-right: 1px solid var(--gray-200);
  padding: 24px 0; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.sidebar__section { padding: 0 12px 24px; }
.sidebar__label { font-size: .75rem; font-weight: 600; color: var(--gray-400); letter-spacing: .08em; text-transform: uppercase; padding: 0 12px 8px; }
.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius); font-size: .9rem;
  color: var(--gray-600); transition: background .12s, color .12s;
}
.sidebar__link:hover { background: var(--gray-200); color: var(--charcoal); }
.sidebar__link--active { background: var(--white); color: var(--charcoal); font-weight: 600; box-shadow: var(--shadow); }
.sidebar__icon { width: 18px; text-align: center; opacity: .7; }
.main-content { padding: 40px; max-width: 900px; }

/* ── Cards ── */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card--flat { box-shadow: none; }
.card-header { margin-bottom: 20px; border-bottom: 1px solid var(--gray-200); padding-bottom: 16px; }
.card-title { font-size: 1.125rem; font-weight: 600; }
.card-subtitle { font-size: .875rem; color: var(--gray-400); margin-top: 2px; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; color: var(--charcoal); }
label .req { color: var(--red); margin-left: 2px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], input[type="tel"], select, textarea {
  width: 100%; padding: 10px 14px; font-size: .9375rem; font-family: var(--font);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); color: var(--charcoal); transition: border-color .15s;
  appearance: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--charcoal); }
input::placeholder { color: var(--gray-400); }
textarea { resize: vertical; min-height: 100px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-hint { font-size: .8125rem; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: .8125rem; color: var(--red); margin-top: 4px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.toggle-row:last-child { border-bottom: none; }
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--gray-200); border-radius: 12px; cursor: pointer; transition: .2s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .2s; }
.toggle input:checked + .toggle-slider { background: var(--charcoal); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.fieldset { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.fieldset legend { font-size: .875rem; font-weight: 600; padding: 0 8px; color: var(--gray-600); }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 2px; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.badge-green  { background: #DCFCE7; color: #15803D; }
.badge-amber  { background: #FEF3C7; color: #92400E; }
.badge-red    { background: #FEE2E2; color: #B91C1C; }
.badge-gray   { background: var(--gray-200); color: var(--gray-600); }
.badge-blue   { background: #DBEAFE; color: #1E40AF; }

/* Trust Score badges */
.trust-a { background: #DCFCE7; color: #15803D; font-size: 1rem; padding: 6px 16px; }
.trust-b { background: #FEF3C7; color: #92400E; font-size: 1rem; padding: 6px 16px; }
.trust-c { background: #FEE2E2; color: #B91C1C; font-size: 1rem; padding: 6px 16px; }

/* Verification badge */
.verified-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC;
  padding: 8px 16px; border-radius: var(--radius); font-weight: 600;
}
.verified-badge svg { width: 18px; height: 18px; }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--gray-400); letter-spacing: .06em; text-transform: uppercase; padding: 10px 16px; border-bottom: 2px solid var(--gray-200); }
td { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }
.table-wrap { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }

/* ── Progress / Steps ── */
.progress-bar { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.progress-bar__fill { height: 100%; background: var(--charcoal); border-radius: 3px; transition: width .3s; }

.steps { display: flex; align-items: flex-start; gap: 0; counter-reset: step; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 1px; background: var(--gray-200); }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--charcoal); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; margin-bottom: 12px; position: relative; z-index: 1; }
.step__num--done { background: var(--green); }
.step__title { font-weight: 600; font-size: .9rem; }
.step__desc { font-size: .8rem; color: var(--gray-400); margin-top: 4px; }

/* ── Doc upload widget ── */
.upload-zone {
  border: 2px dashed var(--gray-200); border-radius: var(--radius);
  padding: 32px; text-align: center; background: var(--gray-100);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.upload-zone:hover { border-color: var(--charcoal); background: var(--white); }
.upload-zone__icon { font-size: 2rem; margin-bottom: 8px; opacity: .5; }
.upload-zone__text { font-size: .9rem; color: var(--gray-600); }
.upload-zone__hint { font-size: .8rem; color: var(--gray-400); margin-top: 4px; }
.upload-zone--done { border-style: solid; border-color: var(--green); background: #F0FDF4; }
.upload-zone--flagged { border-style: solid; border-color: var(--amber); background: #FFFBEB; }
.upload-zone--rejected { border-style: solid; border-color: var(--red); background: #FEF2F2; }

.doc-row { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; }
.doc-row__icon { width: 40px; height: 40px; background: var(--gray-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.doc-row__info { flex: 1; }
.doc-row__name { font-weight: 600; font-size: .9rem; }
.doc-row__desc { font-size: .8rem; color: var(--gray-400); margin-top: 1px; }
.doc-row--done { border-color: #86EFAC; }
.doc-row--flagged { border-color: #FCD34D; }
.doc-row--pending { border-color: var(--gray-200); }

/* ── QR Certificate ── */
.cert-card {
  border: 1.5px solid var(--charcoal); border-radius: var(--radius);
  overflow: hidden; max-width: 480px;
}
.cert-card__header { background: var(--charcoal); color: var(--white); padding: 20px 24px; }
.cert-card__logo { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.cert-card__logo-mark { width: 24px; height: 24px; background: var(--red); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 900; }
.cert-card__title { font-size: .8rem; opacity: .6; margin-top: 4px; letter-spacing: .05em; text-transform: uppercase; }
.cert-card__body { padding: 24px; }
.cert-card__qr { width: 160px; height: 160px; background: var(--gray-100); border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--gray-400); }
.cert-card__code { font-family: 'Courier New', monospace; font-size: 1.375rem; font-weight: 700; letter-spacing: .1em; color: var(--charcoal); }
.cert-card__field { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-200); font-size: .875rem; }
.cert-card__field:last-child { border-bottom: none; }
.cert-card__field-label { color: var(--gray-400); }
.cert-card__field-value { font-weight: 500; }

/* ── Stat cards ── */
.stat-card { padding: 20px 24px; }
.stat-card__num { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card__label { font-size: .8125rem; color: var(--gray-400); margin-top: 4px; }

/* ── Alert ── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.alert-info { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-success { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.alert-warn { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.alert-error { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }

/* ── Auth page ── */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--gray-100); }
.auth-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); }
.auth-card__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; margin-bottom: 28px; }
.auth-card__logo-mark { width: 36px; height: 36px; background: var(--red); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 1.1rem; }
.auth-card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.auth-card__sub { font-size: .9rem; color: var(--gray-400); margin-bottom: 28px; }
.auth-card__footer { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--gray-600); }
.auth-card__footer a { color: var(--charcoal); font-weight: 600; }
.auth-divider { text-align: center; color: var(--gray-400); font-size: .8rem; margin: 16px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gray-200); }
.auth-divider span { background: white; padding: 0 12px; position: relative; }

/* ── Hero (landing) ── */
.hero { padding: 100px 0 80px; background: var(--white); }
.hero__eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.hero__eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red); }
.hero__title { margin-bottom: 24px; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__desc { font-size: 1.1rem; max-width: 540px; margin-bottom: 36px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual { position: relative; }
.hero__badge { position: absolute; top: -16px; right: -16px; background: var(--charcoal); color: white; padding: 10px 18px; font-size: .8rem; font-weight: 600; border-radius: var(--radius); }
.hero__badge span { color: var(--red); }

/* ── Feature block ── */
.feature-icon { width: 48px; height: 48px; background: var(--charcoal); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg, .feature-icon span { color: white; font-size: 1.25rem; }
.feature-title { margin-bottom: 8px; }
.feature-desc { font-size: .9rem; }

/* ── Tier table ── */
.tier-table th:first-child { width: 40%; }
.tier-check { color: var(--green); font-size: 1.1rem; }
.tier-lock  { color: var(--gray-400); font-size: 1.1rem; }
.tier-agency-col { background: #F0FDF4; }

/* ── Section label ── */
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-title { margin-bottom: 12px; }
.section-desc { color: var(--gray-600); max-width: 560px; margin-bottom: 48px; }

/* ── Swiss cross decoration ── */
.swiss-cross { display: inline-block; width: 16px; height: 16px; position: relative; }
.swiss-cross::before { content: ''; position: absolute; width: 6px; height: 16px; background: currentColor; left: 5px; }
.swiss-cross::after  { content: ''; position: absolute; width: 16px; height: 6px; background: currentColor; top: 5px; }

/* ── Cert public/agency view ── */
.cert-view { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
.cert-view__header { border-bottom: 2px solid var(--charcoal); padding-bottom: 24px; margin-bottom: 32px; }
.cert-view__tenant-name { font-size: 2rem; font-weight: 700; margin: 12px 0 4px; }
.cert-view__public-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.cert-view__fact { background: var(--gray-100); padding: 16px; border-radius: var(--radius); }
.cert-view__fact-label { font-size: .75rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.cert-view__fact-value { font-size: 1.1rem; font-weight: 600; }
.cert-view__agency-section { border-top: 2px solid var(--charcoal); margin-top: 40px; padding-top: 32px; }
.cert-view__agency-header { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.doc-viewer { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.doc-viewer__head { background: var(--gray-100); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-200); }
.doc-viewer__name { font-size: .875rem; font-weight: 600; }
.doc-viewer__body { padding: 16px; font-size: .875rem; color: var(--gray-600); }
.doc-viewer__extracted { background: var(--gray-100); padding: 12px; border-radius: var(--radius); margin-top: 10px; font-size: .8rem; }
.doc-viewer__field { display: flex; gap: 8px; padding: 3px 0; }
.doc-viewer__field-k { color: var(--gray-400); min-width: 140px; }
.doc-viewer__field-v { font-weight: 500; color: var(--charcoal); }

/* ── Verify page ── */
.verify-page { min-height: 100vh; background: var(--gray-100); display: flex; flex-direction: column; }
.verify-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 48px; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); }
.code-input { font-family: 'Courier New', monospace; font-size: 1.25rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }

/* ── Dashboard ── */
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { color: var(--gray-400); margin-bottom: 32px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-box { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; }
.stat-num { font-size: 1.75rem; font-weight: 700; }
.stat-lbl { font-size: .8rem; color: var(--gray-400); margin-top: 2px; }

/* ── Utilities ── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-gray { color: var(--gray-600); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.font-mono { font-family: 'Courier New', monospace; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--gray-200); margin: 24px 0; }
.spacer-8  { display: block; height: 8px; }
.spacer-16 { display: block; height: 16px; }
.spacer-24 { display: block; height: 24px; }
.d-none { display: none; }

/* ── Footer ── */
.footer { background: var(--charcoal); color: var(--white); padding: 48px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.footer__logo-mark { width: 28px; height: 28px; background: var(--red); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .875rem; }
.footer__desc { font-size: .875rem; color: var(--gray-400); max-width: 260px; line-height: 1.7; }
.footer__col-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 12px; }
.footer__link { display: block; font-size: .875rem; color: var(--gray-400); padding: 3px 0; transition: color .12s; }
.footer__link:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid var(--gray-800); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; color: var(--gray-400); }
.footer__swiss { display: flex; align-items: center; gap: 6px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { padding: 24px 16px; }
  .cert-view__public-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 0; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .nav__links .btn { display: none; }
  .cert-card { max-width: 100%; }
}
