/* ==========================================================================
   The Agent That Builds Agents -- Landing Page Styles
   Brand: The Affluent Affect
   Palette: Linen #f9f7f3 | Dark Navy #011a2d | Prussian Blue #064769 | Accent Blue #b8e8fd
   ========================================================================== */

:root {
  --linen: #f9f7f3;
  --navy: #011a2d;
  --prussian: #064769;
  --accent: #b8e8fd;

  --font-title: 'EB Garamond', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --maxw-narrow: 720px;
  --maxw-wide: 1200px;

  --rhythm: 128px;
  --rhythm-mobile: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

em { font-style: italic; }

.reg { font-size: 0.55em; vertical-align: super; letter-spacing: 0; }

/* ---------- CONTAINERS ---------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--maxw-narrow); }
.container.wide { max-width: var(--maxw-wide); }

/* ---------- TOP NAV ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 243, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.topnav.scrolled {
  border-bottom-color: rgba(6, 71, 105, 0.12);
  box-shadow: 0 1px 0 rgba(1, 26, 45, 0.04);
}
.nav-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 20px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--prussian); }
.nav-cta {
  background: var(--accent);
  color: var(--navy) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: #a4dffb; }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: var(--font-title); font-weight: 500; color: var(--navy); line-height: 1.15; margin: 0 0 24px; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 500; }
h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 28px; }
h3 { font-size: clamp(22px, 2.4vw, 26px); font-weight: 500; }

p { margin: 0 0 20px; }

/* ---------- HERO ---------- */
.hero {
  padding: 96px 0 88px;
  text-align: center;
}
.hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero .sub {
  font-size: 20px;
  line-height: 1.55;
  max-width: 40rem;
  margin: 0 auto 36px;
  color: #0c2a3e;
}
.hero .trustline {
  font-size: 15px;
  color: #3a5566;
  max-width: 44rem;
  margin: 28px auto 0;
  line-height: 1.55;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--rhythm) 0;
}
.section-alt {
  background: #f3f0ea;
}
.section h2 { margin-bottom: 32px; }

.emphasis {
  font-family: var(--font-title);
  font-size: 24px;
  font-style: italic;
  color: var(--prussian);
  margin-top: 12px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.clean-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 1px;
  background: var(--prussian);
}
.not-list li::before { background: #b3a; background: var(--navy); opacity: 0.5; }

/* ---------- STEPS (ordered) ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  margin-bottom: 20px;
  line-height: 1.6;
  min-height: 36px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--prussian);
  color: var(--linen);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- WALK AWAY ---------- */
.walkaway-item {
  padding: 24px 0;
  border-top: 1px solid rgba(6, 71, 105, 0.15);
}
.walkaway-item:first-of-type { border-top: none; padding-top: 8px; }
.walkaway-item h3 { margin-bottom: 10px; }
.walkaway-item p { margin-bottom: 0; }

/* ---------- FOR / NOT FOR GRID ---------- */
.for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.for-col h3 { margin-bottom: 16px; }
@media (max-width: 720px) {
  .for-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- PULLQUOTE ---------- */
.pullquote {
  margin: 40px 0 0;
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--prussian);
  color: var(--navy);
}
.pullquote p {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-size: 15px;
  color: #3a5566;
  letter-spacing: 0.01em;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(1, 26, 45, 0.08);
}
.btn-primary:hover { background: #a4dffb; color: var(--navy); transform: translateY(-1px); }

.btn-accent {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(1, 26, 45, 0.12);
}
.btn-accent:hover { background: #a4dffb; color: var(--navy); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--prussian);
}
.btn-secondary:hover { background: var(--prussian); color: var(--linen); }

.btn-large { padding: 20px 36px; font-size: 17px; }

/* ---------- PATHS ---------- */
.section-paths {
  background: var(--linen);
  padding: var(--rhythm) 0;
}
.centered { text-align: center; }
.lead { max-width: 44rem; margin: 0 auto 56px; font-size: 19px; color: #0c2a3e; }
.footnote { margin-top: 40px; color: #3a5566; font-style: italic; }

.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .paths-grid { grid-template-columns: 1fr; gap: 20px; }
}

.path-card {
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.path-card-plain {
  background: var(--linen);
  color: var(--navy);
  border: 1px solid var(--prussian);
}

.path-card-featured {
  background: var(--prussian);
  color: var(--linen);
  box-shadow: 0 16px 48px rgba(1, 26, 45, 0.22);
  transform: translateY(-12px);
  border: 1px solid var(--prussian);
}
@media (max-width: 900px) {
  .path-card-featured { transform: none; }
}

.path-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}
.path-card-featured .path-label { color: var(--accent); opacity: 1; }

.path-title {
  font-family: var(--font-title);
  color: inherit;
  margin-bottom: 20px;
}
.path-card-featured .path-title { color: var(--linen); }

.path-price {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 20px;
  color: inherit;
}
.path-price-big { font-size: 56px; }

.path-body {
  flex: 1 1 auto;
  margin-bottom: 28px;
  line-height: 1.6;
}
.path-card-featured .path-body { color: #e6f5fe; }

.path-card .btn { align-self: flex-start; }
.path-card-featured .btn-accent { align-self: flex-start; }
.path-card-featured .btn-secondary { color: var(--linen); border-color: var(--accent); }

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: var(--prussian);
  color: var(--linen);
  padding: 104px 0;
  text-align: center;
}
.final-cta p { font-size: 19px; line-height: 1.6; color: #e6f5fe; max-width: 44rem; margin-left: auto; margin-right: auto; }
.final-cta .btn-accent { margin-top: 24px; }
.final-cta .alt-cta {
  margin-top: 28px;
  font-size: 15px;
  color: #bcd6e3;
}
.final-cta .alt-cta a { color: var(--accent); }
.final-cta .alt-cta a:hover { color: var(--linen); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: #bcd6e3;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}
.footer p { margin: 0; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */
@media (max-width: 768px) {
  body { font-size: 17px; }
  .section { padding: var(--rhythm-mobile) 0; }
  .final-cta { padding: 72px 0; }
  .hero { padding: 64px 0 64px; }
  .section-paths { padding: var(--rhythm-mobile) 0; }
  .path-card { padding: 28px 24px; }
  .pullquote p { font-size: 20px; }
}

@media (max-width: 375px) {
  .container { padding: 0 20px; }
  .btn { padding: 14px 22px; font-size: 15px; }
}
