/* ============================================================================
   lp.css - shared STATIC design system for the free-check landing page shells.
   Styles the crawlable HTML shell (hero, sections, FAQ, footer, a11y) only.
   The embedded React checker keeps its own orbroom.css; do NOT style it here.
   House style matches /seo-agency/ and the approved /lp-preview/ reference:
   dark, warm bone, violet accents, Playfair Display + IBM Plex Mono, calm.
   No em dashes anywhere in this file.
   ============================================================================ */

/* --- Self-hosted fonts (exact src from /seo-agency/, font-display: swap) --- */
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfairdisplay-normal-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibmplexmono-normal-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* --- Design tokens (Global Constraints palette) --- */
:root {
  --bg: #08080a;
  --panel: #0d0d11;
  --bone: #ece7dd;
  --bone-dim: rgba(236, 231, 221, .66);
  --muted: rgba(236, 231, 221, .45);
  --violet: #a48bff;
  --violet-deep: #8b6cff;
  --hairline: rgba(236, 231, 221, .14);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* Link ink: pure violet fails AA as body-size text on #08080a, so links use a
     lighter tint (#c3b3ff clears 4.5:1 on the near-black bg). */
  --link: #c3b3ff;
  --wrap: 660px;
  --focus: var(--violet);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* no horizontal scroll on mobile */
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* --- Calm violet aurora background (subtle, dark; gentle drift only) --- */
.lp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.lp-bg::before,
.lp-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .38;
}
.lp-bg::before {
  width: 70vw; height: 70vw;
  left: -15vw; top: -12vh;
  background: rgba(139, 108, 255, .38);
  animation: lp-drift-a 24s ease-in-out infinite alternate;
}
.lp-bg::after {
  width: 55vw; height: 55vw;
  right: -18vw; top: 26vh;
  background: rgba(164, 139, 255, .20);
  animation: lp-drift-b 29s ease-in-out infinite alternate;
}
@keyframes lp-drift-a { to { transform: translate(11vw, 7vh); } }
@keyframes lp-drift-b { to { transform: translate(-9vw, -5vh); } }

/* Everything above the aurora sits on this layer. */
.lp-col { position: relative; z-index: 1; }

/* --- Typographic scale + section rhythm --- */
.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 11vw, 58px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 16px 0 0;
  text-wrap: balance;
}
h1 .dot { color: var(--violet); }

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 6vw, 28px);
  line-height: 1.14;
  letter-spacing: -.005em;
  margin: 0 0 8px;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

p { margin: 0; }
.lead { color: var(--bone-dim); font-size: 16px; margin: 0; }
.sub { max-width: 34ch; margin: 16px auto 0; color: var(--bone-dim); font-size: 17px; }

section { padding: 34px 0; }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* --- Hero + the input-card frame the island renders into --- */
.hero {
  padding-top: 56px;
  padding-bottom: 20px;
  text-align: center;
}

/* CLS guard: reserve vertical space so the static fallback field and the
   hydrated React checker occupy the same box. No layout shift on mount.
   The static hero (H1 + field) is the LCP element and paints before hydration. */
#lp-checker {
  display: block;
  min-height: 132px;
  margin: 26px auto 0;
  max-width: 440px;
}

/* Static fallback field (progressive enhancement; replaced by the island). */
.lp-field { display: flex; gap: 8px; }
.lp-field input {
  flex: 1;
  min-width: 0;
  background: rgba(236, 231, 221, .05);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 16px; /* >=16px stops iOS auto-zoom on focus */
  padding: 15px 16px;
}
.lp-field input::placeholder { color: var(--muted); }
.lp-field .lp-btn {
  min-height: 48px; /* tap target */
  background: var(--violet-deep);
  color: #0b0710;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 0 20px;
  cursor: pointer;
  white-space: nowrap;
}
.fieldnote {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
  letter-spacing: .03em;
}

/* Visually-hidden label helper (kept accessible to screen readers). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Content lists --- */
.checks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.checks li {
  background: var(--bg);
  padding: 15px 16px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.checks .t { font-size: 16px; }
.checks .m {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
}
.checks .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--violet);
  border: 1px solid rgba(164, 139, 255, .35);
  border-radius: 999px;
  padding: 2px 7px;
}

/* Ordered "how it works" steps. */
.steps { margin: 16px 0 0; padding-left: 1.2em; }
.steps li { color: var(--bone-dim); font-size: 16px; margin: 0 0 8px; }

/* Comparison / criteria tables (used by the GEO shells). */
.lp-table-wrap { overflow-x: auto; margin: 16px 0 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
td { color: var(--bone-dim); }

/* --- FAQ accordion --- */
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 16px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary {
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--violet);
}
.faq details[open] summary::after { content: "\002B7A"; } /* small "open" glyph, not an em dash */
.faq p { color: var(--bone-dim); font-size: 15px; margin: 12px 0 0; }

/* --- Restrained closer CTA --- */
.closer { text-align: center; }
.closer .lead { max-width: 40ch; margin: 12px auto 0; }
.cta-link {
  display: inline-block;
  min-height: 48px;
  line-height: 48px;
  margin-top: 18px;
  background: var(--violet-deep);
  color: #0b0710;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  padding: 0 26px;
  text-decoration: none;
  letter-spacing: .02em;
}

/* --- Footer --- */
footer { padding: 30px 0 50px; text-align: center; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin: 0 0 16px;
}
.foot-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--link);
  text-decoration: none;
  letter-spacing: .02em;
  min-height: 24px;
}
.foot-links a:hover { text-decoration: underline; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  margin: 0 0 16px;
}
.legal-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
}
.legal-links a:hover { color: var(--link); text-decoration: underline; }
.foot-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .03em;
}

/* Inline body links (E-E-A-T block etc.) hit AA via the lighter tint. */
a { color: var(--link); }

/* --- a11y: visible focus ring on every interactive element --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Reduced motion: kill the aurora drift and any transitions --- */
@media (prefers-reduced-motion: reduce) {
  .lp-bg::before,
  .lp-bg::after { animation: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* --- Mobile refinements: keep tap targets and no overflow --- */
@media (max-width: 420px) {
  .checks .m { display: none; } /* keep rows single-line on narrow phones */
  .lp-field { flex-direction: column; }
  .lp-field .lp-btn { width: 100%; }
}
