/* Form-first ad pages (/top3/ and /seo/<trade>/), on top of top3.css. Built by scripts/build-seo-ads.py.
   Scoped to body.form-first so /maps-check/ and /fitness/, which also load top3.css, never change. */

/* Hero: headline left, form right on desktop. On a phone: headline, form, then guarantee and price. */
.form-first .ff-hero { text-align: left; padding-block: clamp(1.75rem, 5vw, 4.5rem) clamp(2.25rem, 6vw, 4.5rem); }
.form-first .ff-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) {
  .form-first .ff-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); grid-template-areas: "head card" "terms card"; column-gap: 3.5rem; row-gap: 1.6rem; }
  .form-first .ff-head { grid-area: head; align-self: end; }
  .form-first .ff-hero .ff-card { grid-area: card; align-self: center; }
  .form-first .ff-terms { grid-area: terms; align-self: start; }
}
.form-first .ff-hero .tag { margin-bottom: 1.1rem; }
.form-first .ff-hero h1 { margin-inline: 0; max-width: 17ch; font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.05; }
.form-first .ff-hero .sub { margin: 1rem 0 0; max-width: 34rem; }
@media (max-width: 599px) {
  .form-first .ff-hero h1 { font-size: clamp(1.8rem, 8.4vw, 2.3rem); }
  .form-first .ff-hero .sub { font-size: 0.98rem; line-height: 1.5; }
  .form-first .ff-hero .tag { margin-bottom: 0.8rem; }
}

.form-first .ff-terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; color: var(--ink-2); }
.form-first .ff-terms li { display: grid; grid-template-columns: 1rem 1fr; gap: 0.6rem; }
.form-first .ff-terms svg { width: 1rem; height: 1rem; margin-top: 0.22rem; stroke: var(--secondary); fill: none; stroke-width: 2.6; }
.form-first .ff-terms b { color: var(--ink); font-weight: 600; }

/* The form card, used in the hero and inside the closing .form panel. */
.form-first .ff-card { position: relative; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(1.1rem, 3vw, 1.6rem); box-shadow: 0 30px 60px -30px oklch(0.24 0.06 265 / 0.3); }
.form-first .close .ff-card { border-color: transparent; }
.form-first .ff-h, .form-first .close .ff-h { font-size: clamp(1.2rem, 2.4vw, 1.4rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 1rem; }
.form-first .ff-form .fields { gap: 0.7rem; margin-bottom: 1rem; }
.form-first .ff-form .btn svg { width: 1rem; height: 1rem; }
.form-first .ff-small { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); text-align: center; }
.form-first .ff-form .err { text-align: center; }
.form-first .lead-done { display: grid; gap: 0.5rem; padding: 0.4rem 0; }
.form-first .lead-done[hidden] { display: none; }
.form-first .lead-done b { font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.form-first .lead-done p { color: var(--ink-2); font-size: 0.95rem; }
.form-first .lead-done:focus { outline: none; }

/* AI section */
.form-first .ff-ai .ff-lead { color: var(--ink-2); font-size: 1.05rem; margin: 1rem 0 1.5rem; max-width: 34rem; }

/* Video, lower down the page now */
.form-first .ff-video { background: var(--bg-2); }
.form-first .ff-video .head { margin-bottom: 1.8rem; }

/* Pricing: the coupon pop-up is gone, so its "Get my code" buttons are links to the bottom form. */
.form-first .plan-claim a { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--secondary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.form-first .plan-claim a svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; }
.form-first .coupon-cta .btn { white-space: normal; text-align: center; max-width: 100%; }

/* Cookie bar: never over a form. On a phone it is a slim strip on the bottom edge, the hero drops its sub-line so the
   form starts higher (the guarantee and price follow the form), and the bar steps aside while someone types. */
@media (max-width: 599px) {
  .form-first .ff-hero .sub { display: none; }
  .form-first .mc-consent { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; border-width: 1px 0 0; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); gap: 0.5rem; font-size: 0.78rem; line-height: 1.4; }
  .form-first .mc-consent .button { min-height: 36px; }
}
.form-first:has(form[data-lead-form]:focus-within) .mc-consent { display: none; }

/* In-page jumps land below the sticky bar. */
.form-first section[id] { scroll-margin-top: 58px; }
