@font-face { font-family: Barlow; src: url('/assets/fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url('/assets/fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlow-condensed-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --black: #010307;
  --ink: #060809;
  --paper: #f2f0eb;
  --white: #faf9f7;
  --field-white: #fff;
  --lime: #ddff03;
  --blue: #033eb6;
  --blue-bright: #2d6cff;
  --coral: #ff6045;
  --green: #11865f;
  --amber: #b27500;
  --rule: #a8adae;
  --screen-rule: #364044;
  --muted: #5a6062;
  --gutter: clamp(20px, 4.2vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Barlow, 'Avenir Next', sans-serif; font-size: 16px; line-height: 1.52; }
body::selection, body *::selection { background: var(--lime); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 4px; }
[hidden] { display: none !important; }

.rescue-nav {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 78px;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 10;
}
.rescue-brand { align-items: center; display: inline-flex; font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 900; gap: 8px; letter-spacing: -.025em; text-decoration: none; }
.rescue-brand svg { color: var(--ink); height: 38px; width: 38px; }
.rescue-brand > span > span { color: var(--lime); display: inline-block; font-size: 0; margin: 0 1px; width: 4px; }
.rescue-brand b { border-left: 1px solid var(--rule); color: var(--blue); font-size: .78rem; letter-spacing: .12em; margin-left: 8px; padding-left: 15px; }
.rescue-nav > nav { display: flex; gap: clamp(22px, 3vw, 48px); justify-content: center; }
.rescue-nav > nav a, .language-toggle, .install-pwa { background: transparent; border: 0; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.rescue-nav > nav a:hover { text-decoration: underline; }
.nav-actions { align-items: center; display: flex; gap: 10px; }
.language-toggle { min-height: 42px; min-width: 42px; }
.install-pwa { background: var(--lime); border: 1px solid var(--ink); min-height: 42px; padding: 0 16px; }
.install-dialog { background: var(--white); border: 1px solid var(--ink); border-radius: 0; color: var(--ink); max-width: 610px; padding: 0; width: calc(100% - 32px); }
.install-dialog::backdrop { background: rgb(1 3 7 / 82%); }
.install-dialog form { display: grid; gap: 24px; grid-template-columns: 52px 1fr; margin: 0; padding: clamp(26px, 5vw, 50px); }
.dialog-number { align-items: center; background: var(--lime); border: 1px solid var(--ink); display: flex; font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 900; height: 52px; justify-content: center; }
.install-dialog h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.025em; line-height: .92; margin: 0; }
.install-dialog ol { border-top: 1px solid var(--ink); margin: 26px 0 18px; padding: 20px 0 0 22px; }
.install-dialog li { margin: 10px 0; padding-left: 6px; }
.dialog-fine { color: var(--muted); font-size: .86rem; }
.install-dialog button { background: var(--ink); border: 1px solid var(--ink); color: var(--white); cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; min-height: 48px; padding: 0 22px; text-transform: uppercase; }
.preview-notice { align-items: center; background: var(--lime); border-bottom: 1px solid var(--ink); display: grid; gap: 20px; grid-template-columns: auto 1fr; padding: 14px var(--gutter); }
.preview-notice strong { font-family: 'Barlow Condensed', sans-serif; letter-spacing: .08em; }
.preview-notice p { margin: 0; max-width: 90ch; }

.rescue-hero {
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  min-height: calc(100svh - 78px);
  overflow: hidden;
}
.rescue-intro { align-self: center; padding: clamp(54px, 8vw, 118px) clamp(28px, 5vw, 88px) clamp(64px, 8vw, 110px) var(--gutter); }
.live-signal { align-items: center; color: #d7dcde; display: flex; font-family: 'Barlow Condensed', sans-serif; font-size: .78rem; font-weight: 700; gap: 10px; letter-spacing: .08em; margin: 0 0 32px; }
.live-signal i { background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px rgb(221 255 3 / 13%); height: 8px; width: 8px; }
.rescue-intro h1 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(4rem, 6.8vw, 7.1rem); font-weight: 900; letter-spacing: -.035em; line-height: .82; margin: 0; max-width: 760px; text-wrap: balance; }
.rescue-intro h1 em { color: var(--lime); font-style: normal; }
.hero-copy { color: #cbd0d2; font-size: 1.05rem; margin: 34px 0; max-width: 58ch; }
.domain-console { background: #06090f; border-bottom: 1px solid var(--screen-rule); border-top: 1px solid var(--screen-rule); max-width: none; padding: 22px clamp(24px, 4vw, 62px); position: relative; z-index: 2; }
.domain-console > label { color: #d9dddf; display: block; font-family: 'Barlow Condensed', sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 8px; text-transform: uppercase; }
.domain-console > div { display: grid; grid-template-columns: 1fr auto; }
.domain-console input { background: var(--field-white); border: 1px solid var(--field-white); border-radius: 0; color: var(--ink); min-height: 58px; min-width: 0; padding: 0 16px; }
.domain-console button { background: var(--lime); border: 1px solid var(--lime); border-radius: 0; color: var(--ink); cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 700; letter-spacing: .045em; min-height: 58px; padding: 0 24px; text-transform: uppercase; }
.domain-console button:hover { background: var(--white); border-color: var(--white); }
.domain-console > p { color: #9ba3a6; font-size: .8rem; margin: 9px 0 0; }
.domain-console .field-error { color: #ff9c8a; min-height: 1.2em; }

.review-console { align-self: stretch; background: #06090f; border-left: 1px solid var(--screen-rule); display: grid; grid-template-rows: auto auto minmax(220px, 1fr) auto auto; min-height: 100%; overflow: hidden; position: relative; }
.console-grid { background-image: radial-gradient(circle, rgb(255 255 255 / 18%) 1px, transparent 1px); background-size: 25px 25px; inset: 0; mask-image: linear-gradient(to bottom, #000, transparent 92%); opacity: .28; pointer-events: none; position: absolute; }
.review-console > header { align-items: center; border-bottom: 1px solid var(--screen-rule); display: flex; font-family: 'Barlow Condensed', sans-serif; font-size: .76rem; font-weight: 700; justify-content: space-between; letter-spacing: .09em; min-height: 58px; padding: 0 clamp(24px, 4vw, 62px); position: relative; }
.review-console time { color: var(--lime); font-variant-numeric: tabular-nums; }
.route-stage { display: grid; place-items: center; min-height: 330px; overflow: hidden; padding: 12px; position: relative; }
.route-stage svg { overflow: visible; position: relative; width: min(96%, 760px); z-index: 2; }
.route { fill: none; stroke-width: 7; }
.route.usual { stroke: var(--blue-bright); }
.route.blocked { stroke: var(--coral); stroke-dasharray: 15 12; }
.route.rescue { stroke: var(--lime); stroke-dasharray: 560; stroke-dashoffset: 0; }
.node rect { fill: var(--black); stroke: #879094; stroke-width: 2; }
.node text, .offsite-node text { fill: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-anchor: middle; }
.offsite-node circle { fill: var(--black); stroke: var(--lime); stroke-width: 4; }
.offsite-node text { fill: var(--lime); font-size: 12px; }
.review-cut { background: var(--lime); height: 180%; left: 53%; opacity: .92; position: absolute; top: -40%; transform: rotate(19deg); width: 7px; z-index: 1; }
.review-cut::after { background: rgb(221 255 3 / 10%); content: ''; inset: 0 -34px; position: absolute; }
.verdict { align-items: stretch; border-bottom: 1px solid var(--screen-rule); border-top: 1px solid var(--screen-rule); display: grid; grid-template-columns: 120px 1fr; min-height: 130px; position: relative; }
.verdict > span { align-items: center; background: var(--lime); color: var(--ink); display: flex; font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; font-weight: 900; justify-content: center; letter-spacing: .05em; padding: 16px; text-align: center; }
.verdict > div { align-self: center; padding: 22px clamp(24px, 4vw, 52px); }
.verdict h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.75rem, 2.4vw, 2.6rem); line-height: .96; margin: 0 0 8px; }
.verdict p { color: #b7bec0; margin: 0; max-width: 56ch; }
.verdict[data-state='active'] > span { background: var(--lime); }
.verdict[data-state='loading'] > span, .verdict[data-state='watching'] > span { background: var(--blue-bright); color: var(--white); }
.verdict[data-state='recovered'] > span { background: #21aa7b; }
.verdict[data-state='rejected'] > span, .verdict[data-state='error'] > span { background: var(--coral); }
.signal-ledger { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; position: relative; }
.signal-ledger > div { border-right: 1px solid var(--screen-rule); padding: 20px clamp(16px, 2.4vw, 34px); }
.signal-ledger > div:last-child { border-right: 0; }
.signal-ledger dt { color: #889194; font-family: 'Barlow Condensed', sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.signal-ledger dd { color: var(--white); font-size: .88rem; margin: 5px 0 0; overflow-wrap: anywhere; }

.rescue-actions { scroll-margin-top: 20px; padding: clamp(76px, 9vw, 132px) var(--gutter); }
.action-heading { align-items: end; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; padding-bottom: 24px; }
.action-heading h2, .mechanism h2, .undo h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(3rem, 5.5vw, 5.8rem); letter-spacing: -.03em; line-height: .88; margin: 0; }
.action-heading p { color: var(--muted); margin: 18px 0 0; max-width: 58ch; }
.action-identity { align-items: end; display: grid; gap: 8px; justify-items: end; max-width: 36%; text-align: right; }
.action-identity strong { color: var(--blue); font-size: clamp(1rem, 2vw, 1.5rem); overflow-wrap: anywhere; }
.action-identity a { color: var(--blue); font-size: .82rem; font-weight: 600; }
.platform-switch { display: flex; margin: 26px 0 0; }
.platform-switch button { background: transparent; border: 1px solid var(--ink); border-right: 0; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; min-height: 48px; padding: 0 22px; text-transform: uppercase; }
.platform-switch button:last-child { border-right: 1px solid var(--ink); }
.platform-switch button[aria-pressed='true'] { background: var(--ink); color: var(--white); }
.install-grid { border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; }
.install-grid > section { min-width: 0; padding: clamp(30px, 4vw, 62px); }
.temporary-option { background: var(--black); color: var(--white); }
.permanent-option { background: var(--paper); border: 1px solid var(--ink); border-bottom: 0; }
.option-title { align-items: start; display: grid; gap: 24px; grid-template-columns: 48px 1fr; }
.option-title > span { align-items: center; border: 1px solid currentColor; display: flex; font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-weight: 900; height: 48px; justify-content: center; }
.temporary-option .option-title > span { border-color: var(--lime); color: var(--lime); }
.option-title h3, .activation-check h3 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem, 3.2vw, 3.4rem); letter-spacing: -.02em; line-height: .93; margin: 0 0 13px; }
.option-title p { color: var(--muted); margin: 0; max-width: 54ch; }
.temporary-option .option-title p { color: #b7bec0; }
.scope-note { border-top: 1px solid var(--screen-rule); color: #cdd2d4; font-size: .86rem; margin: 28px 0 0 72px; max-width: 58ch; padding-top: 15px; }
.duration-picker { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 38px 0 22px 72px; }
.duration-picker label { cursor: pointer; }
.duration-picker input { opacity: 0; position: absolute; }
.duration-picker span { align-items: center; border: 1px solid var(--screen-rule); display: flex; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; justify-content: center; min-height: 48px; }
.duration-picker input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.duration-picker input:focus-visible + span { outline: 3px solid var(--blue-bright); outline-offset: 4px; }
.rescue-button { align-items: center; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; display: inline-flex; font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 700; justify-content: center; letter-spacing: .04em; min-height: 52px; padding: 0 24px; text-decoration: none; text-transform: uppercase; }
.rescue-button.primary { background: var(--lime); color: var(--ink); }
.rescue-button.secondary { background: var(--ink); color: var(--white); }
.temporary-option > .rescue-button { margin-left: 72px; }
.rescue-button:hover { background: var(--field-white); color: var(--ink); }
.rescue-button[aria-disabled='true'] { cursor: not-allowed; opacity: .45; }
.option-fine, .nomination-status { color: #939b9e; font-size: .8rem; margin: 16px 0 0 72px; max-width: 56ch; }
.is-unavailable .duration-picker { opacity: .4; pointer-events: none; }
.dns-hostname { align-items: center; border: 1px solid var(--ink); display: grid; grid-template-columns: 1fr auto; margin-top: 30px; }
.dns-hostname code { overflow: hidden; padding: 14px; text-overflow: ellipsis; white-space: nowrap; }
.dns-hostname button { align-self: stretch; background: var(--lime); border: 0; border-left: 1px solid var(--ink); cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; padding: 0 18px; }
.android-permanent ol { padding-left: 22px; }
.android-permanent li { margin: 9px 0; }
.notify-button { background: transparent; border: 0; border-bottom: 1px solid var(--ink); color: var(--blue); cursor: pointer; font-weight: 600; margin-top: 32px; padding: 7px 0; }
.notification-status { color: var(--muted); font-size: .8rem; min-height: 1.2em; }
.activation-check { align-items: center; border-bottom: 1px solid var(--ink); display: grid; gap: 28px; grid-template-columns: 1fr auto; padding: 44px 0; }
.activation-check h3 { font-size: 2rem; margin-bottom: 8px; }
.activation-check p { color: var(--muted); margin: 0; max-width: 65ch; }
.activation-check > p { grid-column: 1 / -1; min-height: 1.2em; }
.preview-actions { align-items: center; border-bottom: 1px solid var(--ink); display: grid; gap: 28px; grid-template-columns: 1fr auto; padding: 44px 0; }
.preview-actions h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; margin: 0 0 8px; }
.preview-actions p { color: var(--muted); margin: 0; max-width: 65ch; }
.preview-actions > p { grid-column: 1 / -1; min-height: 1.2em; }
body[data-profile-downloads-enabled='false'] [data-profile-installation] { display: none; }

.mechanism { background: var(--paper); display: grid; gap: clamp(44px, 8vw, 130px); grid-template-columns: .76fr 1.24fr; padding: clamp(88px, 11vw, 160px) var(--gutter); }
.mechanism-copy p { color: var(--muted); margin: 26px 0 0; max-width: 58ch; white-space: pre-line; }
.mechanism-steps { border-top: 1px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.mechanism-steps li { align-items: start; border-bottom: 1px solid var(--rule); display: grid; gap: 28px; grid-template-columns: 50px 1fr; padding: 27px 0; }
.mechanism-steps b { color: var(--blue); font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.mechanism-steps strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; }
.mechanism-steps p { color: var(--muted); margin: 6px 0 0; }

.undo { background: var(--black); color: var(--white); display: grid; gap: clamp(50px, 9vw, 150px); grid-template-columns: .9fr 1.1fr; padding: clamp(88px, 10vw, 150px) var(--gutter); }
.undo > div > p { color: #b7bec0; margin-top: 26px; max-width: 56ch; }
.undo-ledger { border-top: 1px solid var(--screen-rule); }
.undo details { border-bottom: 1px solid var(--screen-rule); }
.undo summary { cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700; padding: 23px 0; }
.undo details p { color: #b7bec0; margin: 0; padding: 0 0 26px; }

footer { align-items: start; background: var(--white); display: grid; gap: 40px; grid-template-columns: auto 1fr auto; padding: 46px var(--gutter); }
.footer-brand { align-items: center; display: flex; font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 900; gap: 8px; text-decoration: none; }
.footer-brand svg { height: 34px; width: 34px; }
footer > p { color: var(--muted); margin: 0; max-width: 64ch; }
footer nav { display: flex; gap: 20px; }

@media (max-width: 1050px) {
  .rescue-nav > nav { display: none; }
  .rescue-nav { grid-template-columns: 1fr auto; }
  .rescue-hero { grid-template-columns: 1fr; }
  .rescue-intro { min-height: calc(100svh - 78px); }
  .review-console { border-left: 0; border-top: 1px solid var(--screen-rule); min-height: 700px; }
  .install-grid, .mechanism, .undo { grid-template-columns: 1fr; }
  .mechanism, .undo { gap: 64px; }
}

@media (max-width: 700px) {
  .rescue-nav { min-height: 68px; padding-inline: 16px; }
  .rescue-brand { font-size: 1.45rem; }
  .rescue-brand svg { height: 32px; width: 32px; }
  .rescue-brand b { display: none; }
  .install-pwa { font-size: .7rem; min-height: 38px; padding-inline: 10px; }
  .install-dialog form { grid-template-columns: 1fr; }
  .rescue-intro { min-height: auto; padding: 38px 20px 26px; }
  .live-signal { font-size: .7rem; margin-bottom: 18px; }
  .rescue-intro h1 { font-size: clamp(3.15rem, 15.5vw, 4.15rem); }
  .hero-copy { font-size: .9rem; margin: 22px 0 0; }
  .domain-console > div { grid-template-columns: minmax(0, 1fr) auto; }
  .domain-console button { font-size: .78rem; margin-top: 0; padding-inline: 12px; }
  .review-console { min-height: 0; }
  .review-console > header { min-height: 44px; padding-inline: 20px; }
  .domain-console { padding: 15px 20px; }
  .domain-console input, .domain-console button { min-height: 48px; }
  .domain-console > p { margin-top: 6px; }
  .route-stage { display: none; }
  .verdict { grid-template-columns: 82px 1fr; min-height: 104px; }
  .verdict > div { padding: 15px; }
  .verdict h2 { font-size: 1.45rem; }
  .verdict p { font-size: .88rem; }
  .signal-ledger { grid-template-columns: 1fr; }
  .signal-ledger > div { border-bottom: 1px solid var(--screen-rule); border-right: 0; padding: 14px 20px; }
  .rescue-actions { padding: 74px 20px; }
  .action-heading { align-items: start; flex-direction: column; gap: 20px; }
  .action-identity { justify-items: start; max-width: 100%; text-align: left; }
  .platform-switch { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .platform-switch button { padding: 0 8px; }
  .install-grid > section { padding: 34px 24px; }
  .option-title { gap: 15px; grid-template-columns: 40px 1fr; }
  .option-title > span { height: 40px; }
  .duration-picker { margin-left: 0; }
  .temporary-option > .rescue-button, .option-fine, .nomination-status, .scope-note { margin-left: 0; }
  .activation-check { align-items: start; grid-template-columns: 1fr; }
  .activation-check > p { grid-column: auto; }
  .preview-notice, .preview-actions { align-items: start; grid-template-columns: 1fr; }
  .preview-actions > p { grid-column: auto; }
  .mechanism, .undo { padding: 88px 20px; }
  footer { grid-template-columns: 1fr; padding: 42px 20px; }
  footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) {
  .route.blocked { animation: blocked-route 2.4s linear infinite; }
  .route.rescue { animation: rescue-route 1.2s cubic-bezier(.16, 1, .3, 1) both; }
  .live-signal i { animation: signal 1.8s ease-in-out infinite; }
  @keyframes blocked-route { to { stroke-dashoffset: -54; } }
  @keyframes rescue-route { from { stroke-dashoffset: 560; } }
  @keyframes signal { 50% { opacity: .45; transform: scale(.78); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
