/* Product pages (Vioatlantic, Viocolours). Shared tokens and components live in styles.css. */

.product h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; margin: 0 0 16px; line-height: 1.12; text-wrap: balance; }
.kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 10px; }
.block-pad { padding-top: 88px; padding-bottom: 88px; }
.soft { background: var(--bg-soft); }

/* hero */
.p-hero { background: #fff; }  /* frames carry their own white floor, so the hero stays white */
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; padding: 20px 0 56px; }
/* the words start at the same height under the breadcrumb on every page; the picture stays centred beside them
   (2026-12-01, the user: the top gap differed between Viocolours and Vioatlantic) */
.p-hero-copy { align-self: start; }
.p-hero h1 { font-size: clamp(48px, 7vw, 92px); font-weight: 700; letter-spacing: -.03em; margin: 6px 0 12px; }
.p-tagline { font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; font-weight: 600; color: var(--navy); margin-bottom: 18px; }
.p-hero .lede { margin-bottom: 28px; }
.p-hero .viewer { background: transparent; border: 0; border-radius: 0; }
.p-hero .viewer img { filter: drop-shadow(0 0 0 transparent); }
.p-hero .viewer-loading { background: transparent; }
.p-hero .viewer-controls { max-width: 520px; margin-left: auto; margin-right: auto; }
.swatch { background: var(--c); }

/* facts */
.facts { border-top: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid div { padding: 26px 0 26px 24px; border-left: 1px solid var(--line); }
.facts-grid div:first-child { border-left: 0; padding-left: 0; }
.facts-grid strong { display: block; font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 22px; font-weight: 600; color: var(--navy); }
.facts-grid span { font-size: 14px; color: var(--ink-2); }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.feature-flip .feature-photo { order: 2; }
.feature-photo { margin: 0; }
.feature-photo img { width: 100%; display: block; border-radius: 20px; }
.feature-copy p { font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.mini-specs { margin: 24px 0 0; }
.mini-specs div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mini-specs dt { color: var(--navy); font-weight: 600; }
.mini-specs dd { margin: 0; color: var(--ink-2); }

/* colours */
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 36px; }
.head-row h2 { margin: 0; }
.head-note { font-size: 16px; color: var(--ink-2); max-width: 48ch; }
.colour-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.colour-card { background: #fff; border: 1px solid transparent; border-radius: 16px; padding: 8px 8px 18px; text-align: center; transition: border-color .15s, transform .15s; color: var(--ink); }
.colour-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.colour-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.colour-card span { font-weight: 600; font-size: 15px; }

/* specs */
.specs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.specs-grid .cta-row { margin-top: 28px; }
.product .specs { background: #fff; border-radius: 16px; overflow: hidden; }
.product .specs th, .product .specs td { padding: 14px 22px; }
.product .specs tr:last-child th, .product .specs tr:last-child td { border-bottom: 0; }

/* family */
.family { margin-top: 28px; }
.family .card.product img { background: #fff; padding: 8px; aspect-ratio: 4 / 3; }
.card.product.is-current { border-color: var(--navy); }

.band-sub { display: block; font-size: 15px; color: rgba(255, 255, 255, .78); margin-top: 4px; }
.product .custom-band { margin-top: 0; }
.product .custom-band .btn { border: 0; }

@media (max-width: 860px) {
  .p-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 36px; }
  .p-hero .viewer-col { order: -1; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid div { padding: 18px 0 18px 16px; }
  .facts-grid div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature, .specs-grid, .head-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature, .block-pad { padding-top: 56px; padding-bottom: 56px; }
  .feature-flip .feature-photo { order: 0; }
  .colour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family.cards.three { grid-template-columns: minmax(0, 1fr); }
}

/* phones, 360 pages: the colours (and the variants) come right under the picture and its controls, on the first
   screen (2026-12-02, the user: "one must scroll down to see the colours; we are hiding this nice feature").
   The two columns dissolve into one grid so the options can be ordered between the picture and the words; the
   picture loses the empty top and bottom of its square frame (the products span 16 to 85 % of its height and their soft shadows reach 94 %; it shows 14 to 95 %: a first cut
   of 10 to 90 % clipped the shadow under the tall ones). */
@media (max-width: 860px) {
  .p-hero:has(.viewer-col) .crumbs { padding-top: 12px; }
  .p-hero-grid:has(.viewer-col) { gap: 0; }
  .p-hero-grid:has(.viewer-col) .p-hero-copy, .p-hero-grid:has(.viewer-col) .viewer-col { display: contents; }
  .p-hero-grid:has(.viewer-col) .viewer { order: 1; aspect-ratio: 1 / .81; }
  .p-hero-grid:has(.viewer-col) .viewer img { object-fit: cover; object-position: 50% 74%; }  /* shows 14 to 95 % of the frame */
  .p-hero-grid:has(.viewer-col) .viewer-hint { bottom: 6px; font-size: 12px; padding: 4px 10px; white-space: nowrap; }
  .p-hero-grid:has(.viewer-col) .viewer-controls { order: 2; width: 100%; margin-top: 8px; }
  .p-hero-grid:has(.viewer-col) .option { order: 3; margin-top: 14px; }
  .p-hero-grid:has(.viewer-col) .p-hero-copy > :not(.option) { order: 4; }
  .p-hero-grid:has(.viewer-col) .eyebrow { margin-top: 30px; }
  .p-hero-grid:has(.viewer-col) .lede { margin-bottom: 0; }
  /* a variant's colour row need not keep its place here: the picture is above it and does not move */
  .p-hero-grid:has(.viewer-col) .swatches.variant-colours[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .colour-card { transition: none; }
  .colour-card:hover { transform: none; }
}

.product .crumbs { flex-wrap: wrap; row-gap: 2px; }

/* pages with one still per variant instead of a 360° viewer (Viocolours) */
.still { margin: 0; }
.still img { width: 100%; max-width: 620px; aspect-ratio: 1 / 1; object-fit: contain; display: block; margin: 0 auto; transition: opacity .14s; }
.still img.is-fading { opacity: 0; }
.variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 440px; }
.variant { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 10px; font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.25; }
.variant:hover { border-color: var(--ink-3); }
.variant.is-active { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.variant img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; margin-bottom: 4px; }
.variants-note { display: block; margin-top: 12px; }
/* a variant's colour alternatives (Viocolours glossy overcap), shown while that variant is picked */
.variant-colours { margin-top: 14px; }
.swatches[hidden] { display: none; }
/* ...and keeps its place while another variant is picked: the hero's columns are centred against each other,
   so the row coming and going moved the 360 view 24 px (the user, 2026-12-01). One such row per page. */
.swatches.variant-colours[hidden] { display: flex; visibility: hidden; }
.variant-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.variant-card { background: #fff; border: 1px solid transparent; border-radius: 16px; padding: 8px 8px 22px; text-align: left; color: var(--ink); transition: border-color .15s, transform .15s; }
.variant-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.variant-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; margin-bottom: 10px; }
.variant-card strong { display: block; font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 19px; font-weight: 600; color: var(--navy); padding: 0 12px; }
.variant-card span { display: block; font-size: 14px; color: var(--ink-2); padding: 4px 12px 0; }
.can-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.can-pair figure { margin: 0; }
.can-pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 20px; border: 1px solid var(--line); }
.can-pair figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--navy); text-align: center; }
/* whole cans in tall frames (render_on_can.py): shown uncropped and no taller than most of the
   screen, so a pair fits in view with its captions; no frame round them (the user: "the frame does not
   look good"): the floor fades into the white page on its own */
.can-pair.is-tall { grid-template-columns: repeat(2, minmax(0, auto)); justify-content: center; gap: 24px; }
.can-pair.is-tall img { width: auto; height: auto; max-width: 100%; max-height: clamp(320px, calc(100vh - 380px), 560px); aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; }
/* beside the text (viocolours.html, On the can): no heading above, so the cans can stand taller */
.feature .can-pair.is-tall img { max-height: clamp(320px, calc(100vh - 250px), 600px); }
.feature-photo.can-pair { margin: 0; }
/* several whole cans on one floor in one picture (compose_cans.py), no frame: the floor fades into
   the page. The figure is as wide as the picture, so the caption's columns sit under the cans
   (they stand at a quarter and three quarters of its width) */
.can-duo { width: fit-content; max-width: 100%; margin-inline: auto; }
.can-duo img { width: auto; height: auto; max-width: 100%; max-height: clamp(320px, calc(100vh - 250px), 620px); margin-inline: auto; border: 0; border-radius: 0; }
.can-duo figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--navy); text-align: center; line-height: 1.35; }
/* one can (it stands in the middle) or three (at a sixth, a half and five sixths of the width) */
.can-duo.is-one figcaption { grid-template-columns: 1fr; }
.can-duo.is-three figcaption { grid-template-columns: repeat(3, 1fr); }
.soft .card.product { background: #fff; }
.soft .family .card.product img { background: #fff; }
@media (max-width: 860px) {
  .variant-cards { grid-template-columns: minmax(0, 1fr); }
  .variant-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; padding: 8px 12px 8px 8px; }
  .variant-card img { grid-row: span 2; margin: 0; }
  .variant-card strong, .variant-card span { padding: 0 0 0 8px; }
  .variants { max-width: none; }
  .p-hero .still-col { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .still img, .variant-card { transition: none; }
  .variant-card:hover { transform: none; }
}

/* a second render of the same colourway: marked with a small dot so the two can be told apart */
.swatch-v2 { position: relative; }
.swatch-v2::after { content: ""; position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }

/* valve pages (tools/build_valve_pages.py): four mounting cups to pick from */
.p-hero h1.h1-long { font-size: clamp(40px, 5.2vw, 68px); }
.variants.cups { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 440px; }
.cup-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cup-cards .variant-card { padding-bottom: 18px; }
.cup-cards.cups-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
@media (max-width: 860px) { .cup-cards, .cup-cards.cups-2 { grid-template-columns: minmax(0, 1fr); } }

/* under the hero's buttons: to the application areas that list this part (tools/applications_data.py) */
.uses-link { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.uses-link a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.uses-link a:hover { color: var(--green); }
