/* Masada Armour landing pages. One ground, one ink, one accent.
   The motif is the vest's laser-cut slot: a wide rectangle with soft ends.
   It shapes the buttons, the quantity selector, the picture frames and the band. */

:root {
  --ground: #0b0b0b;
  --panel: #171717;      /* one tone step above the ground */
  --ink: #f4f3f1;
  --muted: #b9b6b1;
  --red: #a3282d;        /* the logo's red */
  --red-deep: #7f1d22;
  --white: #ffffff;
  --black: #0b0b0b;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-name: clamp(6.5rem, 2rem + 19vw, 17rem);

  --gutter: clamp(16px, 4vw, 32px);
  --gap-section: clamp(88px, 12vw, 184px);
  --slot-r: 14px;        /* slot ends, small things */
  --plate-r: 28px;       /* slot ends, large things */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Heebo", "Arial Hebrew", Arial, sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; }
h2 { font-size: var(--step-head); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--red); color: var(--white); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 2px; height: 2px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

main > section, .foot, .bar { padding-inline: var(--gutter); }
main > section { margin-top: var(--gap-section); }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.bar__logo img { width: clamp(112px, 12vw, 148px); }
.bar__link { font-weight: 500; text-decoration: none; padding: 10px 12px; margin-inline-end: -12px; }
.bar__link:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- buttons: one slot shape ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 36px;
  background: var(--red); color: var(--white);
  border: 0; border-radius: var(--slot-r);
  font: inherit; font-weight: 800; font-size: var(--step-lead); line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--dark { background: var(--black); }
.btn--dark:hover { background: #262626; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- plates: pictures sit in slot-shaped frames ---------- */
.plate { border-radius: var(--plate-r); overflow: hidden; background: #7d7781; }
.plate--white { background: var(--white); }

/* ---------- hero ---------- */
.hero {
  margin-top: clamp(8px, 2vw, 24px) !important;
  display: grid; gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  min-height: calc(100svh - 110px);
}
.hero__title { display: grid; gap: 4px; }
.hero__name {
  font-family: "Big Shoulders Stencil", "Heebo", sans-serif;
  font-size: var(--step-name); font-weight: 900; line-height: .82; letter-spacing: 0;
  filter: url(#worn);
  text-align: right; white-space: nowrap;
}
.hero__what { font-size: var(--step-head); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.hero__lead { margin-top: 36px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.4; }
.hero .btn { margin-top: 36px; }
.hero__media { justify-self: center; width: min(100%, 66svh); aspect-ratio: 4 / 5; max-height: calc(100svh - 130px); }
.hero__media { padding: clamp(16px, 3vw, 40px); display: flex; align-items: center; justify-content: center; }
.hero__media img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- laser band: rows of the vest's own slots ---------- */
.laser {
  margin-top: var(--gap-section);
  height: clamp(84px, 11vw, 148px);
  background-color: var(--ground);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='37'%3E%3Crect x='12' y='11' width='108' height='15' rx='6' fill='%23202020'/%3E%3C/svg%3E");
  background-size: 132px 37px;
  background-position: center;
}

/* ---------- product data ---------- */
.specs { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; }
.specs__list { margin: clamp(28px, 4vw, 48px) 0 0; display: grid; gap: 10px; }
.specs__list > div { background: var(--panel); border-radius: var(--slot-r); padding: 20px 24px; display: grid; gap: 4px; }
.specs__list dt { font-weight: 800; font-size: var(--step-lead); line-height: 1.25; }
.specs__list dd { margin: 0; color: var(--muted); }
.specs__pic { position: relative; padding: clamp(16px, 3vw, 36px); }
.specs__pic img { width: 100%; max-height: 70svh; object-fit: contain; }
.specs__pic figcaption { position: absolute; inset-inline-start: 18px; bottom: 14px; color: var(--black); font-weight: 800; }

/* ---------- views ---------- */
.views__head { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.views__head p { max-width: 38ch; font-size: var(--step-lead); line-height: 1.4; }
.views__row { margin-top: clamp(32px, 5vw, 64px); display: grid; gap: clamp(12px, 1.6vw, 24px); grid-template-columns: 1fr 1fr 1fr; align-items: stretch; }
.views figure { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 40px); }
.views figure img { width: 100%; max-height: 62svh; object-fit: contain; }
.views figcaption {
  position: absolute; inset-inline-start: 16px; bottom: 14px;
  color: var(--black); font-weight: 800; font-size: var(--step-body);
}

/* ---------- register: the red field ---------- */
.register {
  background: var(--red); color: var(--white);
  border-radius: var(--plate-r) var(--plate-r) 0 0;
  padding-block: clamp(56px, 8vw, 120px);
  display: grid; gap: clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  scroll-margin-top: 16px;
}
.register__head { display: grid; gap: 24px; position: sticky; top: 32px; }
.register__head p { max-width: 24ch; font-size: var(--step-lead); line-height: 1.4; }

.form { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; }
.field label, .qty legend { font-weight: 500; font-size: var(--step-body); }
.field input {
  width: 100%; min-height: 56px; padding: 0 18px;
  background: var(--white); color: var(--black);
  border: 0; border-radius: var(--slot-r);
  font: inherit; font-size: 1.125rem;
}
.field input:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.field input[dir="ltr"] { text-align: left; }
.field.is-bad input { outline: 3px solid var(--black); outline-offset: 2px; }

.qty, .check, .form__plain, .form__error, .form .btn, .form__note { grid-column: 1 / -1; }
.form__plain { margin-top: -8px; padding-inline-start: 36px; font-weight: 500; }
.form__note a { text-underline-offset: 4px; }
.qty legend { padding: 0; margin-bottom: 10px; }
.qty__slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.slot span {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; border-radius: var(--slot-r);
  background: var(--red-deep); color: var(--white);
  font-weight: 800; font-size: 1.25rem;
  transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.slot:hover span { transform: translateY(-2px); }
.slot input:checked + span { background: var(--white); color: var(--black); }
.slot input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }
.qty__more { margin-top: 14px; max-width: 220px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-body); line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--black); }
.check a { text-underline-offset: 4px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 2px; height: 2px; overflow: hidden; }

.form .btn { width: 100%; margin-top: 8px; }
.form__note { text-align: center; font-size: var(--step-body); }
.form__error { background: var(--black); color: var(--white); padding: 14px 18px; border-radius: var(--slot-r); font-weight: 500; }
.done { grid-column: 2; display: grid; gap: 16px; align-content: center; min-height: 320px; }
.done h3 { font-size: var(--step-head); font-weight: 900; line-height: 1; }
.done p { font-size: var(--step-lead); max-width: 26ch; }
.done:focus { outline: none; }

/* ---------- faq ---------- */
.faq { margin-top: 0 !important; padding-block: clamp(56px, 8vw, 120px); background: var(--panel);
  display: grid; gap: clamp(24px, 6vw, 96px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--ground); border-radius: var(--slot-r); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-weight: 800; font-size: var(--step-lead); line-height: 1.25;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 12px; border-radius: 5px; background: var(--red);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.faq details[open] summary::after { background: var(--ink); transform: scaleX(.45); }
.faq details p { padding: 0 22px 22px; max-width: 46ch; color: var(--ink); }

/* ---------- footer ---------- */
.foot { padding-block: clamp(56px, 8vw, 104px) 40px; display: grid; gap: 28px; justify-items: center; text-align: center; }
.foot__logo { width: clamp(200px, 26vw, 300px); }
.foot__line { font-size: var(--step-small); color: var(--muted); }

/* ---------- legal page ---------- */
.legal { max-width: 70ch; margin-inline: auto; padding: 24px var(--gutter) 96px; }
.legal h1 { font-size: var(--step-head); font-weight: 900; line-height: 1.05; margin-bottom: 24px; }
.legal h2 { font-size: var(--step-lead); font-weight: 800; letter-spacing: 0; line-height: 1.3; margin: 36px 0 10px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal .draft { background: var(--red); color: var(--white); padding: 14px 18px; border-radius: var(--slot-r); font-weight: 500; }

/* ---------- entrances (only when scripts run) ---------- */
.js [data-in] { opacity: 0; transform: translateY(24px); }
.js [data-in].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- phone ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .hero__name { font-size: clamp(6rem, 34vw, 11rem); }
  .hero__lead { margin-top: 20px; }
  .hero .btn { margin-top: 24px; width: 100%; }
  .hero__media { width: min(100%, 420px); max-height: none; }
  .specs { grid-template-columns: 1fr; }
  .views__head { grid-template-columns: 1fr; }
  .views__row { grid-template-columns: 1fr 1fr; }
  .views__row figure:first-child { grid-column: 1 / -1; }
  .hero__media { aspect-ratio: auto; }
  .views figure img { max-height: 56svh; }
  .register, .faq { grid-template-columns: 1fr; }
  .register__head { position: static; }
  .form { grid-template-columns: 1fr; }
  .qty__slots { grid-template-columns: repeat(3, 1fr); }
  .done { grid-column: 1; min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-in] { opacity: 1; transform: none; }
  .js [data-in].is-in, .btn, .slot span { transition: none; }
}
