/* ==========================================================================
   Homepage (audit 2026-11, wave 2). Requires tokens.css + v2-bridge.css.
   Mobile-first.
   ========================================================================== */

/* ── 2. Homepage ────────────────────────────────────────────────────────── */

/* Hero: one strong line + one sub line; no glow blob. */
body.v2 .hero-section::before { display: none; }
body.v2 .hero-section { padding: var(--sp-6) 0 var(--sp-4); gap: var(--sp-12); }
/* Demo aside removed: hero text can use the full form width. */
body.v2 .hero-text { max-width: 760px; }
body.v2 .hero-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}
body.v2 .hero-accent { color: var(--c-primary); background: none; -webkit-text-fill-color: currentColor; }
body.v2 .hero-sub { font-size: var(--fs-base); line-height: var(--lh-body); color: var(--c-text-muted); }
@media (max-width: 639px) {
  /* Phones: the sub paragraph is 4 lines of feature list — the form is the
     pitch. Keep the "free" line, drop the paragraph. */
  body.v2 .hero-sub { display: none; }
  body.v2 .hero-accent { white-space: normal; }
}
@media (min-width: 768px) {
  body.v2 .hero-title { font-size: var(--fs-3xl); }
  body.v2 .hero-sub { font-size: var(--fs-lg); }
}
@media (min-width: 1024px) {
  body.v2 .hero-section { padding: var(--sp-12) 0 var(--sp-8); }
  body.v2 .hero-title { font-size: var(--fs-4xl); }
}

/* Form card */
body.v2 .form-card { padding: var(--sp-4); }
@media (min-width: 768px) { body.v2 .form-card { padding: var(--sp-6); } }
body.v2 #extract-form .form-group { margin-bottom: var(--sp-5); }

body.v2 .url-input { min-height: var(--control-lg); font-size: var(--fs-base); }
body.v2 .example-urls { gap: var(--sp-2); margin-top: var(--sp-2); }
body.v2 .example-url-btn {
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-muted);
  border-radius: var(--r-full); font-size: var(--fs-xs); padding: 4px 10px;
}
body.v2 .example-url-btn:hover { color: var(--c-text); background: var(--c-muted); }
@media (max-width: 639px) {
  /* Six example domains wrap to three rows on a phone — keep the first three. */
  body.v2 .example-url-btn:nth-of-type(n+4) { display: none; }
}

/* Scan mode: compact 2×2 on phones (title only), 4 across from 768px. */
/* !important + no mask: legacy mobile rules force one column and fade the
   right edge for a horizontal scroller we no longer have. */
body.v2 .scan-mode-group {
  display: grid; grid-template-columns: 1fr 1fr !important; gap: var(--sp-2);
  overflow: visible; -webkit-mask-image: none; mask-image: none;
}
body.v2 .scan-mode-group .lock-badge { display: none; }
@media (min-width: 768px) { body.v2 .scan-mode-group .lock-badge { display: inline-block; } }
body.v2 .scan-mode-group .radio-item { padding: 10px 12px; align-items: center; min-height: var(--tap-min); }
body.v2 .scan-mode-group .radio-title { font-size: var(--fs-sm); font-weight: var(--fw-semi); }
body.v2 .scan-mode-group .radio-desc { display: none; }
body.v2 .scan-mode-group .mode-info { display: none; }
@media (min-width: 768px) {
  body.v2 .scan-mode-group { grid-template-columns: repeat(4, 1fr) !important; }
  body.v2 .scan-mode-group .radio-item { align-items: flex-start; }
  body.v2 .scan-mode-group .radio-desc { display: block; font-size: var(--fs-xs); white-space: normal; overflow: visible; color: var(--c-text-muted); line-height: var(--lh-snug); margin-top: 2px; }
  body.v2 .scan-mode-group .mode-info { display: inline-flex; }
}
body.v2 .lock-badge {
  background: var(--c-primary-soft); color: var(--c-primary); border: 0;
  border-radius: var(--r-sm); font-size: 10px; font-weight: var(--fw-semi); padding: 1px 6px;
}

/* Task presets */
body.v2 .presets-group .form-label { display: block; margin-bottom: var(--sp-2); }
body.v2 .preset-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
body.v2 .preset-chip {
  display: inline-flex; align-items: center; min-height: var(--control-md); padding: 0 var(--sp-3);
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--r-full);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
body.v2 .preset-chip:hover { background: var(--c-muted); }
body.v2 .preset-chip[aria-pressed="true"] { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary); }
@media (pointer: coarse) { body.v2 .preset-chip { min-height: var(--tap-min); } }

/* Customize: collapsed by default on every width (legacy CSS forced it open
   on desktop with !important — beat it with higher specificity). */
body.v2 #extract-form .targets-details { margin-top: calc(-1 * var(--sp-2)); }
body.v2 .targets-details > summary {
  pointer-events: auto; cursor: pointer;
  display: inline-flex; gap: var(--sp-2); align-items: center; justify-content: flex-start;
  min-height: var(--tap-min); padding: 0; margin: 0;
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text-muted);
}
body.v2 .targets-details > summary:hover { color: var(--c-text); }
body.v2 .targets-summary-hint { display: inline; color: var(--c-text-subtle); font-weight: var(--fw-regular); }
body.v2 .targets-summary-hint::before { content: "· "; }
body.v2 .targets-details:not([open]) > .targets-grid { display: none !important; }
body.v2 .targets-details[open] > .targets-grid { display: flex !important; margin-top: var(--sp-2); }

body.v2 .target-item {
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--r-full);
  font-size: var(--fs-sm); min-height: 36px;
}
body.v2 .target-item::before { display: none; }
body.v2 .target-item:has(input:checked) { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary); }
body.v2 .targets-grid-sep { font-size: var(--fs-xs); color: var(--c-text-muted); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: 0.05em; }

/* Submit */
body.v2 #submit-btn { min-height: var(--control-lg); font-size: var(--fs-base); font-weight: var(--fw-semi); border-radius: var(--r-md); }
body.v2 .rate-limit-note { font-size: var(--fs-xs); color: var(--c-text-muted); text-align: center; }

/* Below the fold: calmer sections */
body.v2 .social-proof { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: transparent; box-shadow: none; }
body.v2 .sp-pill { background: var(--c-muted); color: var(--c-text-muted); border: 0; border-radius: var(--r-full); }
body.v2 .faq-item { border-color: var(--c-border); background: var(--c-surface); box-shadow: none; }
body.v2 .ai-tpl-chip { border-radius: var(--r-full); border: 1px solid var(--c-border-strong); background: var(--c-surface); color: var(--c-text); }
body.v2 .ai-tpl-chip:hover { background: var(--c-muted); }
