/* LegalFlow marketing — Brand Foundation v1.1 (cream / ink / gold).
   Tokens are the same synced values used by the app, so site + app match.
   Variant B (gold accents) is the marketing default. Self-hosted Inter. */

/* ── Inter (self-hosted, one variable file) ── */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}

/* ── Tokens ── */
:root {
  /* Base — cream surfaces */
  --cream-50: #F7F2E8;
  --cream-100: #F1E9D9;
  --cream-200: #E7D9BE;
  /* Text */
  --ink: #141210;
  --muted: #6E685C;
  --subtle: #938B7C;
  --white: #FFFFFF;
  /* Gold */
  --gold: #C9A227;
  --gold-deep: #8A6D14;
  --charcoal: #17150F;

  /* Semantic — surfaces (gradient always 135°, light top-left → sand) */
  --surface-gradient: linear-gradient(135deg, var(--cream-50) 0%, var(--cream-200) 100%);
  --surface-page: var(--cream-50);
  --surface-fill: var(--cream-100);
  --hairline: var(--cream-200);

  /* Semantic — text */
  --text-heading: var(--ink);
  --text-body: var(--muted);
  --text-caption: var(--subtle);
  --text-eyebrow: var(--subtle);

  /* Interactive */
  --btn-bg: var(--ink);
  --btn-bg-hover: #000000;
  --btn-fg: var(--white);
  --btn-arrow: var(--white);
  --focus-ring: var(--ink);
  --link: var(--ink);
  --link-hover: #000000;
  --accent: var(--ink);
  --accent-text: var(--ink);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --radius-sm: 10px;
  --radius-tile: 16px;
  --radius-card: 24px;
  --radius-pill: 999px;

  --maxw: 1140px;
}

/* Variant B — gold accents: structure + small accents only */
[data-variant="b"] {
  --hairline: var(--gold);
  --focus-ring: var(--gold);
  --btn-arrow: var(--gold);
  --accent: var(--gold);
  --accent-text: var(--gold-deep);
  --text-eyebrow: var(--gold-deep);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--text-heading); margin: 0; }
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.lf-container { max-width: var(--maxw); margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }

/* ── Lockup (tile + wordmark) ── */
.lf-lockup { display: inline-flex; align-items: center; gap: 10px; }
.lf-tile {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1; flex: none; user-select: none;
}
.lf-lockup .lf-tile { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.lf-lockup--sm .lf-tile { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.lf-wordmark { font-weight: 650; letter-spacing: -0.02em; color: var(--text-heading); line-height: 1; }
.lf-lockup .lf-wordmark { font-size: 20px; }
.lf-lockup--sm .lf-wordmark { font-size: 17px; }

/* ── Button (ink pill, trailing arrow) ── */
.lf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  transition: background .2s ease, transform .2s ease;
}
.lf-btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.lf-btn:active { transform: translateY(1px); }
.lf-btn .lf-arrow { color: var(--btn-arrow); font-weight: 700; transition: transform .2s ease; }
.lf-btn:hover .lf-arrow { transform: translateX(2px); }
.lf-btn--sm { padding: 9px 18px; font-size: 14px; }
.lf-btn--lg { padding: 15px 26px; font-size: 16px; }

/* ── Eyebrow (uppercase label, optional gold dot) ── */
.lf-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; line-height: 1;
  text-transform: uppercase; color: var(--text-eyebrow);
}
.lf-eyebrow .lf-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; flex: none; }
.lf-eyebrow .lf-line { width: 26px; height: 1px; background: var(--accent); display: inline-block; opacity: .6; }

/* ── SurfaceCard (champagne panel) ── */
.lf-card {
  background: var(--surface-gradient);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: var(--card-pad, 32px);
}
.lf-card--tight { padding: 16px; }
.lf-card--pad14 { padding: 14px; }

/* Screenshot frame inside cards */
.lf-shot { background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.lf-shot img { width: 100%; display: block; height: auto; }
.lf-shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); background: var(--cream-50); }
.lf-shot-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--cream-200); }

/* ── Animations (match the app's easing + gold shimmer) ── */
@keyframes lfRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lfShimmer { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0% 0; } }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .65s ease-out, transform .65s cubic-bezier(.22,.61,.36,1); }
[data-reveal="in"] { opacity: 1; transform: translateY(0); }

/* Gold shimmer sweep on CTAs — the single gold moment (variant B) */
[data-variant="b"] [data-shimmer] { position: relative; }
[data-variant="b"] [data-shimmer]::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-pill); pointer-events: none;
  background: linear-gradient(100deg, transparent 43%, rgba(201, 162, 39, .3) 50%, transparent 57%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  animation: lfShimmer 4.2s ease-in-out 1.4s infinite;
}

@media (prefers-reduced-motion: reduce) {
  [data-rise] { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-shimmer]::after { animation: none !important; content: none !important; }
  .lf-btn, .lf-btn .lf-arrow { transition: none !important; }
}
