/* ---------------------------------------------------------------------------
   zerocloudarmory.com

   One stylesheet, no scripts, no outside fonts. The look is the app's:
   near-black with the topographic map, blaze orange, squared panels with
   corner ticks, small spaced capitals for labels. The colors are the app's
   tokens (which are GunPartSeeker's palette) and must stay identical to
   src/app/globals.css in the app's repository.
--------------------------------------------------------------------------- */
:root {
  --surface-0: #080a0b;
  --surface-1: #171b1e;
  --surface-2: #22272a;
  --line: #343a3d;
  --line-strong: #65696c;
  --text: #f0f0ea;
  --text-dim: #c5c5c1;
  --text-faint: #9b9fa2;
  --orange: #ff6a00;
  --orange-hover: #ff8a33;
  --on-orange: #080a0b;
  --orange-dim: #3a271a;
  --positive: #7cc79a;
  --caution: #e0b04a;
  --caution-dim: #2f2d23;

  --sans:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --page: 72rem;
  --gutter: 1.25rem;
  color-scheme: dark;
}

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

html {
  background: var(--surface-0);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--orange);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--orange-hover);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Fixed topographic background: the app's layer, drawn the same way. */
.topo-layer {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background-color: var(--surface-0);
  contain: strict;
}
.topo-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/topo.svg");
  background-repeat: repeat;
  background-position: center top;
  background-size: 1400px 1400px;
  opacity: 0.5;
}
.topo-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 38%, transparent 35%, rgb(0 0 0 / 0.55) 100%);
}
@media (max-width: 40rem) {
  .topo-layer::before {
    background-size: 1000px 1000px;
  }
}

/* Layout ------------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: 4rem;
}
@media (min-width: 56rem) {
  section {
    padding-block: 5.5rem;
  }
}

.skip {
  position: absolute;
  left: -100rem;
}
.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 700;
}

/* Type -------------------------------------------------------------------- */
.caps {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--orange);
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.5rem);
}
h1 span,
h1 em {
  display: block;
}
h1 em {
  font-style: normal;
  color: var(--orange);
}
h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
}
h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.lede {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--text-dim);
}
.section-lede {
  margin-top: 0.9rem;
  max-width: 42rem;
  color: var(--text-dim);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface-1);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn-primary {
  border-color: var(--orange-hover);
  background: var(--orange);
  color: var(--on-orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  color: var(--on-orange);
}
.btn-small {
  min-height: 2.75rem;
  padding: 0 1rem;
  font-size: 0.75rem;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(8 10 11 / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--orange);
  text-decoration: none;
}
.brand:hover {
  color: var(--orange);
}
.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.brand span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.site-nav {
  display: none;
  gap: 1.6rem;
}
.site-nav a {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.75rem;
}
.site-nav a:hover {
  color: var(--text);
}
@media (min-width: 56rem) {
  .site-nav {
    display: flex;
  }
}
@media (max-width: 26rem) {
  .brand span {
    font-size: 0.9rem;
  }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  padding-block: 3.5rem 4rem;
}
.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}
.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.hero-phones .phone:first-child {
  width: min(62%, 17rem);
  z-index: 1;
}
.hero-phones .phone:last-child {
  width: min(52%, 14.5rem);
  margin-left: -12%;
  margin-top: 3.5rem;
}
@media (min-width: 56rem) {
  .hero {
    padding-block: 5rem 5.5rem;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* A plain phone outline around a screenshot. */
.phone {
  padding: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.75rem;
  background: #0d1011;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.6);
}
.phone img {
  width: 100%;
  border-radius: 1.35rem;
}

/* Panels: the app's framed block with two corner ticks. ------------------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-1);
  padding: 1.4rem 1.25rem 1.3rem;
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  border: 0 solid var(--text-faint);
}
.panel::before {
  top: -1px;
  left: -1px;
  border-top-width: 1px;
  border-left-width: 1px;
}
.panel::after {
  right: -1px;
  bottom: -1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
}
.panel > .caps:first-child {
  display: block;
  margin-bottom: 0.7rem;
}
.panel h3 + p,
.panel h3 + ul,
.panel h3 + ol {
  margin-top: 0.6rem;
}
.panel p,
.panel li {
  font-size: 0.9375rem;
  color: var(--text-dim);
}
.panel ul,
.panel ol {
  margin: 0;
  padding-left: 1.15rem;
}
.panel li + li {
  margin-top: 0.4rem;
}
.panel li::marker {
  color: var(--text-faint);
}

.grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.25rem;
}
@media (min-width: 40rem) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Spacing adjustments (classes, because the page allows no inline styles). */
.grid.no-top {
  margin-top: 0;
}
section.flush-top {
  padding-top: 0;
}
section.tight-top {
  padding-top: 1rem;
}
.after-grid {
  margin-top: 1.5rem;
}

/* The four "no" tiles under the hero. */
.promise {
  padding-block: 0 1rem;
}
.promise .panel {
  background: rgb(23 27 30 / 0.92);
}
.promise h3 {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.promise h3 span {
  color: var(--orange);
}

/* Screens ----------------------------------------------------------------- */
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(68vw, 15.5rem);
  gap: 1.25rem;
  /* As wide as its phones when they fit (and then centred); otherwise the
     full width, scrolling sideways from the first one. */
  width: fit-content;
  max-width: 100%;
  margin: 2.25rem auto 0;
  padding: 0.5rem var(--gutter) 2rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.screens figure {
  margin: 0;
  scroll-snap-align: center;
}
.screens figcaption {
  margin-top: 0.9rem;
  text-align: center;
}

/* Privacy ----------------------------------------------------------------- */
.split {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.25rem;
}
@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}
.panel-caution {
  border-color: rgb(224 176 74 / 0.35);
  background: var(--caution-dim);
}
.panel-caution::before,
.panel-caution::after {
  border-color: var(--caution);
}
.panel-caution > .caps:first-child {
  color: var(--caution);
}
.panel-caution p,
.panel-caution li {
  color: var(--text);
}
.spec {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-faint);
}

/* Install ----------------------------------------------------------------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}
.steps li {
  position: relative;
  padding-left: 2rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--orange);
}
.note {
  margin-top: 0.9rem;
  font-size: 0.8125rem !important;
  color: var(--text-faint) !important;
}
.center {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* FAQ --------------------------------------------------------------------- */
.faq {
  margin-top: 2.25rem;
  max-width: 50rem;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--orange);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  padding-bottom: 1.1rem;
  max-width: 44rem;
  color: var(--text-dim);
}
.faq details p + p {
  margin-top: -0.4rem;
}

/* Closing call + footer --------------------------------------------------- */
.closing {
  text-align: center;
}
.closing .panel {
  padding: 2.75rem 1.5rem;
}
.closing p {
  margin: 0.9rem auto 0;
  max-width: 34rem;
  font-size: 1rem;
}
.closing .hero-actions {
  justify-content: center;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgb(8 10 11 / 0.88);
  padding-block: 2.25rem 2.75rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}
.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}
.site-footer p {
  max-width: 44rem;
}
.site-footer p + p {
  margin-top: 0.6rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
@media (min-width: 56rem) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

/* 404 --------------------------------------------------------------------- */
.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
