/* =========================================================================
   AgentEdge storefront — design system
   Palette: portal-blue + navy + gold.  Type: Plus Jakarta Sans / DM Sans.
   Single low-specificity class layer; no over-qualified section selectors.
   ========================================================================= */

:root {
  /* brand */
  --portal-blue: #2563eb;
  --portal-blue-700: #1d4fd7;
  --portal-blue-050: #eaf1fe;
  --navy: #0b2440;
  --navy-700: #12386b;
  --gold: #e6a93b;
  --gold-700: #c98c1e;
  --gold-050: #fbefd3;

  /* neutrals */
  --ink: #0f2440;
  --muted: #52617a;
  --line: #dce5f2;
  --bg: #f4f7fb;
  --surface: #ffffff;

  /* type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(11, 36, 64, 0.22);
  --shadow-sm: 0 4px 14px -8px rgba(11, 36, 64, 0.25);
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.35);

  --container: 1120px;
  --transition: 180ms ease;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--portal-blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); font-weight: 700; }
ul { list-style: none; padding: 0; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tint { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--portal-blue-700); }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-top: 8px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- accessibility: skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; text-decoration: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  padding: 6px 14px; border-radius: 999px; line-height: 1;
}
.badge--new { background: var(--gold-050); color: #6b4e12; border: 1px solid #8b6914; }
.badge--soon { background: var(--navy); color: var(--gold); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 500; color: var(--muted);
  background: var(--portal-blue-050); padding: 5px 11px; border-radius: 999px;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--portal-blue); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: 999px; cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn:hover { background: var(--portal-blue-700); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); }
.btn--gold:hover { background: var(--gold-700); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line); }
.btn--ghost:hover { background: var(--surface); --btn-bd: var(--portal-blue); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 1.06rem; }

/* disabled "Coming soon" state — real listings sometimes show "Coming soon" */
.btn--soon, .btn[aria-disabled="true"] {
  background: #e9eef6; color: var(--muted); border-color: transparent;
  cursor: not-allowed; pointer-events: none;
}
.btn--soon:hover { transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.nav-links a:hover { background: var(--portal-blue-050); text-decoration: none; color: var(--portal-blue-700); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1100px 460px at 88% -8%, rgba(37, 99, 235, 0.10), transparent 60%),
  radial-gradient(680px 420px at 6% 0%, rgba(230, 169, 59, 0.10), transparent 55%); }
.hero .container { padding-block: clamp(54px, 9vw, 104px); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; max-width: 16ch; margin-top: 18px; }
.hero h1 .accent { color: var(--portal-blue-700); }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 56ch; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- listings grid ---------- */
.listing-grid { display: grid; gap: clamp(20px, 3vw, 28px); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.listing-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.listing-media { position: relative; aspect-ratio: 16 / 10; background: var(--portal-blue-050); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-status {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
}
.listing-body { display: flex; flex-direction: column; gap: 14px; padding: 22px; flex: 1; }
.listing-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.listing-top h3 { font-size: 1.22rem; font-weight: 700; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--navy); white-space: nowrap; }
.price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.listing-desc { color: var(--muted); font-size: .97rem; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs li { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--ink); font-weight: 500; }
.specs svg { width: 17px; height: 17px; color: var(--portal-blue); flex: none; }
.value-note { font-size: .92rem; color: var(--navy-700); background: var(--portal-blue-050); border-radius: var(--radius-sm); padding: 10px 13px; }
.listing-cta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.cta-hint { font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- bundle ---------- */
.bundle-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow);
  background-image: radial-gradient(700px 320px at 100% 0%, rgba(37, 99, 235, 0.35), transparent 60%);
}
.bundle-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bundle-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.bundle-card h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.bundle-card .bundle-sub { color: #b9cbe6; margin-top: 10px; }
.bundle-includes { display: grid; gap: 10px; margin: 22px 0; }
.bundle-includes li { display: flex; align-items: center; gap: 11px; color: #e8eefb; }
.bundle-includes .check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--portal-blue); flex: none; }
.bundle-includes .check svg { width: 14px; height: 14px; color: #fff; }
.bundle-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.bundle-price .now { font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; color: var(--gold); }
.bundle-price .was { color: #9db3d6; text-decoration: line-through; font-weight: 600; }
.bundle-price .save { background: var(--gold); color: var(--navy); font-weight: 700; font-size: .82rem; padding: 5px 11px; border-radius: 999px; }

/* ---------- steps / why ---------- */
.steps { display: grid; gap: clamp(18px, 3vw, 28px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--portal-blue-050); color: var(--portal-blue-700); font-family: var(--font-head); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); margin-top: 8px; font-size: .96rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 780px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--portal-blue); transition: transform var(--transition); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 0 18px; }

/* ---------- final cta ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px); text-align: center;
  background-image: radial-gradient(600px 300px at 50% 0%, rgba(37, 99, 235, 0.4), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.cta-band p { color: #b9cbe6; max-width: 52ch; margin: 14px auto 26px; }

/* ---------- footer ---------- */
.site-footer { background: #07182c; color: #c4d2e6; margin-top: 8px; }
.site-footer .container { padding-block: 52px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #c4d2e6; }
.site-footer a:hover { color: #fff; }
.footer-blurb { margin-top: 12px; max-width: 38ch; font-size: .93rem; color: #9db3d6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; color: #8aa0bf; }
.footer-legal { max-width: 70ch; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .bundle-card { grid-template-columns: 1fr; }
  .bundle-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; inset: 68px 12px auto 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); cursor: pointer; color: var(--navy);
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .listing-card:hover, .btn:hover { transform: none; }
}
