/* Wetnote: polymer paper, one print ink, graphite hand, Cordura cover. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fbfcfb;      /* wetnote polymer page: plain matte white */
  --paper-shade: #eef0ef;
  --ink: #0099ff;          /* DiveSystem azure (their #09f): rules, rings, pins */
  --ink-text: #0066b8;     /* same azure, dense enough for type and the CTA */
  --ink-wash: rgb(0 153 255 / 0.1);
  --ink-line: rgb(0 153 255 / 0.45);
  --graphite: #26292c;     /* the visitor's hand and running text */
  --graphite-soft: #4d5256;
  --cover: #2f3133;        /* DiveSystem chrome grey (their #333), woven */
  --cover-hi: #e8ebe9;
  --cover-dim: #a9afb0;

  --cell: 20px;
  --radius-page: 10px;
  --gutter: clamp(16px, 3vw, 44px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-mid: 320ms;

  --wide: 125%;
  --cond: 75%;
  --tight: 62%;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--graphite);
  background-color: var(--cover);
  background-image:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / 0.18) 0 1px, transparent 1px 3px);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink-text); color: #fff; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

html { scrollbar-color: var(--cover-dim) var(--cover); }

/* ───────── Cover (Cordura chrome) ───────── */

.cover { color: var(--cover-hi); }

.cover--top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px var(--gutter);
}

/* the white label stitched on the wetnote cover */
.label {
  position: relative;
  display: block;
  background: #fbfcfb;
  padding: 9px 16px;
  border-radius: 2px;
}
.label::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgb(21 22 23 / 0.35);
  border-radius: 2px;
  pointer-events: none;
}
.label img { width: clamp(110px, 10vw, 128px); height: auto; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.nav a {
  font-stretch: var(--cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cover-dim);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.nav a:hover { color: var(--cover-hi); }
.nav a[aria-current="page"] { color: var(--cover-hi); border-bottom-color: var(--ink); }

.cover__tools { display: flex; gap: 6px; }
.tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  font-size: 22px;
  color: var(--cover-hi);
  border-radius: 50%;
  transition: background var(--t-fast) var(--ease-out);
}
.tool:hover { background: rgb(255 255 255 / 0.08); }
.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  color: #fff; background: var(--ink-text); border-radius: 2px;
}
.cart-count[data-zero] { display: none; }

.crumbs {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter) 10px;
  font-size: 13px;
  color: var(--cover-dim);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cover-hi); text-decoration: underline; }
.crumbs [aria-current] { color: var(--cover-hi); }

/* ───────── Spread: two pages on a ring binding ───────── */

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  max-width: 1480px;
  margin: 0 auto clamp(28px, 4vw, 56px);
  padding: 0 var(--gutter);
}

.page {
  position: relative;
  background-color: var(--paper);
  padding: clamp(24px, 3.4vw, 52px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 22px 50px -18px rgb(0 0 0 / 0.75);
  min-width: 0;
}
.spread > .page:first-child { border-radius: var(--radius-page) 2px 2px var(--radius-page); }
.spread > .page:last-child { border-radius: 2px var(--radius-page) var(--radius-page) 2px; }
.page--wide { grid-column: 1 / -1; border-radius: var(--radius-page) !important; }

/* punched holes along the binding edge */
/* Single-coil spiral. Holes and loops share one 28px pitch and the same
   inset box, and `space` keeps every tile whole on any page height, so
   holes and loops stay registered. The right page's holes sit half a pitch
   lower, as on a real single coil. Holes paint above the wire. */
.spread > .page:first-child:not(.page--wide)::after,
.spread > .page:last-child:not(.page--wide)::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 10px; bottom: 10px; width: 14px;
  background-size: 14px 28px;
  background-repeat: no-repeat space;
  pointer-events: none;
}
.spread > .page:first-child:not(.page--wide)::after {
  right: 6px;
  background-image: radial-gradient(circle at 7px 6px, var(--cover) 0 4px, transparent 4.6px);
}
.spread > .page:last-child:not(.page--wide)::after {
  left: 6px;
  background-image: radial-gradient(circle at 7px 20px, var(--cover) 0 4px, transparent 4.6px);
}

.binding { position: relative; z-index: 2; }
.binding::before {
  content: "";
  position: absolute;
  top: 10px; bottom: 10px; left: -16px; right: -16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='28' viewBox='0 0 70 28'%3E%3Cpath d='M3 6Q33 1 67 20' fill='none' stroke='%23c9ced2' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 70px 28px;
  background-repeat: no-repeat space;
  pointer-events: none;
}

/* ───────── Left page: the suit ───────── */

.mtitle {
  display: none;
  align-self: flex-start;
  margin: 0 0 46px;
  font-stretch: var(--wide);
  font-weight: 860;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.mtitle span {
  display: inline-block; vertical-align: 0.35em; margin-right: 0.3em;
  padding: 0.2em 0.36em 0.14em; font-stretch: var(--cond); font-size: 0.4em; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--ink-text); border-radius: 2px;
}

.spread--config { grid-template-columns: minmax(0, 1.2fr) 38px minmax(0, 1fr); }

.page--suit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 22px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.page--suit.is-dragging { cursor: grabbing; }

.stage-wrap { width: 100%; display: grid; place-items: center; }

.stage {
  position: relative;
  height: clamp(640px, calc(100svh - 120px), 1260px);
  aspect-ratio: 520 / 1080;
  max-width: 100%;
}
.stage:focus-visible { outline-offset: 12px; }

.stage__frames { position: absolute; inset: 0; }
.stage__frames img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease-out);
  pointer-events: none;
  -webkit-user-drag: none;
}
.stage__frames img.is-on { opacity: 1; }

.stage__pencil {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.stage__pencil path {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.85;
}
.stage__pencil path.under { stroke: var(--paper); stroke-width: 3.6; opacity: 0.85; }
.stage__pencil path.is-ghost { stroke-dasharray: 5 6; }
.stage__pencil path.draw {
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 520ms var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.stage__pins { position: absolute; inset: 0; }

.pin {
  position: absolute;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  display: grid; place-items: center;
  padding: 0;
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink-text);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--paper);
  transition: opacity var(--t-mid) var(--ease-out), transform var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.pin:hover { background: var(--ink-text); border-color: var(--ink-text); color: #fff; }
.pin[aria-expanded="true"] { background: var(--ink-text); border-color: var(--ink-text); color: #fff; transform: scale(1.08); }
.pin[data-done] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.pin[data-done]:hover, .pin[data-done][aria-expanded="true"] { background: var(--ink-text); border-color: var(--ink-text); }
.pin[data-done]::after { display: none; }
.pin.is-off { opacity: 0; pointer-events: none; transform: scale(0.6); }
.pin[data-changed]::after {
  content: "";
  position: absolute; right: -5px; top: -5px;
  width: 11px; height: 11px;
  background: var(--graphite);
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.viewbar {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
}
.viewbar__btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-size: 22px;
  background: transparent;
  border: 1.5px solid var(--ink-line);
  border-radius: 50%;
  color: var(--ink-text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.viewbar__btn:hover:not(:disabled) { background: var(--ink-text); border-color: var(--ink-text); color: #fff; }
.viewbar__btn:disabled { opacity: 0.3; cursor: default; }

.viewbar__scale { display: flex; gap: 2px; }
.viewbar__tick {
  position: relative;
  white-space: nowrap;
  padding: 18px 8px 0;
  min-width: 64px;
  background: none; border: 0;
  font-stretch: var(--cond);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--graphite-soft);
  cursor: pointer;
}
.viewbar__tick::before {
  content: "";
  position: absolute; left: 50%; top: 2px;
  width: 1.5px; height: 10px;
  background: var(--ink-line);
}
.viewbar__tick[aria-selected="true"] { color: var(--graphite); font-weight: 800; }
.viewbar__tick[aria-selected="true"]::before { top: 0; height: 14px; width: 3px; margin-left: -1px; background: var(--ink); }


/* fixed-width ticks: the bold active label never shifts its neighbours */
.viewbar__tick { width: 92px; min-width: 0; padding-left: 0; padding-right: 0; text-align: center; }
.viewbar__lbl { display: block; }

.hint {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--graphite-soft);
}
.hint svg { font-size: 20px; color: var(--ink); flex: none; margin-top: 0.05em; }

.sizebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 16px;
  width: min(100%, 520px);
  margin-top: 22px;
  padding: 14px 16px 14px 18px;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.sizebar:hover, .sizebar[aria-expanded="true"] { background: var(--ink-wash); border-color: var(--ink-text); }
.sizebar__label {
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-text);
}
.sizebar__value { font-weight: 800; font-size: 18px; }
.sizebar[data-missing] .sizebar__value { color: var(--ink-text); }
.sizebar__fit { font-size: 14px; color: var(--graphite-soft); white-space: nowrap; }
.sizebar__go { font-size: 20px; color: var(--ink-text); }
.sizebar[data-done] { border-color: var(--graphite); border-width: 2px; }
.sizebar[data-done] .sizebar__label, .sizebar[data-done] .sizebar__go { color: var(--graphite); }

@media (max-width: 520px) {
  .sizebar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sizebar__fit { grid-column: 2 / 3; grid-row: 2; }
  .sizebar__go { grid-row: 1 / 3; grid-column: 3; }
}

/* ───────── Right page: the sheet ───────── */

.page--sheet { display: flex; flex-direction: column; }

.title {
  margin: 0;
  font-stretch: var(--wide);
  font-weight: 860;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.title__new {
  display: inline-block;
  vertical-align: 0.42em;
  margin-right: 0.22em;
  padding: 0.16em 0.32em 0.12em;
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: max(0.3em, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  background: var(--ink-text);
  border-radius: 2px;
}

.motto {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 600;
}

.triplet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.triplet > div { padding: 9px 14px 9px 0; }
.triplet > div + div { padding-left: 14px; border-left: 1px solid var(--ink-line); }
.triplet dt {
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.triplet dd { margin: 4px 0 0; font-size: 14px; color: var(--graphite-soft); }

/* printed form table */
.sheet, .spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
}
.sheet caption, .spec caption {
  caption-side: top;
  text-align: left;
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-text);
  padding-bottom: 8px;
}
.sheet .sheet__head {
  font-stretch: var(--cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-text);
  text-align: left;
  padding: 6px 8px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.sheet td {
  padding: 0;
  border-bottom: 1px solid var(--ink-line);
  vertical-align: middle;
}
.sheet .c-n { width: 42px; }
.sheet .c-p { width: 92px; text-align: right; }

.row-grid, .row-btn {
  display: grid;
  grid-template-columns: 42px minmax(0, 0.8fr) minmax(0, 1.3fr) 92px;
  align-items: center;
  width: 100%;
  min-height: 41px;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
}
.row-btn:hover, .row-btn[aria-expanded="true"] { background: var(--ink-wash); }
.row-btn > span, .row-grid > span { padding: 8px; min-width: 0; }
.row-grid { align-items: end; }
.row-grid > span { padding-top: 6px; padding-bottom: 6px; }
.row-grid .n { text-align: center; }
.row-grid .price { text-align: right; }
.sheet .sheet__head { padding: 0; }
.row-btn .n {
  font-stretch: var(--cond);
  font-weight: 800;
  color: var(--ink-text);
  text-align: center;
}
.row-btn .n i {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  font-style: normal;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 13px;
}
.row-btn .n i.is-done { color: #fff; background: var(--graphite); border-color: var(--graphite); }
.row-btn .part { font-weight: 600; }
.row-btn .choice { color: var(--graphite); }
.row-btn .choice.is-done { font-weight: 700; }
.row-btn .choice.is-missing { color: var(--ink-text); font-weight: 600; }
.row-btn .price { text-align: right; font-weight: 600; }
.row-btn .price.is-zero { color: var(--graphite-soft); font-weight: 400; }

.checkout {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0;
  padding: 16px 0 18px;
  background: var(--paper);
  border-top: 1.5px solid var(--ink);
}
.checkout::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 100%;
  height: 34px;
  background: linear-gradient(to bottom, rgb(251 252 251 / 0), var(--paper));
  pointer-events: none;
}
.total__detail .is-missing { color: var(--ink-text); font-weight: 700; }
.buy { display: flex; gap: 12px; margin-top: 14px; }
.buy .cta { flex: 1; margin-top: 0; }
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}
.qty__btn {
  width: 44px; height: 53px;
  font-size: 22px; font-weight: 600; line-height: 1;
  color: var(--ink-text);
  background: none; border: 0; cursor: pointer;
}
.qty__btn:hover:not(:disabled) { background: var(--ink-wash); }
.qty__btn:disabled { opacity: 0.3; cursor: default; }
.qty__n { min-width: 28px; text-align: center; font-weight: 800; font-size: 18px; }
.total { margin-top: 0; }
.total__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.total__label {
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-text);
}
.total__value {
  font-stretch: var(--wide);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.total__underline {
  display: block;
  width: 100%; height: 14px;
  margin-top: 6px;
}
.total__underline path { fill: none; stroke: var(--graphite); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.total__detail { margin: 6px 0 0; font-size: 14px; color: var(--graphite-soft); }

/* odometer digits */
.odo { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.odo__strip {
  display: flex; flex-direction: column;
  transition: transform 560ms var(--ease-out);
}
.odo__strip span { height: 1em; line-height: 1; }
.odo-static { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .odo__strip { transition: none; } }

.error {
  margin: 18px 0 0;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-text);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 20px;
  min-height: 56px;
  padding: 0 28px;
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink-text);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.cta svg { font-size: 22px; }
.cta:hover { background: #00508f; }
.cta:active { transform: translateY(1px); }


.included {
  list-style: none;
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--ink-line);
  font-size: 14.5px;
  color: var(--graphite-soft);
  display: grid; gap: 6px;
}
.included li { padding-left: 22px; position: relative; }
.included li::before {
  content: "";
  position: absolute; left: 2px; top: 0.42em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.included strong { color: var(--graphite); }

/* ───────── Option panel ───────── */

.panel {
  position: absolute;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  background-color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.panel[hidden] { display: none; }
.panel.is-open { opacity: 1; transform: none; }

.panel__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 10px 16px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 6px 6px 0 0;
}
.panel__n {
  display: grid; place-items: center;
  width: 26px; height: 26px; flex: none;
  font-stretch: var(--cond); font-weight: 800; font-size: 14px;
  color: #fff; background: var(--ink-text); border-radius: 50%;
}
.panel__n:empty { display: none; }
.panel__title {
  flex: 1;
  margin: 0;
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.panel__close {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  font-size: 20px;
  background: none; border: 0; border-radius: 50%;
  cursor: pointer;
}
.panel__close:hover { background: var(--ink-wash); }

.panel__body { flex: 1; min-height: 0; padding: 14px 16px 16px; max-height: min(64vh, 560px); overflow: auto; }
.panel[style*="max-height"] .panel__body { max-height: none; }
.panel__photo { margin: 0 0 12px; border: 1px solid var(--ink-line); }
.panel__photo img { width: 100%; height: auto; }
.panel__note { margin: 0 0 12px; font-size: 14.5px; color: var(--graphite-soft); }
.panel__sub {
  margin: 16px 0 8px;
  font-stretch: var(--cond); font-weight: 800; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-text);
}

.opts { display: grid; gap: 8px; }
.opt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  width: 100%;
  padding: 11px 13px;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--ink-line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out), outline-color var(--t-fast) var(--ease-out);
  outline: 1.5px solid transparent;
  outline-offset: 3px;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.opt[aria-pressed="true"] .opt__note, .opt[aria-pressed="true"] .opt__price.is-zero { color: rgb(255 255 255 / 0.78); }
.opt__label { font-weight: 700; }
.opt__price { font-weight: 700; text-align: right; }
.opt__price.is-zero { font-weight: 500; color: var(--graphite-soft); }
.opt__note { grid-column: 1 / -1; font-size: 13.5px; color: var(--graphite-soft); }

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.chip {
  min-height: 40px;
  padding: 6px 4px;
  font-size: 14px; font-weight: 600;
  background: var(--paper);
  border: 1.5px solid var(--ink-line);
  border-radius: 4px;
  cursor: pointer;
  outline: 1.5px solid transparent;
  outline-offset: 2px;
  transition: border-color var(--t-fast) var(--ease-out);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; font-weight: 800; }
.chip[aria-pressed="true"]:hover { border-color: var(--graphite); }
.chip:disabled { opacity: 0.35; cursor: not-allowed; }

.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.seg button {
  padding: 7px 16px;
  font-stretch: var(--cond); font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--paper); border: 0; cursor: pointer; color: var(--ink-text);
}
.seg button[aria-pressed="true"] { background: var(--graphite); color: #fff; }

.sizecard { margin-top: 12px; width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sizecard th, .sizecard td { padding: 4px 6px; border-bottom: 1px solid var(--ink-line); }
.sizecard th { text-align: left; font-weight: 500; color: var(--graphite-soft); }
.sizecard td { text-align: right; font-weight: 700; }
.sizecard caption { caption-side: top; text-align: left; font-size: 13px; color: var(--graphite-soft); padding-bottom: 4px; }

.panel__done { width: 100%; margin-top: 14px; min-height: 48px; font-size: 16px; }

/* ───────── Spec spreads ───────── */

.h2 {
  margin: 0 0 22px;
  font-stretch: var(--wide);
  font-weight: 820;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  margin: 0 0 10px;
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-text);
}
.page p { max-width: 64ch; }
.lede { font-size: 1.12rem; line-height: 1.5; }

.fig { margin: 0 0 18px; }
.fig img { width: 100%; height: auto; border: 1px solid var(--ink-line); }
.fig figcaption { margin-top: 8px; font-size: 14px; color: var(--graphite-soft); }
.fig__n {
  font-stretch: var(--cond);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-text);
  margin-right: 6px;
}
.fig--layers img { background: #fff; }

.spec { margin-top: 0; font-size: 15px; }
.spec th {
  width: 132px;
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
  font-stretch: var(--cond);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-text);
  border-bottom: 1px solid var(--ink-line);
}
.spec td { padding: 10px 0; border-bottom: 1px solid var(--ink-line); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1.5px solid var(--ink); }

.lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.checks, .dashes { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15px; }
.checks li, .dashes li { position: relative; padding-left: 24px; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 0.18em;
  width: 15px; height: 15px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}
.checks li::after {
  content: "";
  position: absolute; left: 4px; top: 0.36em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--graphite);
  border-bottom: 2px solid var(--graphite);
  transform: rotate(-45deg);
}
.dashes li::before {
  content: "";
  position: absolute; left: 2px; top: 11px;
  width: 12px; height: 2px;
  background: var(--ink);
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 24px;
}
.details .fig { margin: 0; }

.page--proof .lede { margin-top: 0; }
.certs {
  list-style: none;
  display: flex; gap: 18px; flex-wrap: wrap;
  margin: 24px 0; padding: 0;
}
.certs img { width: auto; height: 96px; }

.boast {
  margin: 26px 0 14px;
  padding: 18px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.boast p {
  margin: 0;
  font-stretch: var(--wide);
  font-weight: 760;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.paths { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0; padding: 0; font-size: 15px; }
.paths a { font-weight: 600; color: var(--ink-text); }

/* ───────── Footer cover ───────── */

.cover--bottom { padding: 28px var(--gutter) 110px; }
.foot { max-width: 1480px; margin: 0 auto; font-size: 14px; color: var(--cover-dim); }
.foot p { margin: 4px 0; }
.foot strong { color: var(--cover-hi); }
.foot a { color: var(--cover-hi); }
.foot__note { margin-top: 14px !important; font-size: 12.5px; }

/* ───────── Dock + toast ───────── */

.dock { display: none; }

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 60;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  font-size: 15px;
  color: var(--cover-hi);
  background: var(--cover);
  border-radius: 6px;
}

/* ───────── Responsive ───────── */

@media (max-width: 1100px) {
  .nav { gap: 2px 18px; }
  .nav a { font-size: 14px; }

}

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }

  .cover--top { grid-template-columns: auto 1fr; padding-top: 12px; padding-bottom: 12px; }
  .nav {
    grid-column: 1 / -1; grid-row: 2;
    flex-wrap: nowrap; overflow-x: auto;
    gap: 20px;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .cover__tools { justify-self: end; }

  .spread { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* stacked pages read as a top-bound wetnote: a horizontal coil between them */
  .binding { display: block; height: 30px; }
  .binding::before {
    top: -16px; bottom: -16px; left: 10px; right: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='62' viewBox='0 0 28 62'%3E%3Cpath d='M6 3Q2 31 20 59' fill='none' stroke='%23c9ced2' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 28px 62px;
    background-repeat: space no-repeat;
  }
  .spread > .page:first-child:not(.page--wide)::after,
  .spread > .page:last-child:not(.page--wide)::after {
    top: auto; bottom: auto; left: 10px; right: 10px; width: auto; height: 14px;
    background-size: 28px 14px;
    background-repeat: space no-repeat;
  }
  .spread > .page:first-child:not(.page--wide)::after {
    bottom: 6px;
    background-image: radial-gradient(circle at 6px 7px, var(--cover) 0 4px, transparent 4.6px);
  }
  .spread > .page:last-child:not(.page--wide)::after {
    top: 6px;
    background-image: radial-gradient(circle at 20px 7px, var(--cover) 0 4px, transparent 4.6px);
  }
  .spread > .page:first-child { border-radius: var(--radius-page) var(--radius-page) 2px 2px; padding-bottom: 34px; }
  .spread > .page:last-child { border-radius: 2px 2px var(--radius-page) var(--radius-page); padding-top: 34px; }
  .spread > .page:only-of-type, .page--wide { border-radius: var(--radius-page) !important; border-top: 0 !important; }

  .page { padding: 22px 18px; }

  .spread--config { grid-template-columns: minmax(0, 1fr); }
  .stage { height: min(80svh, 720px); }

  .viewbar__tick { width: 26px; min-width: 0; padding: 18px 0 18px; font-size: inherit; }
  .viewbar__tick:not([aria-selected="true"]) { font-size: inherit; }
  .viewbar__lbl { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font-size: 12px; white-space: nowrap; }
  .viewbar__tick:not([aria-selected="true"]) .viewbar__lbl { visibility: hidden; }

  .viewbar__btn { width: 36px; height: 36px; }

  .row-btn, .row-grid { grid-template-columns: 34px minmax(0, 0.85fr) minmax(0, 1.25fr) 70px; font-size: 15px; }
  .sheet .c-n { width: 36px; } .sheet .c-p { width: 78px; }

  .checkout { position: static; margin: 22px 0 0; padding: 16px 0 0; box-shadow: none; background: none; }
  .checkout .buy .cta { display: none; }
  .buy { margin-top: 12px; }
  .qty__btn { height: 44px; }
  .title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page--sheet .motto { margin-top: 0; }
  .mtitle { display: block; }
  .page--suit { padding-top: 18px; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .lists { grid-template-columns: minmax(0, 1fr); }

  .panel {
    position: fixed;
    left: 0 !important; right: 0; bottom: 0; top: auto !important;
    width: 100%;
    border-radius: 12px 12px 0 0;
    border-width: 1.5px 0 0;
    transform: translateY(24px);
  }
  .panel__head { border-radius: 12px 12px 0 0; }
  .panel__body { max-height: 62vh; padding-bottom: 24px; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--cover);
    border-top: 1px solid #2b2e30;
    color: var(--cover-hi);
  }
  .dock__total span { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cover-dim); }
  .dock__total strong { font-stretch: var(--wide); font-size: 22px; font-weight: 800; }
  .cta--dock { margin: 0; min-height: 48px; padding: 0 18px; font-size: 15px; }
  .toast { bottom: 84px; }
}

@media (max-width: 420px) {
  .triplet > div { padding-right: 8px; }
  .triplet > div + div { padding-left: 8px; }
  .triplet dd { font-size: 12.5px; }
  .title { font-size: 2.15rem; }
}

/* first-visit rotation hint over the suit */
.rothint {
  position: absolute; left: 50%; top: 40%;
  width: min(86%, 300px);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
  z-index: 3;
  transition: opacity 500ms var(--ease-out);
}
.rothint.is-gone { opacity: 0; }
.rothint__arrow { width: 100%; height: auto; overflow: visible; animation: rothint-sweep 2.4s var(--ease-out) infinite; }
.rothint__arrow path { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rothint__label {
  padding: 4px 12px;
  font-stretch: var(--cond); font-weight: 800; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-text);
  background: var(--paper);
  border-radius: 4px;
  opacity: 0.82;
}
@keyframes rothint-sweep { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) { .rothint__arrow { animation: none; } }

/* size row: classic bases; the open base grows its variants to either side */
.sizerow { display: flex; flex-wrap: wrap; gap: 6px; }
.sizerow .chip { flex: 0 0 auto; min-width: 52px; padding: 6px 12px; }
.chip--base[aria-expanded="true"]:not([aria-pressed="true"]) { border-color: var(--graphite); font-weight: 800; }
.chip--variant { border-style: dashed; color: var(--graphite); font-size: 13.5px; }
.chip--variant[aria-pressed="true"] { border-style: solid; }
.chip--variant.is-new { animation: chip-out 360ms var(--ease-out) both; }
.chip--variant.is-new.is-left { --from: 14px; }
.chip--variant.is-new.is-right { --from: -14px; }
.chip--variant.is-new.is-right + .chip--variant.is-new { animation-delay: 60ms; }
@keyframes chip-out {
  from { opacity: 0; transform: translateX(var(--from)) scaleX(0.4); max-width: 0; padding-left: 0; padding-right: 0; min-width: 0; }
  to { opacity: 1; transform: none; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) { .chip--variant.is-new { animation: none; } }
.segrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.segrow .seg { margin-bottom: 0; }
.sizelink { font-size: 14.5px; }
.sizelink.textlink { display: inline-flex; font-weight: 700; color: var(--ink-text); text-decoration: none; border-bottom: 1.5px solid var(--ink-line); }

/* language switch: a row of flags beside the search, Italian first and lit */
.cover__tools { align-items: center; }
.lang {
  display: flex; margin-right: 14px;
  border: 1.5px solid rgb(232 235 233 / 0.45); border-radius: 4px; overflow: hidden;
}
.lang a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 9px 0 8px;
  font-stretch: var(--cond); font-weight: 800; font-size: 13.5px; letter-spacing: 0.06em;
  color: var(--cover-hi); text-decoration: none;
  transition: background var(--t-fast) var(--ease-out);
}
.lang a + a { border-left: 1px solid rgb(232 235 233 / 0.25); }
.lang svg { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35); flex: none; }
.lang a:hover { background: rgb(255 255 255 / 0.1); }
.lang a[aria-current="true"] { background: #fbfcfb; color: var(--cover); }
@media (max-width: 1100px) { .lang span { display: none; } .lang a { padding: 0 7px; } }
@media (max-width: 900px) {
  .lang { margin-right: 2px; }
  .lang a { height: 30px; padding: 0 5px; }
  .lang svg { width: 18px; height: 12px; }
}
/* ── mobile review fixes ── */
@media (max-width: 900px) {
  .cover__tools { margin-right: -12px; }
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .cta--dock { white-space: nowrap; }
  body:has(.rothint:not(.is-gone)) .hint { visibility: hidden; }
}
@media (max-width: 380px) {
  .cta--dock { padding: 0 12px; letter-spacing: 0.03em; }
  .dock__total strong { font-size: 19px; }
}

/* header: DiveSystem's own lettering with the orca, barely there, large and cropped */
.cover--top { position: relative; isolation: isolate; }
.cover--top::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: url("../img/v4/logo-wordmark.png") no-repeat right -5vw center / auto 250%;
  filter: grayscale(1) brightness(1.6); opacity: 0.055; pointer-events: none;
}
