/* Apex Legacy Digital — shared styles */
:root {
  --navy: #0f2a4a;
  --navy-2: #173a63;
  --amber: #f59e0b;
  --amber-dark: #d97f06;
  --text: #1e293b;
  --muted: #475569;
  --bg: #ffffff;
  --bg-soft: #f2f7fc;
  --border: #cbd5e1;
  --max: 1080px;
  --radius: 10px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--amber); color: var(--navy); padding: 10px 16px;
  font-weight: 700; z-index: 100; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo {
  color: #fff; text-decoration: none; font-weight: 800;
  font-size: 1.15rem; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
}
.logo:hover { color: #fff; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--amber); color: var(--navy);
  display: inline-grid; place-items: center; font-weight: 900; font-size: 1rem;
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a.nav-link {
  color: #e2e8f0; text-decoration: none; font-size: .95rem; font-weight: 600;
  padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 6px;
}
.site-nav a.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a.nav-link[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font: 700 1rem/1.2 var(--font);
  border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.1rem; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  border-left: 4px solid var(--amber); padding-left: 10px; margin-bottom: 18px;
}
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.rule { width: 64px; height: 4px; background: var(--amber); border: 0; margin: 0 0 20px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
}
.hero-sub { font-size: 1.2rem; color: var(--text); max-width: 34em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 26px; }
.text-link {
  font-weight: 700; color: var(--navy); min-height: 44px;
  display: inline-flex; align-items: center;
}
.trust-strip {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: .9rem; color: var(--muted);
}
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none;
}

/* Brief mock card */
.brief {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(15,42,74,.35);
  overflow: hidden;
}
.brief-top {
  background: var(--navy); color: #fff; padding: 16px 22px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.brief-title { white-space: nowrap; font-weight: 800; letter-spacing: .14em; font-size: .9rem; }
.brief-date { font-size: .85rem; color: #cbd5e1; }
.brief-list { list-style: none; margin: 0; padding: 8px 22px; }
.brief-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #e2e8f0; font-size: .98rem; line-height: 1.45;
}
.brief-list li:last-child { border-bottom: 0; }
.tag {
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; align-self: start; margin-top: 2px; white-space: nowrap;
}
.tag-review { background: #fef3c7; color: #78350f; }
.tag-leak { background: #fee2e2; color: #7f1d1d; }
.tag-watch { background: #e0ecfa; color: var(--navy); }
.brief-foot {
  background: var(--bg-soft); padding: 12px 22px; font-size: .82rem; color: var(--muted);
  border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px;
}
.sample-label { white-space: nowrap; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.card-kicker {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.card-kicker { color: #9a5b00; } /* darker amber for text contrast */
.card p:last-child { margin-bottom: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .card { padding-top: 76px; height: 100%; }
.steps .card::before {
  content: counter(step);
  position: absolute; top: 24px; left: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--amber);
  display: grid; place-items: center; font-weight: 900; font-size: 1.1rem;
}

/* Checklist */
.checklist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px;
}
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--navy);
}
.checklist svg { flex: none; margin-top: 3px; }

/* Pricing */
.pricing { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--amber); box-shadow: 0 18px 40px -22px rgba(15,42,74,.45); }
.badge {
  position: absolute; top: -14px; left: 28px;
  background: var(--amber); color: var(--navy); font-weight: 800; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.price { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-from { font-size: 1rem; font-weight: 700; color: var(--muted); }
.price-note { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.price-card .desc { flex: 1; }
.price-card .btn { margin-top: 20px; width: 100%; }
.pricing-foot { margin-top: 32px; color: var(--muted); max-width: 760px; }

/* About teaser */
.about-teaser { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.photo-ph {
  aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #e6eef8 0 12px, #f2f7fc 12px 24px);
  border: 2px dashed var(--border);
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: .9rem; font-weight: 600; padding: 16px;
}

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; color: var(--navy); font-size: 1.1rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--amber-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; margin: 0; color: var(--text); }

/* CTA / form */
.cta-band { background: var(--navy); color: #e2e8f0; }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.cta-copy p { font-size: 1.1rem; }
.cta-band a.text-link { color: var(--amber); }
.cta-band a.text-link:hover { color: #fcd34d; }

.form-card {
  background: #fff; color: var(--text); border-radius: 14px; padding: 32px;
  border-top: 5px solid var(--amber);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #94a3b8; border-radius: 8px; background: #fff; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--navy);
}
.form-card .btn { width: 100%; margin-top: 22px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- About page ---------- */
.page-hero { padding: 72px 0 24px; }
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.bio p { font-size: 1.15rem; }
.how-list { list-style: none; margin: 0; padding: 0; }
.how-list .card h3 { margin-bottom: .3em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 48px 0 40px; font-size: .95rem; border-top: 3px solid var(--amber); }
.site-footer a { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--amber); }
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-bottom: 14px; }
.footer-brand { color: #fff; font-weight: 800; }
.footer-small { font-size: .85rem; color: #94a3b8; margin: 0; }
.todo { background: rgba(245,158,11,.18); color: inherit; padding: 0 4px; border-radius: 3px; font-family: ui-monospace, Menlo, monospace; font-size: .85em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .cta-grid { gap: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .site-nav .nav-link { display: none !important; }
  .logo { font-size: 1rem; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .grid-3, .checklist, .about-teaser, .cta-grid, .about-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .about-teaser .photo-ph, .about-grid .photo-ph,
  .about-teaser .founder-photo, .about-grid .founder-photo { max-width: 240px; }
  .hero-ctas .btn { width: 100%; }
  .checklist { gap: 0; }
  .form-card { padding: 24px 18px; }
  .price-card.featured { margin-top: 8px; }
}
@media (max-width: 380px) {
  .logo-text { display: none; }
}

/* spam-trap field, hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Privacy / text pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.muted-line { color: var(--muted); }
.form-note a { color: var(--navy); }

/* Founder photo */
.founder-photo {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  border-radius: var(--radius); border-bottom: 5px solid var(--amber);
  box-shadow: 0 18px 40px -22px rgba(15,42,74,.45); background: #b5654a;
}

/* Two-card pricing (Free Audit + Job Leak Monitor) */
@media (min-width: 761px) {
  .pricing-2 { grid-template-columns: 1fr 1.6fr; }
}
.incl { padding-left: 1.1em; margin: 0 0 16px; font-size: .97rem; }
.incl li { margin-bottom: .55em; }
.guarantee { margin-top: 28px; border-left: 5px solid var(--amber); }
.guarantee p { margin-bottom: 0; }
