/* ============================================================
   Joe Tarek — joetarek.com
   One-page site. Implements DESIGN.md: dark-first, maroon as the
   single accent, Space Grotesk display / Inter body, pills,
   hairlines, no shadows.
   ============================================================ */

/* ---- Fonts (self-hosted variable fonts, D18) ----
   Both files are VARIABLE fonts, so one file per family covers every
   weight. Declaring a weight RANGE lets the browser set the wght axis.
   (The multi-page prototype declared one @font-face per weight against
   the same file, which silently rendered every weight at the file's
   default instance — Inter 400 and Space Grotesk 300.) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/SpaceGrotesk.woff2') format('woff2');
}

/* ---- Tokens (DESIGN.md §7) ---- */
:root {
  --color-arena-black: #0A0A0B;
  --color-iron: #141416;
  --color-forge: #1E1E21;
  --color-hairline: #2A2A2E;
  --color-steel: #8E8E94;
  --color-bone: #F4F2EF;
  --color-paper: #FFFFFF;
  --color-maroon: #800000;
  --color-maroon-bright: #A31621;
  --color-maroon-ember: #3D0C0F;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --page-max-width: 1200px;
  --section-gap: 96px;
  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-control: 8px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-arena-black);
  color: var(--color-bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--color-maroon); color: var(--color-bone); }

/* Fixed nav clearance for anchor jumps */
[id] { scroll-margin-top: 88px; }

.container { max-width: var(--page-max-width); margin-inline: auto; padding-inline: 24px; }

/* Skip link — keyboard users land past the nav */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-bone);
  color: var(--color-arena-black);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-control) 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-maroon-bright);
  outline-offset: 3px;
}

/* ---- Typography ---- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 500; color: var(--color-paper); }

.display-xl { font-size: clamp(44px, 8vw, 88px); line-height: 0.95; letter-spacing: -0.03em; font-weight: 700; }
.display    { font-size: clamp(36px, 6vw, 64px); line-height: 1.0;  letter-spacing: -0.03em; font-weight: 700; }
.heading-lg { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.heading    { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.heading-sm { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }

.body-lg { font-size: 18px; line-height: 1.6; }
.muted { color: var(--color-steel); }

.kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--color-hairline); }

.lede { font-size: 18px; font-weight: 500; color: var(--color-bone); }
.lede em { font-style: italic; }

/* ---- Buttons (pills only, D7) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

/* The one maroon element per view (D4) */
.btn-primary { background: var(--color-maroon); color: var(--color-bone); }
.btn-primary:hover { background: var(--color-maroon-bright); }

.btn-ghost { background: transparent; border-color: var(--color-hairline); color: var(--color-bone); }
.btn-ghost:hover { border-color: var(--color-steel); background: rgba(255,255,255,0.04); }

/* Nav pill stays neutral so the page CTA keeps the single accent (D15) */
.btn-nav { background: var(--color-bone); color: var(--color-arena-black); font-size: 14px; padding: 10px 20px; }
.btn-nav:hover { background: var(--color-paper); }

.text-link {
  color: var(--color-bone);
  text-decoration: underline;
  text-decoration-color: var(--color-steel);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: var(--color-maroon-bright); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.92);
  border-bottom-color: var(--color-hairline);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--color-paper);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 32px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-size: 14px; color: var(--color-steel); text-decoration: none; transition: color .2s ease; }
.nav-links a:hover { color: var(--color-bone); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-pill);
  color: var(--color-bone);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-arena-black);
  padding: 120px 24px 48px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-bone);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-hairline);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  pointer-events: none;
}
/* hero scrim — the sole gradient exception (DESIGN.md §5) */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 20%, rgba(30,30,33,0.55) 0%, rgba(10,10,11,0) 60%),
              linear-gradient(to top, var(--color-arena-black) 0%, rgba(10,10,11,0) 40%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero-watermark {
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(120px, 24vw, 340px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 242, 239, 0.05);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.hero-center { text-align: center; max-width: 900px; margin-inline: auto; }
.hero-center .kicker { justify-content: center; }
.hero-center .kicker::before { display: none; }
.hero h1 { margin: 24px 0; }
.hero .lede { max-width: 640px; margin-inline: auto; }
.hero .hero-body { max-width: 640px; margin: 24px auto 0; color: var(--color-steel); font-size: 18px; }
.hero-cta { margin-top: 48px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 24px; font-size: 14px; color: var(--color-steel); }

/* ---- Sections ---- */
.section { padding-block: var(--section-gap); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { margin-top: 16px; }
.section-head .body-lg { margin-top: 24px; color: var(--color-steel); }

.prose { max-width: 680px; }
.prose p + p { margin-top: 24px; }
.prose p { color: var(--color-steel); font-size: 18px; }
.prose p strong, .prose p b { color: var(--color-bone); }

.band-hairline { border-top: 1px solid var(--color-hairline); }

/* ---- Ember band (D12) ---- */
.ember {
  background: var(--color-maroon-ember);
  padding-block: var(--section-gap);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ember::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: 0.04;
  pointer-events: none;
}
.ember .container { position: relative; }
.ember h2 { max-width: 800px; margin-inline: auto; }
.ember p { max-width: 560px; margin: 24px auto 0; color: var(--color-bone); font-size: 18px; }
.ember .btn { margin-top: 48px; }

/* ---- Step cards ---- */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step-card {
  background: var(--color-iron);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: background-color .2s ease;
}
.step-card:hover { background: var(--color-forge); }
.step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--color-maroon-bright);
  display: block;
}
.step-card h3 { font-size: 24px; letter-spacing: -0.01em; margin: 16px 0 12px; }
.step-card p { color: var(--color-steel); }

.steps-list { display: grid; gap: 16px; max-width: 900px; }
.steps-list .step-card { display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start; }
.steps-list .step-card h3 { margin-top: 0; }

/* ---- Checklist ---- */
.checklist { list-style: none; display: grid; gap: 0; max-width: 820px; }
.checklist li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-hairline);
  font-size: 18px;
  color: var(--color-bone);
}
.checklist li::before {
  content: "//";
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-steel);
}

/* ---- Deliverables (what's included / not included) ---- */
.deliver-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.deliver-card {
  background: var(--color-iron);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 32px;
}
.deliver-card > .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
  display: block;
  margin-bottom: 24px;
}
.deliver-card ul { list-style: none; display: grid; gap: 0; }
.deliver-card li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-hairline);
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: baseline;
}
.deliver-card li:last-child { border-bottom: none; padding-bottom: 0; }
.deliver-card li:first-child { padding-top: 0; }
.deliver-card li::before {
  content: "+";
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-steel);
  font-size: 18px;
}
.deliver-card.excluded li::before { content: "\2013"; }
.deliver-card li strong { display: block; color: var(--color-bone); font-weight: 500; }
.deliver-card li span { color: var(--color-steel); font-size: 15px; }

/* ---- Credential cards ---- */
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cred-card {
  background: var(--color-iron);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 32px;
}
.cred-card .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
  display: block;
  margin-bottom: 12px;
}
.cred-card .value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-paper);
}

/* ---- Terms / policy blocks ---- */
.terms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.terms-card {
  background: var(--color-iron);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 32px;
}
.terms-card h3 { font-size: 20px; font-family: var(--font-body); font-weight: 600; color: var(--color-bone); margin-bottom: 16px; letter-spacing: 0; }
.terms-card p { color: var(--color-steel); font-size: 15px; }
.terms-card p + p { margin-top: 12px; }
.terms-card ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.terms-card li { color: var(--color-steel); font-size: 15px; display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: baseline; }
.terms-card li::before { content: "\2013"; color: var(--color-steel); }
.terms-card strong { color: var(--color-bone); font-weight: 500; }

.price-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--color-paper);
  display: block;
  margin-bottom: 8px;
}
.price-sub { font-size: 14px; color: var(--color-steel); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  background: var(--color-iron);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 32px;
}
.contact-card .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
  display: block;
  margin-bottom: 12px;
}
.contact-card .value { font-size: 18px; color: var(--color-bone); word-break: break-word; }
.contact-card .value a { text-decoration: underline; text-decoration-color: var(--color-steel); text-underline-offset: 4px; }
.contact-card .value a:hover { text-decoration-color: var(--color-maroon-bright); }
.contact-card .note { margin-top: 12px; font-size: 14px; color: var(--color-steel); }

/* ---- FAQ ---- */
.faq-list {
  background: var(--color-iron);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  max-width: 900px;
}
.faq-item { border-bottom: 1px solid var(--color-hairline); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-bone);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: none;
  width: 12px; height: 12px;
  border-right: 1.5px solid var(--color-steel);
  border-bottom: 1.5px solid var(--color-steel);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}
.faq-item[open] summary .chev { transform: rotate(225deg); margin-top: 4px; }
.faq-item .faq-answer { padding: 0 24px 24px; color: var(--color-steel); max-width: 760px; }
.faq-item .faq-answer p + p { margin-top: 16px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--color-hairline); padding: 64px 0 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand .wordmark { font-size: 20px; }
.footer-tagline { margin-top: 16px; font-size: 14px; color: var(--color-steel); max-width: 320px; }
.footer-links { display: flex; gap: 64px; }
.footer-links ul { list-style: none; display: grid; gap: 12px; align-content: start; }
.footer-links .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
  margin-bottom: 16px;
  display: block;
}
.footer-links a { font-size: 14px; color: var(--color-steel); text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--color-bone); }
.footer-legal {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--color-hairline);
  font-size: 12px;
  color: var(--color-steel);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-entity { max-width: 560px; line-height: 1.8; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  :root { --section-gap: 64px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .steps-grid, .cred-grid, .deliver-grid, .terms-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps-list .step-card { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding-top: 128px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 48px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .btn { padding: 12px 24px; font-size: 15px; }
  .nav .btn-nav { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .deliver-card, .terms-card, .cred-card, .contact-card, .step-card { padding: 24px; }
}
