/* Legalyard for Business — pre-launch site
   Static, dependency-free. Brand tokens from the Legalyard design language. */

:root {
  /* Brand palette */
  --blue-300: #95B7E5;
  --blue-500: #4978D2;
  --blue-600: #3A60A8;
  --blue-700: #2B487E;
  --blue-900: #0E182A;
  --cyan-500: #65BBE9;
  --amber-500: #EDA44C;
  --orange-500: #E27735;

  /* Neutral ramp */
  --n0: #FFFFFF;
  --n50: #FAFAFA;
  --n100: #F4F4F5;
  --n200: #E4E4E7;
  --n300: #D4D4D8;
  --n400: #A1A1AA;
  --n500: #71717A;
  --n600: #52525B;
  --n700: #3F3F46;
  --n800: #27272A;
  --n900: #18181B;
  --n950: #09090B;

  /* Semantic — light */
  --bg: var(--n50);
  --surface: var(--n0);
  --surface-sunken: var(--n100);
  --text: var(--n900);
  --text-subtle: var(--n600);
  --text-subtlest: var(--n500);
  --text-inverse: #FFFFFF;
  --text-brand: var(--blue-700);
  --border: var(--n200);
  --border-strong: var(--n300);
  --brand: var(--blue-500);
  --brand-hover: var(--blue-600);
  --focus-ring: var(--blue-500);
  --shadow-raised: 0 1px 2px rgba(9, 9, 11, 0.06), 0 1px 3px rgba(9, 9, 11, 0.08);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius-btn: 6px;
  --radius-card: 8px;
  --radius-modal: 12px;

  --container: 1080px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--n950);
    --surface: var(--n900);
    --surface-sunken: #101013;
    --text: var(--n50);
    --text-subtle: var(--n300);
    --text-subtlest: var(--n400);
    --text-inverse: var(--n950);
    --text-brand: var(--blue-300);
    --border: var(--n800);
    --border-strong: var(--n700);
    --brand: var(--blue-500);
    --brand-hover: var(--blue-300);
    --shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--text-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--border); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-lockup:hover { text-decoration: none; }
.brand-lockup img { width: 26px; height: 26px; }
.brand-lockup .brand-suffix { color: var(--text-subtlest); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.site-nav a { color: var(--text-subtle); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .btn { margin-left: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  font: 600 14.5px/1 var(--font-body);
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); text-decoration: none; }
.btn-subtle { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-subtle:hover { border-color: var(--text-subtlest); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 112px 0 96px; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero .container { position: relative; max-width: 880px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(14px, 1.6vw, 16px); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), color-mix(in srgb, var(--cyan-500) 12%, var(--surface)));
  border-radius: 999px;
  padding: 12px 24px;
  margin-bottom: 32px;
}
.hero-eyebrow .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber-500) 22%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow .dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 .accent-word {
  background: linear-gradient(100deg, var(--blue-500), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 19px; line-height: 1.6; color: var(--text-subtle);
  max-width: 620px; margin: 0 0 40px;
  text-wrap: pretty;
}

/* Decorative paper-fold — brand signature, one per page */
.fold-decor {
  position: absolute; top: -40px; right: -60px;
  width: 320px; height: 320px;
  opacity: 0.08;
  pointer-events: none;
}
@media (max-width: 720px) { .fold-decor { width: 200px; height: 200px; right: -70px; } }

/* ---------- Section headings ---------- */
.section-kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-subtlest); margin: 0 0 10px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.section-intro { color: var(--text-subtle); max-width: 640px; margin: 0 0 44px; font-size: 17px; }

/* ---------- Capability grid ---------- */
.capability-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  padding: 0; margin: 0; list-style: none;
}
.capability-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.capability-grid h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; }
.capability-grid p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-subtle); }

/* ---------- Audience list ---------- */
.audience-list { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; list-style: none; }
.audience-list h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.audience-list p { margin: 0; font-size: 14.5px; color: var(--text-subtle); }
.audience-list li { border-left: 2px solid var(--border-strong); padding-left: 18px; }

/* ---------- Prose pages ---------- */
.prose { max-width: 720px; }
.prose h1 { font-family: var(--font-display); font-weight: 560; font-size: clamp(32px, 4.6vw, 44px); line-height: 1.1; letter-spacing: -0.012em; margin: 0 0 20px; }
.prose h2 { font-size: clamp(21px, 2.6vw, 26px); margin-top: 48px; }
.prose h3 { font-size: 17px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-subtle); font-size: 16px; }
.prose > p:first-of-type { font-size: 18px; }
.prose strong { color: var(--text); }
.page-hero { padding: 72px 0 0; }
.updated-line { font-size: 13.5px; color: var(--text-subtlest); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 4px;
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400; font-size: 20px; line-height: 1;
  color: var(--text-subtlest);
  transition: transform 200ms ease;
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 4px 20px; color: var(--text-subtle); max-width: 660px; }
.faq-list .answer p { margin: 0 0 12px; }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* ---------- Cross-surface band ---------- */
.cross-band {
  background: var(--surface-sunken);
}
.cross-band .band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cross-band h2 { margin-bottom: 6px; font-size: clamp(22px, 3vw, 28px); }
.cross-band p { margin: 0; color: var(--text-subtle); max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: 14px; color: var(--text-subtle); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand .brand-lockup { margin-bottom: 12px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-subtlest); margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-cols a { color: var(--text-subtle); }
.footer-cols a:hover { color: var(--text); }
.footer-meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-subtlest); }

/* ---------- Scroll reveal (single 400ms fade+slide per section) ---------- */
/* Hidden state only applies while JS is driving the reveal (html.js) — without
   JS, or for crawlers, every section renders visible. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 400ms ease, transform 400ms ease; }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .site-nav .hide-mobile { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
}

/* Narrow phones: drop the brand suffix and tighten nav so the header never overflows */
@media (max-width: 560px) {
  .brand-lockup .brand-suffix { display: none; }
  .site-nav { gap: 14px; }
  .site-nav .btn { padding: 9px 11px; font-size: 13px; }
  .container { padding: 0 20px; }
}

/* Smallest screens: header keeps brand + CTA only (Product/FAQ links repeat in the footer) */
@media (max-width: 480px) {
  .site-nav a:not(.btn) { display: none; }
  .brand-lockup .brand-suffix { display: inline; }
}

/* ---------- Hero contact ---------- */
.hero-contact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-contact-note { margin: 0; font-size: 14.5px; color: var(--text-subtlest); }

/* ---------- FAQ page: centered column ---------- */
.faq-page .page-hero .container { text-align: center; }
.faq-page .page-hero .prose { margin: 0 auto; }
.faq-page .faq-list { margin: 0 auto; }
