/* Game in Picture - gameinpicture.com */

/* --- Reset ----------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

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

[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* --- Type ------------------------------------------------------------------ */

@font-face {
  font-family: "Archivo";
  src: url("/assets/font/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ---------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg:        #0f141b;
  --bg-deep:   #0a0e13;
  --panel:     #161d26;
  --panel-2:   #1c2531;
  --panel-3:   #24303e;

  --line:      #232d3a;
  --line-2:    #33404f;

  --text:       #dbe4ef;
  --text-dim:   #96a5b8;
  --text-faint: #8695a8;

  --info:  #58a6e8;
  --live:  #4ec97a;
  --warn:  #e0a341;

  --action-1:    #268049;
  --action-2:    #17643a;
  --action-1-hi: #2d9457;
  --action-2-hi: #1d7645;
  --action-line: #114b2b;

  --r:    4px;
  --r-md: 6px;
  --r-lg: 8px;

  --max:    1200px;
  --gutter: clamp(1rem, 3.5vw, 2rem);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow:    0 10px 30px -18px rgba(0, 0, 0, 0.9);

  --font: "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", "Segoe UI Variable Display", "Segoe UI",
          system-ui, -apple-system, Arial, sans-serif;

  --step-hero: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem);
  --step-h2:   clamp(1.45rem, 1.15rem + 1.05vw, 2rem);
  --step-h3:   clamp(1.15rem, 1.02rem + 0.45vw, 1.4rem);
  --step-lead: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
}

/* --- Base ------------------------------------------------------------------ */

html { scroll-behavior: smooth; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 60vh;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(10, 14, 19, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--info); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7cbcf0; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { color: #eef4fb; font-weight: 640; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* --- Utilities ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  z-index: 200;
  padding: 0.55rem 1rem;
  background: var(--info);
  color: #05080d;
  font-weight: 650;
  border-radius: var(--r);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.eyebrow--info { color: var(--info); }
.eyebrow--live { color: var(--live); }
.eyebrow--warn { color: var(--warn); }

.lead {
  font-size: var(--step-lead);
  color: var(--text-dim);
  line-height: 1.65;
}

section { scroll-margin-top: 4.5rem; }

.section {
  padding-block: clamp(2.75rem, 4.5vw, 4.25rem);
}

.section--tight {
  padding-block: 0;
  margin-block: calc(clamp(2.75rem, 4.5vw, 4.25rem) * -0.45);
}

.section-head {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.section-head > * { max-width: 62ch; }

.section-head h2 {
  font-size: var(--step-h2);
  margin-block: 0.5rem 0.6rem;
}

.kbd {
  display: inline-block;
  padding: 0.05em 0.4em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: var(--r);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--panel-3); border-color: #3f4d5e; color: var(--text); }

.btn--buy {
  border-color: var(--action-line);
  background: linear-gradient(180deg, var(--action-1), var(--action-2));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn--buy:hover {
  background: linear-gradient(180deg, var(--action-1-hi), var(--action-2-hi));
  border-color: #17643a;
  color: #fff;
}

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--panel-2); }

.btn--sm { padding: 0.42rem 0.8rem; font-size: 0.82rem; }
.btn--lg { padding: 0.8rem 1.5rem; font-size: 1rem; }
.btn--xl { padding: 1rem 2rem; font-size: 1.1rem; border-radius: var(--r-md); }
.btn--block { width: 100%; }

.btn svg { flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

/* --- Masthead -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 19, 0.92);
  backdrop-filter: blur(10px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #903147 0 20%,
    #943f2e 20% 40%,
    #9b5c27 40% 60%,
    #9b7927 60% 80%,
    #408182 80% 100%
  );
}

.site-header[data-stuck="true"] {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 8px 24px -20px rgba(0, 0, 0, 1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand img { width: 26px; height: 26px; }

.brand__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--panel-2); }

@media (max-width: 900px) {
  .site-nav { display: none; }
}

@media (max-width: 460px) {
  .header-cta__long { display: none; }
}

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

.hero {
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.25rem);
}

.hero__head {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.hero h1 {
  max-width: 19ch;
  font-size: var(--step-hero);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-block: 0.7rem 1rem;
  hyphens: none;
  overflow-wrap: normal;
}

.hero h1 .accent { display: block; color: var(--info); }

.hero__promise {
  max-width: 44ch;
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-dim);
}

.hero .btn-row { margin-top: clamp(1.5rem, 2.5vw, 2rem); }

.hero__media {
  border-color: var(--line-2);
}

.cta__capsule,
.guide-product__capsule {
  max-width: 460px;
  margin-inline: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
}

.tags li {
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.5;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.spec-strip li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.84rem;
}

.spec-strip li:last-child { border-right: 0; }
.spec-strip svg { width: 15px; height: 15px; flex: none; color: var(--info); }

@media (max-width: 640px) {
  .spec-strip li { border-right: 0; border-bottom: 1px solid var(--line); }
  .spec-strip li:last-child { border-bottom: 0; }
}

/* --- Media frames ---------------------------------------------------------- */

.frame {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-deep);
  overflow: hidden;
}

.frame > img,
.frame > video {
  width: 100%;
  height: auto;
  background: var(--bg-deep);
}

.media-cta {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(10, 14, 19, 0.86);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.media-cta:hover {
  background: rgba(28, 37, 49, 0.94);
  border-color: #3f4d5e;
}

.hero__trailer {
  width: 100%;
  aspect-ratio: 1170 / 660;
  background: #000;
  object-fit: contain;
}

.media-toggle {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(10, 14, 19, 0.82);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.frame:hover .media-toggle,
.media-toggle:focus-visible { opacity: 1; }
.media-toggle:hover { background: var(--panel-3); }
.media-toggle svg { width: 13px; height: 13px; }
.media-toggle .icon-play { display: none; }
.media-toggle[aria-pressed="false"] .icon-play { display: block; }
.media-toggle[aria-pressed="false"] .icon-pause { display: none; }

@media (hover: none) {
  .media-toggle { opacity: 1; }
}

/* --- Trailer --------------------------------------------------------------- */

.trailer {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-deep);
}

.trailer video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
}

.trailer__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.trailer__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trailer__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 19, 0.1), rgba(10, 14, 19, 0.62));
}

.trailer__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 6vw, 4.25rem);
  height: clamp(3.25rem, 6vw, 4.25rem);
  border: 1px solid var(--action-line);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--action-1), var(--action-2));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.trailer__poster:hover .trailer__play {
  background: linear-gradient(180deg, var(--action-1-hi), var(--action-2-hi));
  transform: scale(1.05);
}

.trailer__play svg { width: 34%; height: 34%; }

.trailer__label {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-align: center;
  pointer-events: none;
}

/* --- Capability strip ------------------------------------------------------ */

.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.caps li {
  padding: 1.1rem 1.15rem;
  border-right: 1px solid var(--line);
}

.caps li:last-child { border-right: 0; }

.caps__icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--panel-2);
  color: var(--info);
}
.caps__icon svg { width: 16px; height: 16px; }

.caps h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.caps p {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .caps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .caps li:last-child { border-bottom: 0; }
}

.caps-visual {
  margin-bottom: 1.25rem;
}

/* --- Use-case cards -------------------------------------------------------- */

.hook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hook-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.hook-card:hover { border-color: var(--line-2); background: var(--panel-2); }

.hook-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.hook-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hook-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.hook-card h3 {
  margin-block: 0.45rem 0.6rem;
  font-size: 1.08rem;
}

.hook-card__body > p:not(.eyebrow) {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.hook-card__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--info);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.45;
  text-decoration: none;
}

.hook-card__link span { transition: transform 0.18s ease; }
.hook-card__link:hover span { transform: translateX(3px); }

/* --- Feature rows ---------------------------------------------------------- */

.features { display: grid; gap: clamp(2.5rem, 4.5vw, 3.75rem); }

.feature {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr); }

  .feature--flip { grid-template-columns: minmax(0, 1.28fr) minmax(17rem, 0.72fr); }
  .feature--flip .feature__media { grid-column: 1; grid-row: 1; }
  .feature--flip .feature__body { grid-column: 2; grid-row: 1; }
}

.feature__body { max-width: 46ch; }

.feature__body h3 {
  font-size: var(--step-h3);
  margin-block: 0.45rem 0.7rem;
}

.feature__body p { color: var(--text-dim); }
.feature__body p + p { margin-top: 0.7rem; }

#feature-pause { scroll-margin-top: 5rem; }

.checklist {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.checklist svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.28rem;
  color: var(--live);
}

.checklist b { color: var(--text); font-weight: 640; }

/* --- Secondary feature grid ------------------------------------------------ */

.subfeatures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1rem;
}

.subfeature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.subfeature__media {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.subfeature__media img { width: 100%; height: 100%; object-fit: cover; }

.subfeature__body { padding: 1.1rem; }

.subfeature h3 {
  font-size: 1.05rem;
  margin-block: 0.45rem 0.6rem;
}

.subfeature p { color: var(--text-dim); font-size: 0.88rem; }
.subfeature p + p { margin-top: 0.6rem; }

.minidefs {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.minidefs dt {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text);
}

.minidefs dd {
  margin: 0.15rem 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* --- Feature matrix -------------------------------------------------------- */

.matrix-fold {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.matrix-fold > summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease;
}

.matrix-fold > summary:hover { background: var(--panel-2); }
.matrix-fold[open] > summary { border-bottom: 1px solid var(--line); }
.matrix-fold > summary::-webkit-details-marker { display: none; }
.matrix-fold > summary::marker { content: ""; }

.matrix-fold > summary h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}

.matrix-fold > summary:hover h2 { color: #fff; }

.matrix-fold__count {
  flex: none;
  margin-left: auto;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.matrix-fold > summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg) translateY(-25%);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.matrix-fold[open] > summary::after {
  transform: rotate(225deg) translateY(-25%);
  border-color: var(--info);
}

.matrix-fold .matrix-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.matrix { font-size: 0.88rem; min-width: 34rem; }

.matrix thead th {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: left;
}

.matrix tbody tr { border-bottom: 1px solid var(--line); }
.matrix tbody tr:last-child { border-bottom: 0; }
.matrix tbody tr:hover { background: var(--panel-2); }

.matrix th[scope="row"] {
  padding: 0.65rem 1rem;
  width: 34%;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  vertical-align: top;
}

.matrix td {
  padding: 0.65rem 1rem;
  color: var(--text-dim);
  vertical-align: top;
}

.matrix__group th {
  padding: 0.55rem 1rem;
  background: var(--bg-deep);
  color: var(--info);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: left;
}

@media (max-width: 620px) {
  .matrix { min-width: 0; }
  .matrix thead { display: none; }

  .matrix-fold__count { display: none; }
  .matrix-fold > summary::after { margin-left: auto; }

  .matrix th[scope="row"],
  .matrix td {
    display: block;
    width: auto;
  }

  .matrix th[scope="row"] { padding-bottom: 0.15rem; }
  .matrix td { padding-top: 0; }
}

/* --- Screenshot gallery ---------------------------------------------------- */

.gallery {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.gallery__stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  cursor: zoom-in;
}

.gallery__stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-deep);
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(6, 9, 13, 0.92));
  color: var(--text);
  font-size: 0.85rem;
  text-align: left;
}

.gallery__zoom {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery__strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.gallery__strip button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--panel);
  cursor: pointer;
}

.gallery__strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.gallery__strip button:hover img { opacity: 0.85; }

.gallery__strip button[aria-current="true"] img { opacity: 1; }

.gallery__strip button[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--info);
}

@media (max-width: 700px) {
  .gallery__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Lightbox -------------------------------------------------------------- */

.lightbox {
  width: min(100vw - 2rem, 1500px);
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-deep);
  color: var(--text);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(6, 9, 13, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  background: var(--bg-deep);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.lightbox__bar p { margin-right: auto; }

.lightbox__close {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: transparent;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--panel-2); }
.lightbox__close svg { width: 13px; height: 13px; }

/* --- Requirements ---------------------------------------------------------- */

.specs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  align-items: stretch;
}

.spec {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.spec--rec { border-color: var(--line-2); }

.spec h3 {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.spec--rec h3 { color: var(--info); }

.spec dl {
  display: grid;
  flex: 1;
  align-content: start;
}

.spec dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.spec dl > div:last-child { border-bottom: 0; }

.spec dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.95;
}

.spec dd { margin: 0; color: var(--text-dim); }

/* --- FAQ ------------------------------------------------------------------- */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq details[open] { background: var(--panel-2); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }

.faq summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg) translateY(-25%);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-25%);
  border-color: var(--info);
}

.faq__answer { padding: 0 1rem 1rem; color: var(--text-dim); max-width: 78ch; }
.faq__answer p + p { margin-top: 0.7rem; }

/* --- Closing CTA ----------------------------------------------------------- */

.cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--panel);
}

@media (min-width: 800px) {
  .cta { grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; }
}

.cta__capsule {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.cta h2 {
  font-size: var(--step-h2);
  margin-bottom: 0.6rem;
}

.cta p { color: var(--text-dim); max-width: 52ch; }

.cta .btn-row { margin-top: 1.25rem; }

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

.site-footer {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.site-footer__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.site-footer h2 {
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-footer__brand img { width: 22px; height: 22px; }

.site-footer__studio {
  display: inline-block;
  margin-top: 0.7rem;
}

.site-footer__studio img { width: clamp(150px, 14vw, 178px); height: auto; }

.site-footer ul { display: grid; gap: 0.45rem; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

.site-footer__legal {
  max-width: 70ch;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.6;
}

.guide-main { padding-bottom: clamp(3rem, 6vw, 5rem); }

/* --- Not found ------------------------------------------------------------- */

.page-404 {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.page-404 > main {
  display: grid;
  flex: 1 0 auto;
  place-content: center;
  text-align: center;
}

.notfound h1 {
  font-size: var(--step-h2);
  margin-block: 0.7rem 1rem;
}

.notfound .lead {
  max-width: 44ch;
  margin-inline: auto;
}

.notfound .btn-row {
  justify-content: center;
  margin-top: 2rem;
}

/* --- Search guides --------------------------------------------------------- */

.guide-hero { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 3.5vw, 2.75rem); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  margin-bottom: 1.1rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--line-2);
}

.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

.guide-hero h1 {
  max-width: 22ch;
  margin-block: 0.6rem 0.9rem;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
}

.guide-hero .lead { max-width: 62ch; }

.guide-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.8rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}

.guide-content { max-width: 46rem; }

.guide-content > * + * { margin-top: 1.1rem; }

.guide-content h2 {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-h2);
}

.guide-content h3 {
  margin-top: 1.75rem;
  font-size: var(--step-h3);
}

.guide-content p,
.guide-content li { color: var(--text-dim); font-size: 0.98rem; }

.guide-content a { font-weight: 600; }

.guide-answer {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--info);
  border-radius: var(--r-md);
  background: var(--panel);
  color: var(--text);
  font-size: 0.98rem;
}

.guide-answer strong { color: var(--info); }

.guide-figure {
  margin-block: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.guide-figure img { width: 100%; height: auto; }

.guide-figure figcaption {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.82rem;
}

.guide-callout {
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--info);
  border-radius: var(--r-md);
  background: var(--panel);
}

.guide-callout--warning { border-left-color: var(--warn); }

.guide-callout strong { display: block; margin-bottom: 0.25rem; }

.guide-steps {
  counter-reset: guide-step;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.guide-steps li {
  counter-increment: guide-step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
}

.guide-steps li:last-child { border-bottom: 0; }

.guide-steps li::before {
  content: counter(guide-step);
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--panel-2);
  color: var(--info);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.guide-steps b { display: block; margin-bottom: 0.2rem; color: var(--text); }

.guide-checks { display: grid; gap: 0.6rem; }

.guide-checks li { position: relative; padding-left: 1.5rem; }

.guide-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--live);
  font-weight: 700;
}

.guide-side {
  position: sticky;
  top: 4.5rem;
  display: grid;
  gap: 1rem;
}

.guide-toc,
.guide-product {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.guide-toc h2 {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.guide-product h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.guide-toc ol { display: grid; }

.guide-toc li { border-bottom: 1px solid var(--line); }
.guide-toc li:last-child { border-bottom: 0; }

.guide-toc a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.86rem;
  text-decoration: none;
}

.guide-toc a:hover { color: var(--text); background: var(--panel-2); }

.guide-product__capsule {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.guide-product__body { padding: 1rem; }

.guide-product p {
  margin-bottom: 0.9rem;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.related-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.related-guides a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.related-guides a:hover { border-color: var(--line-2); background: var(--panel-2); }

.related-guides span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* --- Responsive ------------------------------------------------------------ */

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

  .guide-layout { grid-template-columns: 1fr; }

  .guide-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row: 1;
  }
}

@media (max-width: 899px) {
  .feature .feature__media { order: -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 0.9rem; }

  .hero .btn-row { display: grid; grid-template-columns: 1fr; }
  .hero .btn-row .btn { width: 100%; }

  .spec dl > div { grid-template-columns: 6rem minmax(0, 1fr); }

  .guide-hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.5rem); }

  .guide-side,
  .related-guides { grid-template-columns: 1fr; }

  .guide-side { grid-row: auto; }
}

/* --- Motion preferences ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hook-card__link:hover span,
  .trailer__poster:hover .trailer__play { transform: none; }
}

/* --- Print ----------------------------------------------------------------- */

@media print {
  body::before,
  .site-header,
  .trailer,
  .gallery__strip,
  .media-toggle { display: none; }
  body { background: #fff; color: #000; }
}
