/* BTZ kiosk for West Coast Iron.
   BTZ design system, Cool (Performance) family: white page, navy type,
   teal only on the main action, gold only inside the logo. Square corners. */

@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('../fonts/Raleway-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF;
  --navy: #0C1D2C;
  --navy-light: #2A3E52;
  --charcoal: #4A5560;
  --gray: #5A6B7A;
  --hairline: #D4D9DD;
  --panel: #F2F3F5;
  --edge: #E0E3E7;
  --teal: #0A8B94;
  --stripe: 0.8rem;
  --pad-x: 3.2rem;
  --touch: max(3.9rem, 64px);
  --head: 'Raleway', 'Helvetica Neue', sans-serif;
  --body: 'Barlow', 'Helvetica Neue', sans-serif;
}

/* Everything is sized in rem, and one rem follows the screen height,
   so the same layout fits a 768 px tall iPad and a 1024 px tall one. */
html { font-size: clamp(13px, 2.05vh, 20px); }

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

html, body { height: 100%; margin: 0; }

body {
  position: fixed; inset: 0; overflow: hidden;
  background: var(--white); color: var(--navy);
  font-family: var(--body); font-size: 1.05rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  overscroll-behavior: none; touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}

h1, h2, p, ul, table { margin: 0; }
button { font: inherit; color: inherit; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
input { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
img, svg, video { display: block; }
[hidden] { display: none !important; }

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

/* ---------- frame ---------- */
#app {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 5rem; padding: 0 var(--pad-x) 0 2rem;
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; gap: 0.8rem; }
.navbtn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: max(3.3rem, 54px); padding: 0 1.3rem 0 1rem;
  background: var(--white); border: 1px solid var(--navy); border-radius: 2px;
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.navbtn svg { width: 1.3rem; height: 1.3rem; }
.crumb {
  font-weight: 700; font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--navy-light); text-align: center; white-space: nowrap;
}
.marks { display: flex; align-items: center; justify-content: flex-end; gap: 0.9rem; }
.mark-btz { width: 10rem; height: 5rem; margin-right: -1.2rem; }
.mark-wci { width: 3.5rem; height: 3.5rem; }
.mark-rule { width: 1px; height: 3rem; background: var(--hairline); }

/* Explicit rows: the top bar is hidden on the home screen, and the screen must keep the middle row. */
#topbar { grid-row: 1; }
#screen { grid-row: 2; min-height: 0; }
#footer { grid-row: 3; }
#screen > * { animation: screen-in 200ms ease-out both; }
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }

#footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 2.4rem; padding: 0 var(--pad-x) 0 2rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.74rem; color: var(--gray);
}
#footer .tagline { font-family: var(--head); font-style: italic; font-weight: 400; font-size: 0.86rem; color: var(--gray); }
#footer .foot-right { justify-self: end; display: flex; gap: 1.2rem; }
#footer .site { color: var(--teal); font-weight: 500; }

/* ---------- type ---------- */
.eyebrow, .facts h2, .compare-title, .price-tag {
  font-family: var(--body); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--navy-light);
}
h1 {
  font-family: var(--head); font-weight: 700; font-size: 2.7rem; line-height: 1.1;
  letter-spacing: -0.005em; margin-top: 0.5rem; text-wrap: balance;
}
h1.display { font-size: 3.5rem; line-height: 1.06; }
.lead { font-size: 1.28rem; line-height: 1.42; margin-top: 0.8rem; max-width: 34em; text-wrap: pretty; }
.body { font-size: 1.05rem; line-height: 1.55; color: var(--charcoal); margin-top: 0.8rem; max-width: 40em; text-wrap: pretty; }
.fine { font-size: 0.86rem; line-height: 1.45; color: var(--gray); }

.bullets { list-style: none; padding: 0; margin-top: 0.6rem; display: grid; gap: 0.45rem; }
.bullets li { position: relative; padding-left: 1.2rem; font-size: 1rem; line-height: 1.34; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 0.52em; width: 0.42rem; height: 0.42rem; background: var(--navy-light); }

.ic { width: 1.3em; height: 1.3em; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: var(--touch); padding: 0 1.7rem;
  background: var(--navy); color: var(--white);
  border: 1px solid var(--navy); border-radius: 2px;
  font-weight: 600; font-size: 0.94rem; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
}
.btn.primary { background: var(--teal); border-color: var(--teal); }
.btn.ghost { background: var(--white); color: var(--navy); }
.btn.big { min-width: 17rem; font-size: 1.05rem; }

.btn, .navbtn, .tile, .card, .pick, .chip { transition: opacity 180ms ease-out, transform 180ms ease-out; }
.btn:active, .navbtn:active, .tile:active, .card:active, .pick:active, .chip:active { opacity: 0.88; transform: translateY(1px); }

/* ---------- video ---------- */
.vid { position: relative; overflow: hidden; background: var(--navy) center / cover no-repeat; }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 37vw; height: 100%; }
.home-text { display: flex; flex-direction: column; min-height: 0; padding: 1.4rem var(--pad-x) 1.2rem; }
.home-marks { display: flex; align-items: center; gap: 1.2rem; margin: -0.8rem 0 0.4rem -3.1rem; }
.logo-lg { width: 15.5rem; height: 7.75rem; margin-right: -1.9rem; }
.wci-lg { width: 6rem; height: 6rem; }
.home-marks .mark-rule { height: 4.6rem; }
.home .lead { max-width: 30em; }
.tiles { display: grid; gap: 0.85rem; margin-top: auto; padding-top: 1.2rem; }
.tile {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 5.5rem; padding: 0.6rem 1.5rem 0.6rem 1.6rem; text-align: left;
  background: var(--white); border: 1px solid var(--edge); border-left: var(--stripe) solid var(--navy-light);
  border-radius: 0; box-shadow: 0 1px 3px rgba(12, 29, 44, 0.05);
}
.tile-text { display: grid; gap: 0.1rem; }
.tile-title { font-family: var(--head); font-weight: 700; font-size: 1.65rem; line-height: 1.15; }
.tile-sub { font-size: 1.02rem; color: var(--gray); }
.tile .ic { width: 2rem; height: 2rem; color: var(--navy-light); }
.prompt { margin-top: 0.9rem; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gray); }
.home-media { position: relative; min-height: 0; }
.home-media .vid { position: absolute; inset: 0; }

/* ---------- two-column screens ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr);
  gap: 2.6rem; height: 100%; padding: 1.5rem var(--pad-x) 1.3rem;
}
.col-text { display: flex; flex-direction: column; min-height: 0; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 0.6rem 0.2rem 0; }
.cta-row { display: flex; gap: 0.9rem; padding-top: 1rem; }
.cta-row .btn { flex: none; }
.cta-row .btn.next { flex: 0 1 auto; min-width: 0; padding: 0 1.2rem; font-size: 0.84rem; letter-spacing: 0.12em; }
.cta-row .btn.next span { overflow: hidden; text-overflow: ellipsis; }

.col-media { display: flex; gap: 1rem; min-height: 0; height: 100%; }
.player { position: relative; height: 100%; }
.player .vid { height: 100%; }
.on-media { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; }
.player.playing .on-media { display: none; }

/* who: the photo is sized by width; the 9:16 intro video is sized by height */
.who .col-media { flex-direction: column; align-items: center; width: 35vw; }
.who .player { width: 100%; height: auto; }
.who .player .vid { width: 100%; height: auto; }
.who .player.playing { width: auto; height: 100%; }
.who .player.playing .vid { width: auto; height: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1.7px solid var(--navy); }
.stat { display: grid; gap: 0.25rem; align-content: start; }
.stat-n { font-family: var(--head); font-weight: 700; font-size: 2.2rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.stat-l { font-size: 0.92rem; line-height: 1.3; color: var(--gray); }
.split .fine { margin-top: 1.1rem; }

/* service */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin-top: 1rem; }
.service h1 { font-size: 2.4rem; }
.service .lead { font-size: 1.16rem; margin-top: 0.6rem; }
.money { display: flex; align-items: flex-start; gap: 2.2rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1.7px solid var(--navy); }
.price { display: grid; gap: 0.2rem; flex: none; }
.price-line { display: flex; align-items: baseline; gap: 0.6rem; }
.price-now { font-family: var(--head); font-weight: 700; font-size: 3.3rem; line-height: 1; font-variant-numeric: lining-nums; }
.price-was { font-family: var(--head); font-weight: 600; font-size: 1.6rem; color: var(--gray); text-decoration-thickness: 2px; }
.price-unit { font-size: 0.98rem; color: var(--gray); }
.price-note { font-size: 0.98rem; color: var(--charcoal); }

.money.has-compare .price { max-width: 13rem; }
.money.has-compare .price-line { flex-wrap: wrap; row-gap: 0.2rem; }
.money.has-compare .price-unit { flex-basis: 100%; }
.compare { flex: 1; min-width: 0; }
.compare table { width: 100%; border-collapse: collapse; margin-top: 0.3rem; font-size: 0.94rem; line-height: 1.3; }
.compare td { padding: 0.3rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.compare td.num { text-align: right; white-space: nowrap; padding-left: 1rem; font-variant-numeric: lining-nums tabular-nums; }
.compare tr.here td { font-weight: 700; border-bottom: 0; }
.compare-src { margin-top: 0.3rem; font-size: 0.74rem; color: var(--gray); }

/* 4:5 loops: the picker sits under the player */
.service .col-media { flex-direction: column; width: 35vw; }
.service .player { height: auto; flex: none; }
.service .player .vid { width: 100%; height: auto; }
.service .picker { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.6rem; }
.service:not(.tall) .pick { justify-content: center; text-align: center; padding: 0.35rem 0.5rem; }
.service:not(.tall) .pick.on { padding-left: 0.5rem; box-shadow: inset 0 -0.35rem 0 var(--navy-light); }
.service:not(.tall) .pick-thumb { display: none; }

/* 9:16 exercise clips: the picker sits beside the player */
.service.tall .col-media { flex-direction: row; width: auto; }
.service.tall .player { height: 100%; }
.service.tall .player .vid { height: 100%; width: auto; }
.service.tall .picker { display: flex; flex-direction: column; gap: 0.5rem; width: 9.4rem; overflow-y: auto; }
.service.tall .pick { padding: 0.35rem 0.9rem; }
.service.tall .pick.on { padding-left: 0.9rem; }
.service.tall .pick-thumb { display: none; }
.service.tall h1 { font-size: 2.2rem; }
.service.tall .lead { font-size: 1.1rem; }
.service.tall .facts { grid-template-columns: 1fr; gap: 0.8rem; margin-top: 1rem; }
.service.tall .bullets { gap: 0.3rem; margin-top: 0.45rem; }
.service.tall .money { flex-direction: column; gap: 0.8rem; }

.pick {
  display: flex; align-items: center; gap: 0.7rem; text-align: left;
  min-height: max(3.7rem, 58px); padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  background: var(--white); border: 1px solid var(--edge); border-radius: 0;
}
.pick.on { border-color: var(--navy); box-shadow: inset 0.35rem 0 0 var(--navy-light); padding-left: 0.7rem; }
.pick-thumb { flex: none; width: 3rem; height: 3rem; background: var(--panel) center / cover no-repeat; }
.pick-text { display: grid; min-width: 0; }
.pick-label { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.pick-note { font-size: 0.82rem; color: var(--gray); line-height: 1.2; }
.picker-cap { font-size: 0.84rem; line-height: 1.4; color: var(--gray); margin-top: 0.4rem; }

/* ---------- hub ---------- */
.hub { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100%; padding: 1.4rem var(--pad-x) 1.3rem; }
.hub-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.8rem; align-items: start; }
.hub .why { margin-top: 0.7rem; }
.framing {
  background: var(--panel); border: 1px solid var(--edge); border-left: var(--stripe) solid var(--navy-light);
  padding: 1.1rem 1.5rem 1.2rem; display: grid; gap: 0.6rem;
}
.framing p { font-size: 1.1rem; line-height: 1.45; color: var(--charcoal); }
.framing p:first-child { font-family: var(--head); font-weight: 600; font-size: 1.28rem; line-height: 1.35; color: var(--navy); }
.hub .choose { margin: 1.3rem 0 0.7rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; min-height: 0; }
.card {
  display: flex; flex-direction: column; min-height: 0; padding: 0; text-align: left;
  background: var(--white); border: 1px solid var(--edge); border-radius: 0;
  box-shadow: 0 1px 3px rgba(12, 29, 44, 0.05); overflow: hidden;
}
.card-media { position: relative; flex: 1; min-height: 0; display: block; }
.card-media .vid { position: absolute; inset: 0; }
.card-media video { object-position: center 35%; }
.card-body { display: grid; gap: 0.15rem; padding: 0.9rem 1.2rem 1rem; border-top: 0.35rem solid var(--navy-light); }
.card-title { font-family: var(--head); font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.card-sub { font-size: 0.98rem; color: var(--gray); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.45rem; }
.card-price { font-family: var(--head); font-weight: 700; font-size: 1.5rem; font-variant-numeric: lining-nums; }
.card-price s { font-weight: 600; font-size: 1.05rem; color: var(--gray); }
.card-price small { font-family: var(--body); font-weight: 400; font-size: 0.84rem; color: var(--gray); }
.card-foot .ic { width: 1.8rem; height: 1.8rem; color: var(--navy-light); }

/* ---------- contact ---------- */
.contact { height: 100%; padding: 1.3rem var(--pad-x); overflow-y: auto; }
.contact form { display: grid; gap: 1.1rem; max-width: 64rem; }
.contact-head { display: flex; align-items: baseline; gap: 1.6rem; flex-wrap: wrap; }
.contact-head h1 { margin-top: 0; }
.contact-head .lead { margin-top: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field span { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--navy-light); }
.field em { font-style: normal; font-weight: 500; letter-spacing: 0.08em; color: var(--gray); text-transform: none; }
.field input {
  width: 100%; height: max(3.9rem, 62px); padding: 0 1rem;
  background: var(--white); border: 1px solid var(--navy-light); border-radius: 2px;
  font-size: 1.45rem; font-weight: 500;
}
.field input:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }
.error { padding: 0.7rem 1rem; background: var(--panel); border-left: 0.35rem solid var(--navy); font-weight: 600; }
.choices { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.4rem; }
.choice-group { display: grid; gap: 0.5rem; align-content: start; }
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: max(3.6rem, 58px); padding: 0 1.3rem;
  background: var(--white); border: 1px solid var(--navy-light); border-radius: 2px;
  font-weight: 500; font-size: 1.08rem;
}
.chip .ic { display: none; }
.chip.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.on .ic { display: block; }
.contact-foot { display: flex; align-items: center; gap: 1.6rem; margin-top: 0.3rem; }
.contact-foot .fine { max-width: 30em; }

/* ---------- thanks ---------- */
.thanks { display: grid; align-content: center; justify-items: start; gap: 1rem; height: 100%; padding: 2rem calc(var(--pad-x) * 2); }
.accent-square { width: 1.3rem; height: 1.3rem; background: var(--navy-light); }
.thanks .btn { margin-top: 1.2rem; }

/* ---------- staff ---------- */
.staff { height: 100%; padding: 1.4rem var(--pad-x); overflow: auto; -webkit-user-select: text; user-select: text; }
.staff-gate { display: grid; gap: 1rem; max-width: 24rem; }
.staff-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.staff-head h1 { margin: 0; }
.staff-actions { display: flex; gap: 0.8rem; }
.staff-table { overflow: auto; }
.staff table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.staff th { text-align: left; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy-light); border-bottom: 1.7px solid var(--navy); padding: 0.5rem 0.8rem 0.5rem 0; }
.staff td { padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }

/* ---------- idle prompt ---------- */
#idle { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); }
.idle-box { padding: 2rem 3rem; border: 1px solid var(--navy); background: var(--white); text-align: center; }
.idle-title { font-family: var(--head); font-weight: 700; font-size: 2.2rem; line-height: 1.2; }
.idle-box p + p { font-size: 1.2rem; color: var(--charcoal); margin-top: 0.3rem; }

/* ---------- 4:3 iPads: a little less width to work with ---------- */
@media (orientation: landscape) and (max-aspect-ratio: 7/5) {
  :root { --pad-x: 2.4rem; }
  .split { gap: 2rem; }
  h1.display { font-size: 3.1rem; }
  .service .col-media, .who .col-media { width: 33vw; }
  .service.tall .col-media { width: auto; }
  .btn { padding: 0 1.3rem; }
  .hub-head { gap: 2rem; }
  .cards { gap: 1rem; }
}

/* ---------- held upright by mistake: stack and let it scroll ---------- */
@media (orientation: portrait) {
  html { font-size: clamp(13px, 1.5vh, 20px); }
  #screen { overflow-y: auto; }
  .home, .split { grid-template-columns: 1fr; height: auto; }
  .home-media { height: 50vh; }
  .split { grid-template-rows: auto; }
  .col-media, .service .col-media, .service.tall .col-media { width: 100%; height: 60vh; flex-direction: row; }
  .service .player { height: 100%; }
  .service .player .vid { height: 100%; width: auto; }
  .service .picker { display: flex; flex-direction: column; }
  .hub { height: auto; }
  .hub-head { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card-media { min-height: 30vh; }
  .fields, .choices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #screen > * { animation: none; }
  .btn, .navbtn, .tile, .card, .pick, .chip { transition: none; }
}
