:root {
  --bg-obsidian: #060b14;
  --bg-dark: #0a1120;
  --border-dark: rgba(148, 163, 184, 0.16);
  --border-dark-strong: rgba(148, 163, 184, 0.28);
  --bg-page: #f4f6f9;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;
  --emerald: #047857;
  --emerald-dark: #065f46;
  --emerald-bright: #10b981;
  --cobalt: #1d4ed8;
  --cobalt-hover: #1e40af;
  --warn-bg: #f59e0b;
  --warn-fg: #050811;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 60px rgba(6, 11, 20, 0.28);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-sans); line-height: 1.5; color: var(--text-main); background: var(--bg-page); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--font-mono); }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 14px; } }

/* Header */
.site-header {
  background: rgba(6, 11, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 700;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 10px 0; }
.brand-link { display: inline-flex; align-items: center; }
.brand-link img { height: 36px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: #cbd5e1; font-size: 0.88rem; font-weight: 600; transition: color 0.15s; }
.site-nav a:hover { color: #ffffff; text-decoration: none; }
.nav-cta { background: var(--emerald-bright); color: #052e16 !important; font-weight: 800 !important; padding: 9px 16px; border-radius: 10px; white-space: nowrap; }
.nav-cta:hover { background: #34d399; }

@media (max-width: 860px) {
  .header-inner { min-height: 58px; padding: 8px 0; flex-wrap: nowrap; gap: 10px; }
  .brand-link img { height: 26px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 12px; font-size: 0.8rem; }
}

/* Full-bleed Twilight Hero */
.hero {
  background-color: var(--bg-obsidian);
  background-image:
    linear-gradient(95deg, rgba(6, 11, 20, 0.93) 0%, rgba(6, 11, 20, 0.8) 52%, rgba(6, 11, 20, 0.45) 100%),
    linear-gradient(180deg, rgba(6, 11, 20, 0.35) 0%, rgba(6, 11, 20, 0.9) 100%),
    url("/assets/hero-permian.jpg?v=1");
  background-size: cover;
  background-position: center 42%;
  color: var(--text-on-dark);
  padding: 58px 0 50px;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 760px) {
  .hero { padding: 30px 0 34px; }
  .hero h1 { font-size: 1.88rem !important; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(15, 23, 42, 0.78); border: 1px solid rgba(148, 163, 184, 0.26);
  color: #f1f5f9; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25); }
.hero h1 { margin: 0 0 14px; font-size: clamp(2.05rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; max-width: 860px; }
.hero-sub { margin: 0 0 26px; color: #dbe4f0; font-size: 1.05rem; line-height: 1.55; max-width: 740px; }

/* Embedded PermianLands Pre-Screen Bar */
.prescreen-box {
  background: rgba(10, 17, 32, 0.86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 16px;
  max-width: 960px;
  box-shadow: var(--shadow-lg);
}
.prescreen-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 0.82rem; color: #cbd5e1; }
.prescreen-label strong { color: #10b981; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-input {
  flex: 1 1 340px; min-height: 50px; padding: 0 16px; border-radius: 11px;
  border: 1px solid #cbd5e1; background: #ffffff; color: var(--text-main);
  font-family: var(--font-sans); font-size: 0.96rem; font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 22px; border-radius: 11px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.14s ease;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--emerald-bright); color: #052e16; box-shadow: 0 4px 16px rgba(16, 185, 129, 0.28); }
.btn-primary:hover { background: #34d399; }
.btn-solid-emerald { background: var(--emerald); color: #ffffff; }
.btn-solid-emerald:hover { background: var(--emerald-dark); }
.btn-cobalt { background: var(--cobalt); color: #ffffff; }
.btn-cobalt:hover { background: var(--cobalt-hover); }
.btn-outline { background: #ffffff; color: var(--text-main); border-color: #cbd5e1; }
.btn-outline:hover { background: #f1f5f9; }
.btn-dark-outline { background: rgba(255, 255, 255, 0.07); color: #f8fafc; border-color: rgba(148, 163, 184, 0.35); }
.btn-dark-outline:hover { background: rgba(255, 255, 255, 0.14); }
@media (max-width: 640px) { .search-form .btn { width: 100%; } }

/* Bands & Sections */
.band { padding: 56px 0; }
.band-white { background: #ffffff; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.band-dark { background: #070d18; color: #f8fafc; border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
.kicker { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald); margin-bottom: 8px; }
.band-dark .kicker { color: #34d399; }
.section-title { margin: 0 0 10px; font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; }
.section-lead { margin: 0 0 28px; color: var(--text-muted); font-size: 1rem; max-width: 740px; }
.band-dark .section-lead { color: #cbd5e1; }

/* Corridor Filter Pills */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-pill {
  background: #ffffff; color: var(--text-main); border: 1px solid #cbd5e1;
  border-radius: 999px; padding: 8px 15px; font-family: var(--font-sans);
  font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: all 0.14s ease;
}
.filter-pill:hover { border-color: #0f172a; }
.filter-pill.active { background: #0b1220; color: #ffffff; border-color: #0b1220; }

/* Cards & Grids */
.agency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1040px) { .agency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .agency-grid { grid-template-columns: 1fr; } }

.agency-card {
  background: #ffffff; border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.agency-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.agency-card.featured { border: 2px solid var(--emerald-bright); background: #f0fdf4; }

.corridor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .corridor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .corridor-grid { grid-template-columns: 1fr; } }

.corridor-card {
  display: block; background: #ffffff; border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 20px; color: var(--text-main); box-shadow: var(--shadow-sm); transition: all 0.14s ease;
}
.corridor-card:hover { text-decoration: none; border-color: var(--emerald); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Badges — Strictly WCAG AA+ Contrast (NEVER Green on Amber!) */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 0.71rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.badge-emerald { background: #065f46; color: #ffffff; }
.badge-amber { background: var(--warn-bg); color: var(--warn-fg); }
.badge-dark { background: #0f172a; color: #f8fafc; }
.badge-neutral { background: #e2e8f0; color: #0f172a; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: #f1f5f9; color: #334155; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; }

/* Lead Capture & Broker Forms */
.split-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; }
@media (max-width: 940px) { .split-grid { grid-template-columns: 1fr; } }

.form-card { background: #ffffff; border: 1px solid var(--border-light); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; color: #1e293b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid #cbd5e1;
  background: #ffffff; color: var(--text-main); font-family: var(--font-sans); font-size: 0.92rem;
}
.field textarea { min-height: 84px; resize: vertical; }

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: #ffffff; border: 1px solid var(--border-light); border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; box-shadow: var(--shadow-sm);
}
.price-card.featured { background: #09111f; color: #f8fafc; border: 2px solid var(--emerald-bright); box-shadow: var(--shadow-lg); }
.price-tag { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0; }
.price-tag span { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.price-card.featured .price-tag span { color: #94a3b8; }
.price-list { list-style: none; padding: 0; margin: 14px 0 0; font-size: 0.87rem; color: var(--text-muted); }
.price-card.featured .price-list { color: #cbd5e1; }
.price-list li { padding: 6px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.price-list li:last-child { border-bottom: none; }

.alert { padding: 12px 16px; border-radius: 11px; font-size: 0.9rem; font-weight: 600; margin-top: 12px; }
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Footer */
.site-footer { margin-top: auto; background: var(--bg-obsidian); color: var(--text-on-dark-muted); padding: 46px 0; font-size: 0.87rem; border-top: 1px solid var(--border-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 12px; color: #ffffff; font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #cbd5e1; }
.disclaimer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border-dark); font-size: 0.78rem; color: #94a3b8; line-height: 1.6; }

/* Native Required-Email Checkout Dialog */
dialog.checkout-modal { padding: 0; border: none; border-radius: 18px; background: transparent; max-width: 500px; width: calc(100% - 28px); box-shadow: 0 24px 64px rgba(6, 11, 20, 0.55); }
dialog.checkout-modal::backdrop { background: rgba(6, 11, 20, 0.72); backdrop-filter: blur(6px); }
.checkout-modal-card { background: #ffffff; border: 1px solid var(--border-light); border-radius: 18px; padding: 24px; color: var(--text-main); }
.checkout-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-close-btn { background: #f1f5f9; color: #0f172a; border: 1px solid #cbd5e1; border-radius: 8px; width: 32px; height: 32px; font-size: 1.25rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.checkout-summary-box { background: #f8fafc; border: 1px solid var(--border-light); border-radius: 11px; padding: 11px 14px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.checkout-summary-box strong { color: var(--text-main); display: block; margin-bottom: 2px; }
.checkout-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
