/* ============================================================
   HookMagnet — shared design system
   Royal blue / white / red · Poppins · sibling to mattbauman.me
   ============================================================ */

:root {
  --blue: #1E3FA0;
  --blue-dark: #16205c;
  --navy: #0f1733;
  --red: #C8192E;
  --white: #ffffff;
  --ink: #14181f;
  --gray: #5b6472;
  --line: #e6e9ef;
  --bg-soft: #f5f7fb;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(15, 23, 51, 0.10);
  --shadow-sm: 0 6px 22px rgba(15, 23, 51, 0.08);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}

h1, h2, h3 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--gray); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 10px 26px rgba(200,25,46,.32); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(200,25,46,.40); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 26px rgba(30,63,160,.30); }
.btn-blue:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30,63,160,.40); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover:not(:disabled) { background: rgba(30,63,160,.06); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-lg { padding: 17px 34px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; }
.logo .red { color: var(--red); }
.logo svg { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-weight: 500; font-size: 15px; color: var(--gray); transition: color .15s; }
.nav-links a.link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: var(--white); overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 480px at 80% -10%, rgba(255,255,255,.14), transparent 60%);
  pointer-events: none;
}
.hero-inner { padding: 96px 0 104px; text-align: center; position: relative; z-index: 1; }
.hero .eyebrow { color: #ffd2d8; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; margin-bottom: 22px; max-width: 900px; margin-inline: auto; }
.hero h1 .dim { color: rgba(255,255,255,.5); }
.hero-sub { font-size: 20px; color: rgba(255,255,255,.9); max-width: 660px; margin: 0 auto 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 24px; }
.trust-line { font-size: 14.5px; color: rgba(255,255,255,.74); display: inline-flex; align-items: center; gap: 8px; justify-content: center; }

/* ---------- Pills / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; background: var(--white); box-shadow: var(--shadow-sm);
}
.step .num {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(30,63,160,.10); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 15.5px; }

/* ---------- Who it's for ---------- */
.who { background: var(--bg-soft); }
.qual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qual-card {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--red); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.qual-card h3 { font-size: 19px; margin-bottom: 10px; }
.qual-card p { color: var(--gray); font-size: 15.5px; }

/* ---------- Lead-magnet type grid ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.type-card .ico {
  width: 46px; height: 46px; border-radius: 11px;
  background: rgba(30,63,160,.10); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.type-card h3 { font-size: 17px; margin-bottom: 6px; }
.type-card p { color: var(--gray); font-size: 14px; }

/* ---------- Pricing / tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 920px; margin: 0 auto; }
.tier {
  border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 36px; background: var(--white); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.tier.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.tier .badge {
  position: absolute; top: -13px; left: 36px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.tier h3 { font-size: 24px; margin-bottom: 6px; }
.tier .tier-sub { color: var(--red); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.tier .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.tier .price span { font-size: 16px; font-weight: 500; color: var(--gray); }
.tier .price-note { color: var(--gray); font-size: 14px; margin-bottom: 22px; }
.tier ul { list-style: none; margin-bottom: 28px; flex: 1; }
.tier li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 15.5px; color: #3a4250; }
.tier li svg { position: absolute; left: 0; top: 3px; color: var(--blue); }

/* ---------- CTA band ---------- */
.cta { background: var(--blue); color: var(--white); text-align: center; }
.cta h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; max-width: 760px; margin: 0 auto 18px; }
.cta .lede { font-size: 19px; color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 50px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .logo { color: #fff; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .15s; }
.foot-links a:hover { color: #fff; }
.foot-meta { font-size: 14px; }

/* ============================================================
   App / wizard
   ============================================================ */
.app-main { background: var(--bg-soft); min-height: calc(100vh - 72px); padding: 48px 0 80px; }
.app-card {
  max-width: 720px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm); padding: 40px 40px 36px;
}
.app-wide { max-width: 860px; }

.progress { display: flex; gap: 8px; margin-bottom: 30px; }
.progress .dot { height: 6px; flex: 1; border-radius: 999px; background: var(--line); transition: background .25s; }
.progress .dot.on { background: var(--blue); }

.step-eyebrow { color: var(--red); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.app-card h1 { font-size: 28px; margin-bottom: 8px; }
.app-card .help { color: var(--gray); font-size: 15.5px; margin-bottom: 28px; }

.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--gray); font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 15.5px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,63,160,.12);
}
.field textarea { resize: vertical; min-height: 84px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.app-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; }
.app-actions .spacer { flex: 1; }

/* Diagnosis result */
.plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.plan-type-badge {
  background: rgba(30,63,160,.10); color: var(--blue);
  font-weight: 600; font-size: 13px; padding: 6px 13px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em;
}
.plan-title { font-size: 26px; margin: 4px 0 10px; }
.plan-promise { font-size: 17px; color: #2c333f; margin-bottom: 18px; }
.plan-rationale { color: var(--gray); font-size: 15px; background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; }
.outline-list { list-style: none; margin-bottom: 8px; }
.outline-list li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.outline-list li:last-child { border-bottom: none; }
.outline-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* Three-option chooser */
.options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 4px; }
.option-card {
  position: relative; border: 2px solid var(--line); border-radius: 14px;
  padding: 22px 20px 20px; background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; flex-direction: column;
}
.option-card:hover { border-color: rgba(30,63,160,.45); box-shadow: var(--shadow-sm); }
.option-card.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,63,160,.14); }
.option-check {
  position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; transition: all .15s;
}
.option-card.selected .option-check { border-color: var(--blue); background: var(--blue); }
.option-card.selected .option-check::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.option-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-right: 28px; }
.best-pick { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--red); background: #fdecee; padding: 3px 9px; border-radius: 999px; }
.option-title { font-size: 18px; margin-bottom: 8px; }
.option-promise { font-size: 14.5px; color: #2c333f; margin-bottom: 10px; }
.option-why { font-size: 13.5px; color: var(--gray); margin-bottom: 14px; }
.option-outline-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); margin-bottom: 6px; }
.option-outline { list-style: none; margin: 0 0 14px; flex: 1; }
.option-outline li { position: relative; padding-left: 18px; margin-bottom: 5px; font-size: 13.5px; color: #3a4250; }
.option-outline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.option-delivery { font-size: 12.5px; color: var(--gray); border-top: 1px solid var(--line); padding-top: 12px; }
.option-delivery strong { color: var(--ink); }

.paywall {
  margin-top: 26px; border: 2px solid var(--blue); border-radius: 16px;
  padding: 26px 28px; text-align: center; background: linear-gradient(180deg, rgba(30,63,160,.04), transparent);
}
.paywall .price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.paywall .price span { font-size: 15px; font-weight: 500; color: var(--gray); }
.paywall p { color: var(--gray); font-size: 14.5px; margin: 6px 0 18px; }

/* Generation / output */
.gen-status { display: flex; align-items: center; gap: 12px; color: var(--gray); font-size: 15px; margin-bottom: 22px; }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(30,63,160,.2); border-top-color: var(--blue);
  animation: spin .8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.output {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 34px 38px; max-height: 60vh; overflow-y: auto; margin-bottom: 22px;
}
.output h1 { font-size: 28px; margin: 0 0 14px; }
.output h2 { font-size: 22px; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.output h3 { font-size: 18px; margin: 20px 0 8px; }
.output p { margin-bottom: 12px; font-size: 15.5px; }
.output ul, .output ol { margin: 0 0 14px 22px; }
.output li { margin-bottom: 7px; font-size: 15.5px; }
.output blockquote { border-left: 4px solid var(--blue); padding: 6px 16px; color: var(--gray); margin: 0 0 14px; }
.output code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.output pre { background: var(--navy); color: #eef; padding: 16px; border-radius: 10px; overflow-x: auto; margin-bottom: 14px; }
.output pre code { background: none; color: inherit; }
.output hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }

.alert { background: #fdecee; border: 1px solid #f4c4ca; color: #8a1320; padding: 13px 16px; border-radius: 11px; font-size: 14.5px; margin-bottom: 20px; }

.center { text-align: center; }
.muted { color: var(--gray); font-size: 14px; }
.mt-16 { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  section { padding: 64px 0; }
  .steps, .qual-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .nav-links .link { display: none; }
  .app-card { padding: 30px 24px; }
}
@media (max-width: 480px) {
  .type-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .app-actions { flex-direction: column-reverse; }
  .app-actions .btn { width: 100%; }
}
