/* PIAB prototypes v01: brand tokens (Brand Guidelines v1.1) and shared behaviour. */
@font-face { font-family: Jost; src: url("../assets/fonts/Jost-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/InstrumentSans-Variable.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --orange: #F58C25; --burnt: #D45D34; --grey: #939292; --black: #000;
  --orange-10: #FEF4E9; --orange-30: #FCDDBE; --grey-10: #F4F4F4; --black-90: #1A1A1A; --hair: #E4E4E4;
  --display: Jost, "Century Gothic", sans-serif;
  --body: "Instrument Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-build: cubic-bezier(0.2, 0, 0, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --max: 1280px;
  --pad: clamp(20px, 4.4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[id] { scroll-margin-top: 88px; }

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 8px; z-index: 100; background: var(--orange); color: #000; padding: 10px 16px; font-weight: 600; border-radius: 4px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.label { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid currentColor; border-radius: 4px; font: 600 1rem/1.2 var(--body); text-decoration: none; background: transparent; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover svg { transform: translateX(3px); } }
.btn--orange { background: var(--orange); border-color: var(--orange); color: #000; }
.btn--black { background: #000; border-color: #000; color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: #000; }
@media (hover: hover) and (pointer: fine) {
  .btn--orange:hover { background: #ff9d3d; }
  .btn--black:hover { background: var(--black-90); }
  .btn--white:hover { background: var(--orange-10); }
}

.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }

/* Header menu (small screens) */
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 4px; background: transparent; padding: 0; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1019px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 8px var(--pad) 24px !important; max-height: calc(100svh - 76px); overflow: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 0s 200ms; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms ease, transform 200ms var(--ease-out); }
  .nav a { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid rgb(128 128 128 / 0.25); }
}

/* Product media */
.media { position: relative; margin: 0; }
.media video, .media > img { width: 100%; aspect-ratio: 1280 / 722; object-fit: cover; background: #111; }
.media-toggle { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 0.35); border-radius: 4px; background: rgb(0 0 0 / 0.78); color: #fff; padding: 0; transition: transform 140ms var(--ease-out); }
.media-toggle:active { transform: scale(0.95); }
.media-toggle svg { width: 16px; height: 16px; }

/* FAQ */
.faq details { border-top: 1px solid rgb(128 128 128 / 0.35); }
.faq details:last-child { border-bottom: 1px solid rgb(128 128 128 / 0.35); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none; font: 500 clamp(1.1rem, 1.6vw, 1.35rem)/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--orange) 0 0) center / 14px 2px no-repeat, linear-gradient(var(--orange) 0 0) center / 2px 14px no-repeat; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: 66ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}

/* Phones: crop recordings toward the working area so the interface stays legible. */
@media (max-width: 600px) { .media video, .media > img { aspect-ratio: 4 / 3; object-position: var(--focus, 50% 0); } }
