/* Cortana /claim. One idea: the invite arrives the way the product does, as a screen switching on. Everything else stays quiet. */
@font-face { font-family: "Mona Sans"; src: url("/assets/fonts/mona-sans.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
:root { /* W6: the site's palette and type (site/assets/cortana.css) */
  --night: #070a18; --panel: #0b0f22; --line: #2a3463; --ink: #f4f1ea; --soft: #aeb7dc; --dim: #838dbb;
  --glow: #8fa5ff; --glow-2: #6f86ff; --ok: #4be3a8; --warn: #ff6b81;
  --sans: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background:
  radial-gradient(120% 70% at 50% -10%, #14224a 0%, rgba(20, 34, 74, 0) 60%), var(--night); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 5; }
.top, .foot { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(20px, 5vw, 56px); font-size: 15px; color: var(--soft); }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-weight: 650; font-stretch: 122%; letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-size: 1.125rem; }
.brand svg { width: 1.625rem; height: 1.625rem; flex: none; }
.quiet { text-decoration: none; } .quiet:hover, .foot a:hover { color: var(--ink); }
.foot { font-size: 14px; color: var(--dim); gap: 16px; flex-wrap: wrap; }

main { width: min(100%, 760px); margin: 0 auto; padding: clamp(24px, 7vh, 88px) clamp(20px, 5vw, 40px) 56px; text-align: center; }
h1 { font-size: clamp(38px, 7.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650; margin: 0 0 20px; text-wrap: balance; }
h1:focus { outline: none; }
main[data-state="in"] h1 { font-size: clamp(28px, 4.6vw, 46px); letter-spacing: -0.03em; margin-bottom: 14px; }
.lede { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; color: var(--soft); max-width: 34em; margin: 0 auto 32px; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 550; }
.fine { font-size: 14px; line-height: 1.5; color: var(--dim); max-width: 36em; margin: 18px auto 0; }
.msg { min-height: 22px; font-size: 15px; color: var(--warn); margin: 14px 0 0; }
.msg.good { color: var(--ok); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 17px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: #05080f; } .btn.primary:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); } .btn.ghost:hover { border-color: var(--soft); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* The screen. 16:9, like the TV the product lives on. */
.screen { position: relative; aspect-ratio: 16 / 9; width: 100%; margin: 0 auto 36px; border-radius: clamp(10px, 2vw, 18px); background: #02040a; border: 1px solid var(--line);
  box-shadow: 0 0 0 6px #0a101e, 0 40px 120px -30px rgba(143, 208, 255, .35), 0 0 80px -20px rgba(185, 164, 255, .25); overflow: hidden; display: grid; place-items: center; }
.screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 50% 110%, rgba(143, 208, 255, .22), rgba(185, 164, 255, .08) 45%, transparent 70%); }
.screen-in { position: relative; display: grid; gap: clamp(8px, 2vw, 18px); justify-items: center; padding: 4%; width: 100%; }
.who { font-size: clamp(13px, 2vw, 18px); color: var(--soft); letter-spacing: .01em; }
.who b { color: var(--ink); font-weight: 600; }
.code { display: flex; gap: clamp(8px, 2.2vw, 22px); font-family: var(--mono); font-weight: 600; font-size: clamp(20px, 6.2vw, 58px); letter-spacing: .06em; color: var(--ink); user-select: all; }
.code span { display: inline-flex; }
.code i { font-style: normal; display: inline-block; text-shadow: 0 0 24px rgba(143, 208, 255, .55); }
.code .dash { color: var(--dim); text-shadow: none; }
.rank { font-size: clamp(12px, 1.8vw, 16px); color: var(--glow); font-variant-numeric: tabular-nums; }
.used .code { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 2px; } .used .code i { text-shadow: none; }

/* Power-on: a line of light opens into the picture, then the characters land one by one. Runs once. */
@media (prefers-reduced-motion: no-preference) {
  .screen.on { animation: lift .9s cubic-bezier(.2, .7, .2, 1) both; }
  .screen.on .screen-in { animation: open .7s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .screen.on::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #fff; box-shadow: 0 0 30px 6px var(--glow); animation: beam .7s ease-out both; }
  .screen.on .code i { animation: land .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.55s + var(--i) * 45ms); }
  .after { animation: rise .6s ease 1.25s both; }
  @keyframes lift { from { transform: translateY(18px) scale(.97); opacity: 0; } }
  @keyframes open { from { clip-path: inset(50% 0 50% 0); filter: brightness(3); } to { clip-path: inset(0); filter: none; } }
  @keyframes beam { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
  @keyframes land { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

form.join { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 480px; margin: 0 auto; }
form.join input { flex: 1 1 200px; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 17px var(--sans); }
form.join input::placeholder { color: var(--dim); }
form.join input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(143, 208, 255, .18); }
.or { margin: 22px 0 14px; font-size: 14px; color: var(--dim); }
.place { font-size: clamp(56px, 12vw, 104px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.share { display: flex; gap: 10px; max-width: 520px; margin: 24px auto 0; }
.share input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--soft); font: 14px var(--mono); }
.share .btn { min-height: 48px; font-size: 15px; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 520px) { form.join, .share { flex-direction: column; } .btn { width: 100%; } .row .btn { width: 100%; } }

.soon { margin: 1.5rem auto 0; max-width: 30rem; padding: .8rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--soft); font-size: .95rem; }
