/* ==========================================================================
   LIFE LIFTED — design system
   Palette anchored on Scott's navy heading system; warm off-white paper;
   sky accent for interactivity; sun accent for gamification/reward.
   Fonts: Fraunces (serif display) + Inter Tight (sans) + JetBrains Mono (meta)
   ========================================================================== */

:root {
  /* Ink / core */
  --ink:        #0F1B33;   /* body ink */
  --ink-2:      #253253;
  --ink-dim:    #5A6480;
  --ink-faint:  #92A0BE;
  --ink-line:   #DDE4F2;
  --ink-line-2: #EDF1FA;

  /* Paper */
  --paper:      #FBFAF6;   /* warm off-white */
  --paper-2:    #F4F1E8;   /* toolkit grey-cream */
  --paper-3:    #E9E4D3;   /* deeper cream for accent bands */

  /* LIFE LIFTED BRAND */
  --lift:       #1F3A6B;   /* signature navy (Scott's PDF headings) */
  --lift-2:     #2C528F;   /* medium navy for hover */
  --lift-soft:  #E4EBF7;   /* wash */
  --sky:        #3B82C4;   /* sky-blue accent (rule under headings in his PDF) */

  --sun:        #F6B341;   /* warm gold — rewards, badges, progress */
  --sun-soft:   #FCE7B8;

  --leaf:       #4C9F70;   /* successful outcomes */
  --leaf-soft:  #D8ECDF;
  --flame:      #E15A47;   /* warm red for "watch out for" */
  --flame-soft: #FADAD4;

  /* Type stacks */
  --f-serif: 'Fraunces', 'Georgia', serif;
  --f-sans:  'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:  'JetBrains Mono', 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 40px; }
.wrap-medium { max-width: 960px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) {
  .wrap, .wrap-narrow, .wrap-medium { padding: 0 22px; }
}

/* Type */
h1, h2, h3, h4 { font-family: var(--f-sans); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.08; }
h3 { font-size: 1.25rem; line-height: 1.2; }
p  { margin: 0 0 1em; color: var(--ink-2); }
a  { color: var(--lift); text-decoration: none; }
a:hover { color: var(--sky); }

.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.chapter, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--lift); font-weight: 700;
  margin-bottom: 18px;
}
.chapter::before {
  content: ''; display: inline-block;
  width: 26px; height: 2px; background: var(--sky);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  background: var(--lift); color: var(--paper);
  font-family: var(--f-sans); font-weight: 800; font-size: 0.98rem; letter-spacing: -0.01em;
  border: 2px solid var(--lift);
  border-radius: 100px;
  text-decoration: none; cursor: pointer;
  transition: all 0.16s ease;
}
.btn:hover { background: var(--lift-2); border-color: var(--lift-2); color: var(--paper); transform: translateY(-1px); }
.btn.btn-ghost { background: transparent; color: var(--lift); }
.btn.btn-ghost:hover { background: var(--lift-soft); color: var(--lift); }
.btn.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn.btn-sun:hover { background: #E5A32E; border-color: #E5A32E; color: var(--ink); }
.btn.btn-lg { padding: 20px 34px; font-size: 1.1rem; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,250,246,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; max-width: 1360px; margin: 0 auto; }
@media (max-width: 720px) { .nav-inner { padding: 14px 22px; } }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--f-sans); font-weight: 900; letter-spacing: -0.02em;
  font-size: 1.1rem;
}
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lift); position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand .brand-mark::after {
  content: ''; position: absolute; inset: 6px;
  border-radius: 50%; border: 2px solid var(--sun);
  border-top-color: transparent; border-right-color: transparent;
  transform: rotate(-25deg);
}
.brand strong { color: var(--lift); font-weight: 900; }
.brand em { color: var(--sky); font-style: normal; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-family: var(--f-sans); font-size: 0.93rem; font-weight: 700;
  color: var(--ink-2); text-decoration: none; letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--lift); }
/* Force white on the primary nav CTA to override .nav-links a color inheritance */
.nav-links a.btn { color: var(--paper) !important; padding: 11px 20px; font-size: 0.86rem; }
.nav-links a.btn:hover { color: var(--paper) !important; }
.nav-links a.btn.btn-ghost { color: var(--lift) !important; }
@media (max-width: 960px) { .nav-links a:not(.btn) { display: none; } }

/* HERO */
.hero {
  padding: 80px 0 60px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, var(--paper-2) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 34px; } }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--sun-soft); color: var(--lift);
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; border-radius: 100px; margin-bottom: 22px;
}
.hero .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.hero h1 { color: var(--ink); }
.hero h1 .lift { color: var(--lift); }
.hero h1 .sky { color: var(--sky); }
.hero .sub { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin: 20px 0 32px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta .fine { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* Role picker mini-widget in hero */
.role-picker {
  background: #fff; border: 1px solid var(--ink-line); border-radius: 18px;
  padding: 26px 28px; box-shadow: 0 24px 60px -30px rgba(31,58,107,0.28);
}
.role-picker h3 {
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--lift); margin: 0 0 14px;
}
.role-picker .roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.role-picker .role {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 16px; border: 2px solid var(--ink-line); background: var(--paper);
  border-radius: 12px; cursor: pointer; text-decoration: none;
  transition: all 0.15s ease;
}
.role-picker .role:hover { border-color: var(--lift); transform: translateY(-2px); }
.role-picker .role .icon { font-size: 22px; }
.role-picker .role .label { font-weight: 800; color: var(--ink); font-size: 0.98rem; }
.role-picker .role .lead { font-size: 0.8rem; color: var(--ink-dim); }

/* Section */
.section { padding: 80px 0; }
.section.soft { background: var(--paper-2); }
.section.cream { background: var(--paper-3); }
.section.dark { background: var(--lift); color: var(--paper); }
.section.dark h2, .section.dark h3 { color: var(--paper); }
.section.dark p { color: rgba(255,255,255,0.86); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head .chapter { color: var(--sky); }
.section.dark .section-head .chapter { color: var(--sun); }
.section.dark .section-head .chapter::before { background: var(--sun); }
.section-head h2 { color: var(--ink); }
.section.dark .section-head h2 { color: var(--paper); }
.section-head p.lead { font-size: 1.1rem; color: var(--ink-dim); line-height: 1.55; }
.section.dark .section-head p.lead { color: rgba(255,255,255,0.75); }

/* EF skill cards (Task Initiation, Planning, etc.) */
.ef-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 900px) { .ef-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ef-grid { grid-template-columns: 1fr; } }
.ef-card {
  background: #fff; border: 1px solid var(--ink-line);
  border-radius: 16px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--ink);
  transition: all 0.18s ease;
  position: relative; overflow: hidden;
}
.ef-card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 4px; width: 100%;
  background: var(--sky);
}
.ef-card:hover { transform: translateY(-3px); border-color: var(--lift); box-shadow: 0 22px 40px -30px rgba(31,58,107,0.35); }
.ef-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--lift-soft); color: var(--lift);
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 800;
}
.ef-card h3 { font-size: 1.08rem; margin: 4px 0 2px; color: var(--ink); }
.ef-card .kw { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lift); font-weight: 700; margin-bottom: 6px; }
.ef-card p { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.5; margin: 0; }
.ef-card .cta {
  margin-top: auto; padding-top: 12px;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lift); font-weight: 800;
}

/* Tool tile (Friction Finder, Pathway Builder, etc.) */
.tools-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
@media (max-width: 820px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
  background: #fff; border: 1px solid var(--ink-line);
  border-radius: 22px; padding: 30px 30px 28px;
  text-decoration: none; color: var(--ink);
  transition: all 0.18s ease; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; min-height: 240px;
}
.tool-card::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at center, var(--sun-soft) 0%, transparent 70%);
  opacity: 0.5; pointer-events: none;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--lift); box-shadow: 0 30px 60px -30px rgba(31,58,107,0.32); }
.tool-card .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--lift-soft); color: var(--lift);
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  border-radius: 100px; align-self: flex-start;
}
.tool-card .tag.new { background: var(--sun-soft); color: var(--flame); }
.tool-card h3 { font-size: 1.55rem; font-weight: 900; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.tool-card p { font-size: 0.98rem; color: var(--ink-dim); line-height: 1.55; margin: 0; }
.tool-card .cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lift); font-weight: 800;
}

/* Marquee tagline */
.marquee {
  overflow: hidden; padding: 22px 0; background: var(--lift); color: var(--paper);
}
.marquee-row {
  display: flex; gap: 40px; white-space: nowrap; animation: mrq 28s linear infinite;
  font-family: var(--f-sans); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em;
  text-transform: uppercase;
}
.marquee-row .dot { color: var(--sun); }
.marquee-row .serif { font-weight: 400; color: var(--sun); text-transform: none; font-size: 1.2rem; }
@keyframes mrq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Framework diagram (5-step response) */
.framework-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  padding: 26px; background: #fff; border: 1px solid var(--ink-line);
  border-radius: 20px;
}
@media (max-width: 820px) { .framework-strip { grid-template-columns: repeat(2, 1fr); } }
.framework-strip .step { padding: 20px 16px; border: 1px dashed var(--ink-line-2); border-radius: 14px; }
.framework-strip .step .n { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--sky); font-weight: 800; text-transform: uppercase; }
.framework-strip .step h4 { font-size: 1.02rem; margin: 6px 0 4px; letter-spacing: -0.02em; }
.framework-strip .step p { font-size: 0.82rem; color: var(--ink-dim); line-height: 1.45; margin: 0; }

/* Testimonial / quote */
.q-band {
  padding: 60px 0; background: var(--paper-2);
}
.q-band blockquote {
  font-family: var(--f-serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.3;
  color: var(--ink); margin: 0; max-width: 780px;
}
.q-band .attr { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; margin-top: 24px; }

/* Footer */
.footer {
  background: var(--ink); color: var(--paper);
  padding: 70px 0 34px;
}
.footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: rgba(255,255,255,0.72); font-size: 0.9rem; line-height: 1.55; max-width: 34ch; margin-top: 12px; }
.footer-col h4 { color: var(--paper); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; font-family: var(--f-mono); font-weight: 800; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Utility — content blocks used across content pages */
.callout {
  background: var(--paper-2); border-left: 4px solid var(--sky);
  padding: 22px 28px; border-radius: 6px; margin: 24px 0;
}
.callout.watch { border-left-color: var(--flame); background: var(--flame-soft); }
.callout.try   { border-left-color: var(--leaf); background: var(--leaf-soft); }
.callout.say   { border-left-color: var(--sky); background: var(--lift-soft); }
.callout.try-one   { border-left-color: var(--sun); background: var(--sun-soft); }
.callout h4 { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.callout p { margin: 0 0 8px; color: var(--ink-2); }
.callout p:last-child { margin: 0; }
.callout ul { margin: 6px 0 0 20px; padding: 0; color: var(--ink-2); }
.callout li { margin-bottom: 6px; }

/* Progress + badges (gamification) */
.progress {
  height: 10px; background: var(--paper-2); border-radius: 100px; overflow: hidden;
}
.progress > div { height: 100%; background: linear-gradient(90deg, var(--sun) 0%, var(--sky) 100%); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--sun-soft); color: var(--flame);
  border-radius: 100px; font-family: var(--f-mono);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800;
}
.badge.leaf { background: var(--leaf-soft); color: var(--leaf); }
.badge.sky  { background: var(--lift-soft); color: var(--lift); }
