:root {
  --ink: #111827;
  --muted: #5b6475;
  --line: #dbe3ef;
  --soft: #f4f8fb;
  --card: #ffffff;
  --blue: #1d4ed8;
  --blue-dark: #123b91;
  --teal: #0f766e;
  --gold: #f5a524;
  --shadow: 0 18px 50px rgba(16, 24, 40, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 72px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand img { display: block; width: 274px; max-width: 48vw; height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 760;
}
.site-nav a {
  text-decoration: none;
  color: #2e3645;
  padding: 10px 12px;
  border-radius: 8px;
}
.site-nav a:hover { background: #eef4ff; color: var(--blue); }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(29, 78, 216, .22);
}
.nav-toggle { display: none; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 6vw, 110px);
  background:
    radial-gradient(circle at 82% 18%, rgba(245,165,36,.24), transparent 28%),
    linear-gradient(135deg, #0f2f7f 0%, #1d4ed8 54%, #0f766e 100%);
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #dbeafe;
  font-size: .83rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; }
h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.35rem, 5vw, 5rem);
}
.hero-deck {
  max-width: 780px;
  margin: 22px 0 0;
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
  color: #e9f2ff;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.btn.primary { background: var(--blue); color: #fff; }
.hero .btn.primary { background: #fff; color: var(--blue-dark); }
.btn.secondary { border-color: rgba(255,255,255,.72); color: #fff; }
.btn.full { width: 100%; }
.disclosure-inline {
  max-width: 740px;
  margin-top: 18px;
  color: #c8d9f7;
  font-size: .94rem;
}
.hero-panel, .hero-media {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: grid;
  align-content: end;
}
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.02);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.10), rgba(15,23,42,.78));
}
.hero-media .floating,
.hero-media .metric-row {
  position: relative;
  z-index: 1;
}
.hero-media .quote-card {
  margin-bottom: 12px;
  box-shadow: 0 18px 38px rgba(15,23,42,.24);
}
.quote-card {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.quote-card p { color: var(--muted); margin-bottom: 0; }
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 4px;
  border-top: 1px solid rgba(255,255,255,.24);
}
.metric-row span { color: #dbeafe; }
.metric-row strong { color: #fff; }
.section, .page-layout, .tool-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0;
}
.section.narrow { width: min(850px, calc(100% - 36px)); }
.visual-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 34px;
  padding-bottom: 20px;
}
.visual-card {
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16,24,40,.08);
}
.visual-card img,
.article-photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.visual-card figcaption {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  color: var(--muted);
}
.visual-card figcaption strong {
  color: var(--ink);
}
.article-photo {
  overflow: hidden;
  margin: 0 0 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(16,24,40,.06);
}
.article-photo figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: .94rem;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.section-head h2, .subhero h1 { margin: 0; font-size: clamp(2rem, 3vw, 3.2rem); }
.section-head p { max-width: 620px; color: var(--muted); margin: 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.resource-card, .content-card, .side-card, .tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(16,24,40,.06);
}
.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: 24px;
}
.resource-card h3 { margin: 0 0 12px; font-size: 1.35rem; }
.resource-card h3 a { text-decoration: none; }
.resource-card p { color: var(--muted); margin: 0 0 22px; }
.text-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}
.band {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 6vw, 110px);
  background: #fff;
  border-block: 1px solid var(--line);
}
.band h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3vw, 3rem); }
.band p { color: var(--muted); }
.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #eef4ff; color: var(--blue-dark); }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.mini-grid a, .pill-row a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.mini-grid strong { display: block; margin-bottom: 8px; color: var(--blue-dark); }
.mini-grid span { color: var(--muted); font-size: .95rem; }
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-row a { font-weight: 850; color: var(--blue-dark); }
.subhero {
  padding: 72px clamp(20px, 6vw, 110px) 36px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.subhero p { max-width: 800px; color: var(--muted); font-size: 1.18rem; }
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.article-meta {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}
.content-card {
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 34px);
}
.content-card h2 { margin-top: 0; font-size: clamp(1.55rem, 2.4vw, 2.25rem); }
.content-card p { color: #3f4959; }
.notice {
  margin-bottom: 22px;
  padding: 18px 20px;
  background: #fff8e7;
  border: 1px solid #f7d27b;
  border-radius: 10px;
  color: #5a4212;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 900;
}
.clean-list { padding-left: 22px; color: #3f4959; }
.clean-list li { margin: 9px 0; }
.steps {
  display: grid;
  gap: 12px;
  padding-left: 24px;
}
.steps li { padding-left: 8px; color: #3f4959; }
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--ink);
}
.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}
.side-card { padding: 20px; }
.side-card h2 { margin: 0 0 10px; font-size: 1.2rem; }
.side-card a:not(.btn) {
  display: block;
  padding: 10px 0;
  color: var(--blue-dark);
  font-weight: 760;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.tool-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 28px;
}
form { display: grid; gap: 15px; }
label {
  display: grid;
  gap: 7px;
  font-weight: 820;
}
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #b9c5d6;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(29,78,216,.16);
  border-color: var(--blue);
}
.tool-result {
  min-height: 320px;
  padding: 22px;
  border-radius: 12px;
  background: #eef4ff;
  border: 1px solid #c8d8ff;
}
.tool-result ul { padding-left: 20px; }
.site-footer {
  padding: 42px clamp(20px, 6vw, 110px);
  background: #0f172a;
  color: #d9e3f2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
}
.footer-grid img {
  display: block;
  width: 274px;
  max-width: 100%;
  height: auto;
  margin-bottom: 14px;
}
.footer-grid h2 { font-size: 1rem; color: #fff; }
.footer-grid a {
  display: block;
  color: #d9e3f2;
  text-decoration: none;
  margin: 8px 0;
}
.fine-print {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #b7c4d7;
  font-size: .92rem;
}
@media (max-width: 980px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; margin-top: 2px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero, .band, .page-layout, .tool-card, .footer-grid, .visual-strip { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .brand img { max-width: 68vw; }
  .hero { padding-top: 44px; }
  .hero-actions, .btn { width: 100%; }
  .card-grid, .mini-grid, .feature-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  th, td { padding: 12px; }
}

/* Affiliate CTA blocks (injected sitewide; href filled by inject-affiliates.js) */
.affiliate-cta { background: linear-gradient(135deg, var(--blue-dark, #123b91) 0%, var(--blue, #2563eb) 100%); color: #fff; padding: 28px 24px; border-radius: 12px; text-align: center; margin: 32px 0; box-shadow: 0 4px 16px rgba(29,78,216,0.18); }
.affiliate-cta .cta-headline { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; color: #fff; }
.affiliate-cta .cta-sub { font-size: 0.95rem; opacity: 0.9; margin: 0 0 18px; color: #fff; }
.affiliate-cta .cta-btn { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--blue, #1d4ed8); padding: 12px 28px; border-radius: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s; }
.affiliate-cta .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.affiliate-cta .cta-btn-large { padding: 14px 36px; font-size: 1.05rem; }
.affiliate-cta-bottom { margin-top: 48px; }

/* Amazon resource cards */
.amazon-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 6px; }
.amazon-resource-card { display: flex; flex-direction: column; gap: 10px; min-height: 188px; padding: 18px; background: #fffaf0; border: 1px solid #fed7aa; border-radius: 10px; box-shadow: 0 8px 20px rgba(154, 52, 18, .08); }
.amazon-resource-card h3 { margin: 0; color: #7c2d12; font-size: 1.05rem; line-height: 1.25; }
.amazon-resource-card p { margin: 0; color: #5b6475; font-size: .94rem; line-height: 1.55; }
.amazon-resource-card a { display: inline-flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; margin-top: auto; padding: 10px 15px; background: #f59e0b; color: #fff !important; border-radius: 8px; font-size: .9rem; font-weight: 850; line-height: 1.2; text-decoration: none !important; box-shadow: 0 8px 16px rgba(245, 158, 11, .22); }
.amazon-resource-card a::after { content: " ->"; }
.amazon-resource-card a:hover { background: #d97706; text-decoration: none !important; transform: translateY(-1px); }
.amazon-disclosure { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; padding: 12px 16px; border-radius: 8px; font-size: .9rem; margin: 16px 0; }
@media (max-width: 720px) { .amazon-resource-grid { grid-template-columns: 1fr; } .amazon-resource-card a { width: 100%; } }

.quote-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16,24,40,.08);
}
.quote-strip-copy {
  display: grid;
  gap: 12px;
}
.quote-strip-kicker {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.quote-strip h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}
.quote-strip p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
}
.quote-strip .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(29,78,216,.18);
}
.quote-strip img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 760px) {
  .quote-strip { grid-template-columns: 1fr; }
  .quote-strip .cta-btn { width: 100%; }
}
