:root {
  --ink: #161616;
  --paper: #fefefe;
  --pink: #f184a6;
  --muted: #4e4e4e;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.45;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: 0.4rem 0.7rem;
}

.skip:focus { top: 0.6rem; z-index: 40; }

.nav {
  position: fixed;
  z-index: 20;
  top: 0.85rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0 1rem;
  pointer-events: none;
}

.nav a {
  pointer-events: auto;
  display: inline-block;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-radius: 3px;
  padding: 0.48rem 0.72rem;
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav nav {
  display: flex;
  gap: 0.35rem;
  background: transparent;
}

.nav .go {
  background: #111;
  color: #fff;
}

.sky {
  position: relative;
  min-height: 92vh;
  padding: 7.5rem 1.25rem 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(920px 540px at 10% 0%, rgba(255, 64, 156, 0.92), transparent 62%),
    radial-gradient(860px 500px at 92% -4%, rgba(126, 156, 255, 0.9), transparent 64%),
    radial-gradient(720px 460px at 68% 16%, rgba(196, 130, 255, 0.72), transparent 60%),
    radial-gradient(640px 380px at 34% 22%, rgba(255, 176, 214, 0.78), transparent 58%),
    linear-gradient(#f6f3ff 0%, #fefefe 78%);
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.edge {
  position: absolute;
  left: 0.7rem;
  top: 6.2rem;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(22, 22, 22, 0.55);
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
  text-align: center;
}

.term {
  width: min(28rem, 100%);
  margin: 0 auto 1.35rem;
  text-align: left;
  background: #eceae6;
  border: 1px solid #1a1a1a;
  box-shadow: 0 16px 40px rgba(40, 10, 30, 0.12);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
}

.term header,
.win header {
  padding: 0.35rem 0.6rem;
}

.term header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1c1c1c;
  color: #f4f1ea;
}

.term p,
.win p { margin: 0; }

.term .body,
.win .body { padding: 0.7rem 0.75rem 0.8rem; }

h1, h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.86;
}

h1 {
  font-size: clamp(3.1rem, 8.6vw, 7.5rem);
}

.kicker {
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  margin: 2.4rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.actions a { text-underline-offset: 0.18em; }

.field {
  position: relative;
  background: var(--pink);
  color: #1a1a1a;
  padding: 4.5rem 1.25rem 5.5rem;
  overflow: hidden;
}

.field::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 22rem;
  right: -4rem;
  top: 2rem;
  border-radius: 50%;
  background-image: radial-gradient(#1a1a1a 0.9px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.55;
  pointer-events: none;
}

.field::after {
  content: "";
  position: absolute;
  width: 26rem;
  height: 18rem;
  left: -6rem;
  bottom: 6rem;
  border-radius: 50%;
  background-image: radial-gradient(#1a1a1a 0.8px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.4;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
}

.desk {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 0.8rem;
  align-items: start;
}

.win {
  background: #f3f1ec;
  border: 1px solid #1a1a1a;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.18);
}

.win header {
  background: linear-gradient(#efefef, #d5d5d5);
  border-bottom: 1px solid #1a1a1a;
}

.win .dim { color: #555; }

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

.win td {
  padding: 0.28rem 0;
  vertical-align: top;
}

.win td:first-child {
  width: 6.2rem;
  color: #555;
  padding-right: 0.6rem;
}

.note { margin-top: 0.7rem; }

.after { margin-top: 1rem; }

.span2 { grid-column: span 2; }

.statement {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 4.5rem auto 0;
}

.statement h2 {
  font-size: clamp(3rem, 7.4vw, 6.4rem);
}

.prose {
  max-width: 72rem;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.label {
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.split p:last-child,
.claim p:last-child { margin: 0; }

.claims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1rem;
}

.claim h3 {
  margin: 0 0 0.45rem;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.pass {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1rem;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.pass h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.install {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
}

.install h2 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  margin-bottom: 1.4rem;
}

#membrane,
#install,
#questions {
  scroll-margin-top: 4.5rem;
}

.command {
  width: min(52rem, 100%);
}

.command .body p {
  overflow-wrap: normal;
}

.command button {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: #f4f1ea;
  color: #111;
  border: 0;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}

.command button:focus-visible,
.nav a:focus-visible,
.faq summary:focus-visible,
.actions a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.faq {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.faq h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 1.2rem;
}

.faq details {
  border-top: 1px solid #ddd;
}

.faq details:last-of-type { border-bottom: 1px solid #ddd; }

.faq summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  font-family: var(--mono);
  font-weight: 400;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 1rem;
  max-width: 38rem;
  color: #222;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

footer nav { display: flex; gap: 1rem; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .desk, .split, .claims, .pass { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .edge { display: none; }
  .actions { gap: 1.4rem; }
  .command .body p { overflow-wrap: anywhere; }
}

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