/* SOLIDHODL — shared styles */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Luxury black, slightly cool so it melts into the video background */
  --black: #07080b;
  --plate: #121419;      /* raised surfaces */
  --rule: #23262d;       /* hairlines */
  --steel-dim: #80838b;  /* secondary text (contrast ~5:1 on black) */
  --steel: #b8bac0;      /* body text */
  --steel-bright: #eceef1; /* headings, wordmark */

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 68ch;
}

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

html {
  background: var(--black);
  color: var(--steel);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { margin: 0; background: var(--black); }

img, video { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--steel-bright); }

:focus-visible {
  outline: 2px solid var(--steel-bright);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--steel-bright); color: var(--black);
  padding: 8px 14px; z-index: 10; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Wordmark ---------- */

.logo { display: block; height: auto; }
a:has(> .logo) { display: inline-block; }

/* ---------- Hero ---------- */

.hero {
  --hero-text: clamp(240px, 9vw + 190px, 380px);
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* The video element is exactly 16:9 and centred in the space above the text.
   Its blacks are graded to --black, and all four edges fade out, so no
   rectangle shows even where a browser renders video colours slightly
   differently (e.g. Safari on iPhone). */
.hero__video {
  position: absolute;
  left: 50%;
  top: calc((100% - var(--hero-text, 260px)) / 2);
  transform: translate(-50%, -50%);
  width: min(100%, calc((100svh - var(--hero-text, 260px)) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  z-index: -2;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 4%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 4%, #000 95%, transparent 100%);
          mask-composite: intersect;
}

.hero__inner {
  grid-row: 2;
  padding: 0 var(--gutter) clamp(28px, 6vh, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vh, 32px);
}

.hero h1 { margin: 0; line-height: 0; }
.hero .logo { width: min(100%, 1180px); }

.hero__line {
  margin: clamp(14px, 2vh, 22px) 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
  color: var(--steel);
}

.hero__aside {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.hero__buy {
  font-size: 1rem;
  font-weight: 500;
  color: var(--steel-bright);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid var(--steel-dim);
  padding-bottom: 3px;
}
.hero__buy:hover { border-color: var(--steel-bright); }

.motion-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--steel-dim);
  font: inherit;
  font-size: 0.8125rem;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.motion-toggle:hover { color: var(--steel-bright); border-color: var(--steel-dim); }


/* ---------- Resellers ---------- */

.buy {
  padding: clamp(72px, 12vh, 140px) var(--gutter) clamp(64px, 10vh, 120px);
}

.buy h2 {
  margin: 0 0 clamp(28px, 5vh, 48px);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--steel-bright);
  max-width: 22ch;
}

.shops { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }

.shop {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(28px, 4vh, 40px) 0;
  border-bottom: 1px solid var(--rule);
}

.shop__logo { height: clamp(30px, 3.4vw, 42px); width: auto; }

.shop__langs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop__langs a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--steel);
  background: var(--plate);
}
.shop__langs a:hover { border-color: var(--steel-dim); color: var(--steel-bright); }

@media (max-width: 720px) {
  .shop { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  padding: 28px var(--gutter) 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 0.875rem;
  color: var(--steel-dim);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 0; }

/* ---------- Text page (product statement) ---------- */

.bar {
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.bar .logo { height: 18px; width: auto; }

.doc {
  padding: clamp(48px, 9vh, 96px) var(--gutter) clamp(64px, 10vh, 120px);
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
}

.doc h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--steel-bright);
}

.doc .lede { font-size: 1.125rem; color: var(--steel); margin: 0 0 56px; }

.doc h2 {
  margin: 64px 0 8px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--steel-bright);
}

.doc h3 {
  margin: 40px 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--steel-bright);
}

.doc p, .doc li { max-width: var(--measure); }
.doc p { margin: 0 0 16px; }

/* Numbered clauses: keep the legal numbering visible as a hanging label */
.clause { display: grid; grid-template-columns: 3.2em 1fr; gap: 0 8px; }
.clause > b {
  font-weight: 600;
  color: var(--steel-dim);
  font-variant-numeric: tabular-nums;
}

.doc ul, .doc ol { margin: 4px 0 20px; padding-left: 4.4em; }
.doc li { margin-bottom: 8px; }
.doc ol { list-style: lower-roman; }
.doc ol li::marker { color: var(--steel-dim); }
.doc ul.note { list-style: none; padding-left: 0; color: var(--steel-dim); }

@media (max-width: 520px) {
  .clause { grid-template-columns: 1fr; }
  .doc ul, .doc ol { padding-left: 1.6em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
