/* Theme: Snapshot
   Harbor-blue night, one family (Archivo) stretched wide for headlines.
   The hero's 24-hour snapshot rail is the one loud element. Green and red
   are reserved for meaning (restored / attacked); links and buttons use sky. */

:root {
  --bg: #0e1a2b;
  --surface: #152539;
  --surface-2: #1b2f47;
  --line: #2a3f58;
  --text: #e6edf5;
  --muted: #9aabc0;
  --band: #e9eff7;
  --band-line: #c3d2e3;
  --band-ink: #12243a;
  --band-ink-soft: #4d6076;
  --band-link: #0f4c81;
  --sky: #8fcaff;
  --sky-deep: #5eaef5;
  --safe: #46c68f;
  --alert: #f2705f;

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.5rem);
  --step-4: clamp(2.6rem, 6.4vw, 4.75rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, .h3 {
  font-family: var(--font);
  font-weight: 750;
  font-stretch: 118%;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-1); font-weight: 650; font-stretch: 108%; letter-spacing: 0; }

p { margin: 0 0 1em; max-width: var(--measure); }
.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--sky); color: var(--bg); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* The logo's brand blue (#2b388f) can't carry contrast on a dark field, so the
   masthead and footer are light bands. The mark stays exactly as drawn. */
.brand img, .footer img { display: block; width: 84px; height: auto; }

/* Masthead */
.masthead { background: var(--band); border-bottom: 1px solid var(--band-line); position: sticky; top: 0; z-index: 5; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--band-ink); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--band-link); }
.primary-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.primary-nav .nav-portal { border: 1px solid var(--band-ink); border-radius: 4px; padding: 0.45rem 0.9rem; }
.primary-nav .nav-portal:hover { background: var(--band-ink); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 60rem) {
  .menu-toggle {
    display: block; font: 600 var(--step--1) var(--font); color: var(--band-ink);
    background: none; border: 1px solid var(--band-ink); border-radius: 4px; padding: 0.45rem 1rem;
  }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--band);
    border-bottom: 1px solid var(--band-line); flex-direction: column; align-items: flex-start; padding: 1rem var(--gutter) 1.5rem; }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0.9rem; }
  .primary-nav a { font-size: var(--step-0); }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-block; font: 650 var(--step-0)/1 var(--font); text-decoration: none;
  padding: 0.95rem 1.4rem; border-radius: 4px; border: 1px solid transparent;
}
.btn-primary { background: var(--sky); color: var(--bg); }
.btn-primary:hover { background: #b3dbff; }
.btn-quiet { color: var(--text); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--sky); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-bottom: 2rem; max-width: 40rem; }

.rail { margin: clamp(3rem, 7vw, 4.5rem) 0 0; }
.rail-ticks { display: grid; grid-template-columns: repeat(96, 1fr); gap: 3px; align-items: end; height: 7rem; position: relative; }
.tick { display: block; height: 55%; background: var(--safe); border-radius: 1px; opacity: 0.8; }
.tick-offsite { height: 100%; background: var(--sky); opacity: 1; }
.tick-restore { height: 80%; background: var(--safe); opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--safe); }
.tick-attack { height: 80%; background: var(--alert); opacity: 1; }
.rail-hours { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--step--1); margin-top: 0.6rem; font-variant-numeric: tabular-nums; }
.rail-callouts { display: grid; grid-template-columns: calc(38 / 96 * 100%) 1fr; margin-top: 1.25rem; }
.callout { margin: 0; font-size: var(--step--1); color: var(--muted); max-width: 16rem; }
.callout strong { display: block; color: var(--text); font-size: var(--step-0); font-variant-numeric: tabular-nums; }
.callout-restore { justify-self: end; text-align: right; padding-right: 0.9rem; border-right: 3px solid var(--safe); }
.callout-attack { padding-left: 0.9rem; border-left: 3px solid var(--alert); }
.rail figcaption { margin-top: 1.5rem; color: var(--muted); font-size: var(--step--1); }
.key-offsite { color: var(--sky); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .tick { animation: grow 0.5s calc(var(--i) * 12ms) cubic-bezier(.2,.7,.3,1) both; transform-origin: bottom; }
  .tick-attack { animation: grow 0.5s 0.46s cubic-bezier(.2,.7,.3,1) both, pulse 1.6s 1.2s ease-in-out 2; }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes pulse { 50% { opacity: 0.35; } }
}

@media (max-width: 60rem) {
  .rail-ticks { gap: 2px; height: 5rem; }
}
@media (max-width: 40rem) {
  .rail-ticks { gap: 1px; }
  .rail-callouts { grid-template-columns: 1fr; gap: 1rem; }
  .callout-restore { justify-self: start; text-align: left; padding-right: 0; border-right: 0; padding-left: 0.9rem; border-left: 3px solid var(--safe); }
  .rail-hours span:nth-child(2), .rail-hours span:nth-child(4) { visibility: hidden; }
}

/* Page head */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 18ch; font-size: clamp(2.25rem, 5vw, 3.5rem); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section:not(.band) + .section:not(.band) { padding-top: 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: var(--step-3); max-width: 22ch; }
.section-more { margin-top: 2rem; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1px; padding: 1px; }
.service { padding: 1.5rem; outline: 1px solid var(--line); }
.service h3 { margin-bottom: 0.4rem; }
.service p { margin: 0; color: var(--muted); }

.checklist, .xlist { list-style: none; margin: 0; padding: 0; }
.checklist li, .xlist li { position: relative; padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.9rem; height: 0.5rem;
  border-left: 2px solid var(--safe); border-bottom: 2px solid var(--safe); transform: rotate(-45deg); }
.checklist-tight li { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.checklist-tight li::before { top: 0.85rem; }
.xlist li::before, .xlist li::after { content: ""; position: absolute; left: 0.2rem; top: 1.3rem; width: 1rem; height: 2px; background: var(--alert); }
.xlist li::before { transform: rotate(45deg); }
.xlist li::after { transform: rotate(-45deg); }

.timeline { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 1.5rem 3.25rem; }
.timeline li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.1rem; height: 2.1rem;
  border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--sky); display: grid; place-items: center;
  font-weight: 700; font-size: var(--step--1); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.2rem; bottom: 0.2rem; width: 1px; background: var(--line); }
.timeline li:nth-child(3)::before { color: var(--safe); border-color: var(--safe); }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; margin: 0; }
.values div { border-top: 1px solid var(--line); padding-top: 1rem; }

/* Pledge: the one place a quote gets to be loud */
.pledge { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pledge-quote { margin: 0; }
.pledge-quote p { font-weight: 800; font-stretch: 122%; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12;
  letter-spacing: -0.02em; color: var(--sky); margin: 0 0 0.75rem; text-wrap: balance; }
.pledge-quote cite { font-style: normal; color: var(--muted); }
.pledge-body p:last-child { color: var(--muted); margin-bottom: 0; }
.values dt { font-weight: 700; font-stretch: 112%; font-size: var(--step-1); margin-bottom: 0.4rem; }
.values dd { margin: 0; color: var(--muted); }

/* Pricing */
.price-layout { display: grid; grid-template-columns: 20rem 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--line); padding: 2rem; position: sticky; top: 6rem; }
.price-amount { font-weight: 800; font-stretch: 125%; font-size: 5rem; line-height: 1; margin: 0; letter-spacing: -0.03em; }
.price-currency { font-size: 0.45em; vertical-align: 0.9em; margin-right: 0.05em; }
.price-unit { color: var(--muted); margin: 0.5rem 0 1.5rem; }
.faq dt { font-weight: 650; margin-top: 1.25rem; }
.faq dd { margin: 0.25rem 0 0; color: var(--muted); max-width: var(--measure); }

/* Services page */
.jump { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.jump ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.jump a { display: inline-block; padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; font-size: var(--step--1); }
.jump a:hover { border-color: var(--sky); }
.service-detail { scroll-margin-top: 5rem; }
.service-detail + .service-detail .split { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4rem); }

/* Protection page */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 0; }
.stat-row div { display: flex; flex-direction: column; border-left: 3px solid var(--safe); padding-left: 1rem; }
.stat-row dt { font-size: var(--step--1); color: var(--muted); order: 2; }
.stat-row dd { margin: 0; font-weight: 800; font-stretch: 120%; font-size: var(--step-3); line-height: 1.1; order: 1; }
.layers { display: grid; border-top: 1px solid var(--line); }
.layer { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.layer h3 { margin: 0; }
.layer ul { margin: 0; padding-left: 1.1rem; color: var(--text); }
.layer li + li { margin-top: 0.35rem; }
.layer li::marker { color: var(--muted); }

.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li p { margin-bottom: 0.4rem; }
.prose code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.9em; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 4rem; }
.contact-item { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.contact-big { font-weight: 800; font-stretch: 118%; font-size: var(--step-2); text-decoration: none; color: var(--text); overflow-wrap: anywhere; }
.contact-big:hover { color: var(--sky); }

/* CTA */
.cta { background: var(--surface-2); border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { margin-bottom: 0.3rem; }
.cta p { margin: 0; color: var(--muted); }

/* Footer */
.footer { background: var(--band); border-top: 1px solid var(--band-line); padding: 3rem 0 1.5rem; font-size: var(--step--1); color: var(--band-ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-h { font-size: var(--step--1); font-weight: 650; font-stretch: 100%; margin-bottom: 0.6rem; color: var(--band-ink); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: 0.35rem; }
.footer a { color: var(--band-ink-soft); }
.footer a:hover { color: var(--band-link); }
.footer-tag { margin-top: 0.75rem; }
.footer-legal { margin-top: 2.5rem; }

pre { white-space: pre-wrap; color: var(--muted); }

@media (max-width: 60rem) {
  .split, .price-layout, .pledge { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card { position: static; }
  .layer { grid-template-columns: 1fr; gap: 0.75rem; }
}
@media (max-width: 40rem) {
  .two-up, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 1.25rem; }
  .price-amount { font-size: 4rem; }
}
