/* ================================================================
   FOZATI — Landing Page
   Direction C: Editorial Statement, Light Surface
   ================================================================ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:             #F5F2EB;  /* surface-light */
  --bg-nav:         #EDE8E0;  /* surface-light-subtle */
  --text:           #131210;  /* text-primary-light */
  --text-secondary: #3C3530;  /* text-secondary-light */
  --text-muted:     #7A7268;  /* text-muted */
  --text-invert:    #F5F2EB;
  --accent:         #5B4CF5;  /* accent */
  --accent-hover:   #4A3BD4;  /* accent-hover-light */
  --rule:           #CEC6B8;  /* border-light */
  --error:          #C03020;  /* error-light */

  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 14px;  /* Body / 14px */
  --text-lg:   16px;  /* Body LG / 16px */
  --text-xl:   20px;  /* H4 / 20px */
  --text-2xl:  24px;  /* H3 / 24px */
  --text-3xl:  32px;  /* H2 / 32px */
  --text-4xl:  48px;
  --text-6xl:  92px;

  --page-max:      1440px;
  --page-pad:      80px;
  --nav-h:         64px;
  --btn-h:         44px;  /* Button L */
  --btn-h-sm:      36px;  /* Button M */
  --close-cta-max: 600px;
  --field-h:       40px;  /* Input height */
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: var(--page-max);
  margin: 0 auto;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* ── Focus styles ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Skip link ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 9999;
  padding: var(--sp-2) var(--sp-6);
  background: var(--accent);
  color: var(--text-invert);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 2px;
  transform: translateY(-120%);
  transition: transform 150ms ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ── Utility ─────────────────────────────────────────────────── */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.u-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wordmark {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 var(--sp-6);
  height: var(--btn-h);
  border-radius: 4px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--sm {
  height: var(--btn-h-sm);
  padding: 0 var(--sp-6);
}
.btn--wide {
  width: 100%;
  justify-content: center;
}
.btn--primary {
  background: var(--accent);
  color: var(--text-invert);
  position: relative;
  overflow: hidden;
}
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--rule);
}

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--rule);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--page-pad);
  gap: var(--sp-8);
}
.nav__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 900px;
  padding: var(--sp-24) var(--page-pad) var(--sp-24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 66.67%;
  height: 100%;
  pointer-events: none;
}
.hero__rule-v {
  position: absolute;
  top: 0;
  right: var(--page-pad);
  width: 1px;
  height: 100%;
  background: var(--rule);
  pointer-events: none;
}
.hero__eyebrow {
  margin-bottom: var(--sp-8);
  position: relative;
  padding-left: var(--sp-4);
}
.hero__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.3;
}
.hero__content {
  max-width: 640px;
}
.hero__h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-6xl);
  line-height: 1.15;
  font-weight: 400;
  color: var(--text);
}
.hero__body {
  margin-top: var(--sp-12);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
}
.hero__actions {
  margin-top: var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hero__kpi {
  margin-top: var(--sp-16);
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
}
.hero__kpi-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}
.hero__kpi-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1;
}
.hero__rule-b {
  position: absolute;
  bottom: var(--sp-24);
  left: var(--page-pad);
  right: var(--page-pad);
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

/* ── Proof Bar ───────────────────────────────────────────────── */
.proof {
  border-bottom: 1px solid var(--rule);
  padding: var(--sp-10) var(--page-pad);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.proof__stat {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.proof__divider {
  width: 1px;
  height: 16px;
  background: var(--rule);
  flex-shrink: 0;
}
.proof__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.proof__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.proof__item {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 0 var(--sp-2);
}
.proof__item:first-child { padding-left: 0; }
.proof__item + .proof__item::before {
  content: '·';
  margin-right: var(--sp-8);
  color: var(--rule);
  font-weight: 400;
}

/* ── Features ────────────────────────────────────────────────── */
.features {
  padding: var(--sp-32) var(--page-pad);
  border-bottom: 1px solid var(--rule);
}
.features__header {
  margin-bottom: var(--sp-16);
  max-width: 560px;
}
.features__h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.2;
  margin-top: var(--sp-3);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}
.feature-card {
  background: var(--bg);
  padding: var(--sp-12) var(--sp-10);
  box-shadow: inset 0 2px 0 transparent;
}
.feature-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--sp-6);
}
.feature-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}
.feature-card__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── How It Works ────────────────────────────────────────────── */
.how {
  padding: var(--sp-32) var(--page-pad);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-32);
  align-items: start;
}
.how__h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-3xl);
  font-weight: 400;
  margin-top: var(--sp-3);
  line-height: 1.2;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
}
.step {
  background: var(--bg);
  padding: var(--sp-8) var(--sp-10);
  display: grid;
  grid-template-columns: var(--sp-20) 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.step__num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-3xl);
  color: var(--rule);
  font-weight: 400;
  line-height: 1;
}
.step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.step__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}
.step__effort {
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ── Request Access (replaces close CTA) ─────────────────────── */
.request {
  padding: var(--sp-32) var(--page-pad);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-32);
  align-items: start;
  position: relative;
  overflow: hidden;
}
/* Subtle indigo ambient left side */
.request::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 0% 60%,
    rgba(91,76,245,0.04) 0%, transparent 100%);
  pointer-events: none;
}
.request__inner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-32);
  align-items: start;
}
.request__h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: var(--text-4xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  margin-top: var(--sp-3);
}
.request__sub {
  margin-top: var(--sp-8);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
}
.request__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.form__status {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  min-height: 0;
}
.form__status:empty { display: none; }

.request__trust {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-align: center;
}

/* ── Form fields ─────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.field__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.field__input {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg-nav);
  border: 1px solid var(--rule);
  border-radius: 4px;
  height: var(--field-h);
  padding: 0 var(--sp-3);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.field__input::placeholder {
  color: var(--text-muted);
}
.field__input:focus {
  background: var(--bg);
  outline: none;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 76, 245, 0.1);
}
.field__input[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 1.5px;
}
.field__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8C0B4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-6) center;
  padding-right: var(--sp-12);
}
.field__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: var(--sp-12) var(--page-pad);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.footer__links {
  display: flex;
  gap: var(--sp-6);
  margin-left: auto;
}
.footer__link {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ================================================================
   INTERACTIONS
   All transitions wrapped in prefers-reduced-motion
   ================================================================ */

@media (prefers-reduced-motion: no-preference) {

  .nav__link,
  .nav__cta,
  .footer__link {
    transition: color 150ms ease;
  }

  .btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(19,18,16,0.1);
    opacity: 0;
    transition: opacity 150ms ease;
  }
  .btn--ghost {
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  }

  .feature-card {
    transition: background 150ms ease, box-shadow 150ms ease;
  }

  .step {
    transition: background 150ms ease;
  }
  .step__num {
    transition: color 150ms ease;
  }

  .nav--scrolled {
    transition: box-shadow 150ms ease;
  }

  /* ── Mark breath: opacity fade ──────────────────────────────── */
  @keyframes markBreath {
    0%, 100% { opacity: 0.07; }
    50%       { opacity: 0.10; }
  }
  .hero__mark-art {
    animation: markBreath 8s ease-in-out infinite;
    will-change: opacity;
  }

}

/* ── Interaction states ──────────────────────────────────────── */
.nav__link:hover,
.footer__link:hover {
  color: var(--text);
}

.btn--primary:hover::after {
  opacity: 1;
}

.btn--ghost:hover {
  background: var(--bg-nav);
  border-color: var(--accent);
  color: var(--accent);
}

.feature-card:hover {
  background: var(--bg-nav);
  box-shadow: inset 0 2px 0 var(--accent);
}

.step:hover {
  background: var(--bg-nav);
}
.step:hover .step__num {
  color: var(--accent);
}

.nav--scrolled {
  box-shadow: 0 1px 16px 0 rgba(19,18,16,0.06);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1280px) {
  :root { --page-pad: 64px; --text-6xl: 78px; }
  .hero__mark { width: 72%; }
}

@media (max-width: 1024px) {
  :root { --page-pad: 48px; --text-6xl: 64px; --text-4xl: 40px; }
  .hero { min-height: 720px; }
  .hero__mark { width: 80%; opacity: 0.85; }
  .hero__content { max-width: 520px; }
  .request__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-16);
  }
}

@media (max-width: 768px) {
  :root {
    --page-pad: 32px;
    --text-6xl: 52px;
    --text-4xl: 36px;
    --text-3xl: 28px;
  }
  .hero__kpi { margin-top: var(--sp-12); }
  .hero {
    min-height: 640px;
    padding-top: var(--sp-16);
    padding-bottom: var(--sp-16);
  }
  .hero__mark { width: 100%; opacity: 0.6; }
  .hero__rule-v { display: none; }
  .hero__content { max-width: 100%; }
  .hero__body { max-width: 100%; }
  .nav__links { display: none; } /* collapse nav links on mobile */
  .features__grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; gap: var(--sp-8); }
  .request__inner { grid-template-columns: 1fr; gap: var(--sp-12); }
  .proof {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }
  .proof__divider { display: none; }
  .proof__items { gap: var(--sp-6); }
  .proof__item + .proof__item::before { display: none; }
  .footer { flex-wrap: wrap; gap: var(--sp-4); }
  .footer__links { margin-left: 0; }
}

@media (max-width: 480px) {
  :root {
    --page-pad: 24px;
    --text-6xl: 42px;
    --text-4xl: 32px;
  }
  .hero { min-height: 560px; }
  .nav { gap: var(--sp-4); }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn--ghost { width: 100%; justify-content: center; }
}
