/* Disrupt DSP — flat, sharp, black. One font family: Stack Sans. */

@font-face {
  font-family: "Stack Sans Text";
  src: url("/fonts/StackSansText-VF.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Stack Sans Headline";
  src: url("/fonts/StackSansHeadline-VF.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #8a8a8a;
  --dim: #5a5a5a;
  --hair: #1f1f1f;
  --error: #ff4d4d;
  --t: 140ms cubic-bezier(.2, 0, 0, 1);
  --text: "Stack Sans Text", system-ui, sans-serif;
  --head: "Stack Sans Headline", "Stack Sans Text", system-ui, sans-serif;
  --nav-h: 104px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: dark;
}

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

html { background: var(--black); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; letter-spacing: -0.02em; line-height: 1.02; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.muted { color: var(--grey); }

/* ---------- Links: grey to white ---------- */
.link { color: var(--grey); transition: color var(--t); }
.link:hover, .link.is-active { color: var(--white); }

/* ---------- Buttons: sharp, empty, white border + text ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px;
  border: 1px solid var(--white);
  background: transparent; color: var(--white);
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color var(--t), color var(--t), border-color var(--t), opacity var(--t);
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn--block { width: 100%; }
.btn--sm { height: 36px; padding: 0 16px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--black);
  height: var(--nav-h);
  border-bottom: 1px solid var(--hair);
}
.nav { height: 100%; display: flex; align-items: center; gap: 56px; max-width: none; padding-inline: max(24px, calc((100vw - 2080px) / 2)); }
.nav__logo { display: flex; align-items: center; height: 100%; padding: 0 2px; }
.nav__logo img { height: 56px; width: auto; transition: opacity var(--t); }
.nav__logo:hover img { opacity: .6; }
.nav__links { display: flex; gap: 40px; }
.nav__links .label, .nav__right .label { font-size: 14px; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.nav__icon-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; }
.nav__icon-btn svg { width: 22px; height: 22px; flex: none; }
.nav__menu-btn { display: none; }
.nav__count { font-variant-numeric: tabular-nums; }

.user-menu { position: relative; }
.user-menu__panel {
  position: absolute; right: 0; top: calc(100% + 12px);
  min-width: 240px; background: var(--black); border: 1px solid var(--white);
  padding: 20px; display: grid; gap: 16px;
}
.user-menu__email { font-size: 13px; color: var(--grey); word-break: break-all; }
.user-menu__note { font-size: 13px; color: var(--grey); }
.user-menu__note button { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav { position: relative; gap: 0; padding-inline: 16px; }
  .nav__menu-btn { display: inline-flex; width: 40px; justify-content: flex-start; }
  .nav .nav__logo { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
  .nav .nav__logo img { height: 30px; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--black); flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--hair);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; }
  .nav__right { gap: 8px; }
  .nav__right .nav__icon-btn { width: 40px; justify-content: center; }
  .nav__right .nav__text, .nav__right .nav__count { display: none; }
  .footer__copy { margin-left: 0; width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { padding-top: 64px; padding-bottom: 40px; margin-top: 120px; border-top: 1px solid var(--hair); }
.footer { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer .nav__logo img { height: 28px; }
.footer__copy { margin-left: auto; color: var(--dim); font-size: 12px; letter-spacing: .08em; }

/* ---------- Overlay (cart + auth) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72);
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100vw); background: var(--black); border-left: 1px solid var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 220ms cubic-bezier(.2, 0, 0, 1);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--hair); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 24px; border-top: 1px solid var(--hair); display: grid; gap: 20px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total strong { font-weight: 400; font-size: 20px; font-variant-numeric: tabular-nums; }
.close-x { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--grey); transition: color var(--t); }
.close-x:hover { color: var(--white); }
.close-x svg { width: 16px; height: 16px; }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.line__img { width: 64px; height: 64px; background: var(--black); border: 1px solid var(--hair); object-fit: cover; }
.line__title { font-size: 15px; }
.line__price { font-variant-numeric: tabular-nums; }
.line__remove { font-size: 12px; margin-top: 6px; }
.empty { padding: 48px 0; color: var(--grey); }

.modal {
  position: fixed; z-index: 60; left: 50%; top: 50%;
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  transform: translate(-50%, calc(-50% + 8px)); opacity: 0; pointer-events: none;
  background: var(--black); border: 1px solid var(--white);
  transition: opacity var(--t), transform var(--t);
}
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
.modal__body { padding: 24px; display: grid; gap: 16px; }
.modal h2 { font-size: 32px; }

.field { display: grid; gap: 8px; }
.field span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.field input {
  height: 48px; padding: 0 14px; background: var(--black); color: var(--white);
  border: 1px solid var(--dim); outline: none; transition: border-color var(--t);
}
.field input:hover { border-color: var(--grey); }
.field input:focus { border-color: var(--white); }

.or { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.switch { font-size: 14px; color: var(--grey); }
.switch button { color: var(--grey); text-decoration: underline; text-underline-offset: 3px; transition: color var(--t); }
.switch button:hover { color: var(--white); }
.msg { font-size: 14px; min-height: 0; }
.msg--error { color: var(--error); }
.msg--ok { color: var(--white); }
.google-g { width: 16px; height: 16px; }

/* ---------- Page sections ---------- */
.hero-video {
  position: relative; background: var(--black); line-height: 0; overflow: hidden;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.hero-video video {
  display: block; width: 100%; height: auto; aspect-ratio: 2560 / 1240;
  object-fit: cover; object-position: center; background: var(--black);
  pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.hero-video video::-webkit-media-controls,
.hero-video video::-webkit-media-controls-start-playback-button,
.hero-video video::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; opacity: 0; }
.hero-video__shield { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 760px) {
  .hero-video video { aspect-ratio: 3 / 4; }
}

.hero { padding-top: clamp(80px, 16vh, 180px); padding-bottom: clamp(64px, 12vh, 140px); }
.hero h1 { font-size: clamp(48px, 9vw, 132px); font-weight: 300; max-width: 11ch; }
.hero__sub { margin-top: 32px; max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--grey); }
.hero__ctas { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.stat { padding: 40px 0 0; }
.stat + .stat { padding-left: 32px; }
.stat__num { font-family: var(--head); font-size: clamp(56px, 7vw, 96px); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.stat__label { margin-top: 16px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; }
}

.page-head { padding-top: clamp(64px, 12vh, 140px); padding-bottom: 64px; }
.page-head h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 300; }
.page-head p { margin-top: 24px; color: var(--grey); max-width: 52ch; font-size: 18px; }

.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 10vh, 112px); align-items: start; }
.product__media { aspect-ratio: 1; background: var(--black); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__media .mark { width: 22%; height: auto; }
.product__info { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 24px; }
.product__info h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 300; }
.product__price { font-size: 22px; font-variant-numeric: tabular-nums; }
.product__desc { color: var(--grey); }
.product__desc p + p { margin-top: 1em; }
.specs { margin: 8px 0 0; border-top: 1px solid var(--hair); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.specs dt { color: var(--grey); }
.specs dd { margin: 0; text-align: right; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product__info { position: static; }
}

.faq { border-top: 1px solid var(--hair); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-size: 18px; color: var(--grey); transition: color var(--t);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: var(--white); }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 28px; color: var(--grey); max-width: 64ch; }
.faq .answer a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.contact { margin-top: 96px; display: grid; gap: 20px; justify-items: start; }
.contact h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 300; }

.prose { max-width: 680px; display: grid; gap: 1.2em; font-size: 19px; color: var(--grey); }
.prose strong { color: var(--white); font-weight: 400; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 8px);
  background: var(--black); border: 1px solid var(--white); padding: 14px 20px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t);
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}
