.page-body { min-height: 100vh; display: flex; flex-direction: column; }
.page-body main { flex: 1; }
.page-topbar .nav-actions { gap: 18px; }
.page-topbar .nav-link { font-size: 11px; font-weight: 700; color: var(--muted); }
.page-topbar .nav-link:hover, .page-topbar .nav-link.is-active { color: var(--ink); }
.page-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0 110px; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 70px; align-items: end; border-bottom: 1px solid var(--ink); padding-bottom: 46px; margin-bottom: 52px; }
.page-hero h1 { font-size: clamp(50px, 7vw, 92px); }
.page-hero-copy { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 420px; margin: 0; }
.content-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 70px; }
.side-index { position: sticky; top: 30px; align-self: start; display: grid; gap: 2px; }
.side-index a { padding: 11px 0; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.side-index a:hover { color: var(--ink); }
.legal-copy { max-width: 720px; }
.legal-copy section { padding: 0 0 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.legal-copy h2 { font: 600 24px/1.2 Space Grotesk; margin: 0 0 15px; }
.legal-copy p, .legal-copy li { color: #555a56; font-size: 13px; line-height: 1.8; }
.legal-copy ul { padding-left: 18px; }
.legal-meta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; color: var(--muted); }
.legal-meta svg { width: 14px; }

.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.help-card { min-height: 210px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.35); }
.help-card > svg { width: 24px; margin-bottom: 34px; }
.help-card h2 { font: 600 18px Space Grotesk; margin: 0 0 9px; }
.help-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 18px; }
.help-card a { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; }
.help-card a svg { width: 14px; }

.status-summary { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); border: 1px solid var(--ink); background: white; margin-bottom: 46px; }
.status-summary > div { padding: 24px; border-right: 1px solid var(--line); }
.status-summary > div:last-child { border: 0; }
.status-summary strong, .status-summary span { display: block; }
.status-summary strong { font: 600 18px Space Grotesk; }
.status-summary span { color: var(--muted); font-size: 10px; margin-top: 7px; text-transform: uppercase; }
.status-good { display: flex; align-items: center; gap: 12px; color: #24713b; }
.status-good i { width: 10px; height: 10px; border-radius: 50%; background: #59c273; box-shadow: 0 0 0 5px rgba(89,194,115,.15); }
.service-list { border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 1fr 160px 110px; gap: 20px; align-items: center; min-height: 74px; border-bottom: 1px solid var(--line); }
.service-row strong { font-size: 13px; }
.service-row > span { color: var(--muted); font-size: 11px; }
.uptime { display: flex; justify-content: end; }
.uptime::before { content: ''; width: 108px; height: 22px; background: repeating-linear-gradient(90deg, #65c479 0 5px, transparent 5px 9px); }
.incident { margin-top: 46px; padding: 25px; border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.incident h2 { font: 600 18px Space Grotesk; margin: 0 0 8px; }
.incident p { color: var(--muted); font-size: 12px; margin: 0; }

.auth-page { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr minmax(420px, 540px); }
.auth-visual { position: relative; overflow: hidden; padding: 8vw 5vw; display: flex; flex-direction: column; justify-content: flex-end; background: #071b24 url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1800&q=85') center/cover; color: white; }
.auth-visual::after { content: ''; position: absolute; inset: 0; background: rgba(10,12,11,.5); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual h1 { font-size: clamp(54px, 6vw, 90px); max-width: 750px; }
.auth-visual p { max-width: 480px; color: #d1d3cf; line-height: 1.6; }
.auth-form-wrap { padding: 70px 55px; background: white; display: flex; flex-direction: column; justify-content: center; }
.auth-form-wrap h2 { font: 600 34px Space Grotesk; margin: 0 0 10px; }
.auth-form-wrap > p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 30px; }
.standalone-form { display: grid; gap: 12px; }
.standalone-form > label:not(.checkbox) { display: grid; gap: 7px; }
.standalone-form > label > span { font-size: 9px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.standalone-form input { min-height: 52px; border: 1px solid var(--line); border-radius: 4px; padding: 0 14px; outline: 0; }
.standalone-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,19,18,.06); }
.form-switch { margin-top: 22px; font-size: 11px; text-align: center; color: var(--muted); }
.form-switch a { color: var(--ink); font-weight: 700; }
.registration-result { text-align: center; }
.registration-result .success-icon { margin-bottom: 22px; }
.registration-result h2 { margin-bottom: 12px; }
.registration-result p { margin-bottom: 25px; }

.protected-page { min-height: calc(100vh - 76px); position: relative; overflow: hidden; background: #d8e8e5; }
.protected-content { padding: 58px max(4vw, calc((100vw - 1260px)/2)) 100px; filter: blur(8px); opacity: .64; pointer-events: none; user-select: none; }
.protected-content h1 { font-size: clamp(48px, 6vw, 84px); margin-bottom: 46px; }
.fake-toolbar { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.fake-files { display: grid; }
.fake-file { min-height: 84px; border-bottom: 1px solid #bfc1ba; display: grid; grid-template-columns: 1.7fr 1fr .6fr; align-items: center; gap: 25px; }
.fake-file strong { font-size: 13px; }
.fake-file span { color: var(--muted); font-size: 11px; }
.auth-wall { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 25px; background: rgba(244,243,239,.24); backdrop-filter: blur(2px); }
.auth-wall-card { width: min(420px, 100%); background: white; border: 1px solid var(--ink); padding: 34px; box-shadow: 12px 12px 0 rgba(17,19,18,.1); text-align: center; border-radius: 6px; }
.auth-wall-card .dialog-mark { margin: 0 auto 24px; }
.auth-wall-card h2 { font: 600 28px Space Grotesk; margin: 0 0 10px; }
.auth-wall-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 24px; }
.auth-wall-actions { display: grid; gap: 8px; }
.download-preview { width: min(850px, 100%); margin: 0 auto; background: white; border: 1px solid var(--line); }
.download-cover { aspect-ratio: 16 / 7; background: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=1500&q=85') center/cover; }
.download-details { padding: 28px; display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 800px) {
  .page-topbar .nav-link { display: none; }
  .page-wrap { padding-top: 50px; }
  .page-hero, .content-grid { grid-template-columns: 1fr; gap: 25px; }
  .side-index { display: none; }
  .help-grid { grid-template-columns: 1fr; }
  .status-summary { grid-template-columns: 1fr 1fr; }
  .status-summary > div { border-bottom: 1px solid var(--line); }
  .service-row { grid-template-columns: 1fr auto; padding: 15px 0; }
  .uptime { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 300px; padding: 55px 25px; }
  .auth-form-wrap { padding: 50px 25px; }
}

@media (max-width: 520px) {
  .page-hero h1 { font-size: 13vw; }
  .status-summary { grid-template-columns: 1fr; }
  .status-summary > div { border-right: 0; }
  .auth-wall-card { padding: 28px 20px; }
  .fake-file { grid-template-columns: 1fr auto; }
  .fake-file span:last-child { display: none; }
}
