/* Palette follows the material language of the builds themselves: near-black
   back panels, white oak, cream text, matte orange accent. The page alternates
   dark and light bands: hero, build selector, software, contact. */
:root {
  --bg: #15110c;
  --panel: #1c1811;
  --fg: #f0e9dc;
  --muted: rgba(240, 233, 220, 0.62);
  --faint: rgba(240, 233, 220, 0.4);
  --accent: #e2622c;
  --line: rgba(240, 233, 220, 0.14);

  /* Light band. */
  --light-bg: #f6efe2;
  --light-stage: #ece1cd;
  --light-fg: #241d15;
  --light-muted: rgba(36, 29, 21, 0.7);
  --light-line: rgba(36, 29, 21, 0.2);
  --light-accent: #b4491c;

  --inner: 72rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 Helvetica, Arial, sans-serif;
}

/* ---------- bands ---------- */

.band {
  padding: 4.5rem 2.5rem;
}

.band-inner {
  max-width: var(--inner);
  margin: 0 auto;
}

.band-dark {
  background: var(--bg);
  color: var(--fg);
}

.band-light {
  background: var(--light-bg);
  color: var(--light-fg);
}

.band-accent {
  background: var(--accent);
  color: #171310;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.04;
}

p {
  margin: 0;
  color: var(--muted);
}

.band-light p {
  color: var(--light-muted);
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.band-light .eyebrow {
  color: var(--light-accent);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #171310;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.9rem;
  text-decoration: none;
}

.button:hover {
  background: var(--fg);
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  align-items: flex-end;
  min-height: min(56vh, 28rem);
  padding: 5rem 2.5rem 3.5rem;
  /* A flat panel with a faint slat rhythm - the wall the cabinets hang on,
     dialled well down so the headline carries the section. */
  background-color: var(--panel);
  background-image:
    linear-gradient(to bottom, rgba(21, 17, 12, 0.25), rgba(21, 17, 12, 0.75)),
    repeating-linear-gradient(90deg, rgba(240, 233, 220, 0.05) 0 1px, transparent 1px 15px);
}

.hero-inner {
  max-width: var(--inner);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  margin: 0.85rem 0 1.25rem;
  max-width: 20ch;
}

.hero-contact {
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-contact a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.hero-contact a:hover,
.hero-contact a:focus-visible {
  text-decoration: underline;
}

/* ---------- build selector ---------- */

/* Three equal columns rather than content-width pills, so every option is the
   same size whatever its label. On a phone they stay in one compact row
   instead of stacking into three. */
.picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 2rem;
}

@media (min-width: 48rem) {
  .picker {
    grid-template-columns: repeat(3, minmax(0, 13rem));
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
  }
}

.picker button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--light-line);
  background: transparent;
  color: rgba(36, 29, 21, 0.72);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

@media (min-width: 48rem) {
  .picker button {
    padding: 0.8rem 1rem;
  }
}

.picker button[aria-pressed="true"] {
  background: var(--accent);
  border-color: transparent;
  color: #171310;
}

.picker-label {
  /* Stacked, so "Model A" and "Shelf" sit on their own lines - and the vending
     badge lands under its label the same way. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.picker-note {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

@media (min-width: 48rem) {
  .picker-label {
    font-size: 0.9rem;
    gap: 0.2rem;
  }

  .picker-note {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

.picker button[aria-pressed="true"] .picker-note {
  opacity: 0.72;
}

.soon-badge {
  background: var(--light-accent);
  color: var(--light-bg);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .soon-badge {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.45rem;
  }
}

.picker button[aria-pressed="true"] .soon-badge {
  background: rgba(23, 19, 16, 0.22);
  color: #171310;
}

/* ---------- build stage ---------- */

.build {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 62rem) {
  .build {
    grid-template-columns: 1.4fr 1fr;
  }
}

.stage {
  position: relative;
  background: var(--light-stage);
  border-radius: 16px;
  height: min(58vh, 30rem);
  min-height: 22rem;
  overflow: hidden;
}

.stage .model {
  position: absolute;
  inset: 0;
}

.model[hidden] {
  display: none;
}

.stage-hint {
  margin-top: 0.9rem;
  color: rgba(36, 29, 21, 0.5);
  font-size: 0.82rem;
  text-align: center;
}

.build-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.build-detail p {
  font-size: 1.05rem;
}

.build-title {
  display: grid;
  gap: 0.35rem;
}

.build-points {
  display: grid;
  gap: 0.7rem;
  /* On top of the column gap, so the list sits clear of the heading. */
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--light-muted);
  font-size: 1.05rem;
}

.build-points li::marker {
  color: var(--light-accent);
}

.soon-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(180, 73, 28, 0.1);
  border-left: 3px solid var(--light-accent);
  padding: 0.75rem 1rem;
  color: var(--light-accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.soon-callout svg {
  flex-shrink: 0;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  margin-top: 0.4rem;
}

.specs div {
  border-top: 1px solid var(--light-line);
  padding-top: 0.6rem;
}

.spec-value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.spec-label {
  color: rgba(36, 29, 21, 0.6);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- software ---------- */

.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.band-head span {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 22rem;
}

.shot-grid,
.shot-captions {
  display: grid;
  gap: 4px;
}

@media (min-width: 60rem) {
  .shot-grid,
  .shot-captions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.shot-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-captions {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- contact ---------- */

.contact-inner {
  max-width: var(--inner);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.contact-inner h2 {
  max-width: 14ch;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.75rem;
  flex-wrap: wrap;
}

.contact-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact-list a {
  color: #171310;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  text-decoration: underline;
}

/* ---------- gated page headers ---------- */

.page-head {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 0.6rem 0 0.9rem;
}

.page-head p {
  max-width: 42rem;
}

/* ---------- login ---------- */

body.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.card {
  width: 100%;
  max-width: 22rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.card h1 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  text-transform: none;
  letter-spacing: -0.01em;
}

form {
  display: grid;
  gap: 0.75rem;
}

input,
form button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--line);
}

input {
  background: var(--bg);
  color: var(--fg);
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

form button[type="submit"] {
  background: var(--accent);
  color: #171310;
  font-weight: 700;
  border-color: transparent;
  cursor: pointer;
}

/* ---------- reveal password ---------- */

.password-field {
  position: relative;
}

.password-field input {
  /* Room for the toggle, so typed text never runs under it. */
  padding-right: 3rem;
}

.reveal {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.reveal:hover {
  color: var(--fg);
}

.reveal:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* One icon at a time, picked by the button state. */
.reveal .icon-hide,
.reveal[aria-pressed="true"] .icon-show {
  display: none;
}

.reveal[aria-pressed="true"] .icon-hide {
  display: block;
}

.reveal[aria-pressed="true"] {
  color: var(--accent);
}

.error {
  margin: 0;
  color: #ff8a6a;
  font-size: 0.9rem;
}

/* ---------- deal sheet (Summit Strength) ---------- */

.deal-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.deal-head h2 {
  margin: 0.5rem 0 1.25rem;
}

.deal-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(180, 73, 28, 0.1);
  border-left: 3px solid var(--light-accent);
  padding: 0.9rem 1.1rem;
  color: var(--light-accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.deal-note svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.deal-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 56rem) {
  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .deal-item-wide {
    grid-column: 1 / -1;
  }
}

.deal-item {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--light-line);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
}

.deal-item h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--light-fg);
  margin-bottom: 0.8rem;
}

.deal-item h4 {
  margin: 1.1rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-accent);
}

.deal-item p {
  font-size: 0.95rem;
}

.deal-item p + ul,
.deal-item ul + p {
  margin-top: 0.7rem;
}

.deal-item ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--light-muted);
  font-size: 0.95rem;
}

.deal-item li::marker {
  color: var(--light-accent);
}

.deal-item strong {
  color: var(--light-fg);
}

.deal-facts {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.deal-facts > div {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.deal-facts dt {
  flex: 0 0 5.5rem;
  color: rgba(36, 29, 21, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.28rem;
}

.deal-facts dd {
  margin: 0;
  color: var(--light-muted);
}

.deal-fine {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: rgba(36, 29, 21, 0.6);
}

/* Numbers still to be agreed - marked so they cannot be mistaken for terms. */
.deal-tbd {
  background: rgba(180, 73, 28, 0.14);
  border-bottom: 1px dashed var(--light-accent);
  padding: 0 0.25rem;
  font-style: italic;
}

/* ---------- sales guide ---------- */

.deal-paths {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.3rem;
  color: var(--light-muted);
  font-size: 1rem;
}

.deal-paths li::marker {
  color: var(--light-accent);
  font-weight: 800;
}

/* Instructions to the salesperson rather than terms for the gym - kept
   visually distinct so the two are never confused in front of a customer. */
.deal-flag {
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  background: rgba(36, 29, 21, 0.06);
  border-left: 3px solid rgba(36, 29, 21, 0.35);
  font-size: 0.9rem;
}

.deal-flag strong {
  color: var(--light-fg);
}
