/*
 * geniusDoc marketing site — single stylesheet, no framework.
 *
 * Tokens mirror customer-ui/src/theme/tokens.ts so the marketing site
 * and the product portal feel like the same brand. Inter type stack,
 * paper #fbfbf9 page bg, ink-900 #14171c headings, indigo #4338ca
 * single CTA color, verified-teal #0f8b7d reserved for the
 * "AI proved its claim" mark.
 */

:root {
  --paper: #fbfbf9;
  --paper-sunken: #f5f5f3;
  --raised: #ffffff;
  --hairline: #e3e5e9;
  --hairline-strong: #c8ccd2;

  --ink-1000: #0b0d10;
  --ink-900: #14171c;
  --ink-800: #353c47;
  --ink-700: #525a68;
  --ink-600: #6b7280;
  --ink-500: #9aa0aa;

  --indigo-600: #4338ca;
  --indigo-700: #3730a3;
  --indigo-50: #eef2ff;

  --teal-500: #0f8b7d;
  --teal-50:  #e8f6f2;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --max-w: 1120px;
  --gutter: 24px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink-800);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01","cv11";
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--indigo-600);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ----------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  z-index: 1200;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}
.brand:hover { text-decoration: none; }

/* Brand icon — 24×24 black rounded-square with white Lucide brain.
   Matches customer-ui/src/components/BrandMark.tsx exactly. */
.brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--ink-900);
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-icon svg { display: block; }
.header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.header-nav a {
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 500;
}
.header-nav a:hover { color: var(--ink-900); text-decoration: none; }

@media (max-width: 720px) {
  .header-nav { display: none; }
}

/* ---------- Buttons ---------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 32px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 160ms cubic-bezier(0.2, 0, 0, 1),
              border-color 160ms cubic-bezier(0.2, 0, 0, 1);
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ink-900);
  color: #fff;
}
.btn-primary:hover { background: var(--ink-1000); }

.btn-ghost {
  background: var(--raised);
  color: var(--ink-800);
  border-color: var(--ink-400, var(--hairline-strong));
}
.btn-ghost:hover {
  border-color: var(--ink-500, var(--hairline-strong));
  background: var(--paper-sunken);
}

.arrow {
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

/* ---------- Hero -------------------------------------------------- */

.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-600);
  margin: 0 0 20px;
}
.hero-headline {
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 24px;
  max-width: 18ch;
}
.hero-clause-trust {
  white-space: nowrap;
}
.verified-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  vertical-align: 0.05em;
}
.verified-mark svg {
  width: clamp(20px, 2.4vw, 28px);
  height: clamp(20px, 2.4vw, 28px);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 64ch;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.proof-line {
  font-size: 13px;
  color: var(--ink-600);
  margin: 0;
  max-width: 64ch;
}
.proof-line-stat {
  display: block;
  margin-top: 4px;
}

/* ---------- Section primitives ----------------------------------- */

.strip {
  padding: 72px 0;
  border-bottom: 1px solid var(--hairline);
}
.strip-tinted {
  background: var(--paper-sunken);
}
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-600);
  margin: 0 0 16px;
}
.section-headline {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}

/* ---------- "How it works" demo video ---------------------------- */

/* Sits below the three-up cards. Autoplays muted + looped so the
 * visitor sees motion without a click — but the controls overlay
 * stays visible so they can pause / scrub if they want.
 *
 * Spans the full container width to match the three-up cards above
 * — same visual lockup. Top-margin separates it from the cards;
 * bottom-margin is handled by the section padding. */
.how-it-works-demo {
  margin: 32px 0 0;
}
.how-it-works-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--ink-900);   /* fallback while the frame loads */
}
.how-it-works-caption {
  font-size: 12px;
  color: var(--ink-500);
  text-align: center;
  margin: 12px 0 0;
}

/* ---------- "How it works" three-up ------------------------------ */

.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .three-up { grid-template-columns: 1fr; }
}
.card {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin: 0 0 12px;
}
.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0;
}

/* ---------- Trust list ------------------------------------------- */

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .trust-list { grid-template-columns: 1fr; }
}
.trust-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-800);
  line-height: 1.55;
}
.trust-tick {
  flex: 0 0 auto;
  margin-top: 2px;
  display: inline-flex;
}

/* ---------- Pricing ---------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.tier {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}
.tier-highlight {
  border-width: 2px;
  border-color: var(--indigo-600);
  padding: 23px 19px; /* offset for thicker border, keep content alignment */
}
.tier-name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-600);
  margin: 0 0 12px;
}
.tier-price {
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}
.tier-amount {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.tier-amount-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}
.tier-period {
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 500;
  margin-left: 4px;
}
.tier-quota {
  font-size: 13px;
  color: var(--ink-700);
  margin: 0 0 16px;
}
.tier-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}
.tier-points li {
  font-size: 13px;
  color: var(--ink-700);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
}
.tier-points li:last-child { border-bottom: 0; }

.btn-tier {
  justify-content: center;
  width: 100%;
}

/* ---------- Footer ----------------------------------------------- */

.site-footer {
  padding: 40px 0;
  background: var(--paper);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--ink-600);
  margin: 0;
  max-width: 40ch;
}
.footer-meta {
  text-align: right;
  font-size: 13px;
  color: var(--ink-600);
}
.footer-meta a {
  color: var(--ink-700);
  display: block;
  margin-bottom: 4px;
}
.copyright { margin: 0; }

/* ---------- Focus states ----------------------------------------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--indigo-600);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* Tabular numerals for any numeric copy (pricing amounts, stats). */
.tier-price,
.proof-line-stat { font-variant-numeric: tabular-nums; }
