@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/space-grotesk-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
}

:root {
  --bg: #0d1420;
  --surface: #18233a;
  --accent: #3d8bff;
  --text: #edeff2;
  --muted: #9aa3af;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 280ms;
  --shadow: 0 1px 0 rgba(237, 239, 242, 0.07), 0 16px 40px rgba(0, 0, 0, 0.35);
  --line: rgba(237, 239, 242, 0.1);
  --display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.3px;
  color-scheme: dark;
}

h1,
h2,
h3,
.wordmark,
.button,
.nav a,
label,
legend,
input,
select,
.mono,
.slot-title,
figcaption,
.slot-kicker {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  max-width: 18em;
}

.hero h1 {
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  max-width: 18ch;
}

p,
ul {
  margin: 0 0 1rem;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0d1420;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: block;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

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

.nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--text);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: calc(100% - 1.4rem) 2px;
  background-position: center bottom 0.4rem;
}

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  font-family: var(--display);
  font-weight: 600;
}

.nav-cta:hover {
  color: var(--bg) !important;
  transform: translateY(-1px);
}

.nav-cta[aria-current="page"] {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.block {
  padding: 4.25rem 0;
}

.hero {
  padding-top: 2.75rem;
}

.hero-grid,
.split {
  display: grid;
  gap: 2rem;
}

.lead {
  font-size: 1.125rem;
  max-width: 38rem;
}

.compat {
  font-weight: 500;
}

.fine {
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  min-height: 48px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.button:hover {
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-2px);
}

.button:disabled {
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 1.4rem;
}

.actions + .fine {
  margin-top: 1rem;
}

.panel {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.slot {
  min-height: 240px;
  border-radius: 16px;
  border: 1px dashed rgba(154, 163, 175, 0.55);
  background:
    linear-gradient(180deg, rgba(61, 139, 255, 0.08), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.5rem;
}

.slot-kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.slot-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.step {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.25rem;
}

.step-num {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.results {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
  justify-items: start;
}

.results figure {
  margin: 0;
  width: 100%;
}

.shot-meta {
  max-width: 747px;
}

.shot-tiktok {
  max-width: 1024px;
}

.shot-youtube {
  max-width: 562px;
}

.results a {
  position: relative;
  display: block;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.results img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.results figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.diagrams {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.diagram {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

.diagram figcaption {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
}

.phone {
  width: min(100%, 210px);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.phone-split {
  display: flex;
  flex-direction: column;
}

.phone-cam,
.phone-main {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.phone-cam {
  height: 34%;
  background: rgba(61, 139, 255, 0.55);
  color: var(--text);
}

.phone-main {
  flex: 1;
  background: rgba(237, 239, 242, 0.06);
}

.phone-wash {
  position: absolute;
  inset: -12%;
  background: rgba(61, 139, 255, 0.5);
  filter: blur(18px);
}

.phone-sharp {
  position: absolute;
  inset: 16% 9%;
  background: #18233a;
  border: 1px solid rgba(237, 239, 242, 0.16);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.cards {
  display: grid;
  align-items: start;
  gap: 1rem;
  margin-top: 1.5rem;
}

.after-cards {
  margin-top: 1.5rem;
}

.card h2,
.card h3 {
  font-size: 1.45rem;
  max-width: none;
}

.spec {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.check-list {
  padding-left: 1.15rem;
}

.check-list li + li {
  margin-top: 0.35rem;
}

.download-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  margin-top: 1.5rem;
}

.form-card {
  max-width: 38rem;
}

.field,
fieldset.field {
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
  min-width: 0;
}

label,
legend {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

input,
select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(154, 163, 175, 0.45);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  letter-spacing: 0;
  min-height: 48px;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.choices.three {
  grid-template-columns: 1fr;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(154, 163, 175, 0.45);
  background: var(--bg);
  font-weight: 400;
  margin: 0;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  accent-color: var(--accent);
}

.choice:has(input:checked) {
  border-color: var(--accent);
}

.field-error {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0.4rem 0 0;
}

.field-error::before {
  content: "Error: ";
  font-weight: 500;
}

[aria-invalid="true"] {
  border-color: var(--accent);
}

.form-status {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-status:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.draft {
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.draft p {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  margin-top: 2rem;
  max-width: 24rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.close {
  text-align: left;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 3rem;
}

.site-footer .legal {
  color: var(--text);
  max-width: 42rem;
}

.site-footer .fine {
  max-width: 42rem;
}

@media (max-width: 719px) {
  .hero .button,
  .close .button,
  .download-actions .button {
    width: 100%;
  }

  .header-inner {
    padding-bottom: 1.5rem;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 0.85rem;
  }
}

.keep {
  white-space: normal;
}

@media (min-width: 720px) {
  .keep {
    white-space: nowrap;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .diagrams,
  .cards,
  .cards.three {
    grid-template-columns: 1fr 1fr;
  }

  .choices.three {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .close > div {
    flex: 1;
    min-width: 12rem;
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards.three {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
