@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy: #0a1c2e;
  --white: #ffffff;
  --bg-subtle: #f6f7fa;
  --bg-active: #daedf9;
  --green: #8abc00;
  --green-tint: rgba(138, 188, 0, 0.10);
  --blue: #006dd0;
  --muted: #68768d;
  --muted-light: #939aa6;
  --border: #e1e6ef;
  --red-tint: rgba(233, 0, 0, 0.05);
  --shadow-card: rgba(0, 0, 0, 0.08) 0px 4px 20px 0px;
  --shadow-soft: rgba(0, 0, 0, 0.08) 0px 4px 12px 0px;
  --shadow-menu: rgba(7, 31, 49, 0.15) 0px 4px 6px 0px;
  --radius-card: 8px;
  --radius-media: 16px;
  --radius-pill: 37px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: proxima-nova, Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.45;
  font-size: 20px;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(225, 230, 239, 0.82);
}
.nav-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 24px;
  max-width: 1248px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: proxima-soft, Nunito, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 34%, #ffffff 0 12%, transparent 13%),
    var(--green);
  box-shadow: var(--shadow-soft);
}
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: var(--navy);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 4px;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg-active); color: var(--navy); }

.hero {
  padding: 100px 0 48px;
  background-image: linear-gradient(144.82deg, rgba(138, 188, 0, 0) 54.16%, rgba(138, 188, 0, 0.20) 115.17%);
}
.page-title { padding: 82px 0 24px; }
.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: var(--green-tint);
  color: var(--green);
  border-radius: var(--radius-pill);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-family: proxima-soft, Nunito, system-ui, sans-serif;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.028em;
}
h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.12; font-weight: 800; max-width: 1040px; }
h2 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.125; font-weight: 800; margin-bottom: 20px; }
h3 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.12; font-weight: 800; margin-bottom: 12px; }
h4 { font-size: 22px; line-height: 1.2; font-weight: 800; margin: 28px 0 10px; }
p.lede { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.35; color: var(--muted); max-width: 900px; margin: 24px 0 0; }
p { color: var(--muted); }
strong { color: var(--green); font-weight: 800; }

.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  border: 1px solid var(--border);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn.primary { color: var(--white); background: var(--green); border-color: var(--green); }
.btn.secondary { color: var(--white); background: var(--blue); border-color: var(--blue); }

section { padding: 72px 0; }
section:nth-of-type(even) { background: var(--white); }
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.section-head p { max-width: 640px; color: var(--muted); margin: 0; font-size: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card.soft { box-shadow: none; background: var(--bg-subtle); }
.card.highlight {
  background: linear-gradient(144.82deg, rgba(255,255,255,1) 45%, rgba(138,188,0,.12) 120%);
  border-color: rgba(138, 188, 0, 0.28);
}
.muted, .small { color: var(--muted); }
.small { font-size: 16px; line-height: 1.45; }
.badge {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--green-tint);
  color: var(--green);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}
.quote {
  font-family: proxima-soft, Nunito, system-ui, sans-serif;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--navy);
  font-weight: 800;
}
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 24px; }
.step { min-height: 184px; }
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}
ul.clean { padding-left: 22px; color: var(--muted); }
ul.clean li { margin: 8px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-media);
  border: 1px solid var(--border);
  margin: 22px 0;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
th, td { text-align: left; padding: 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--navy); background: var(--bg-subtle); font-size: 14px; font-weight: 900; }
td { color: var(--muted); font-size: 16px; }

.subnav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.subnav a {
  color: var(--green);
  background: var(--green-tint);
  border-radius: var(--radius-pill);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
}
.artifact-list a { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.artifact-list strong { color: var(--navy); }

.doc { max-width: 980px; }
.doc h1 { font-size: clamp(40px, 5vw, 64px); margin: 18px 0; }
.doc h2 { font-size: clamp(32px, 4vw, 48px); margin: 54px 0 18px; }
.doc h3 { font-size: clamp(24px, 2.7vw, 32px); margin: 38px 0 12px; }
.doc h4 { color: var(--navy); }
.doc p, .doc li { color: var(--muted); font-size: 18px; line-height: 1.55; }
.doc blockquote {
  margin: 20px 0;
  padding: 22px 24px;
  border-left: 6px solid var(--green);
  background: var(--green-tint);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.doc blockquote p { color: var(--navy); font-size: 22px; line-height: 1.35; font-weight: 800; margin: 0; }
.doc pre { white-space: pre-wrap; background: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius-media); padding: 18px; overflow: auto; color: var(--white); font-size: 15px; }
.doc code { background: var(--bg-subtle); color: var(--navy); padding: 2px 6px; border-radius: 6px; }
.doc pre code { background: transparent; color: inherit; padding: 0; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.doc table { font-size: 15px; }
.toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; box-shadow: var(--shadow-soft); }
.toc a { display: block; color: var(--muted); font-size: 14px; line-height: 1.25; padding: 8px 0; border-bottom: 1px solid var(--border); }
.toc a:hover { color: var(--green); }
.split-doc { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.footer { padding: 70px 0 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; margin-top: 48px; background: var(--white); }

@media (max-width: 1000px) {
  body { font-size: 18px; }
  .split-doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .grid.two, .grid.three, .grid.four, .workflow { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .nav-inner { align-items: flex-start; flex-direction: column; height: auto; padding: 16px 24px; }
  .hero { padding-top: 64px; }
  section { padding: 52px 0; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  h1 { font-size: 42px; }
  .card { padding: 22px; }
  .nav-links a { font-size: 14px; padding: 9px 8px; }
}

/* Crazy Egg Behavioral Strategy Report System - executive polish layer */
body {
  background:
    radial-gradient(circle at 82% -10%, rgba(138,188,0,.14), transparent 34rem),
    linear-gradient(180deg, #fff 0%, var(--bg-subtle) 620px, #fff 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(10,28,46,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(10,28,46,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 760px);
  z-index: -1;
}
.nav { box-shadow: rgba(7,31,49,.04) 0 1px 0; }
.nav-inner { min-height: 76px; }
.hero, .page-title {
  position: relative;
  padding-top: 86px;
  padding-bottom: 42px;
  background-image: none;
}
.hero h1, .page-title h1 { max-width: 900px; font-size: clamp(44px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.045em; }
.hero h1 .mark, .page-title h1 .mark {
  color: var(--navy);
  background: linear-gradient(180deg, transparent 61%, rgba(138,188,0,.26) 0);
  padding: 0 .04em;
}
p.lede { max-width: 760px; font-size: clamp(20px, 1.8vw, 25px); }
.card {
  border-radius: 16px;
  box-shadow: rgba(7,31,49,.075) 0 8px 24px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  position: relative;
}
.card:hover { box-shadow: rgba(7,31,49,.11) 0 18px 44px; border-color: rgba(138,188,0,.22); }
.card.highlight { border-color: rgba(138,188,0,.28); background: linear-gradient(144.82deg, #fff 45%, rgba(138,188,0,.11) 120%); }
.kicker, .eyebrow, .badge { color: #6f9900; border: 1px solid rgba(138,188,0,.16); background: rgba(138,188,0,.08); }
.quote { font-size: clamp(30px, 3.1vw, 46px); }
.workflow { gap: 12px; }
.step { min-height: 170px; box-shadow: none; }
.step-num { width: 30px; height: 30px; box-shadow: none; border-radius: 7px; font-size: 14px; }
.toc { border-radius: 16px; box-shadow: rgba(7,31,49,.075) 0 8px 24px; }
.toc a { padding: 9px 0; font-weight: 700; }
.doc.card { padding: clamp(28px, 4vw, 54px); }
.doc blockquote { border-left-color: var(--green); background: rgba(138,188,0,.08); }
.doc blockquote p { font-size: clamp(20px, 2vw, 28px); }

.strategy-shell { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.strategy-sidebar { position: sticky; top: 104px; padding: 16px 14px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.84); box-shadow: rgba(7,31,49,.06) 0 6px 18px; backdrop-filter: blur(14px); }
.strategy-sidebar .eyebrow { margin-bottom: 12px; }
.strategy-sidebar a { display: block; color: var(--muted); font-size: 14px; line-height: 1.25; font-weight: 800; padding: 9px 10px; border-radius: 10px; }
.strategy-sidebar a:hover { color: var(--navy); background: var(--bg-subtle); }
.strategy-main { min-width: 0; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 12px 0 26px; }
.metric-card { min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card::after { content: ''; width: 38px; height: 4px; border-radius: 999px; background: var(--green); opacity: .86; }
.hero-report {
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(144.82deg, rgba(138,188,0,0) 58%, rgba(138,188,0,.11) 120%), #fff;
  box-shadow: rgba(7,31,49,.14) 0 26px 70px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 34px; align-items: start; }
.frame-card { border: 1px solid var(--border); border-top: 4px solid var(--green); border-radius: 18px; padding: 22px; background: rgba(255,255,255,.78); }
.frame-card strong { color: var(--navy); }
.insight-card { border-left: 4px solid var(--green); border-radius: 16px; padding: 22px; background: #fff; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dark-line { background: var(--navy); color: #fff; border-radius: 16px; padding: 24px; box-shadow: rgba(7,31,49,.16) 0 16px 40px; position: relative; overflow: hidden; }
.dark-line::after { content: '“'; position: absolute; right: 20px; top: -26px; font: 900 96px/1 proxima-soft, Nunito, sans-serif; color: rgba(138,188,0,.18); }
.dark-line p, .dark-line h3 { color: #fff; }
.dark-line .muted { color: rgba(255,255,255,.68); }
.journey-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.journey-step { position: relative; padding: 18px 16px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.82); }
.journey-step:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 34px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--muted-light); border: 1px solid var(--border); font-size: 14px; font-weight: 900; z-index: 2; }
.journey-step h3 { font-size: 20px; }
.comparison-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.comparison-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: #fff; }
.comparison-card.ce { border-color: rgba(138,188,0,.34); background: linear-gradient(144.82deg, #fff 50%, rgba(138,188,0,.11) 125%); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.proof-card { border: 1px solid var(--border); border-radius: 16px; padding: 22px; background: #fff; }
.proof-card.green { border-color: rgba(138,188,0,.28); background: rgba(138,188,0,.06); }
.proof-card.yellow { border-color: rgba(183,121,31,.25); background: #fff7e6; }
.proof-card.red { border-color: rgba(194,65,12,.18); background: #fff3ed; }
.visual-panel { border: 1px solid var(--border); border-radius: 18px; background: var(--bg-subtle); padding: 24px; }
.visual-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.visual-row:last-child { border-bottom: 0; }
.visual-row strong { color: var(--navy); }

@media (max-width: 1000px) {
  .strategy-shell, .hero-grid { grid-template-columns: 1fr; }
  .strategy-sidebar { position: static; }
  .metric-strip, .journey-map, .comparison-grid, .proof-grid { grid-template-columns: 1fr; }
  .journey-step::after { display: none !important; }
}
@media (max-width: 520px) {
  .visual-row { grid-template-columns: 1fr; gap: 6px; }
  .hero-report { padding: 24px; }
  .frame-card, .insight-card, .dark-line, .visual-panel { padding: 18px; }
}
.split-doc > *, .doc, .toc, .card { min-width: 0; max-width: 100%; }
.doc, .toc { overflow-wrap: anywhere; }
.doc table { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 1000px) {
  .split-doc { width: 100%; overflow: hidden; }
  .toc a { width: 100%; }
}

/* Autoresearch typography + usability pass - 2026-05-10
   Targets: calmer executive type scale, shorter mobile nav, 40px+ tap targets. */
:root {
  --type-h1-max: 56px;
  --type-h2-max: 38px;
  --type-h3-max: 26px;
  --type-body: 18px;
  --type-doc-body: 17px;
}
body { font-size: var(--type-body); }
.hero h1,
.page-title h1,
h1,
.doc h1,
.hero-report h1,
#decision h1 {
  font-size: clamp(36px, 4.1vw, var(--type-h1-max)) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.04em !important;
  font-weight: 800 !important;
  max-width: 820px;
}
h2,
.doc h2,
.card h2,
.section-head h2,
#overview .card h2,
.insight-card h2 {
  font-size: clamp(27px, 2.8vw, var(--type-h2-max)) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.032em !important;
  font-weight: 800 !important;
}
h3,
.doc h3,
.card h3,
.journey-step h3,
.comparison-card h3,
.proof-card h3 {
  font-size: clamp(20px, 1.8vw, var(--type-h3-max)) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.024em !important;
}
p.lede { font-size: clamp(18px, 1.55vw, 23px) !important; line-height: 1.42 !important; max-width: 720px; }
p, li, .doc p, .doc li { font-size: var(--type-doc-body); line-height: 1.6; }
.small, .card .small { font-size: 15.5px !important; line-height: 1.52; }
.quote { font-size: clamp(26px, 2.6vw, 38px) !important; line-height: 1.15; }
.card { padding: 24px; }
.doc.card { padding: clamp(24px, 3.2vw, 42px); }
section { padding: 56px 0; }
.hero, .page-title { padding-top: 62px; padding-bottom: 34px; }

/* Usability: make interactive elements finger-friendly without making docs noisy */
.nav-links a,
.toc a,
.strategy-sidebar a,
.artifact-list a,
.btn,
.subnav a,
.card a,
button {
  min-height: 40px;
  display: flex;
  align-items: center;
}
.card a:not(.btn), .doc a:not(.btn) { padding-top: 4px; padding-bottom: 4px; }
.toc a, .strategy-sidebar a { padding-top: 10px; padding-bottom: 10px; }

@media (max-width: 1000px) {
  :root { --type-h1-max: 46px; --type-h2-max: 34px; --type-h3-max: 24px; --type-body: 17px; --type-doc-body: 16.5px; }
  .nav-inner { min-height: 72px; gap: 10px; padding: 12px 18px; }
  .nav-links { width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; white-space: nowrap; min-height: 38px; }
  .logo { font-size: 18px; }
  .logo-mark { width: 30px; height: 30px; }
  .hero, .page-title { padding-top: 42px; }
  section { padding: 42px 0; }
}
@media (max-width: 520px) {
  :root { --type-h1-max: 34px; --type-h2-max: 28px; --type-h3-max: 22px; --type-body: 16px; --type-doc-body: 16px; }
  .container { padding: 0 18px; }
  .nav-inner { min-height: 82px; padding: 10px 14px; }
  .nav-links { margin-left: -2px; padding-bottom: 2px; }
  .nav-links a { font-size: 13px; padding: 8px 10px; min-height: 36px; }
  .hero-report, .card, .doc.card { padding: 20px; }
  .hero-grid { gap: 20px; }
  .metric-strip { gap: 12px; }
  .metric-card { min-height: 106px; }
  .journey-step, .proof-card, .comparison-card { padding: 16px; }
  .actions { gap: 10px; }
  .btn { width: 100%; min-height: 44px; }
  .artifact-list a { display: block; min-height: 48px; }
  .artifact-list a span { display: block; margin-top: 4px; }
}
/* Autoresearch pass 2: final tap target correction */
.logo { min-height: 40px; }
@media (max-width: 520px) {
  .nav-links a { min-height: 40px; }
  .logo { min-height: 40px; }
}
/* Autoresearch pass 3: tablet tap targets + prose measure */
.card > p, .proof-card > p, .comparison-card > p, .insight-card > p { max-width: 760px; }
@media (max-width: 1000px) { .nav-links a { min-height: 40px; } }
