/* Boxed In sign-up page. Tokens and rules lifted from the Boxed In project
   (C:\Projects\Boxed In\src\styles.css and BRAND.md). Pure monochrome, colour
   only for status. Square corners, no decorative shadows. Akkurat LL Black for
   display, Inter for everything else. */

@font-face {
  font-family: "Akkurat LL";
  src: url("/getboxedin/fonts/AkkuratLL-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #141414;
  --text: #ffffff;
  --muted: #9a9aa0;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.32);
  --red: #ef5c4d;
  --green: #55d68a;
  --display: "Akkurat LL", "Inter", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input { font: inherit; }
a { color: inherit; }

.shell {
  min-height: 100svh;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.06), transparent 30rem),
    linear-gradient(180deg, #0c0c0c, #0a0a0a 46%, #060606);
}
/* Page is hidden under the intro splash, then crossfades in as the splash
   fades out. Same timings as the Boxed In app (0.55s in, 0.5s out). */
.shell.is-hidden { opacity: 0; }
.shell.is-revealed { opacity: 1; transition: opacity 0.55s ease; }

/* ---------- Intro splash ---------- */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.intro-splash--closing { opacity: 0; pointer-events: none; }
.intro-splash video { width: min(92vw, 720px); height: auto; }
.intro-splash__skip {
  position: absolute;
  bottom: 28px;
  right: 28px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  background: #ffffff0a;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

/* ---------- Topbar ---------- */
.topbar {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 44px; width: auto; display: block; }
.brand__sub {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 92px);
  display: grid;
  border-bottom: 1px solid var(--line);
}
.hero__cube {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.hero__cube-still {
  height: min(82%, 660px);
  width: auto;
  max-width: 64%;
  object-fit: contain;
  margin-right: clamp(8px, 4vw, 96px);
}
/* Settled cube reads as a brightened watermark behind the copy, the value the
   Boxed In app landed on after a rendered comparison (0.45 desktop). */
.hero__cube-still { opacity: 0.45; }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #000000f2, #000000c2 42%, #00000040 74%),
    linear-gradient(180deg, #00000033, #000000e6);
}
.hero__content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 48px;
  align-items: center;
  padding: 40px 0 56px;
}
.hero__copy { max-width: 620px; }
.eyebrow {
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--muted);
}
.hero__title {
  /* -0.058em pulls the H1 left to cancel Akkurat Black's side bearing so the
     glyph edge lines up with the eyebrow. Measured in the Boxed In app. */
  margin: 0 0 0 -0.058em;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 9ch;
}
.hero__lede {
  max-width: 560px;
  margin: 18px 0 0;
  color: #d9d9dd;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.5;
}

/* ---------- Card + form ---------- */
.card {
  background: #101010ee;
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 30px);
}
.form { display: grid; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 9px; min-width: 0; }
.field > span { color: #e7e7ea; font-size: 0.92rem; font-weight: 650; }
.field__opt { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }
.field input {
  width: 100%;
  color: var(--text);
  background: #060606;
  border: 1px solid var(--line);
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
  border-radius: 0;
}
.field input:focus { border-color: var(--text); box-shadow: 0 0 0 3px #ffffff26; }
.field input::placeholder { color: #6f6f76; }
.field input.invalid { border-color: var(--red); }

.check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #cfcfd4;
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #ffffff06;
}
.check input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: #ffffff; }
.check a { color: var(--text); text-decoration: underline; }

.turnstile:empty { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: 0.6; transform: none; }
.button--primary { background: var(--text); color: #000; }
.button--primary:hover { background: #e9e9ec; }

.form__error {
  margin: 0;
  padding: 12px 14px;
  background: #ef5c4d1f;
  border: 1px solid #ef5c4d66;
  color: #ffd9d4;
  font-size: 0.9rem;
}
.form__preview { margin: 0; color: var(--muted); font-size: 0.82rem; }

/* ---------- Success ---------- */
.success {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}
.success__media { width: clamp(96px, 18vw, 150px); height: auto; }
.done__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.done__msg { margin: 0; color: var(--muted); line-height: 1.55; }

/* ---------- Mobile ---------- */
@media (max-width: 780px) {
  .topbar { height: 72px; }
  .brand__logo { height: 36px; }
  .brand__sub { display: none; }
  .hero { min-height: 0; }
  .hero__cube { align-items: flex-start; justify-content: center; }
  .hero__cube-still {
    height: auto; width: 84%; max-width: 84%; margin: 18px 0 0;
  }
  .hero__cube-still { opacity: 0.38; }
  .hero__content { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 40px; }
  .hero__title { max-width: none; }
  .success { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
