/* Shared shell for the trial pages: brand nav, grid canvas, buttons, typography */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-deep: #000000;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border-subtle: rgba(255,255,255,0.06);
  --border-standard: rgba(255,255,255,0.12);
  --text-primary: #ffffff;
  --text-secondary: #c6c6cf;
  --text-muted: #9a9aa2;
  --silver: #c0c0c0;
  --red: #ff3b3b;
  --red-text: #ff6b6b;
  --radius-lg: 20px;
  --radius-xl: 28px;
}
#gridCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: #101014; background-image: url(graphite-seamless.webp); background-size: 100% auto; background-position: center top; background-repeat: repeat-y; background-attachment: scroll;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px; display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(0,0,0,0.7); border-bottom: 1px solid var(--border-subtle);
}
.nav__brand { display: flex; font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -0.5px; text-decoration: none; color: var(--text-primary); }
.nav__brand-real { position: relative; color: #8b8c94; margin-right: 4px; }
.nav__brand-real::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: #c9cad1; transform: rotate(-14deg) translateY(-50%); border-radius: 2px; }
.nav__brand-reel { color: var(--red); }
.nav__auth { display: flex; align-items: center; gap: 6px; }
.nav__signin { padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color .3s; border-radius: 100px; white-space: nowrap; }
.nav__signin:hover { color: var(--text-primary); }
.nav__cta { padding: 10px 24px; background: var(--surface); border: 1px solid var(--border-standard); border-radius: 100px; color: var(--text-primary); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .3s ease; text-decoration: none; white-space: nowrap; }
.nav__cta:hover { background-color: var(--surface-hover); border-color: var(--silver); box-shadow: 0 0 30px rgba(192,192,192,.1); }

/* PAGE FRAME */
.page { position: relative; z-index: 2; flex: 1; max-width: 1240px; margin: 0 auto; padding: 122px 40px 90px; }
.page__head { text-align: center; margin-bottom: 44px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 22px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #c9cad1; box-shadow: none; }
.page h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 3.4vw, 48px); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 14px; text-wrap: balance; }
.silver { background: linear-gradient(180deg, #ffffff 15%, #d4d5db 60%, #a9aab2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page p.sub { font-size: 17px; line-height: 1.6; color: var(--text-secondary); max-width: 56ch; margin: 0 auto; font-weight: 400; text-wrap: balance; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  background: #fff; border: none; border-radius: 100px; color: #000;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all .4s ease; text-decoration: none;
  box-shadow: 0 10px 30px rgba(255,255,255,.12), 0 6px 16px rgba(0,0,0,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255,255,255,.18), 0 8px 20px rgba(0,0,0,.55); }
.btn-primary:active { transform: scale(.99); }
.btn-primary__arrow { font-size: 14px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  background: var(--surface); border: 1px solid var(--border-standard); border-radius: 100px;
  color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all .4s ease; text-decoration: none;
}
.btn-secondary:hover { background-color: var(--surface-hover); border-color: var(--silver); box-shadow: 0 0 30px rgba(192,192,192,.12); }
.btn-price { display: block; font-size: 13px; font-weight: 500; color: inherit; opacity: .9; letter-spacing: 0; margin-top: 2px; }
.dot-red { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(255,59,59,.7); flex-shrink: 0; }

/* CHIPS */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(0,0,0,.55); border: 1px solid var(--border-subtle); color: var(--text-secondary);
  backdrop-filter: blur(8px);
}
.chip--ready { color: #d6d6dc; }
.chip--regen { color: #ffd9a0; border-color: rgba(255,180,80,.25); }
.chip--ok { color: #9fe8b4; border-color: rgba(120,230,160,.25); }
.chip__spin { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255,200,120,.35); border-top-color: #ffb450; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FOOTER */
footer { position: relative; z-index: 2; text-align: center; padding: 0 20px 34px; color: #96969e; font-size: 13px; }

@media (max-width: 900px) {
  .nav { padding: 14px 16px; }
  .nav__brand { font-size: 20px; }
  .nav__signin { padding: 8px 10px; font-size: 13px; }
  .nav__cta { padding: 8px 14px; font-size: 13px; }
  .page { padding: 104px 20px 90px; }
}

/* FOCUS (opus P1) */
:focus-visible { outline: 2px solid #f1f3f8; outline-offset: 3px; border-radius: 2px; }
input:focus-visible, textarea:focus-visible { outline: none; background-color: rgba(255,255,255,.07); box-shadow: inset 0 -2px 0 #f1f3f8; }

/* MOBILE NAV: FAQ + Sign in stay reachable; "How it works" moves to the footer */
@media (max-width: 720px) {
  .nav { padding: 12px 14px; }
  .nav__auth .nav__signin { display: inline-flex; padding: 8px 8px; font-size: 13px; }
  .nav__auth .nav__signin:first-of-type { display: none; }
  .nav__brand { font-size: 19px; }
  .nav__cta { padding: 8px 16px; font-size: 13px; }
}
@media (max-width: 400px) {
  .nav__auth .nav__signin { padding: 6px 6px; font-size: 12.5px; }
  .nav__cta { padding: 7px 13px; font-size: 12.5px; }
}
@media (max-width: 560px) {
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
