:root {
  --bg: #0b0d10;
  --panel: rgba(18, 21, 26, 0.72);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f4f6f8;
  --muted: #c3c9d2;
  --accent: #ffffff;
  --fb: #1877f2;
  --radius: 14px;
  --maxw: 1672px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -40px; background: #fff; color: #000;
  padding: 8px 12px; border-radius: 8px; z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* Layout shell with the building hero as a full-bleed background.
   Base (tablet/mobile): left-heavy overlay so the left-aligned copy stays legible. */
body {
  background-image:
    linear-gradient(90deg, rgba(6,8,10,0.97) 0%, rgba(6,8,10,0.92) 34%, rgba(6,8,10,0.55) 62%, rgba(6,8,10,0.28) 100%),
    url("/assets/hero-building.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 38%;
  background-attachment: scroll;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1100px) {
  body { background-position: 50% 35%; }
}

.site-header, .hero, .site-footer { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px clamp(18px, 3vw, 46px);
}
.brand { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.brand__home { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-radius: 10px; padding: 2px; }
.brand__home:hover .brand__word { color: #fff; }
.brand__home:focus-visible { outline: 3px solid #7db3ff; outline-offset: 2px; }
.brand__he-icon { width: 84px; height: 84px; object-fit: contain; display: block; flex: none; }
.brand__wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand__word { font-weight: 800; letter-spacing: 0; text-transform: uppercase; font-size: 28px; line-height: 1.02; }
.brand__seal-link { display: inline-flex; align-items: center; text-decoration: none; border-radius: 50%; }
.brand__seal-link:hover .brand__seal { filter: brightness(1.08); }
.brand__seal-link:focus-visible { outline: 3px solid #7db3ff; outline-offset: 3px; }
.brand__seal { width: 84px; height: 84px; object-fit: contain; display: block; flex: none; }

.hero { flex: 1; padding: clamp(6px, 1vw, 12px) clamp(18px, 3vw, 46px) clamp(12px, 1.6vw, 18px); }
.hero__content { max-width: none; }
.hero__intro { max-width: 620px; }
.hero__title {
  font-family: var(--serif); font-weight: 700; margin: 0 0 .05em;
  font-size: 88px; line-height: .96; letter-spacing: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero__title::after { content: ""; display: block; width: 84px; height: 3px; background: #fff; margin: 14px 0 0; opacity: .85; }
.hero__headline { font-size: 32px; font-weight: 600; margin: 8px 0 6px; }
.hero__lede { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0; line-height: 1.4; }

.features {
  list-style: none; margin: clamp(10px, 1.4vw, 16px) 0 0; padding: 0; max-width: 862px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.feature {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 14px 12px; backdrop-filter: blur(4px); min-height: 124px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.28);
  display: flex; flex-direction: column;
}
.feature__icon { width: 42px; height: 42px; display: block; margin: 2px auto 10px; }
.feature__title { font-size: 14px; margin: 0 0 8px; font-weight: 700; text-align: center; }
.feature__text { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }

.callout {
  margin-top: clamp(8px, 1.2vw, 14px); background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 18px; padding: 14px 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  backdrop-filter: blur(4px); max-width: none;
}
.callout__badge { width: 74px; height: 74px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); display: grid; place-items: center; }
.callout__rocket { width: 60%; height: 60%; object-fit: contain; display: block; }
.callout__text { flex: 1 1 320px; }
.callout__title { margin: 0 0 4px; font-size: 30px; }
.callout__text p { margin: 0; color: var(--muted); }
.callout__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  border-radius: 12px; padding: 12px 20px; border: 1px solid transparent; font: inherit;
}
.btn:focus-visible { outline: 3px solid #7db3ff; outline-offset: 2px; }
.btn__icon { width: 26px; height: 26px; display: grid; place-items: center; flex: none; }
img.btn__icon { width: 26px; height: 26px; object-fit: contain; }
.btn__labels { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn__label { font-weight: 700; white-space: nowrap; }
.btn__sub { font-size: 12px; opacity: .8; white-space: nowrap; }
.btn--primary { background: #fff; color: #111; }
.btn--primary .btn__icon { background: transparent; }
.btn--facebook { background: #14181f; color: #fff; border-color: rgba(255,255,255,.14); }
.btn--block { width: 100%; justify-content: center; margin-top: 14px; }

.site-footer {
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  padding: 14px 12px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.tagline { margin: 0; font-size: 12px; font-weight: 400; }
.footer__domain { font-weight: 800; color: #fff; font-size: 12px; }
.footer__link { color: var(--muted); text-decoration: none; font-size: 12px; letter-spacing: .14em; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border-radius: 6px; transition: color .15s ease, background-color .15s ease; }
.footer__link:hover { color: #fff; background: rgba(255,255,255,.10); }
.footer__domain:hover { color: #fff; }
.footer__link:focus-visible { outline: 3px solid #7db3ff; outline-offset: 3px; }

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal__dialog {
  position: relative; background: #12161c; color: var(--text); border: 1px solid var(--panel-border);
  border-radius: 16px; padding: 26px; width: min(480px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal__close {
  position: absolute; top: 10px; right: 12px; background: transparent; border: 0; color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; width: 44px; height: 44px; border-radius: 8px;
}
.modal__close:focus-visible { outline: 3px solid #7db3ff; outline-offset: 2px; }
.modal__title { margin: 0 0 10px; font-size: 24px; }
.modal__desc { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.form__label { display: block; font-weight: 600; margin-bottom: 6px; }
.form__input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: #0d1116; color: #fff; font: inherit;
}
.form__input:focus-visible { outline: 3px solid #7db3ff; outline-offset: 1px; }
.form__error { color: #ff8f8f; font-size: 13px; margin: 8px 0 0; }
.form__privacy { font-size: 13px; margin: 12px 0 0; }
.form__status { margin: 12px 0 0; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer install action — semantic button styled to match footer text links */
.footer__install {
  background: transparent; border: 0; cursor: pointer; font: inherit;
  color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 400;
  gap: 6px;
}
.footer__install-mark { flex: none; width: 16px; height: 16px; }
.footer__install[hidden] { display: none; }
.footer__install:hover { color: #fff; background: rgba(255,255,255,.10); }

/* Install modal */
.install__dialog { max-height: min(90vh, 760px); overflow-y: auto; }
.install__sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.install__native { margin: 4px 0 10px; }
.install__installed { margin: 12px 0 0; font-weight: 600; color: var(--text); }
.install__manual { margin-top: 4px; }
.install__manual.is-open-fixed > summary { display: none; }
.install__manual-summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.install__manual-summary:focus-visible { outline: 3px solid #7db3ff; outline-offset: 2px; }
.install__tabs-label { margin: 10px 0 8px; font-size: 14px; color: var(--muted); }
.install__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.install__tab {
  background: #0d1116; color: var(--text); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 8px 14px; min-height: 44px; font: inherit; cursor: pointer;
}
.install__tab[aria-selected="true"] { background: #fff; color: #111; border-color: #fff; font-weight: 700; }
.install__tab:focus-visible { outline: 3px solid #7db3ff; outline-offset: 2px; }
.install__panel { margin-top: 16px; }
.install__panel:focus-visible { outline: 3px solid #7db3ff; outline-offset: 2px; }
.install__panel-title { margin: 0 0 4px; font-size: 17px; }
.install__outcome { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.install__steps { list-style: none; counter-reset: step; margin: 10px 0 0; padding: 0; }
.install__steps[hidden] { display: none; }
.install__steps li { counter-increment: step; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.install__steps li::before {
  content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: #111; font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
.install__cue { flex: none; width: 22px; height: 22px; color: var(--muted); }
.install__choose { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.install__choose[hidden] { display: none; }

/* Document pages (privacy, confirm, unsubscribe, offline) */
.doc__main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(16px, 3vw, 40px); display: flex; justify-content: center; }
.doc__card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px; padding: clamp(20px, 3vw, 36px); max-width: 760px; width: 100%; backdrop-filter: blur(4px); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.doc__title { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; line-height: 1.05; }
.doc__card h2 { font-size: 20px; margin: 22px 0 6px; }
.doc__card p, .doc__card li { color: var(--muted); }
.doc__card a { color: #cfe0ff; }
.doc__back { margin-top: 24px; }

/* ---- Responsive: explicit breakpoints, no viewport-scaled fonts ---- */
/* ============================================================================
   Desktop mirrored composition (>=1200px). Declared after the base rules so it
   wins the cascade. The photograph is never flipped: the Rocket sculpture stays
   on the left in a materially clear area, while the dark readability field moves
   to the right behind the brand cluster and the whole editorial stack.
   Below this breakpoint everything returns to the validated left/centered layout.
   ========================================================================== */
@media (min-width: 1200px) {
  body {
    background-image:
      /* subtle bottom support so the centered footer stays readable */
      linear-gradient(0deg, rgba(6,8,10,0.74) 0%, rgba(6,8,10,0.30) 15%, rgba(6,8,10,0) 34%),
      /* right-heavy readability field with a smooth falloff — no hard seam */
      linear-gradient(90deg,
        rgba(6,8,10,0.06) 0%,
        rgba(6,8,10,0.10) 24%,
        rgba(6,8,10,0.30) 42%,
        rgba(6,8,10,0.62) 54%,
        rgba(6,8,10,0.86) 66%,
        rgba(6,8,10,0.94) 78%,
        rgba(6,8,10,0.96) 100%),
      url("/assets/hero-building.jpg");
    background-position: center bottom, center, 34% 42%;
    background-size: cover, cover, cover;
  }

  /* Brand cluster anchors the upper right, aligned with the editorial stack. */
  .site-header { justify-content: flex-end; }
  .brand { margin-left: auto; }

  /* One coherent right-side editorial stack: title, underline, headline,
     paragraph and the five-card rail all share the same right edge. */
  .hero__intro { margin-left: auto; text-align: right; }
  .hero__title::after { margin-left: auto; margin-right: 0; }
  .hero__lede { margin-left: auto; }
  .features { margin-left: auto; margin-right: 0; }

  /* Card contents stay centered inside each card. */
  .feature__title, .feature__text { text-align: center; }

  /* Callout keeps its full width and vertical position; internals mirror so the
     actions sit left, the text aligns right and the decorative Rocket ends far
     right. Explicit grid areas are used instead of arbitrary `order` values, and
     DOM order is unchanged so the reading sequence stays meaningful. */
  .callout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "actions text badge";
    align-items: center;
  }
  .callout__actions { grid-area: actions; }
  .callout__text { grid-area: text; text-align: right; }
  .callout__badge { grid-area: badge; }
}
@media (max-width: 1199px) {
  body { background-position: 48% 38%; }
  .features { display: flex; flex-wrap: wrap; justify-content: center; max-width: 720px; }
  .feature { flex: 0 1 208px; }
  .hero__title { font-size: 68px; }
  .hero__headline { font-size: 28px; }
  .callout__title { font-size: 26px; }
}
@media (max-width: 899px) {
  .features { max-width: 540px; }
  .feature { flex: 0 1 248px; }
  .hero__title { font-size: 58px; }
}
@media (max-width: 767px) {
  body { background-position: 42% 45%; }
  .site-header { flex-wrap: wrap; gap: 12px; }
  .brand { gap: 14px; }
  .brand__he-icon { width: 64px; height: 64px; }
  .brand__seal { width: 64px; height: 64px; }
  .brand__word { font-size: 22px; }
  .hero__title { font-size: 46px; }
  .hero__headline { font-size: 22px; }
  .hero__lede { font-size: 15px; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout__text { flex: 0 1 auto; width: 100%; }
  .callout__title { font-size: 22px; }
  .callout__actions { flex-direction: column; width: 100%; margin-top: 2px; }
  .btn { flex: 0 0 auto; width: 100%; justify-content: center; padding: 12px 14px; }
  .btn__sub { font-size: 11px; }
  .site-footer { gap: 14px; }
}
@media (max-width: 479px) {
  .features { max-width: 420px; }
  .feature { flex: 1 1 100%; }
  .hero__title { font-size: 40px; }
  .brand__word { font-size: 20px; }
}
@media (max-width: 360px) {
  .hero__title { font-size: 34px; }
  .callout { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
