/* ---------------------------------------------------------
   BluArmor app site
   UI system lifted from thebluarmor.com (Shopify theme):
   pure black/white sections, hairline borders at 10% of the
   foreground, ALL-CAPS headings with tight tracking, pill
   buttons, 6px inputs. Typeface is Gotham instead of
   Montserrat.
   --------------------------------------------------------- */
@font-face { font-family: "Gotham"; src: url("fonts/Gotham-Light.woff2")  format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("fonts/Gotham-Book.woff2")   format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("fonts/Gotham-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("fonts/Gotham-Bold.woff2")   format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("fonts/Gotham-Black.woff2")  format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg:            0 0 0;
  --fg:            255 255 255;

  /* borders are foreground at fixed opacities, same as the theme */
  --border:        rgb(var(--fg) / 0.10);
  --border-dark:   rgb(var(--fg) / 0.40);
  --border-light:  rgb(var(--fg) / 0.06);

  --muted:         rgb(var(--fg) / 0.62);
  --faint:         rgb(var(--fg) / 0.42);

  --red:           #f30000;
  --blue:          #1B74BB;

  --radius:        6px;          /* cards, panels, inputs */
  --radius-pill:   calc(infinity * 1px);

  --page-width:    1180px;
  --page-padding:  clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: rgb(var(--fg));
  background-color: rgb(var(--bg));
  /* faint wash of the brand gradient, top-left only */
  background-image: radial-gradient(900px 620px at 0% 0%, #16212b, transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding-inline: var(--page-padding);
}

/* ---------------- header ---------------- */

.masthead {
  border-bottom: 1px solid var(--border);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}

.masthead .logo { display: block; height: 30px; width: auto; }
.masthead .logo-link:hover { text-decoration: none; opacity: 0.75; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a { color: var(--muted); }
.nav a:hover { color: rgb(var(--fg)); text-decoration: none; }

/* ---------------- type ---------------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

h1 { font-size: clamp(34px, 7vw, 76px); }

.hero-sub {
  margin: 22px 0 0;
  max-width: 62ch;
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
}

.label {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------------- sections ---------------- */

main { flex: 1; }

.section { border-bottom: 1px solid var(--border); }
.section .wrap { padding-block: clamp(52px, 8vw, 96px); }
.section--tight .wrap { padding-block: clamp(36px, 5vw, 60px); }

/* ---------------- download split ---------------- */

.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* hairline divider between the two halves, like the theme's split blocks */
.store {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(30px, 4vw, 48px) clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stores .store + .store { border-inline-start: none; }
.stores .store:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
.stores .store:last-child  { border-start-start-radius: 0; border-end-start-radius: 0; }

.store .platform {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.store .platform svg { width: 15px; height: 15px; fill: currentColor; }

.store h2 { font-size: clamp(20px, 2.4vw, 27px); }

.store .req {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.badge { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.badge:hover { text-decoration: none; opacity: 0.8; }
.badge img { display: block; height: 48px; width: auto; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border: 1px solid rgb(var(--fg));
  border-radius: var(--radius-pill);
  background: rgb(var(--fg));
  color: rgb(var(--bg));
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.btn:hover { text-decoration: none; background: transparent; color: rgb(var(--fg)); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:disabled:hover { background: rgb(var(--fg)); color: rgb(var(--bg)); }

.btn--outline { background: transparent; color: rgb(var(--fg)); }
.btn--outline:hover { background: rgb(var(--fg)); color: rgb(var(--bg)); }

/* ---------------- content blocks ---------------- */

.block { margin-bottom: 40px; }
.block:last-of-type { margin-bottom: 0; }

.block h3 {
  font-size: 13px;
  letter-spacing: 0.16em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.block li {
  position: relative;
  padding: 0 0 0 20px;
  margin-bottom: 11px;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

.block li:last-child { margin-bottom: 0; }

.block li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--border-dark);
}

.block li a { color: rgb(var(--fg)); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- form ---------------- */

.form { margin-top: 44px; }

.field { margin-bottom: 22px; }

label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

label .opt { color: var(--faint); }

.hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--faint);
}

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(var(--fg) / 0.04);
  color: rgb(var(--fg));
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}

textarea { resize: vertical; min-height: 104px; line-height: 1.5; }

input::placeholder, textarea::placeholder { color: rgb(var(--fg) / 0.3); }

input:focus, select:focus, textarea:focus {
  border-color: var(--border-dark);
  background: rgb(var(--fg) / 0.07);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='none' stroke='white' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 11px;
  padding-right: 42px;
}

.check {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--red); flex: none; }

.error {
  display: none;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 400;
  color: var(--red);
}

.error.show { display: block; }

.actions { margin-top: 28px; }

.sent { display: none; }
.sent.show { display: block; }

.sent p {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

.sent p:last-child { margin-bottom: 0; }
.sent a { color: rgb(var(--fg)); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- footer ---------------- */

.foot { border-top: 1px solid var(--border); }
.foot .wrap { padding-block: clamp(44px, 6vw, 60px); }

.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px 32px;
}

.foot h4 {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin-bottom: 11px; font-size: 14px; font-weight: 300; color: var(--muted); }
.foot li:last-child { margin-bottom: 0; }
.foot li a:hover { color: rgb(var(--fg)); }

.foot .brand img { height: 28px; width: auto; display: block; margin-bottom: 16px; }
.foot .brand p { margin: 0; font-size: 13px; font-weight: 300; color: var(--faint); max-width: 30ch; line-height: 1.6; }

.foot-base {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot-base .spacer { flex: 1; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* single column: Android on top, iOS below */
  .stores { grid-template-columns: 1fr; }
  .stores .store + .store { border-inline-start: 1px solid var(--border); border-top: none; }
  .stores .store:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .stores .store:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
  .nav { gap: 14px; font-size: 10px; letter-spacing: 0.14em; }
  .masthead .logo { height: 24px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .foot-base .spacer { display: none; }
}

@media (max-width: 520px) {
  .foot-cols { grid-template-columns: 1fr; gap: 32px; }
  .btn { width: 100%; }
}
