/* Premier Pontoons – Model Select prototype
   Stage is a fixed 1440x810 layout, scaled to fit the window. */

:root {
  --pm-black: #000000;
  --pm-blue: #002169;
  --pm-lightgray: #F4F4F4;
  --pm-white: #FFFFFF;
  --pm-label: #818181;
  --pm-border: #E9E9E9;
  --stage-w: 1440px;
  --stage-h: 810px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #0b0d12;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }
img { display: block; }

#viewport { position: fixed; inset: 0; overflow: hidden; }

#stage {
  position: absolute;
  left: 0; top: 0;
  width: var(--stage-w);
  height: var(--stage-h);
  transform-origin: 0 0;
  overflow: hidden;
  background: #fff;
  font-family: 'Saira Condensed', sans-serif;
  color: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 30px 80px rgba(0,0,0,.6);
}

.screen { position: absolute; inset: 0; }
.screen.is-off, .screen.is-off * { visibility: hidden !important; }   /* stays laid out, so the first paint is not during the iris */

/* ---------- Splash ---------- */
#splash { background: #000; overflow: hidden; transform-origin: 50% 50%; }
#splash video {
  will-change: transform;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
}
.logo-circle {
  position: absolute; left: 644px; top: 468px;
  width: 152px; height: 152px;
  border-radius: 50%;
  background: rgba(217,217,217,.2);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.logo-crop {
  position: absolute; left: 24px; top: 43px;
  width: 103px; height: 80px;
  overflow: hidden;
}
.logo-crop img {
  position: absolute;
  left: -34.18%; top: -.18%;
  width: 171.56%; height: 125.37%;
  max-width: none;
}
.splash-cta {
  position: absolute; left: 0; top: 658px;
  width: 1440px; margin: 0;
  font-weight: 400; font-size: 60px; line-height: 65px;
  letter-spacing: 4.8px; text-indent: 4.8px; text-transform: uppercase; /* indent balances the trailing tracking so centering matches Figma */
  color: #fff; text-align: center; white-space: nowrap;
}
.splash-title {
  position: absolute; left: 0; top: 69px;
  width: 1440px; margin: 0;
  font-weight: 500; font-size: 100px; line-height: 100px;
  letter-spacing: 8px; text-indent: 8px; text-transform: uppercase;
  color: #fff; text-align: center; white-space: nowrap;
}

/* ---------- FX layer (ripples) ---------- */
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.ripple {
  position: absolute;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  opacity: 0;
}

/* ---------- Model screen ---------- */
#model { background: #fff; overflow: hidden; transform-origin: 50% 50%; }

.heroes { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.hero {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.hero.is-current { opacity: 1; visibility: visible; }
.hero .layer { position: absolute; overflow: hidden; }
.hero .layer img { position: absolute; max-width: none; }
.hero .layer img.cover { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .patch { position: absolute; background: #fff; }

/* Tab row */
.tabs-title {
  position: absolute; left: 87px; top: 23px;
  height: 20px; line-height: 20px;
  font-weight: 600; font-size: 12px; letter-spacing: .96px;
  white-space: nowrap;
}
.tabs-line {
  position: absolute; left: 87px; top: 48px;
  width: 811px; height: 1px;
  background: rgba(0,0,0,.3); border-radius: 1px;
}
.tab-card {
  position: absolute; left: 0; top: 57px;
  width: 126px; height: 69px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--pm-border);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  will-change: transform;
}
.tabs { position: absolute; left: 92px; top: 58px; width: 790px; height: 64px; }
.tab {
  position: absolute; top: 0; height: 64px;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer;
}
.tab::before { content: ''; position: absolute; inset: -14px -24px; } /* larger touch target */
/* Two renders per tab: .on is the dark colorway (active), .off the white colorway (inactive, faded as in the comp) */
.tab .thumb { position: absolute; overflow: hidden; transition: opacity .25s ease; }
.tab .thumb.on { opacity: 0; }
.tab .thumb.off { opacity: .26; }
.tab.is-active .thumb.on { opacity: 1; }
.tab.is-active .thumb.off { opacity: 0; }
.tab:not(.is-active):active .thumb.off { opacity: .55; }
.tab .thumb img { position: absolute; max-width: none; }
.tab .thumb img.cover { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tab .lbl {
  position: absolute; left: 0; right: 0; top: 49px;
  height: 15px; line-height: 15px;
  font-size: 14px; letter-spacing: 1.12px; text-transform: uppercase;
  text-align: center; white-space: nowrap;
}
.tab .lbl span { position: absolute; left: 0; right: 0; top: 0; transition: opacity .25s ease; }
.tab .lbl .r { font-weight: 400; opacity: .4; }
.tab .lbl .m { font-weight: 500; opacity: 0; }
.tab.is-active .lbl .r { opacity: 0; }
.tab.is-active .lbl .m { opacity: 1; }

/* Copy column */
.copies { position: absolute; left: 87px; top: 0; width: 420px; height: 810px; pointer-events: none; }
.copy { position: absolute; inset: 0; visibility: hidden; }
.copy.is-current { visibility: visible; }
.copy .line { position: absolute; left: 0; }
.copy .in { position: relative; will-change: transform, opacity; }
#model.mask-lines .copy .line { overflow: hidden; }
.copy .title {
  top: 200.5px; height: 72px; line-height: 72px;
  font-weight: 500; font-size: 72px; letter-spacing: 5.76px; white-space: nowrap;
}
.copy .tag {
  top: 274px; height: 28px; line-height: 20px;
  font-size: 18px; letter-spacing: 1.44px; white-space: nowrap;
}
.copy .spec { width: 240px; height: 60px; }
.copy .spec .k {
  font-family: 'Saira', sans-serif;
  font-size: 13px; line-height: 1.1; letter-spacing: .52px;
  color: var(--pm-label); white-space: nowrap;
}
.copy .spec .v { font-size: 36px; line-height: 1.1; letter-spacing: 1.44px; white-space: nowrap; margin-top: 2.4px; }
.copy .spec.cap { top: 351px; }
.copy .spec.len { top: 430px; }
.copy .spec.price { top: 509px; }

/* CTA */
.cta {
  position: absolute; left: 90px; top: 706px;
  width: 149px; height: 62px;
  border-radius: 12px;
  background: var(--pm-blue);
  border: 1px solid var(--pm-border);
  padding: 0; cursor: pointer;
  transform-origin: 50% 50%;
  transition: transform .12s ease, filter .12s ease;
}
.cta .t {
  position: absolute; left: 26px; top: 13px;
  font-weight: 500; font-size: 18px; line-height: 18px; letter-spacing: 1.44px;
  color: var(--pm-lightgray); text-align: left; white-space: nowrap;
}
.cta .chev { position: absolute; left: 108px; top: 24px; width: 21px; height: 11px; transform: rotate(-90deg); }
.cta.is-pressed { transform: scale(.96); filter: brightness(1.35); }

/* Pagination dots */
.dots {
  position: absolute; left: 681px; top: 760.23px; height: 7.51px;
  display: flex; align-items: center; gap: 9px;
}
.dot {
  width: 7.51px; height: 7.51px; border-radius: 4px;
  background: #000; opacity: .48;
  transition: width .35s cubic-bezier(.4,0,.2,1), height .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
}
.dot.is-active { width: 16.75px; opacity: 1; }
.dot.is-small { width: 3.96px; height: 3.96px; }

/* Figma reference overlay (dev) */
#refOverlay {
  position: absolute; inset: 0; width: 1440px; height: 810px;
  pointer-events: none; z-index: 60; opacity: .5; display: none;
}
#refOverlay.is-on { display: block; }
#refOverlay.is-diff { mix-blend-mode: difference; }

/* ---------- Tuner (outside the stage, not scaled) ---------- */
#tuner {
  position: fixed; left: 0; top: 0; z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 13px; color: #e8eaf0;
  -webkit-user-select: none; user-select: none;
}
#tuner .handle {
  position: absolute; left: 0; top: 24px;
  width: 44px; height: 104px;
  border: 0; border-radius: 0 12px 12px 0;
  background: rgba(14,16,22,.85); color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
#tuner .handle span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .22em; font-size: 11px; font-weight: 600; }
#tuner .panel {
  position: absolute; left: 0; top: 0;
  width: 340px; height: 100vh;
  background: rgba(14,16,22,.97);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 22px 48px;
  box-shadow: 0 0 60px rgba(0,0,0,.5);
  touch-action: pan-y;
}
#tuner.is-open .panel { transform: none; }
#tuner.is-open .handle { transform: translateX(340px); }

.t-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.t-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.t-head .close { background: none; border: 0; color: #9aa0ad; font-size: 20px; line-height: 1; cursor: pointer; padding: 6px; }
.t-sub { color: #8b91a0; font-size: 12px; margin: 0 0 14px; line-height: 1.4; }
.t-section { margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8b91a0; }
.t-blurb { color: #b4b9c6; font-size: 12px; line-height: 1.45; margin: 6px 0 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: rgba(255,255,255,.06); padding: 4px; border-radius: 10px; }
.seg button {
  border: 0; border-radius: 7px; padding: 9px 6px;
  background: transparent; color: #c8ccd6; cursor: pointer; font-size: 12.5px; font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.seg button.is-on { background: #fff; color: #0b0d12; }
.row { display: block; margin: 10px 0; }
.row .lab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.row .lab b { font-weight: 500; color: #dfe3ec; }
.row .lab .val { color: #8b91a0; font-variant-numeric: tabular-nums; font-size: 12px; }
.row input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer;
}
.row input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); }
.row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-top: -7px;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.row select {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font-size: 13px;
}
.row.toggle { display: flex; align-items: center; justify-content: space-between; }
.switch { position: relative; width: 40px; height: 22px; border-radius: 11px; background: rgba(255,255,255,.18); border: 0; cursor: pointer; padding: 0; transition: background .15s ease; }
.switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.switch.is-on { background: #3b82f6; }
.switch.is-on::after { transform: translateX(18px); }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.btns button {
  border: 1px solid rgba(255,255,255,.14); border-radius: 9px;
  background: rgba(255,255,255,.06); color: #fff; padding: 10px 8px;
  cursor: pointer; font-size: 12.5px; font-weight: 600;
}
.btns button:active { background: rgba(255,255,255,.16); }
.btns button.wide { grid-column: 1 / -1; }
.t-status { margin-top: 8px; color: #8b91a0; font-size: 12px; }
.is-hidden { display: none !important; }

/* =====================================================================
   Refinements over the Figma comp (everything above is the comp as built)
   ===================================================================== */

/* 1. Discoverability: inactive tabs read as tappable, bigger dots. Values come from the tuner. */
.tab .thumb.off { opacity: var(--tab-inactive, .4); }
.tab:not(.is-active):active .thumb.off { opacity: .7; }
.tab .lbl .r { opacity: var(--lbl-inactive, .55); }
.dots { transform: scale(var(--dot-scale, 1.6)); transform-origin: 50% 50%; }

/* Model name and tagline are one block behind one mask, so they reveal in a single move */
.copy .head { top: 200.5px; width: 420px; height: 104px; }
.copy .head .in { height: 100%; }
.copy .head .title { position: absolute; left: 0; top: 0; }
.copy .head .tag { position: absolute; left: 0; top: 73.5px; }

/* 3. Legibility on a showroom screen */
.tabs-title { font-size: 13px; letter-spacing: 1.04px; }
.copy .spec .k { font-size: 14px; color: #666; }
.copy .spec .v { margin-top: 1.3px; }   /* keeps the value baseline where the comp had it */

.splash-scrim {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 60%, rgba(0,0,0,.6) 100%);
}
#splash.has-scrim .splash-scrim { opacity: 1; }

/* 2. Call to action: larger, anchored under the specs, styled after the live site's button
      (sampled: fill #0285CA, 2px edge #0277B3, 1px lighter line inside the top, small radius, centered caps) */
:root { --pm-blue-light: #0285CA; --pm-blue-light-edge: #0277B3; --pm-blue-light-sheen: #4098D2; }
#model.cta-under .cta {
  left: 87px; top: 600px; width: 220px; height: 62px;
  border-radius: 5px;
  background: var(--pm-blue-light);
  border: 2px solid var(--pm-blue-light-edge);
  box-shadow: inset 0 1px 0 var(--pm-blue-light-sheen);
}
#model.cta-under .cta { display: flex; align-items: center; justify-content: center; gap: 14px; }
#model.cta-under .cta .t {
  position: static; line-height: 1;
  font-weight: 400; font-size: 22px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; text-align: center;
}
#model.cta-under .cta .t br { display: none; }
#model.cta-under .cta .chev { position: static; flex: none; width: 16px; height: 8.4px; margin: 0 -4px; transform: rotate(-90deg) translateX(-1px); }
#model.cta-under .cta.is-pressed { background: var(--pm-blue-light-edge); filter: none; transform: scale(.97); }

/* 4. Idle warning: a centered card over a dimmed screen, with a countdown ring */
.idle-modal {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility 0s linear .35s;   /* hidden when off so its backdrop blur costs nothing */
}
.idle-modal.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s ease, visibility 0s; }
.idle-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,10,16,.42);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.idle-card {
  position: relative; width: 560px;
  padding: 52px 56px 50px;
  border-radius: 24px; background: var(--pm-lightgray);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  text-align: center;
  transform: scale(.96);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.idle-modal.is-on .idle-card { transform: scale(1); }
.idle-ring { position: relative; width: 200px; height: 200px; margin: 0 auto 32px; }
.idle-ring::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.07); }
.idle-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.idle-ring .track { fill: none; stroke: #4A90D9; stroke-width: 12; }
.idle-ring .prog { fill: none; stroke: var(--pm-blue); stroke-width: 12; stroke-dasharray: 100; stroke-dashoffset: 0; }
.idle-count { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.idle-count b { font-weight: 500; font-size: 72px; line-height: 1; color: #2E7BD6; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.idle-count span { margin-top: 8px; font-family: 'Saira', sans-serif; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #111; }
.idle-card h2 { margin: 0 0 10px; font-weight: 500; font-size: 46px; line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; color: #000; }
.idle-card p { margin: 0 0 34px; font-family: 'Saira', sans-serif; font-size: 18px; line-height: 1.4; letter-spacing: .3px; color: #3a3a3a; }
.idle-touch { font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase; color: #000; }

/* tuner header badge */
.t-head h2 em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #0b0d12; background: #fff; border-radius: 6px; padding: 2px 6px; margin-left: 8px; vertical-align: 2px; }

/* ---------- splash burn-in protection ----------
   The logo disc, title and call to action sit in one wrapper so they can orbit by whole device pixels and breathe in
   opacity together without touching the per-element splash transitions. Type and the logo mark render at 92% white
   by default (tuner: "Type and logo white"); the disc itself is already a 20% glass disc. */
.splash-static { position: absolute; inset: 0; will-change: transform, opacity; }
#splash .splash-title, #splash .splash-cta { color: rgba(255, 255, 255, var(--splash-white, .92)); }
#splash .logo-crop img { opacity: var(--splash-white, .92); }
