/* Fonts (self-hosted, latin subset) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); }

:root {
  --black: #050505;
  --lime: #A8FF00;
  --line: #1C1C1C;
  --line-2: #2A2A2A;
  --muted: #B5B5B5;
  --muted-2: #8A8A8A;
  --grey: #6B6B6B;
  --ink-2: #4A4A4A;
  --pad-x: clamp(16px, 4vw, 32px);
  --mono: "IBM Plex Mono", monospace;
  --display: Archivo, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--black); color: #FFFFFF; font-family: Inter, system-ui, sans-serif; }
a { color: inherit; }
img { max-width: 100%; }
h2, h3 { overflow-wrap: break-word; }
button { font: inherit; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }


/* Utilities */
.container { max-width: 1280px; margin: 0 auto; }
.pad-x { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: clamp(56px, 9vw, 112px) var(--pad-x); }
.light { background: #FFFFFF; color: var(--black); }
.stack { display: flex; flex-direction: column; gap: clamp(28px, 5vw, 56px); }
.split { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.heading { display: flex; flex-direction: column; gap: 16px; }
.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
.small-muted { font-size: 14px; color: var(--muted-2); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--lime); }
.light .eyebrow { color: var(--grey); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--grey); }
.label-dark { color: var(--black); }
.display { margin: 0; font-family: var(--display); font-stretch: 118%; font-weight: 800; line-height: .98; text-transform: uppercase; }
.h2 { font-size: clamp(32px, 4.8vw, 60px); letter-spacing: -.5px; }
.h2-sm { font-size: clamp(32px, 4vw, 48px); }
.h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; border-radius: 4px; font-weight: 600; border: 0; cursor: pointer; }
.btn-primary { background: var(--lime); color: var(--black); }
.btn-outline { background: transparent; color: inherit; border: 1px solid #3A3A3A; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; flex: 1 1 auto; }
.btn-xl { height: 60px; padding: 0 32px; font-size: 17px; }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: clamp(20px, 2.2vw, 26px); width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a, .mobile-nav a { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { padding: 12px 20px; font-size: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.lang-switch button { min-width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted-2); font-family: var(--mono); font-size: 12px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: #FFFFFF; color: var(--black); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 4px; background: transparent; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--line); padding-top: 8px; padding-bottom: 16px; display: flex; flex-direction: column; font-size: 17px; font-weight: 500; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-lang { display: none; align-self: flex-start; margin-top: 8px; }

/* Hero */
.hero { padding: clamp(28px, 6vw, 64px) var(--pad-x) clamp(48px, 8vw, 96px); display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); }
.hero-h1 { font-size: clamp(32px, 11cqi, 92px); line-height: .95; letter-spacing: -1px; }
.hero-p { margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); max-width: 500px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; max-width: 520px; }
.trust { margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* Gallery */
.gallery { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-main { position: relative; background: #111111; border-radius: 6px; overflow: hidden; aspect-ratio: 1070 / 1157; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.slide.is-active { opacity: 1; }
@starting-style { .slide.is-active:not(:first-child) { opacity: 0; } }
.slide img, img.slide { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.callout-dot { position: absolute; left: 9%; top: 48%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lime); }
.callout { position: absolute; background: var(--black); color: var(--lime); font-family: var(--mono); font-size: clamp(10px, 1vw, 12px); letter-spacing: 1px; padding: 5px 9px; white-space: nowrap; }
.callout-panel { left: 48.5%; top: 6%; transform: translate(-50%, -50%); }
.callout-legs { left: 4%; top: 81.5%; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumbs button { width: 100%; padding: 0; border: 2px solid var(--line); border-radius: 4px; overflow: hidden; background: #111111; cursor: pointer; opacity: .7; }
.thumbs button[aria-pressed="true"] { border-color: var(--lime); opacity: 1; }
.thumbs img { display: block; width: 100%; height: clamp(52px, 7vw, 84px); object-fit: cover; }

/* Spec strip */
.spec-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.spec-strip > div { padding: clamp(18px, 2.5vw, 32px); border-right: 1px solid #E4E4E4; border-bottom: 1px solid #E4E4E4; display: flex; flex-direction: column; gap: 8px; }
.spec-strip strong { font-family: var(--display); font-stretch: 112%; font-size: clamp(18px, 2.2vw, 28px); font-weight: 700; }
.spec-strip > div > span:last-child { font-size: 14px; color: var(--grey); }

/* Why */
.why { border-top: 1px solid #E4E4E4; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.why-col { border-top: 2px solid var(--black); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.numbered { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.5; }
.numbered li { display: flex; gap: 12px; }
.numbered li > span:first-child { font-family: var(--mono); color: var(--grey); }

/* How */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 18px; }
.steps img { width: 100%; height: clamp(200px, 22vw, 280px); object-fit: cover; border-radius: 6px; display: block; }
.step { display: flex; gap: 16px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.step > span { font-family: var(--mono); color: var(--lime); }
.step > div { display: flex; flex-direction: column; gap: 6px; }
.step strong { font-size: 19px; }
.step > div > span { color: var(--muted); line-height: 1.55; }
.angles { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line-2); padding-top: clamp(28px, 4vw, 48px); }
.angles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.angles-grid figure { margin: 0; border: 1px solid #222222; border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.angles-grid svg { display: block; }
.angles-grid figcaption { display: flex; flex-direction: column; gap: 4px; }
.angles-grid strong { font-family: var(--display); font-stretch: 112%; font-size: 20px; }
.angles-grid figcaption span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Standard */
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; }
.criteria > div { padding: 24px 0 28px; border-top: 2px solid var(--black); display: flex; flex-direction: column; gap: 12px; }
.criteria strong { font-family: var(--display); font-stretch: 112%; font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
.criteria > div > span:last-child { color: var(--ink-2); line-height: 1.55; }

/* Specs */
.specs { background: #F4F4F4; }
.specs-stack { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.specs-row { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); }
.specs-figure { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.specs-figure img { width: 100%; height: clamp(260px, 38vw, 520px); object-fit: cover; border-radius: 6px; display: block; }
.specs-figure figcaption { letter-spacing: 0; }
.specs-table { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.specs-table dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 16px; border-top: 2px solid var(--black); }
.specs-table dt, .specs-table dd { padding: 14px 0; border-bottom: 1px solid #DADADA; }
.specs-table dt { font-family: var(--mono); font-size: 13px; color: var(--grey); }
.specs-table dd { margin: 0; font-weight: 600; }
.specs-table dt:last-of-type, .specs-table dd:last-of-type { border-bottom: 0; }
.box { display: flex; flex-direction: column; gap: 20px; border-top: 2px solid var(--black); padding-top: clamp(24px, 3vw, 32px); }
.h3-box { font-size: clamp(28px, 3.4vw, 40px); }
.box ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.box li { background: #FFFFFF; border-radius: 6px; padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 140px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.box .qty { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(36px, 4vw, 48px); line-height: 1; }
.box small { display: block; font-size: 13px; font-weight: 400; color: var(--grey); }

/* Reviews */
.reviews { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); align-items: flex-start; }
.reviews-intro { flex: 1 1 280px; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.reviews-grid { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.reviews-grid figure { margin: 0; border: 1px solid var(--line-2); border-radius: 6px; padding: clamp(20px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.reviews-grid blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.reviews-grid figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid #DADADA; padding: 20px 0; }
.faq details:first-of-type { border-top: 2px solid var(--black); }
.faq details:last-of-type { border-bottom: 1px solid #DADADA; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: clamp(16px, 1.6vw, 18px); }
.faq p { margin: 12px 0 0; line-height: 1.65; color: var(--ink-2); }
.faq summary > span:last-child { display: inline-block; }
.faq details[open] summary > span:last-child { rotate: 45deg; }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }

/* Final CTA */
.final { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.final-h2 { font-size: clamp(40px, 6.6vw, 80px); line-height: .95; letter-spacing: -1px; }

/* Footer */
.site-footer { background: var(--black); color: var(--muted-2); font-size: 14px; line-height: 1.7; }
.site-footer-inner { padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; }
.site-footer-inner > img { height: 18px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links [aria-current="page"] { color: #FFFFFF; }

/* Mobile sticky bar */
.mobile-bar { display: none; position: sticky; bottom: 0; background: var(--black); border-top: 1px solid var(--line); padding: 10px 16px 14px; }
.mobile-bar .btn { height: 50px; font-size: 15px; }

/* Legal pages */
.legal-header { border-bottom: 1px solid var(--line); }
.legal-header-inner { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back-link { font-size: 14px; font-weight: 500; text-decoration: none; padding: 12px 0; }
.legal { background: #FFFFFF; color: var(--black); }
.legal a { color: var(--black); }
.legal-main { max-width: 760px; margin: 0 auto; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); display: flex; flex-direction: column; gap: 40px; }
.legal-intro { display: flex; flex-direction: column; gap: 16px; border-bottom: 2px solid var(--black); padding-bottom: 32px; }
.legal-intro p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.legal-h1 { font-size: clamp(36px, 5vw, 56px); }
.legal-main section { display: flex; flex-direction: column; gap: 12px; }
.legal-main h2 { margin: 0; display: flex; gap: 14px; font-family: var(--display); font-stretch: 112%; font-size: 22px; font-weight: 700; }
.legal-main h2 span { font-family: var(--mono); font-size: 14px; color: var(--grey); padding-top: 5px; }
.legal-main section p { margin: 0; font-size: 16px; line-height: 1.7; color: #2A2A2A; }

/* Cookie banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--black); border-top: 1px solid var(--line-2); }
.consent-inner { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.consent p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .btn { height: 44px; padding: 0 20px; font-size: 14px; }

/* Breakpoints: ≤900 tablet (nav collapses), ≤640 phone (sticky Amazon bar) */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-button { display: flex; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 77px; }
  .site-header { position: sticky; top: 0; z-index: 5; background: var(--black); }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-inner > a:first-child { grid-column: 2; }
  .header-actions { grid-column: 3; justify-self: end; }
  .header-cta, .header-lang { display: none; }
  .mobile-nav a:last-of-type { border-bottom: 1px solid var(--line); }
  .mobile-lang { display: flex; }
  .mobile-bar { display: block; }
}

/* Hover / state colours (not motion, so kept for everyone) */
.btn, .nav a, .mobile-nav a, .footer-links a, .back-link, .lang-switch button, .thumbs button { transition: color .2s, background-color .2s, border-color .2s, opacity .2s; }
.btn-primary:hover { background: #C2FF4D; }
.btn-outline:hover { border-color: #FFFFFF; }
.nav a:hover, .footer-links a:hover, .back-link:hover { color: #FFFFFF; }
.mobile-nav a:hover { color: var(--lime); }
.lang-switch button[aria-pressed="false"]:hover { color: #FFFFFF; }
.thumbs button:hover { opacity: 1; }

/* Motion — static by default, opted in only without a reduced-motion preference */
@keyframes fadeIn { from { opacity: 0; translate: 0 12px; } }
@keyframes heroZoom { from { scale: 1.06; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } }
@keyframes pop { from { scale: 0; } }
@keyframes ring { from { scale: 1; opacity: .9; } to { scale: 3.2; opacity: 0; } }
@keyframes calloutIn { from { opacity: 0; translate: 0 6px; } }
@keyframes reveal { from { opacity: 0; translate: 0 24px; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: copy, photo, then callouts draw in (all one-shot) */
  .fade-in { animation: fadeIn .6s cubic-bezier(.2,.7,.2,1) both; }
  .slide:first-child img { animation: heroZoom 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .slide:first-child svg { animation: wipe .9s .5s cubic-bezier(.6,0,.2,1) both; }
  .callout-dot { animation: pop .35s 1.1s cubic-bezier(.3,1.6,.5,1) both; }
  .callout-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); opacity: 0; animation: ring 1.6s 1.5s ease-out 3; }
  .callout-panel { animation: calloutIn .4s 1.2s ease-out both; }
  .callout-legs { animation: calloutIn .4s 1.35s ease-out both; }

  /* Micro-interactions */
  .btn svg { transition: translate .2s; }
  .btn:hover svg { translate: 2px -2px; }
  .faq summary > span:last-child { transition: rotate .2s; }
  .faq details::details-content { transition: block-size, content-visibility, display; transition-duration: .3s; transition-timing-function: ease-in-out; transition-behavior: allow-discrete; }
  .mobile-nav { transition: opacity .2s ease-out, translate .2s ease-out; }
  @starting-style { .mobile-nav { opacity: 0; translate: 0 -8px; } }

  /* Angle cards play once, the first time each card scrolls into view (main.js removes .is-pending).
     Per card: card rises → ground line draws → board stands up → leg → angle arc + label → caption. Cards stagger by --d. */
  .angles-grid figure { --d: 0s; transition: opacity .5s var(--d) ease-out, translate .5s var(--d) ease-out; }
  .angles-grid figure:nth-child(2) { --d: .12s; }
  .angles-grid figure:nth-child(3) { --d: .24s; }
  .angles-grid svg > path:first-child { transform-box: view-box; transform-origin: 10px 124px; transition: scale .5s calc(var(--d) + .15s) cubic-bezier(.2,.7,.2,1); }
  .angle-panel { transform-box: view-box; transform-origin: 60px 124px; transition: rotate .8s calc(var(--d) + .3s) cubic-bezier(.2,.7,.2,1); }
  /* Arc draws in lockstep with the board (same duration, delay, easing); main.js counts the label 0° → target and moves the hinged leg from the board rotation. */
  .angle-arc { stroke-dasharray: 1; transition: stroke-dashoffset .8s calc(var(--d) + .3s) cubic-bezier(.2,.7,.2,1); }
  .angles-grid figcaption > * { transition: opacity .4s calc(var(--d) + 1s) ease-out, translate .4s calc(var(--d) + 1s) ease-out; }
  .angles-grid figcaption > :last-child { transition-delay: calc(var(--d) + 1.1s); }

  .angles-grid figure.is-pending, .angles-grid figure.is-pending * { transition: none; }
  .angles-grid figure.is-pending { opacity: 0; translate: 0 16px; }
  .angles-grid figure.is-pending svg > path:first-child { scale: 0 1; }
  .angles-grid figure.is-pending .angle-panel { rotate: var(--a); }
  .angles-grid figure.is-pending .angle-arc { stroke-dashoffset: 1; }
  .angles-grid figure.is-pending figcaption > * { opacity: 0; translate: 0 8px; }

  /* Scroll-driven: reveal on enter, angle diagrams play with scroll. No support → static, fully visible. */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    :is(.split, .stack > .heading, .why-col, .steps li, .angles > h3, .criteria > div, .specs-figure, .specs-table, .box, .box li, .reviews-intro, .reviews-grid figure, .faq > h2, .faq details, .final > *, .spec-strip > div) {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
    :is(.why-col, .steps li, .criteria > div, .box li, .reviews-grid figure, .spec-strip > div):nth-child(2) { animation-range: entry 20% cover 33%; }
    :is(.why-col, .steps li, .criteria > div, .box li, .reviews-grid figure, .spec-strip > div):nth-child(3) { animation-range: entry 30% cover 36%; }
    :is(.criteria > div, .box li, .spec-strip > div):nth-child(4) { animation-range: entry 40% cover 39%; }
    .criteria > div:nth-child(5) { animation-range: entry 50% cover 42%; }
  }
}
