/* ============================================================================
   Existing-farm upgrades — /upgrade
   ============================================================================

   Scoped entirely under `.up`, the same convention as the homepage (`.hp`),
   Market Intelligence (`.mi`), and the category narrative (`.fs`): the theme
   styles h1–h4, p and ul globally and decorates headings with ::before/::after,
   so a page that does not reset inside its own scope inherits that chrome.
   This sheet is page-scoped (inc/asset-scope.php maps it to the
   `ageye_upgrade` query var) — an unscoped rule here would leak sitewide the
   day that mapping changes, so nothing in this file selects outside `.up`.

   Palette, radii, and type are lifted from foresight.css / home-v2.css so the
   page belongs to the same site. `--pink` comes from global.css.

   @package AGEYE
   ============================================================================ */

@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/urbanist.woff2') format('woff2');
}

/* ── page tokens ──────────────────────────────────────────────────────── */
.up {
  --paper: #f3f4f1;
  --card: #ffffff;
  --ink: #101010;
  --mut: #5c5f58;
  --quiet: #676a62;
  --pink-hot: #ff5c8a;
  --hair: rgba(16, 16, 16, .08);
  --hair-2: rgba(16, 16, 16, .16);
  --dk: #2b2d30;
  --dk-2: #323438;
  --dk-hair: rgba(255, 255, 255, .1);
  --on-dk: rgba(244, 246, 242, .95);
  --on-dk-dim: rgba(244, 246, 242, .68);
  --sh-soft: 0 14px 30px -22px rgba(60, 80, 100, .18);
  --r: 16px;
  --font: 'Urbanist', 'Avenir Next', 'Century Gothic', system-ui, sans-serif;

  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ── local reset: stop theme element styles reaching inside ───────────── */
.up h1, .up h2, .up h3, .up h4, .up p, .up ul, .up ol, .up li,
.up dl, .up dt, .up dd, .up figure, .up blockquote {
  margin: 0; padding: 0; border: 0; background: none; text-transform: none;
}
.up h1::before, .up h2::before, .up h3::before, .up h1::after, .up h2::after, .up h3::after { content: none; }
.up ul { list-style: none; }
.up a { color: inherit; text-decoration: none; }
.up svg { display: block; max-width: 100%; }
.up *, .up *::before, .up *::after { box-sizing: border-box; }
.up ::selection { background: var(--pink); color: #fff; }

/* ── layout ───────────────────────────────────────────────────────────── */
.up-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.up .up-narrow { max-width: 860px; }
.up .up-sec { padding: 92px 0; }

/* ── shared type ──────────────────────────────────────────────────────── */
.up .up-eyebrow {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
}
.up .up-eyebrow.up-on-dk { color: var(--pink-hot); }
.up .up-h1 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.up .up-h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.up .up-lede { max-width: 62ch; margin-top: 18px; font-size: 18.5px; color: var(--mut); }
.up .up-lede-dk { color: var(--on-dk-dim); }

/* ── buttons ──────────────────────────────────────────────────────────── */
.up .up-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.up .up-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px; font-weight: 700;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.up .up-btn svg { width: 18px; height: 18px; }
.up .up-btn-primary { background: var(--pink); color: #fff; box-shadow: 0 12px 26px -14px rgba(232, 21, 91, .55); }
.up .up-btn-primary:hover, .up .up-btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(232, 21, 91, .65); }
.up .up-btn-ghost { border: 1px solid var(--dk-hair); color: var(--on-dk); }
.up .up-btn-ghost:hover, .up .up-btn-ghost:focus-visible { background: rgba(255, 255, 255, .07); }
.up .up-sec:not(.up-sec-dark) .up-btn-ghost { border-color: var(--hair-2); color: var(--ink); }
.up .up-sec:not(.up-sec-dark) .up-btn-ghost:hover { background: rgba(16, 16, 16, .05); }
.up .up-btn:focus-visible { outline: 3px solid rgba(232, 21, 91, .4); outline-offset: 3px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.up .up-hero {
  background: var(--dk);
  color: var(--on-dk);
  padding: 130px 0 96px;
}
.up .up-standfirst { max-width: 58ch; margin-top: 22px; font-size: 19px; color: var(--on-dk-dim); }

/* ── keep / add columns ───────────────────────────────────────────────── */
.up .up-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; margin-top: 44px; }
.up .up-col { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 28px 30px; box-shadow: var(--sh-soft); }
.up .up-col-keep { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--hair-2); }
.up .up-col-add { border-top: 3px solid var(--pink); }
.up .up-col-h { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); margin-bottom: 18px; }
.up .up-col-add .up-col-h { color: var(--pink); }
.up .up-list { display: flex; flex-direction: column; gap: 18px; }
.up .up-list li { display: flex; flex-direction: column; gap: 4px; }
.up .up-list b { font-size: 17px; font-weight: 700; }
.up .up-list b a { border-bottom: 1px solid var(--hair-2); transition: border-color .2s, color .2s; }
.up .up-list b a:hover, .up .up-list b a:focus-visible { color: var(--pink); border-color: var(--pink); }
.up .up-list span { font-size: 15.5px; color: var(--mut); }

/* ── steps (dark) ─────────────────────────────────────────────────────── */
.up .up-sec-dark { background: var(--dk); color: var(--on-dk); }
.up .up-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.up .up-step { background: var(--dk-2); border: 1px solid var(--dk-hair); border-radius: var(--r); padding: 26px 24px; }
.up .up-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pink); color: #fff;
  font-size: 15px; font-weight: 800;
  margin-bottom: 16px;
}
.up .up-step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.up .up-step p { font-size: 15.5px; color: var(--on-dk-dim); }
.up .up-note { margin-top: 34px; font-size: 15.5px; color: var(--on-dk-dim); max-width: 74ch; }
.up .up-note a { color: var(--on-dk); border-bottom: 1px solid var(--dk-hair); transition: border-color .2s; }
.up .up-note a:hover, .up .up-note a:focus-visible { border-color: var(--pink-hot); color: #fff; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.up .up-faq { margin-top: 38px; border-top: 1px solid var(--hair-2); }
.up .up-faq details { border-bottom: 1px solid var(--hair-2); }
.up .up-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 44px; padding: 18px 2px;
  font-size: 18px; font-weight: 700;
  cursor: pointer; list-style: none;
}
.up .up-faq summary::-webkit-details-marker { display: none; }
.up .up-pm { color: var(--pink); font-weight: 800; font-size: 20px; transition: transform .25s; }
.up .up-faq details[open] .up-pm { transform: rotate(45deg); }
.up .up-a { padding: 0 2px 20px; font-size: 16.5px; color: var(--mut); max-width: 70ch; }

/* ── CTA section ──────────────────────────────────────────────────────── */
.up .up-cta-sec { text-align: left; }
.up .up-mail { margin-top: 22px; font-size: 15.5px; color: var(--on-dk-dim); }
.up .up-mail b { color: var(--on-dk); font-weight: 700; }

/* ── motion ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .up .up-btn, .up .up-pm { transition: none; }
}

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .up .up-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .up .up-sec { padding: 68px 0; }
  .up .up-hero { padding: 110px 0 72px; }
  .up .up-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .up-wrap { padding: 0 20px; }
  .up .up-steps { grid-template-columns: 1fr; }
  .up .up-ctas { flex-direction: column; align-items: stretch; }
  .up .up-btn { justify-content: center; }
}
