/* Marketing-site specific sections. Keep all values in tokens.css;
   this file just composes them into section classes.
   Nav + footer + layout chrome live in layout.css.

DO NOT ADD any :hover translate effects.

*/

/* ---------- Hero --------------------------------------------------- */
.hero {
  padding: 88px 32px 96px;
  border-bottom: 1px solid var(--border-default);
}
.hero__inner {
  max-width: var(--width-marketing);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: 72px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: var(--fw-bold);
  margin-top: 0;
}
.hero__title--lead { margin-bottom: 12px; }
.hero__sub {
  margin-top: 22px;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 440px;
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero__tags {
  margin-top: 36px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__image {
  margin: 0;
}
.hero__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}

.section-muted {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Value props --------------------------------------------- */
.value-props {
  padding: 80px 32px;
  background: var(--bg-surface-raised);
  border-bottom: 1px solid var(--border-default);
}
.value-props__inner { max-width: var(--width-marketing); margin: 0 auto; }
.value-props__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  padding: 24px;
  background: var(--bg-surface);
}
.value-card__num { color: var(--text-muted); }
.value-card__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.12;
  margin-top: 12px;
  letter-spacing: -0.015em;
}
.value-card__body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.value-card__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ---------- Process ------------------------------------------------- */
.process {
  padding: 96px 32px;
  border-bottom: 1px solid var(--border-default);
}
.process__inner { max-width: var(--width-marketing); margin: 0 auto; }
.process__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: flex-end;
  margin-bottom: 56px;
}
.process__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.process__steps {
  display: flex;
  flex-direction: column;
  max-width: 620px;
  margin: 0 auto;
  border-top: 1px solid var(--border-default);
}
.process__step {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.process__step:last-child { border-bottom: none; }
.process__step-num {
  font-size: 40px;
  line-height: 1;
  color: var(--text-muted);
  letter-spacing: -0.03em;
  grid-column: 1;
  grid-row: 1 / 3;
  padding-top: 3px;
}
.process__step-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  grid-column: 2;
  grid-row: 1;
}
.process__step-body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  grid-column: 2;
  grid-row: 2;
}

/* ---------- Comparison ---------------------------------------------- */
.comparison {
  padding: 96px 32px;
  background: var(--bg-surface-raised);
  border-bottom: 1px solid var(--border-default);
}
.comparison__inner { max-width: 880px; margin: 0 auto; }
.comparison__heading { margin-top: 14px; margin-bottom: 40px; }
.comparison__table {
  overflow: hidden;
  background: var(--bg-surface);
}
.comparison__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  font-size: 14px;
}
.comparison__head-cell {
  padding: 14px 18px;
  background: var(--bg-surface-sunken);
  border-bottom: 1px solid var(--border-default);
  text-align: center;
  color: var(--text-secondary);
}
.comparison__head-cell--primary {
  color: var(--text-primary);
  font-weight: var(--fw-semi);
}
.comparison__cell {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.comparison__cell--center { text-align: center; }
.comparison__grid > .comparison__cell:nth-last-child(-n+4) { border-bottom: none; }
.comparison__yes { color: var(--success-text); font-size: 15px; }
.comparison__no  { color: var(--text-muted); }

/* ---------- CTA ----------------------------------------------------- */
.cta { padding: 112px 32px; }
.cta__card {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 56px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
}
.cta__title {
  margin-top: 18px;
  font-size: 60px;
  letter-spacing: -0.02em;
}
.cta__body {
  margin-top: 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.cta__actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.cta__contact {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
/* On a gallery case page the CTA follows the article directly, so the
   article gives up its bottom rule and most of its bottom padding. */
.cta--gallery { padding: 0 32px 40px; }
.product:has(+ .cta--gallery) { padding-bottom: 56px; border-bottom: none; }
.cta__sheet-num {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--text-muted);
}

/* ---------- Page header (gallery / contact / guide / faq) ----------- */
.page-header {
  padding: 72px 32px 48px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface-raised);
}
.page-header__inner { max-width: var(--width-marketing); margin: 0 auto; }
.page-header__title {
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 14px 0 0;
}
.page-header__sub {
  margin-top: 18px;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 620px;
}

/* ---------- Gallery -------------------------------------------------- */
.gallery { padding: 80px 32px; }
.gallery__inner { max-width: var(--width-marketing); margin: 0 auto; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery__item { padding: 0; overflow: hidden; background: var(--bg-surface); }
.gallery__thumb {
  aspect-ratio: 400 / 260;
  background: var(--bg-surface-raised);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.gallery__thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__item { color: inherit; text-decoration: none; transition: transform 120ms ease, box-shadow 120ms ease; }
.gallery__meta { padding: 20px 22px 22px; }
.gallery__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.gallery__body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.gallery__chips {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------- Gallery: breadcrumb + pager (show page) ----------------- */
.gallery-crumbs {
  padding: 18px 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-raised);
  font-family: var(--font-sans);
  font-size: 13px;
}
.gallery-crumbs__inner {
  max-width: var(--width-marketing);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-crumbs__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 120ms ease;
}
.gallery-crumbs__sep { color: var(--text-muted); }
.gallery-crumbs__current { color: var(--text-primary); font-weight: 600; }

.gallery-pager { padding: 0 32px 72px; }
.gallery-pager__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery-pager__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease;
}
.gallery-pager__link--prev { align-items: flex-start; text-align: left; }
.gallery-pager__link--next {
  align-items: flex-end;
  text-align: right;
  grid-column: 2;
}
.gallery-pager__link:only-child { grid-column: 1 / -1; max-width: 360px; margin: 0 auto; }
.gallery-pager__dir {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.gallery-pager__arrow { font-size: 14px; line-height: 1; }
.gallery-pager__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* ---------- Catalog -------------------------------------------------- */
.catalog { padding: 80px 32px; }
.catalog__inner { max-width: var(--width-marketing); margin: 0 auto; }
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.catalog__item {
  padding: 0;
  overflow: hidden;
  background: var(--bg-surface);
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.catalog__thumb {
  aspect-ratio: 400 / 260;
  background: var(--bg-surface-raised);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.catalog__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog__meta { padding: 20px 22px 22px; }
.catalog__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.catalog__body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.catalog__chips {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------- Catalog directory + search ----------------------------- */
.catalog-dir-top { padding: 32px 32px 0; }
.catalog-dir__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 24px;
}
.catalog-dir__searchwrap { flex: 1 1 260px; }
.catalog-dir__search {
  width: 100%;
  padding: 16px 20px;
  font-size: 17px;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.catalog-dir__search::placeholder { color: var(--text-muted); }
.catalog-dir__search:focus {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-soft);
}
.catalog-dir__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-dir__pill {
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}
.catalog-dir__pill.is-active {
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.catalog-dir__empty { color: var(--text-muted); margin: 24px 0; }
.catalog-dir {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}
.catalog-dir__row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: inherit;
  text-decoration: none;
  transition: background 120ms ease;
}
.catalog-dir__row:hover { background: var(--bg-surface-raised); }
.catalog-dir__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.catalog-dir__thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-dir__info { flex: 1 1 auto; min-width: 0; }
.catalog-dir__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.catalog-dir__sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.catalog-dir__mfr { color: var(--text-muted); }
.catalog-dir__dims {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.catalog-dir__go {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1;
}
.catalog-dir__row:hover .catalog-dir__go { color: var(--text-primary); }

/* ---------- Standard sizes (mock-up) ---------------------------------- */
.std-sizes { padding-top: 0; }
.std-sizes__title { font-size: 24px; margin: 0 0 8px; }
.std-sizes__sub { color: var(--text-muted); margin: 0 0 16px; }
.std-sizes__caption {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.std-sizes__panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  min-height: 48px; padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--border-subtle); border-radius: 8px;
}
.std-sizes__hint { color: var(--text-muted); font-size: 14px; }
.std-sizes__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.std-sizes__buttons { display: flex; flex-direction: column; gap: 20px; }
.std-sizes__group { display: flex; flex-direction: column; gap: 8px; max-width: 280px; }
.std-sizes__label { font-size: 14px; color: var(--text-muted); }
.std-sizes__rows { display: flex; flex-wrap: wrap; gap: 4px; }
.std-sizes__fracs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.std-sizes__plus { width: 40px; text-align: center; color: var(--text-muted); }
.std-sizes__btn {
  min-width: 40px;
  min-height: 32px; padding: 4px 0; font: inherit; font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-surface-raised); border: 1px solid var(--border-subtle);
  border-radius: 6px; cursor: pointer;
}
.std-sizes__btn:hover:not(:disabled) { border-color: var(--text-primary); }
.std-sizes__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.std-sizes__btn.is-selected { outline: 2px solid var(--text-primary); outline-offset: -2px; font-weight: 600; }
@media (max-width: 640px) {
  .std-sizes { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Catalog show -------------------------------------------- */
.catalog-show { padding: 56px 32px 80px; }
.catalog-show__inner {
  max-width: var(--width-marketing);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.catalog-show__media {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.catalog-show__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.catalog-show__placeholder { color: var(--text-muted); }
.catalog-show__thumbs {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.catalog-show__thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-raised);
  cursor: pointer;
  overflow: hidden;
}
.catalog-show__thumb img { width: 100%; height: 100%; object-fit: contain; }
.catalog-show__thumb.is-active { border-color: var(--text-primary); }
.catalog-show__title {
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 14px 0 0;
}
.catalog-show__tagline {
  margin-top: 14px;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}
.catalog-show__specs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  font-size: 14px;
}
.catalog-show__specs > div { display: flex; justify-content: space-between; gap: 12px; }
.catalog-show__specs dt { color: var(--text-muted); }
.catalog-show__specs dd { margin: 0; color: var(--text-primary); }
.catalog-show__actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-show__copy {
  margin-top: 36px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ---------- Catalog product page ------------------------------------- */
/* The header runs the full width at the top; under it is the same gallery and
   panel as a standard-size page (.pdp, further down). The specs are the case's
   own: what this catalogue knows about the object stays in the catalogue. */
.product-head { padding: 56px 32px 36px; }
.product-head__inner { max-width: var(--width-marketing); margin: 0 auto; }
.product-head__title {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  margin: 14px 0 0;
  max-width: 26ch;
}
.product-head__lede {
  margin-top: 16px;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 62ch;
}
.product-head__facts {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: var(--fs-mono);
  color: var(--text-primary);
}
.product-head__fact-key {
  color: var(--text-muted);
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: var(--ls-caption);
  font-size: var(--fs-caption);
}

/* ---------- Product page Customize form ------------------------------ */
.customize__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  margin: 12px 0 0;
}
.customize__lede {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 54ch;
}
.customize__field { border: 0; padding: 0; margin: 32px 0 0; }
.customize__field .label { display: block; margin-bottom: 10px; }
.customize__hint {
  margin: -2px 0 12px;
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  max-width: 54ch;
}
.customize__inches { color: var(--text-muted); margin-left: 6px; }
.customize__included {
  margin-top: 24px;
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
}
.customize__included .label { margin-right: 6px; }
.customize__actions { margin-top: 32px; }
/* A tip above the buy button (pages/_tip): yellow lightbulb, yellow border. */
.tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--summary-border);
  border-radius: 8px;
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 52ch;
}
.tip__icon { flex: 0 0 auto; margin-top: 1px; }
.tip__bulb {
  fill: var(--accent-yellow);
  stroke: var(--warn-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tip__label { font-weight: 700; color: var(--text-primary); }
.tip a { color: inherit; text-decoration: underline; }
.tip__link { display: block; margin-top: 4px; }
.case-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.case-filters__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; max-width: 220px; }
.case-filters__label { font-size: var(--fs-body-sm); font-weight: 700; color: var(--text-primary); }
.case-filters__empty { flex: 1 0 100%; margin: 0; color: var(--text-secondary); }
.case-card[hidden] { display: none; }
.customize__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.customize__note {
  margin-top: 12px;
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  max-width: 46ch;
}

.customize__empty { color: var(--text-muted); margin: 0 0 16px; }
/* Spec tables: plain body text, label and value alike. Tabular figures keep
   the numbers lined up without a monospace face. */
.customize__dims {
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  font-size: var(--fs-body);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.customize__dims > div { display: flex; justify-content: space-between; gap: 12px; }
.customize__dims dt { color: var(--text-primary); font-weight: 600; }
.customize__dims dd { margin: 0; color: var(--text-primary); font-weight: 100; }
.customize__caption {
  margin-top: 14px;
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

/* The configurator's option card driven by a native input instead of a class
   the JS keeps in step: this form has no wizard behind it, and a radio that is
   really a radio keeps the keyboard and the screen reader working for free. */
.opt--choice { position: relative; }
.opt--choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.opt--choice:has(input:checked) {
  border-color: var(--text-primary);
  background: var(--bg-surface-raised);
  box-shadow: inset 0 0 0 1px var(--text-primary);
}
.opt--choice:has(input:focus-visible) {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}
.opt--choice:has(input:checked) .opt__radio { border-color: var(--text-primary); }
/* The picked option's price reads at full strength; the others stay muted. */
.opt--choice:has(input:checked) .opt__head .caption { color: var(--text-primary); }
.opt--choice:has(input:checked) .opt__radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--text-primary);
}
/* Square for a checkbox. Specificity has to beat configurator.css's own
   .opt__radio (50%), which loads after this file. */
.opt--choice .opt__radio--check { border-radius: var(--radius-xs); }
.opt--choice:has(input:checked) .opt__radio--check::after { border-radius: 1px; }

.product-copy {
  padding: 56px 32px 24px;
}
.product-copy__inner {
  max-width: 68ch;
  margin: 0 auto;
  line-height: 1.65;
  color: var(--text-secondary);
}
.product-copy__inner h2 { margin: 0 0 16px; color: var(--text-primary); }

/* ---------- Product page -------------------------------------------- */
.product-price {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.product-price__amount {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.product-price__note {
  font-size: 14px;
  color: var(--text-muted);
}
.product-included {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}
.product-included > div {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}
.product-included dt {
  font-weight: 600;
  color: var(--text-primary);
}
.product-included dd {
  margin: 6px 0 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Contact -------------------------------------------------- */
.contact { padding: 80px 32px; }
.contact__inner { max-width: var(--width-marketing); margin: 0 auto; }
.contact__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact__form-wrap { padding: 32px; }
.contact__notice {
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-raised);
  font-size: 14px;
}
.contact__notice--alert {
  border-color: var(--accent);
  color: var(--accent);
}
.contact__form { display: grid; gap: 18px; }
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field__label {
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--text-secondary);
}
.contact__textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.contact__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact__hint { color: var(--text-muted); }
.contact__aside { padding-top: 8px; }
.contact__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact__list-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ---------- Welcome (beta gate) ------------------------------------- */
.welcome { padding: 32px 32px 96px; }
.welcome__inner { max-width: var(--width-marketing); margin: 0 auto; }
.welcome__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.welcome__banner { margin-bottom: 24px; }
.welcome__card { padding: 32px; }
.welcome__card-title {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 8px 0 6px;
}
.welcome__card-sub {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
}

/* ---------- Sign-in pages (/login, /session/new, password reset) ------ */
.auth { padding: 72px 24px 112px; background: var(--bg-surface-raised); }
.auth__card { max-width: 440px; margin: 0 auto; padding: 36px 32px 32px; }
.auth__card .welcome__card-title { margin-top: 10px; }
.auth__card .welcome__card-title + .contact__form { margin-top: 20px; }
.auth__card .field__label { color: var(--text-primary); }
.auth__card .btn-primary { width: 100%; }
.auth__links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.auth__links form { display: flex; margin: 0; }
.auth__links .btn { color: var(--text-secondary); }
.auth__links .btn:hover { color: var(--text-primary); }

/* ---------- Measuring guide ----------------------------------------- */
.guide { padding: 80px 32px; background: var(--bg-surface); }
.guide__inner {
  max-width: var(--width-marketing);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.guide__steps { display: grid; gap: 36px; }
.guide__step-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.guide__body {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.guide__list {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.guide__list li { margin-bottom: 6px; }
.guide__diagram { padding: 24px; position: sticky; top: 32px; }
.guide__diagram-head { margin-bottom: 16px; }
.guide__diagram-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 16px;
  margin-top: 4px;
}
.guide__diagram svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-surface-raised);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}

/* ---------- Shape categories (cylinder vs rectangular) -------------- */
.shapes {
  padding: 80px 32px;
  background: var(--bg-surface-raised);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
.shapes__inner { max-width: var(--width-marketing); margin: 0 auto; }
.shapes__head { max-width: 720px; margin-bottom: 40px; }
.shapes__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0;
}
.shapes__lede {
  margin-top: 14px;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}
.shapes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.shapes__col { padding: 28px 28px 24px; }
.shapes__col-figure {
  margin: 0 0 22px;
  padding: 16px 12px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shapes__col-figure svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}
.shapes__col-head { margin-bottom: 18px; }
.shapes__col-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.shapes__col-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
}
.shapes__col-sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.shapes__col-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.shapes__col-list li {
  padding-left: 18px;
  position: relative;
}
.shapes__col-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--text-muted);
}

/* ---------- Cylinder-specific guidance ------------------------------ */
.cylinder { padding: 80px 32px; }
.cylinder__inner { max-width: var(--width-marketing); margin: 0 auto; }
.cylinder__head { max-width: 720px; margin-bottom: 40px; }
.cylinder__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0;
}
.cylinder__lede {
  margin-top: 14px;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}
.cylinder__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.cylinder__diagram { padding: 24px; }
.cylinder__diagram-head { margin-bottom: 16px; }
.cylinder__diagram-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 16px;
  margin-top: 4px;
}
.cylinder__diagram svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-surface-raised);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}
.cylinder__photo { padding: 0; overflow: hidden; }
.cylinder__photo-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--bg-surface-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.cylinder__photo-placeholder p {
  margin: 0;
  font-size: 14px;
  max-width: 280px;
}
.cylinder__notes { display: grid; gap: 24px; }
.cylinder__note-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0;
}
.cylinder__note-body {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Tools ranking ------------------------------------------- */
.tools {
  padding: 80px 32px;
  background: var(--bg-surface-raised);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
.tools__inner { max-width: var(--width-marketing); margin: 0 auto; }
.tools__head { max-width: 720px; margin-bottom: 40px; }
.tools__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0;
}
.tools__lede {
  margin-top: 14px;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}
.tools__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tool-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tool-card__photo {
  background: var(--bg-surface-raised);
  border-top: 1px solid var(--border-subtle);
}
.tool-card__img {
  display: block;
  width: 100%;
  height: auto;
}
.tool-card__attribution {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}
.tool-card__attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tool-card__photo-placeholder {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.tool-card__body { padding: 22px 24px 24px; }
.tool-card__rank {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid;
}
.tool-card__rank--good {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
.tool-card__rank--ok {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}
.tool-card__rank--bad {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}
.tool-card__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
}
.tool-card__copy {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Products ------------------------------------------------- */
.product {
  padding: 88px 32px;
  border-bottom: 1px solid var(--border-default);
}
.product:last-of-type { border-bottom: none; }
.product__inner { max-width: var(--width-marketing); margin: 0 auto; }
.product__head { max-width: 720px; margin-bottom: 40px; }
.product__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0;
}
.product__lede {
  margin-top: 14px;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}
.product__hero {
  margin: 0 auto 48px;
  max-width: 100%;
}
.product__hero--portrait { max-width: 480px; }
.product__hero img {
  display: block;
  width: 100%;
  height: auto;
}
.product__grid {
  column-count: 3;
  column-gap: 28px;
}
.product__figure {
  break-inside: avoid;
  margin: 0 0 28px;
}
.product__figure img {
  display: block;
  width: 100%;
  height: auto;
}
.product__caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.product__article {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.product__article::after { content: ""; display: block; clear: both; }
.product__article > p { margin: 0 0 24px; }
.product__article > p strong,
.product__article > p b { color: var(--text-primary); }
.product__article > h3 {
  clear: both;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 48px 0 18px;
}
.product__article > .product__figure {
  width: 46%;
  margin: 6px 0 18px;
}
.product__article > .product__figure:nth-of-type(odd) {
  float: right;
  margin-left: 36px;
}
.product__article > .product__figure:nth-of-type(even) {
  float: left;
  margin-right: 36px;
}

/* ---------- FAQ ------------------------------------------------------ */
.faq { padding: 80px 32px; }
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 0;
}
.faq__item:first-child { border-top: 1px solid var(--border-subtle); }
.faq__q {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}
.faq__a {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
}
.faq__a ul { margin: 8px 0 12px; padding-left: 20px; }
.faq__a li + li { margin-top: 4px; }

/* ---------- Tablet (<= 1024px) --------------------------------------- */
@media (max-width: 1024px) {
  .hero { padding: 64px 24px 72px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__title { font-size: 56px; }

  .value-props { padding: 64px 24px; }
  .value-props__grid { grid-template-columns: repeat(2, 1fr); }

  .process { padding: 72px 24px; }
  .home-sizes { padding: 64px 24px; }
  .process__head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  .process__step { padding: 28px 0; }
  .process__step-num { font-size: 36px; }

  .comparison { padding: 72px 24px; }

  .cta { padding: 80px 24px; }
  .cta__card { padding: 56px 40px; }

  .page-header { padding: 56px 24px 36px; }
  .page-header__title { font-size: 44px; }

  .gallery { padding: 64px 24px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-crumbs { padding: 16px 24px; }
  .cta--gallery { padding: 0 24px 32px; }
  .product:has(+ .cta--gallery) { padding-bottom: 48px; }
  .gallery-pager { padding: 0 24px 56px; }

  .catalog { padding: 56px 24px; }
  .catalog-dir-top { padding: 24px 24px 0; }
  .catalog-dir__dims { display: none; }

  .catalog-show { padding: 40px 24px 64px; }
  .catalog-show__inner { grid-template-columns: 1fr; gap: 36px; }
  .product-head { padding: 40px 24px 28px; }
  .product-copy { padding: 40px 24px 16px; }

  .contact { padding: 64px 24px; }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }

  .welcome { padding: 24px 24px 64px; }
  .welcome__grid { grid-template-columns: 1fr; gap: 24px; }

  .guide { padding: 64px 24px; }
  .guide__inner { grid-template-columns: 1fr; gap: 40px; }
  .guide__diagram { position: static; }

  .shapes { padding: 64px 24px; }
  .shapes__title { font-size: 32px; }
  .shapes__grid { grid-template-columns: 1fr; gap: 20px; }

  .cylinder { padding: 64px 24px; }
  .cylinder__title { font-size: 32px; }
  .cylinder__grid { grid-template-columns: 1fr; gap: 28px; }

  .tools { padding: 64px 24px; }
  .tools__title { font-size: 32px; }
  .tools__grid { grid-template-columns: 1fr; gap: 16px; }

  .faq { padding: 64px 24px; }

  .product { padding: 64px 24px; }
  .product__title { font-size: 32px; }
  .product__hero { margin-bottom: 36px; }
  .product__grid { column-count: 2; column-gap: 24px; }
  .product__figure { margin-bottom: 24px; }
  .product__article { font-size: 16px; }
  .product__article > h3 { font-size: 20px; margin: 40px 0 14px; }
  .product__article > .product__figure,
  .product__article > .product__figure:nth-of-type(odd),
  .product__article > .product__figure:nth-of-type(even) {
    float: none;
    width: 70%;
    max-width: 440px;
    margin: 28px auto;
  }
}

/* ---------- Phone (<= 640px) ----------------------------------------- */
@media (max-width: 640px) {
  .product-head { padding: 32px 20px 24px; }
  .product-head__title { font-size: var(--fs-h1); line-height: var(--lh-h1); }
  .product-copy { padding: 32px 20px 12px; }
  .hero { padding: 48px 20px 56px; }
  .hero__title {
    font-size: clamp(40px, 10vw, 56px);
    line-height: 1.05;
  }
  .hero__sub { margin-top: 18px; }
  .hero__actions {
    margin-top: 24px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .value-props { padding: 48px 20px; }
  .value-props__grid {
    margin-top: 32px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .value-card { padding: 20px; }
  .value-card__title { font-size: 22px; }

  .process { padding: 56px 20px; }
  .home-sizes { padding: 48px 20px; }
  .process__step { padding: 22px 0; }
  .process__step-num { font-size: 32px; }
  .process__step:last-child { border-bottom: none; }

  .comparison { padding: 56px 20px; }
  .comparison__table { overflow-x: auto; }
  .comparison__grid { min-width: 480px; }

  .cta { padding: 64px 20px; }
  .cta__card { padding: 40px 24px; }
  .cta__title { font-size: clamp(36px, 9vw, 60px); }
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta__actions .btn { width: 100%; justify-content: center; }

  .page-header { padding: 44px 20px 28px; }
  .page-header__title { font-size: clamp(34px, 8vw, 44px); }

  .gallery { padding: 48px 20px; }
  .gallery__grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-crumbs { padding: 14px 20px; }
  .cta--gallery { padding: 0 20px 28px; }
  .product:has(+ .cta--gallery) { padding-bottom: 40px; }
  .gallery-pager { padding: 0 20px 48px; }
  .gallery-pager__inner { grid-template-columns: 1fr; gap: 8px; }
  .gallery-pager__link--next { grid-column: 1; align-items: flex-start; text-align: left; }

  .contact { padding: 48px 20px; }
  .contact__form-wrap { padding: 24px; }
  .contact__row { grid-template-columns: 1fr; }

  .welcome { padding: 16px 20px 48px; }
  .welcome__card { padding: 24px; }
  .welcome__card-title { font-size: 22px; }

  .guide { padding: 48px 20px; }
  .guide__step-title { font-size: 22px; }

  .shapes { padding: 48px 20px; }
  .shapes__title { font-size: clamp(28px, 7vw, 32px); }
  .shapes__col { padding: 22px; }

  .cylinder { padding: 48px 20px; }
  .cylinder__title { font-size: clamp(28px, 7vw, 32px); }

  .tools { padding: 48px 20px; }
  .tools__title { font-size: clamp(28px, 7vw, 32px); }
  .tool-card__body { padding: 18px 20px 20px; }

  .faq { padding: 48px 20px; }
  .faq__q { font-size: 17px; gap: 16px; }

  .product { padding: 48px 20px; }
  .product__title { font-size: clamp(28px, 7vw, 32px); }
  .product__hero { margin-bottom: 28px; }
  .product__grid { column-count: 1; }
  .product__figure { margin-bottom: 20px; }
  .product__article > .product__figure,
  .product__article > .product__figure:nth-of-type(odd),
  .product__article > .product__figure:nth-of-type(even) {
    width: 100%;
    max-width: none;
    margin: 24px 0;
  }
}

/* ------------------------------------------------------------------------- */
/* Standard-size shop (/cases): shape tiles, size cards, product page extras. */
/* ------------------------------------------------------------------------- */

/* Product-page breadcrumbs: the trail back to the listings dressed as the
   same pills the listing tabs wear, so the way back is a button, not a
   caption. */
.case-crumbs {
  padding: 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}
.case-crumbs__inner {
  max-width: var(--width-marketing);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
}
.case-crumbs__pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease;
}
.case-crumbs__pill:hover {
  border-color: var(--text-primary);
}
.case-crumbs__sep { color: var(--text-muted); }
.case-crumbs__current {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--text-primary);
}
@media (max-width: 720px) {
  .case-crumbs { padding: 0 20px; }
}

/* The shop's browsing row: one pill per shape, plus the gear catalog and the
   configurator, so every way to get a case sits in a single tab row. */
.case-tabs {
  padding: 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}
.case-tabs__inner {
  max-width: var(--width-marketing);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 18px;
}
.case-tabs__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.case-tabs__pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.case-tabs__pill.is-active {
  color: var(--text-inverse);
  background: var(--bg-ink);
  border-color: var(--bg-ink);
}
/* The two pills that leave the standard-size shop read as doors, not filters.
   They sit right after the shape pills, in the same row. */
.case-tabs__pill--alt {
  border-style: dashed;
}

@media (max-width: 720px) {
  .case-tabs { padding: 0 20px; }
}

.case-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-tile {
  display: block;
  padding: 36px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 120ms ease, transform 120ms ease;
}
.case-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
/* Tiles that leave the standard sizes: dashed like the matching tab pills. */
.case-tile--door {
  border-style: dashed;
}
.case-tile__glyph {
  color: var(--accent);
  margin-bottom: 16px;
}
.case-tile__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin: 0 0 8px;
}
.case-tile__sub {
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.case-tile__meta {
  font-size: 13px;
  color: var(--text-secondary);
}
/* The home page's smaller set of the same tiles. */
.case-tiles--compact { gap: 16px; }
.case-tiles--compact .case-tile { padding: 24px 22px; }
.case-tiles--compact .case-tile__photo { height: 112px; margin-bottom: 12px; }
.case-tiles--compact .case-tile__title { font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
.case-tiles--compact .case-tile__sub { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }

/* Home: the standard sizes, after the process. */
.home-sizes {
  padding: 80px 32px;
  border-bottom: 1px solid var(--border-default);
}
.home-sizes__inner { max-width: var(--width-marketing); margin: 0 auto; }
.home-sizes__title { margin: 14px 0 8px; }
.home-sizes__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 620px;
}
.home-sizes__more { margin: 24px 0 0; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.case-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 120ms ease, transform 120ms ease;
}
.case-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.case-card__glyph {
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.case-card__glyph svg {
  display: block;
  width: 100%;
  height: auto;
}
.case-card:hover .case-card__glyph {
  color: var(--accent);
}
.case-card__size {
  font-size: 16px;
  font-weight: 600;
}
.case-crosslinks {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.case-crosslinks p {
  margin: 0 0 8px;
}

/* Listing pages: the "build to your measurements" call-out under the grid. */
.case-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--bg-surface-raised);
  border: 2px solid var(--accent-yellow);
  border-radius: 12px;
  color: var(--text-secondary);
}
.case-callout__text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; }
.case-callout__title { font-size: 20px; color: var(--text-primary); }

/* Product pages: the row of other cases that closes the page. */
.related { padding-top: 40px; }
.related__title { font-size: 24px; margin: 0 0 20px; }

/* Product page: the secondary actions under Buy. */
.customize__secondary {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* The spec table under Buy: interior, material, shape, and the outside
   dimensions, beside the lettered direction glyph (L/W/H or ⌀/H). */
.pdp-specs {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.pdp-specs__label { margin-bottom: 10px; }
.pdp-specs__row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.pdp-specs__row .customize__dims { flex: 1 1 auto; margin-top: 0; }
.pdp-specs__row .pdp__dims { margin-top: 0; }
.pdp-specs__row dd { white-space: nowrap; }
.pdp-specs__diagram {
  flex: 0 0 auto;
  color: var(--text-muted);
}
.pdp-specs__diagram svg { display: block; width: 108px; height: 108px; }
.pdp-specs__diagram text { font-family: var(--font-mono); }
@media (max-width: 480px) {
  .pdp-specs__row { flex-wrap: wrap; }
  .pdp-specs__diagram { margin: 0 auto; }
}

/* The handoff into the configurator: its own card, not a footnote, because
   "this size is close but not quite right" is a sale the muted text lost. */
.customize__handoff {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.customize__handoff-title {
  margin: 0 0 6px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semi);
}
.customize__handoff-sub {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.customize__banner {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .case-tiles { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Listing-card studio renders (white-background PNGs from the render host). */
.case-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.case-card__photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Shape-tile studio renders. */
.case-tile__photo {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.case-tile__photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ------------------------------------------------------------------------- */
/* Product page (pdp): gallery left, protection picker and Buy right.        */
/* ------------------------------------------------------------------------- */

.pdp { padding: 40px 32px 32px; }
.pdp__inner {
  max-width: var(--width-marketing);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pdp__stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
}
.pdp__stage img {
  max-width: 100%;
  max-height: 540px;
  height: auto;
}
.pdp__stage svg {
  max-width: 100%;
  height: auto;
}
/* The stage and the thumbs set their own display, which would otherwise beat
   the hidden attribute the gallery script toggles. */
.pdp [hidden] { display: none; }

/* A catalog page's section drawing, as one view in the gallery. The redacted
   sheet ships with no width of its own (a drawing that declares its scale is a
   ruler over every part on it), so the stage gives it one. max-height is the
   guard for a long lens: the drawing then centres itself inside the width,
   which is what its own preserveAspectRatio is for. */
.pdp__drawing { width: 100%; }
.pdp__sheet { transition: opacity var(--dur-fast) var(--ease-standard); }
.pdp__sheet svg { display: block; width: 100%; height: auto; max-height: min(72vh, 540px); }
[data-case-drawing] .pdp__sheet { opacity: 0.45; }
.pdp__drawing .customize__caption { text-align: center; }

.pdp__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.pdp__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-secondary);
  transition: border-color 120ms ease;
}
.pdp__thumb img,
.pdp__thumb svg {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.pdp__thumb:hover { border-color: var(--border-strong); }
.pdp__thumb.is-active {
  border-color: var(--border-ink);
  color: var(--text-primary);
}

.pdp__dims { margin-top: 20px; }

/* Stacked on a phone the gallery comes first, directly above the picker, so
   a protection change visibly swaps the picture. */
@media (max-width: 900px) {
  .pdp { padding: 28px 20px 24px; }
  .pdp__inner { grid-template-columns: 1fr; gap: 28px; }
  .pdp__stage { min-height: 220px; }
}

/* ---------- Checkout, order pages, promotions ----------------------- */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-6);
  align-items: start;
}
.checkout__change { color: var(--text-secondary); text-decoration: underline; }
.checkout__form { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.checkout__form .customize__field { margin: 0; }
.checkout__totals {
  margin-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}
.checkout__total-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-body);
}
.checkout__total-row--promo { color: var(--success-text); }
.checkout__total-row--grand {
  border-bottom: none;
  font-weight: var(--fw-semi);
  font-size: var(--fs-h4);
}
/* "(USA only)" and "(outside the USA)" drop to their own line on a small
   phone, rather than wrapping mid-phrase beside the price. */
@media (max-width: 480px) {
  .opt__qualifier { display: block; }
}
/* Pay goes forward on the right; Back goes back on the left. */
.checkout__actions { justify-content: space-between; }
/* The review page alone, without the case summary beside it. */
.checkout--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.checkout__note { color: var(--text-secondary); margin-top: var(--space-2); }
/* International shipping: the quote form that stands in for the totals. */
.checkout__intl { display: grid; gap: var(--space-3); }
.checkout__intl[hidden], .checkout__totals[hidden], .checkout__note[hidden] { display: none; }
.checkout__intl-lede { margin: 0; color: var(--text-secondary); }
.checkout__aside-title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  margin: var(--space-2) 0 0;
}
.checkout__summary { margin-top: var(--space-4); }
.checkout__aside-actions { margin-top: var(--space-4); }
.checkout__address { margin-top: var(--space-5); }
.checkout__address-lines {
  font-style: normal;
  margin-top: var(--space-2);
  line-height: var(--lh-body);
}
.checkout__confirming { max-width: var(--width-reading); margin: 0 auto; }
.promo-card { max-width: var(--width-reading); margin: 0 auto; }
.promo-card__form { display: grid; gap: var(--space-4); }
.promo-card__code {
  font-size: var(--fs-h2);
  letter-spacing: 0.04em;
  margin: var(--space-2) 0;
}
.orders-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.orders-list__link {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto auto auto auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
}
.orders-list__link:hover { border-color: var(--border-strong); }
.order-status { text-transform: uppercase; letter-spacing: var(--ls-overline); }
.order-status--paid { color: var(--success-text); }
.order-status--cancelled, .order-status--payment_failed { color: var(--danger-text); }

@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout__aside { order: -1; }
  .orders-list__link { grid-template-columns: 1fr 1fr; }
}
