/* /advertise/: people buying ads (platform/ADS.md v2 B). Phone first (390x844), then 844x390 landscape, then 1440x900.
   Tokens and components from design/garden.css + site/site.css only (no new colours or fonts). Prefix: av-.
   The form keeps the shared lp-* / sd-* classes (site/site.css, seeds/seeds.css). */

.av-page { padding-bottom: 8px; }

/* ---------- hero: who it is for + an example card ---------- */
.av-hero { display: grid; gap: 20px; padding: 20px 0 8px; }
.av-hero__copy { display: grid; gap: 12px; justify-items: start; }
.av-hero h1 { font-size: clamp(34px, 9.4vw, 60px); line-height: 1.02; max-width: 14ch; }
.av-lede { font-size: var(--gg-text-md); line-height: 1.45; color: var(--gg-ink-2); max-width: 44ch; }
.av-price { display: grid; gap: 2px; padding: 10px 14px; border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-lime-100); box-shadow: var(--gg-shadow-sm); font-size: var(--gg-text-sm); line-height: 1.4; color: var(--gg-ink-2); }
.av-price b { font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-xl); color: var(--gg-ink); letter-spacing: -.01em; }
.av-hero__go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.av-hero__go .gg-btn svg { width: 22px; height: 22px; }

.av-sample { margin: 0; display: grid; gap: 10px; justify-items: center; }
.av-sample figcaption { font-size: var(--gg-text-sm); color: var(--gg-ink-3); text-align: center; max-width: 36ch; line-height: 1.4; }

/* the card mock: same build as a house-ad site card (ink border, dashed inner line, Ad pill), never a game tile */
.av-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; max-width: 440px;
  padding: 14px; background: var(--gg-butter-100); border: var(--gg-border); border-radius: var(--gg-r-lg); box-shadow: var(--gg-shadow-lg);
}
.av-card::before {
  content: ""; position: absolute; inset: 5px; border: 1.5px dashed color-mix(in srgb, var(--gg-ink) 35%, transparent);
  border-radius: calc(var(--gg-r-lg) - 5px); pointer-events: none;
}
.av-card__art { width: 88px; height: 88px; flex: none; overflow: hidden; border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-paper); }
.av-card__art svg, .av-card__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-card__body { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.av-card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-3); line-height: 1.2; }
.av-card__top span:last-child { overflow-wrap: anywhere; }
.av-pill {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--gg-r-pill); background: var(--gg-ink); color: var(--gg-cream);
  font-size: var(--gg-text-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1;
}
.av-card__head { font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-lg); line-height: 1.1; letter-spacing: -.015em; overflow-wrap: anywhere; }
.av-card__text { font-size: var(--gg-text-sm); line-height: 1.35; color: var(--gg-ink-2); overflow-wrap: anywhere; }
.av-card__cta {
  margin-top: 4px; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: var(--gg-border); border-radius: var(--gg-r-pill);
  background: var(--gg-lime); font-weight: 800; font-size: var(--gg-text-sm); box-shadow: var(--gg-shadow-sm); overflow-wrap: anywhere;
}
.av-sample .av-card { transform: rotate(-1.2deg); }

/* ---------- sections ---------- */
.av-sec { padding: 18px 0; gap: 12px; }
.av-sec > header { gap: 6px; }
.av-sec h2 { font-size: clamp(26px, 6.6vw, 34px); line-height: 1.08; }
.av-sec > header p { font-size: var(--gg-text-sm); line-height: 1.5; }

/* what you get: 2x2 on phone */
.av-gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.av-get { display: grid; gap: 6px; align-content: start; padding: 14px; background: var(--gg-paper); border: var(--gg-border); border-radius: var(--gg-r-lg); box-shadow: var(--gg-shadow); }
.av-get h3 { font-size: var(--gg-text-md); font-weight: 800; line-height: 1.15; }
.av-get p { font-size: var(--gg-text-sm); line-height: 1.4; color: var(--gg-ink-2); }
.av-get:nth-child(1) { background: var(--gg-lime-100); }
.av-get:nth-child(4) { background: var(--gg-lavender-100); }

/* how it works: stamped steps, same as /plant/ */
.av-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: step; }
.av-step {
  counter-increment: step; position: relative; display: grid; gap: 4px; align-content: start;
  padding: 14px; background: var(--gg-paper); border: var(--gg-border); border-radius: var(--gg-r-lg); box-shadow: var(--gg-shadow);
}
.av-step::before {
  content: counter(step); position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 28px; height: 28px;
  border: var(--gg-border); border-radius: 50%; background: var(--gg-lime); box-shadow: var(--gg-shadow-sm);
  font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-sm); line-height: 1; transform: rotate(-8deg);
}
.av-step:nth-child(2)::before { background: var(--gg-butter); transform: rotate(6deg); }
.av-step:nth-child(3)::before { background: var(--gg-lavender-100); transform: rotate(-4deg); }
.av-step:nth-child(4)::before { background: var(--gg-pink-100); transform: rotate(9deg); }
.av-step h3 { font-size: var(--gg-text-md); font-weight: 800; line-height: 1.15; min-height: 28px; padding-left: 36px; display: flex; align-items: center; }
.av-step p { font-size: var(--gg-text-sm); line-height: 1.4; color: var(--gg-ink-2); }
.av-aside { font-size: var(--gg-text-sm); color: var(--gg-ink-2); line-height: 1.5; max-width: 64ch; padding: 12px 14px; border-left: 4px solid var(--gg-butter); background: var(--gg-paper); border-radius: 0 var(--gg-r-md) var(--gg-r-md) 0; }

/* the ad rules */
.av-rules { display: grid; gap: 12px; align-items: start; }
.av-rules__col { padding: 14px; border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-lime-100); }
.av-rules__col--no { background: var(--gg-sand); }
.av-rules h3 { font-size: var(--gg-text-md); font-weight: 800; margin-bottom: 8px; }
.av-rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.av-rules li { position: relative; padding-left: 18px; font-size: var(--gg-text-sm); line-height: 1.35; color: var(--gg-ink-2); font-weight: 600; }
.av-rules li::before { content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gg-ink); background: var(--gg-green-500); }
.av-rules__col--no li::before { background: var(--gg-paper); border-radius: 2px; transform: rotate(45deg); }
.av-place { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; font-size: var(--gg-text-sm); line-height: 1.45; color: var(--gg-ink-2); max-width: 70ch; }
.av-place li:last-child { font-weight: 700; color: var(--gg-ink); }

/* ---------- the form ---------- */
#request { scroll-margin-top: 72px; }
.av-form { gap: 16px; }
.av-form textarea { min-height: 110px; resize: vertical; }
/* honeypot: off screen and zero size so nobody can see or tap it; bots still find the field */
.av-leaf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.av-leaf input { width: 0; height: 0; padding: 0; border: 0; opacity: 0; }
/* the agree box: a 44px hit area with the 26px box drawn inside (same as /plant/) */
.av-page .lp-check { align-items: flex-start; gap: 6px; }
.av-page .lp-check > span { padding-top: 10px; }
.av-page .lp-check input {
  width: 44px; height: 44px; margin: 0 0 0 -9px; border: 9px solid transparent; padding: 2px; border-radius: 19px; box-shadow: none;
  background: linear-gradient(var(--gg-cream), var(--gg-cream)) content-box, linear-gradient(var(--gg-ink), var(--gg-ink)) padding-box;
}
.av-page .lp-check input:checked {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.6 3.6L15.5 6' fill='none' stroke='%23111' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat content-box,
    linear-gradient(var(--gg-lime), var(--gg-lime)) content-box, linear-gradient(var(--gg-ink), var(--gg-ink)) padding-box;
}
.av-page .lp-check input[aria-invalid="true"] { box-shadow: none; outline: 4px solid var(--gg-pink); outline-offset: -5px; }
.av-page .lp-check input:focus-visible { outline: 3px solid var(--gg-lavender); outline-offset: -5px; }
.av-privacy { font-size: var(--gg-text-sm); color: var(--gg-ink-3); line-height: 1.45; }
.av-privacy a { color: var(--gg-ink); font-weight: 700; text-underline-offset: 3px; }
.av-done { scroll-margin-top: 80px; }
.av-done[hidden], .av-form[hidden] { display: none; }
.av-done h3 { font-size: var(--gg-text-xl); }

/* ---------- 640+ ---------- */
@media (min-width: 640px) {
  .av-rules { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .av-rules__col--no ul { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}

/* ---------- landscape phone: copy and the card side by side ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .av-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 12px 0 4px; }
  .av-hero h1 { font-size: clamp(30px, 4.6vw, 40px); }
  .av-lede { font-size: var(--gg-text-sm); }
  .av-hero__copy { gap: 8px; }
  .av-price { display: block; padding: 6px 12px; }
  .av-price b { font-size: var(--gg-text-md); }
  .av-price span { display: none; }
  .av-hero__go { gap: 10px; }
  .av-hero__go .gg-btn { min-height: 48px; padding: 8px 18px; font-size: var(--gg-text-md); }
  .av-sample figcaption { display: none; }
  .av-gets, .av-steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .av-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; padding: 48px 0 32px; }
  .av-lede { font-size: var(--gg-text-lg); }
  .av-sample .av-card { padding: 20px; gap: 18px; }
  .av-sample .av-card__art { width: 112px; height: 112px; }
  .av-sample .av-card__head { font-size: var(--gg-text-xl); }
  .av-sec { padding: 36px 0; gap: 20px; }
  .av-gets, .av-steps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .av-get, .av-step { padding: 18px; }
  .av-get h3 { font-size: var(--gg-text-lg); }
  .av-step::before { width: 32px; height: 32px; top: 16px; left: 16px; }
  .av-step h3 { padding-left: 42px; min-height: 32px; font-size: var(--gg-text-lg); }
  .av-form-sec { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .av-form-sec > header { grid-column: 1; grid-row: 1; position: sticky; top: 96px; }
  .av-form-sec > .av-form, .av-form-sec > .av-done { grid-column: 2; grid-row: 1; }
}
