/* =========================================================
   2X James — stylesheet
   Every value here comes from the 2X James design system
   (project/tokens.json). Change it there first, then here.
   ========================================================= */

:root {
  color-scheme: dark;

  /* colour */
  --base: #0B0C0A;
  --paper: #F5F4EE;
  --accent: #C8FF3D;
  --accent-press: #B2E832;
  --accent-veil: rgba(200, 255, 61, 0.12);

  --surface-ground: #0B0C0A;
  --surface-raised: #141613;
  --surface-inset: #080907;

  --ink: #F5F4EE;
  --ink-muted: #A3A69E;
  --ink-faint: #70736B;

  --line: rgba(245, 244, 238, 0.08);
  --line-strong: rgba(245, 244, 238, 0.20);
  --focus: #C8FF3D;

  /* spacing */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-6: 24px; --space-8: 32px;  --space-12: 48px; --space-16: 64px;
  --space-24: 96px; --space-32: 128px;

  /* radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* type */
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
  --gutter: 16px;
}

/* --- light ground sections invert the ink tokens --- */
.ground-paper {
  --surface-ground: var(--paper);
  --surface-raised: #FDFCF8;
  --surface-inset: #EDEBE2;
  --ink: #0B0C0A;
  --ink-muted: #56584F;
  --ink-faint: #7A7C72;
  --line: rgba(11, 12, 10, 0.08);
  --line-strong: rgba(11, 12, 10, 0.20);
  --focus: #0B0C0A;
  --accent-veil: rgba(11, 12, 10, 0.05);
  background: var(--surface-ground);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--surface-ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 27px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: var(--base); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   Layout
   ========================================================= */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section {
  padding-block: var(--space-16);
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .section { padding-block: var(--space-24); } }
@media (min-width: 1100px) { .section { padding-block: var(--space-32); } }

.section--tight { padding-block: var(--space-16); }
.section--flush { border-top: 0; }

/* the proof strip carries its own rules, so it needs less air beneath it */
.section--proof { padding-block: 0 var(--space-4); }

/* the 32px grid, edge-masked so it fades before the frame */
.grid-field { position: relative; isolation: isolate; }
.grid-field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 42%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 42%, #000 35%, transparent 100%);
}

/* =========================================================
   Type
   ========================================================= */

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }

.display {
  font-size: clamp(38px, 7.2vw, 76px);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.h1 { font-size: clamp(30px, 4.6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
.h2 { font-size: clamp(25px, 3.4vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.h3 { font-size: 21px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }
.lead { font-size: clamp(17px, 2vw, 19px); line-height: 30px; color: var(--ink-muted); }
.body { font-size: 16px; line-height: 27px; color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.faint { color: var(--ink-faint); }

.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--space-6);
}
.label::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  flex: none;
}

.accent { color: var(--accent); }
.ground-paper .accent { color: var(--ink); }

.stack > * + * { margin-top: var(--space-4); }
.stack-6 > * + * { margin-top: var(--space-6); }
.stack-12 > * + * { margin-top: var(--space-12); }

.measure { max-width: 60ch; }
.measure-narrow { max-width: 48ch; }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-6);
  font-family: inherit;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--base); }
.btn--primary:hover { background: var(--accent-press); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* =========================================================
   Nav
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 68px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #F5F4EE;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 17px;
  margin-right: auto;
}
.nav__brand img { width: 30px; height: 30px; }

.nav__links { display: none; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__link {
  color: #A3A69E;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.nav__link:hover { color: #F5F4EE; }
.nav__link[aria-current="page"] { color: #F5F4EE; border-bottom-color: var(--accent); }

.nav__cta { display: none; }
@media (min-width: 620px) { .nav__cta { display: inline-flex; padding: 10px 18px; } }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid rgba(245, 244, 238, 0.20);
  border-radius: var(--radius-sm);
  color: #F5F4EE;
  cursor: pointer;
}
@media (min-width: 900px) { .nav__toggle { display: none; } }

.nav__drawer {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--line);
  background: #0B0C0A;
}
.nav__drawer[data-open="true"] { display: flex; }
.nav__drawer a {
  color: #F5F4EE;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 10px 0;
}

/* =========================================================
   Hero
   ========================================================= */

.hero { padding-block: var(--space-16) var(--space-16); }
@media (min-width: 900px) { .hero { padding-block: var(--space-24) var(--space-24); } }

.hero__grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: var(--space-16); } }

.hero__title { margin-bottom: var(--space-6); }
.hero__lead { margin-bottom: var(--space-8); max-width: 54ch; }

.hero__media { position: relative; justify-self: center; width: min(100%, 520px); }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 6% -4% -2% -4%;
  background: radial-gradient(circle at 50% 55%, rgba(200,255,61,0.26) 0%, rgba(200,255,61,0.07) 45%, transparent 70%);
  border-radius: var(--radius-pill);
}
.hero__media img { position: relative; width: 100%; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-bottom: var(--space-6);
}
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* =========================================================
   Proof strip
   ========================================================= */

.proof {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 760px) { .proof { grid-template-columns: repeat(3, 1fr); } }

.proof__item { background: var(--surface-ground); padding: var(--space-8) var(--space-6); }
.proof__k {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.ground-paper .proof__k { color: var(--ink); }
.proof__v { font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* =========================================================
   Cards / lists
   ========================================================= */

.cards { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--ink-muted); }

.card--link { text-decoration: none; color: inherit; display: block; transition: border-color 160ms ease; }
.card--link:hover { border-color: var(--line-strong); }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-6); color: var(--accent); font-weight: 600; font-size: 15px; }
.ground-paper .card__more { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* numbered steps */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { background: var(--surface-ground); padding: var(--space-8) var(--space-6); }
.step__n {
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.16;
  margin-bottom: var(--space-6);
}
.step h3 { margin-bottom: var(--space-3); }
.step p { color: var(--ink-muted); font-size: 15px; line-height: 25px; }

/* tick / cross lists */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink-muted);
}
/* default marker: a cross — "this is the wrong story" */
.checklist li::before {
  content: "";
  width: 19px; height: 19px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1 L9 9 M9 1 L1 9' stroke='%23A3A69E' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}
/* affirmative marker: a tick in the accent */
.checklist--yes li::before {
  border-color: var(--accent);
  background-color: var(--accent-veil);
  background-size: 11px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3 L4.7 9 L10 3' stroke='%23C8FF3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}
.ground-paper .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1 L9 9 M9 1 L1 9' stroke='%2356584F' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}
.ground-paper .checklist--yes li::before {
  border-color: var(--ink);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3 L4.7 9 L10 3' stroke='%230B0C0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* two-column compare */
.compare { display: grid; gap: var(--space-4); }
@media (min-width: 820px) { .compare { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }

/* =========================================================
   Quote band — accent fill, base ink. The brand's loudest move.
   ========================================================= */

.band {
  background: var(--accent);
  color: var(--base);
  padding-block: var(--space-16);
}
@media (min-width: 900px) { .band { padding-block: var(--space-24); } }
.band__quote {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.band__by { margin-top: var(--space-8); font-size: 15px; font-weight: 600; opacity: 0.68; }

/* =========================================================
   Forms
   ========================================================= */

.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field > label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--surface-inset);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 140ms ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-faint); }
.field--split { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .field--split { grid-template-columns: repeat(2, 1fr); } }

.form__note { font-size: 13.5px; line-height: 22px; color: var(--ink-faint); }
.form__status {
  display: none;
  padding: var(--space-4);
  border: 1px solid var(--accent);
  background: var(--accent-veil);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
}
.form__status[data-show="true"] { display: block; }

/* =========================================================
   CTA + footer
   ========================================================= */

.cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
@media (min-width: 760px) { .cta-panel { padding: var(--space-16); } }
.cta-panel .btn-row { justify-content: center; margin-top: var(--space-8); }

.footer { border-top: 1px solid var(--line); padding-block: var(--space-12); background: var(--surface-ground); }
.footer__grid { display: grid; gap: var(--space-8); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; font-size: 17px; color: var(--ink); }
.footer__brand img { width: 28px; height: 28px; }
.footer h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: var(--space-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--ink); }
.footer__legal { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; }

/* =========================================================
   Motion — GSAP sets the start state only when JS is alive,
   so the page is fully readable without it.
   ========================================================= */

.js-rise { will-change: transform, opacity; }

/* =========================================================
   Legal pages (privacy, terms)
   ========================================================= */

.legal { max-width: 70ch; }
.legal > * + * { margin-top: var(--space-6); }

.legal h2 {
  font-size: 21px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: var(--space-8); }
.legal h3 { font-size: 17px; line-height: 25px; font-weight: 700; margin-top: var(--space-8); }

.legal p, .legal li { color: var(--ink-muted); font-size: 16px; line-height: 27px; }
.legal ul, .legal ol { margin: 0; padding-left: 20px; display: grid; gap: var(--space-2); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.legal__meta {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
}

/* an unfilled blank. Every one of these must be replaced before launch.
   Search the HTML for class="fill" to find them all. */
.fill {
  background: var(--accent-veil);
  color: var(--accent);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent);
  /* long blanks must wrap, or they push the page sideways on a phone */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.notice {
  border: 1px solid var(--accent);
  background: var(--accent-veil);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.notice p { color: var(--ink); }
.notice h3 { margin-top: 0; margin-bottom: var(--space-3); }

/* footer legal row with links */
.footer__legal nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer__legal a { font-size: 13.5px; }
