/* Grail marketing site. Dark only, per spec/04-design.md.
   Tokens copied verbatim from spec/design-artifact-2026-07-13/grail-mockups.html:11-23,
   which is hex-identical to Grail/DesignSystem/Palette.swift.
   NOT copied from that file: its .eyebrow rule, which colors text --purpleEdge.
   Purple is never text (2.4-3.7:1); the only legible purple text tint is --lavender. */

@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/ChakraPetch-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --voidTop: #240a3b;
  --voidDeep: #000000;
  --offBlack: #181818;
  --fillL: rgba(255, 255, 255, 0.03);
  --fillM: rgba(255, 255, 255, 0.08);
  --hair: rgba(255, 255, 255, 0.2);
  --hairSoft: rgba(255, 255, 255, 0.14);
  --purple: #8a23e3;
  --purpleEdge: #aa34e7;
  --lavender: #d8b0fa;
  --gold: #fdb614;
  --goldL: #fbd06b;
  --goldD: #df8310;
  --volt: #b9f640;
  --emerald: #22c55e;
  --salmon: #ea836f;
  --t1: #ffffff;
  --t2: rgba(255, 255, 255, 0.8);
  --t3: rgba(255, 255, 255, 0.45);
  --tPh: rgba(255, 255, 255, 0.3);
  --btnFill:
    linear-gradient(
      10deg,
      rgba(151, 37, 37, 0.1) 16%,
      rgba(151, 37, 37, 0) 96%
    ),
    linear-gradient(90deg, rgba(78, 5, 141, 0.6), rgba(78, 5, 141, 0.6));
  --goldGrad: linear-gradient(180deg, #fbd06b, #fdb614 47%, #df8310);
  --bgGrad: linear-gradient(170deg, #240a3b 1%, #000 96%);
  --chakra: "Chakra Petch", "Trebuchet MS", Verdana, sans-serif;
  --grotesk: "Space Grotesk", "Segoe UI", -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--t1);
  font: 17px/1.55 var(--grotesk);
  background-color: #000;
  background-image: var(--bgGrad);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* The app's signature purple bloom, top-leading, static (spec/04). One layer,
   fixed so it stays anchored to the viewport however long the page runs. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    620px 460px at 18% -8%,
    rgba(138, 35, 227, 0.26),
    transparent 64%
  );
}
body > * {
  position: relative;
  z-index: 1;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--t2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--t1);
}

/* Gold reads at 12.1:1 on the void and a focus ring is neither a link nor body
   text, so the gold rule holds. Never `outline:none` bare. */
:focus-visible {
  outline: 2px solid var(--goldL);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- masthead (sub-pages) ---------- */
.masthead {
  max-width: calc(1040px + 48px);
  padding-block: 28px 8px;
}
.masthead a {
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
}
.masthead img {
  width: 150px;
  display: block;
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: clamp(44px, 9vh, 88px) 0 clamp(40px, 7vh, 64px);
}

.lockup {
  width: min(320px, 74vw);
  margin: 0 auto clamp(24px, 4vh, 38px);
  display: block;
  filter: drop-shadow(0 8px 34px rgba(138, 35, 227, 0.45));
}

.eyebrow {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--t2);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--chakra);
  font-weight: 700;
  font-size: clamp(29px, 6.4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0 auto 16px;
  max-width: 19em;
}

.lede {
  font-size: 17px;
  color: var(--t2);
  margin: 0 auto;
  max-width: 34em;
}

.hero-pitch,
.product-previews {
  min-width: 0;
}

.beta {
  margin: 24px auto 0;
  max-width: 520px;
}

.beta-date {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.beta-date time {
  display: block;
  font-weight: 700;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: var(--t2);
}

.countdown strong {
  display: block;
  color: var(--t1);
  font: 700 29px/1.2 var(--chakra);
  font-variant-numeric: tabular-nums;
}

.beta-message {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.beta-message:not(:empty) {
  margin-top: 16px;
}

.beta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.product-previews {
  margin-top: 40px;
  text-align: left;
}

.preview-disclosure {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--t2);
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.preview {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hairSoft);
  border-radius: 16px;
  background: var(--fillL);
}

.preview figcaption {
  padding: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.sample-label {
  display: block;
  font-size: 13px;
  color: var(--t2);
}

.preview-frame {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.preview picture {
  display: contents;
}

.preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 480px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
    text-align: left;
  }

  .hero .lockup {
    margin-left: 0;
  }

  .product-previews {
    margin-top: 0;
  }
}

/* ---------- waitlist form ---------- */
.signup {
  max-width: 520px;
  margin: clamp(30px, 5vh, 44px) auto 0;
  text-align: left;
}

.flabel {
  display: block;
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 7px;
}

.field {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: var(--fillL);
  border: 1px solid var(--hair);
  color: var(--t1);
  font: 16px/1 var(--grotesk);
  letter-spacing: -0.2px;
  padding: 0 14px;
}
.field::placeholder {
  color: var(--tPh);
}
.field:focus {
  background: var(--fillM);
  border-color: var(--purpleEdge);
  outline-offset: 1px;
}
.field:disabled {
  opacity: 0.55;
}

/* Bots fill it, humans never see it. The clip pattern rather than a negative
   offset, so it can't extend the page's scroll width. */
.decoy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.btn {
  width: 100%;
  height: 56px;
  margin-top: 14px;
  border-radius: 15px;
  cursor: pointer;
  background: var(--btnFill);
  border: 1px solid rgba(170, 52, 231, 0.8);
  color: #fff;
  box-shadow: 0 2px 32px rgba(253, 182, 20, 0.12);
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.btn:hover:not(:disabled) {
  border-color: var(--purpleEdge);
  box-shadow: 0 2px 38px rgba(253, 182, 20, 0.2);
}
.btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.status {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--emerald);
  min-height: 1.4em;
}
.status.err {
  color: var(--salmon);
}

.consent {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--t2);
}

/* ---------- pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 16px;
  padding: clamp(16px, 3vh, 28px) 0 clamp(48px, 8vh, 76px);
}

.pillar {
  background: var(--fillL);
  border: 1px solid var(--hairSoft);
  border-radius: 20px;
  padding: 22px;
}
.pillar h2 {
  font-family: var(--chakra);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.pillar p {
  margin: 0;
  font-size: 15px;
  color: var(--t2);
}

/* ---------- long-form pages ---------- */
.prose {
  max-width: calc(68ch + 48px);
  padding-block: clamp(28px, 5vh, 48px) clamp(48px, 8vh, 76px);
}
.prose h1 {
  text-align: left;
  margin: 0 0 10px;
  max-width: none;
}
.prose .lede {
  max-width: none;
  margin: 0 0 22px;
}
.prose h2 {
  font-family: var(--chakra);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  margin: 38px 0 10px;
}
.prose h3 {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 17px;
  margin: 26px 0 6px;
}
.prose p,
.prose li {
  color: var(--t2);
  font-size: 16px;
}
.prose p {
  margin: 0 0 14px;
}
.prose ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 7px;
}
.prose strong {
  color: var(--t1);
  font-weight: 700;
}
.stamp {
  font-size: 13px;
  color: var(--t2);
  margin: 0 0 8px;
}

.card {
  background: var(--fillL);
  border: 1px solid var(--hairSoft);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 0 0 22px;
}
.card :last-child {
  margin-bottom: 0;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairSoft);
  padding: 30px 0 56px;
}

/* Mandatory disclosures. --t2, never --t3: spec/04:264 makes white-45%
   decorative-only, and this block is a legal requirement, not decoration. */
.disclose {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--t2);
  margin: 0 0 18px;
  max-width: 76ch;
}

.flinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.flinks a {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.copy {
  font-size: 13px;
  color: var(--t3);
  margin: 0;
}
