/* Public landing pages: no framework, no app bundle. Colours follow the app's dark theme. */
@font-face {
  font-family: "FindSans Pro";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: local("FindSans Pro Bold"), local("FindSansPro-Bold"), url(findsans-bold.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --surface: #17171c;
  --surface-2: #202027;
  --border: #2a2a32;
  --text: #f7f7f8;
  --muted: #a1a1aa;
  --accent: #2f6fe4;
  --accent-hover: #4a82ea;
  --accent-text: #8fb4ff;
  --success: #45d483;
  --danger: #f871a0;
  --radius: 12px;
  --radius-lg: 20px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "FindSans Pro", var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lp {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: var(--accent-text); }
a:hover { color: var(--text); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: 0; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
[hidden] { display: none !important; }

.lp-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.lp-muted { color: var(--muted); }
.lp-skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.lp-skip:focus { left: 8px; }

/* Header */
.lp-header { border-bottom: 1px solid var(--border); background: rgba(11, 11, 15, .92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.lp-header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.lp-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 700 1.15rem var(--font-display); }
.lp-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.lp-nav a:hover { color: var(--text); }
.lp-header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-lang { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; margin-right: 4px; }
.lp-lang-link { color: var(--muted); text-decoration: none; }
.lp-lang-link:hover { color: var(--text); }
.lp-lang-current { color: var(--text); font-weight: 600; }
.lp-lang-sep { color: var(--border); }
.lp-footer .lp-lang { margin-top: 12px; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.lp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.lp-card h3 { margin-bottom: .35em; }
.lp-card p { color: var(--muted); }
.lp-faq { margin: 0; }
.lp-faq-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.lp-faq-item dt { font-weight: 600; margin-bottom: 6px; }
.lp-faq-item dd { margin: 0; color: var(--muted); }
.lp-hero { padding: 64px 0 40px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 760px) {
  .lp-header-inner { flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; }
  .lp-nav { order: 3; width: 100%; gap: 16px; }
}

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; }
.lp-btn-primary { background: var(--accent); color: #fff; }
.lp-btn-primary:hover { background: var(--accent-hover); color: #fff; }
.lp-btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.lp-btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.lp-btn-lg { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.lp-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Sections */
.lp-section { padding: 56px 0; }
.lp-section + .lp-section { border-top: 1px solid var(--border); }
.lp-eyebrow { color: var(--accent-text); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.lp-lede { color: var(--muted); font-size: 1.125rem; max-width: 760px; }
.lp-prose { max-width: 760px; }
.lp-prose h2 { margin-top: 1.6em; }
.lp-prose h3 { margin-top: 1.3em; }
.lp-prose ul, .lp-prose ol { padding-left: 1.3em; }
.lp-prose li { margin-bottom: .35em; }

/* Hero + tool */
.lp-hero { padding: 40px 0 48px; }
.lp-hero h1 { max-width: 900px; }
.lp-tool { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.lp-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .lp-tool-grid { grid-template-columns: 1fr; } }
.lp-tool label, .lp-tool .lp-label { display: block; font-weight: 600; margin-bottom: 6px; }
.lp-tool textarea, .lp-tool .lp-output {
  width: 100%; min-height: 260px; resize: vertical; padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 15px/1.6 var(--font);
}
/* Soft wraps collapsed in tool.js; blank lines remain as paragraph breaks. */
.lp-tool .lp-output { white-space: pre-wrap; overflow: auto; overflow-wrap: break-word; }
.lp-output:empty::before { content: attr(data-placeholder); color: var(--muted); }
.lp-tool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.lp-count { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.lp-count.is-over { color: var(--danger); }
.lp-free-note { color: var(--success); font-size: .9rem; margin: 0; }
.lp-tool-msg { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.lp-tool-msg.is-error { border-left: 3px solid var(--danger); }
.lp-tool-msg.is-cta { border-left: 3px solid var(--accent); }
.lp-tool-msg .lp-btn { margin-top: 8px; }
.lp-spacer { flex: 1; }
.lp-noscript { margin: 12px 0 0; color: var(--muted); }

/* Cards, steps, features */
.lp-cards { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.lp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.lp-card h2, .lp-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.lp-card p { color: var(--muted); margin: 0; }
.lp-card a { text-decoration: none; }
.lp-card-link { display: inline-block; margin-top: 10px; font-weight: 600; }
.lp-steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.lp-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
.lp-steps h3 { margin-bottom: 4px; }
.lp-steps p { color: var(--muted); margin: 0; }

/* Before / after */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .lp-compare { grid-template-columns: 1fr; } }
.lp-compare figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.lp-compare figcaption { font-weight: 700; margin-bottom: 8px; }
.lp-compare blockquote { margin: 0; color: var(--muted); }

/* Product screenshots (WebP + JPEG via <picture>) */
.lp-shots .lp-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.lp-shots .lp-shot-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .lp-shots .lp-shot-grid,
  .lp-shots .lp-shot-grid--3 { grid-template-columns: 1fr; }
}
.lp-shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lp-shot picture,
.lp-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* FAQ */
.lp-faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.lp-faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style-position: outside; }
.lp-faq details > div { margin-top: 8px; color: var(--muted); }
.lp-faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.lp-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.lp-cta p { color: var(--muted); }

/* Blog */
.lp-post-meta { color: var(--muted); font-size: .95rem; }
.lp-post-list { list-style: none; padding: 0; }
.lp-post-list li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.lp-post-list h2 { font-size: 1.3rem; margin-bottom: 4px; }
.lp-post-list a { text-decoration: none; }
.lp-prose blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--border); color: var(--muted); }
.lp-prose code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.lp-breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.lp-breadcrumbs a { color: var(--muted); }

/* 404 */
.lp-404 h1 { margin-top: 0; }

/* Footer */
.lp-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 24px; font-size: .95rem; }
.lp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .lp-footer-grid { grid-template-columns: 1fr 1fr; } }
.lp-footer nav a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.lp-footer nav a:hover { color: var(--text); }
.lp-footer-brand { font: 700 1.1rem var(--font-display); margin-bottom: 6px; }
.lp-footer-h { font-weight: 700; margin-bottom: 6px; }
.lp-footer-copy { margin-top: 24px; font-size: .85rem; }
.lp-footer-preferred { margin-top: 10px; }

/* Google Preferred Sources */
.preferred-source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 .95rem var(--font);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.preferred-source-btn--sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: .85rem;
  gap: 6px;
}
.preferred-source-btn--sm .preferred-source-btn__icon { width: 16px; height: 16px; }
.preferred-source-btn:hover {
  background: var(--surface-2);
  border-color: #3a3a44;
  color: var(--text);
  text-decoration: none;
}
.preferred-source-btn:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
.preferred-source-btn__icon { flex-shrink: 0; width: 18px; height: 18px; display: block; }
.preferred-source-note {
  margin: 28px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.preferred-source-note--compact {
  margin: 12px 0 20px;
  padding-top: 0;
  border-top: none;
  gap: 8px;
}
.preferred-source-note--compact .preferred-source-note__text {
  font-size: .9rem;
}
.preferred-source-note--compact .preferred-source-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: .85rem;
  gap: 6px;
}
.preferred-source-note--compact .preferred-source-btn__icon { width: 16px; height: 16px; }
.preferred-source-note__text { margin: 0; color: var(--muted); font-size: .95rem; max-width: 42rem; }

/* Cite guide pilot pages */
.lp-lede { font-size: 1.15rem; color: var(--muted); }
.lp-tool-msg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 1.2em; font-size: .92rem; color: var(--muted); }
.lp-tool-msg.is-cta { border-color: #3a4a6a; }
.cite-formula { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; font-size: .95rem; }
.cite-example { background: var(--surface); }
.cite-mistakes { color: var(--text); }
.cite-gen-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin: 1em 0; }
.cite-gen-label { display: block; font-weight: 600; margin-bottom: 8px; }
.cite-gen-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cite-gen-input { flex: 1 1 220px; min-height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); padding: 0 12px; font: inherit; }
.cite-gen-status { min-height: 1.4em; margin-top: 10px; }
.cite-gen-status.is-error { color: var(--danger); }
.cite-gen-out { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; white-space: pre-wrap; font-size: .95rem; }
