
:root {
  --ip-navy: #0b1f33;
  --ip-navy-2: #102f4a;
  --ip-charcoal: #1f2933;
  --ip-slate: #5f6c7b;
  --ip-light: #f5f7fa;
  --ip-line: #d9e2ec;
  --ip-white: #ffffff;
  --ip-gold: #b68a35;
  --ip-gold-dark: #8e6a24;
  --ip-medical: #28666e;
  --ip-law: #17324d;
  --ip-radius: 18px;
  --ip-shadow: 0 18px 48px rgba(11, 31, 51, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ip-charcoal);
  background: var(--ip-white);
  line-height: 1.6;
}
a { color: var(--ip-navy-2); text-decoration: none; }
a:hover { color: var(--ip-gold-dark); }
img { max-width: 100%; height: auto; }
.ip-container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.ip-topbar { background: var(--ip-navy); color: rgba(255,255,255,.86); font-size: 14px; }
.ip-topbar .ip-container { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; }
.ip-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ip-line); backdrop-filter: blur(8px); }
.ip-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 16px 0; }
.ip-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ip-navy); letter-spacing: -.02em; }
.ip-brand-mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--ip-navy), var(--ip-medical)); display: grid; place-items: center; color: #fff; font-weight: 900; box-shadow: 0 10px 24px rgba(11,31,51,.18); }
.ip-brand small { display: block; color: var(--ip-slate); font-weight: 600; font-size: 12px; letter-spacing: .02em; margin-top: -4px; }
.ip-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 650; }
.ip-nav a { color: var(--ip-charcoal); }
.ip-nav a:hover { color: var(--ip-gold-dark); }
.ip-btn, .wp-block-button__link, button.ip-btn, input[type="submit"].ip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 750; line-height: 1.1; cursor: pointer; text-decoration: none;
}
.ip-btn-primary, .wp-block-button__link { background: var(--ip-gold); color: #fff !important; box-shadow: 0 12px 24px rgba(182,138,53,.25); }
.ip-btn-primary:hover { background: var(--ip-gold-dark); color: #fff; }
.ip-btn-secondary { background: var(--ip-white); color: var(--ip-navy); border-color: var(--ip-line); }
.ip-btn-secondary:hover { border-color: var(--ip-gold); color: var(--ip-gold-dark); }
.ip-btn-dark { background: var(--ip-navy); color: #fff !important; }
.ip-hero { background: radial-gradient(circle at 20% 10%, rgba(182,138,53,.18), transparent 30%), linear-gradient(135deg, var(--ip-navy), #0d3a55 58%, #164b52); color: #fff; padding: 84px 0 70px; position: relative; overflow: hidden; }
.ip-hero:after { content: ""; position: absolute; inset: auto -12% -30% 45%; height: 520px; background: rgba(255,255,255,.07); transform: rotate(-12deg); border-radius: 80px; }
.ip-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.ip-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 800; color: rgba(255,255,255,.78); margin-bottom: 18px; }
.ip-hero h1 { margin: 0 0 18px; font-size: clamp(42px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.ip-hero p { font-size: 20px; color: rgba(255,255,255,.86); max-width: 720px; margin: 0 0 28px; }
.ip-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ip-book-stack { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: end; }
.ip-cover { aspect-ratio: 2 / 3; border-radius: 10px; background: var(--ip-light); box-shadow: 0 20px 50px rgba(0,0,0,.28); overflow: hidden; border: 1px solid rgba(255,255,255,.18); }
.ip-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-cover:nth-child(2), .ip-cover:nth-child(4) { transform: translateY(28px); }
.ip-section { padding: 74px 0; }
.ip-section-alt { background: var(--ip-light); }
.ip-section-header { max-width: 780px; margin: 0 0 34px; }
.ip-section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.ip-section h2, .entry-content h2 { margin: 0 0 14px; color: var(--ip-navy); font-size: clamp(30px, 3vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.ip-section p.lead, .entry-content p.lead { font-size: 19px; color: var(--ip-slate); }
.ip-grid { display: grid; gap: 24px; }
.ip-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ip-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ip-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ip-card { background: #fff; border: 1px solid var(--ip-line); border-radius: var(--ip-radius); padding: 26px; box-shadow: 0 8px 24px rgba(11,31,51,.05); }
.ip-card h3 { margin: 0 0 10px; color: var(--ip-navy); font-size: 22px; line-height: 1.15; }
.ip-card p { margin: 0 0 16px; color: var(--ip-slate); }
.ip-card ul { margin: 0; padding-left: 20px; color: var(--ip-charcoal); }
.ip-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: rgba(182,138,53,.12); color: var(--ip-gold-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.ip-book-card { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: start; }
.ip-book-card .ip-cover { box-shadow: 0 12px 24px rgba(11,31,51,.14); }
.ip-book-card h3 { font-size: 24px; }
.ip-meta { color: var(--ip-slate); font-weight: 650; font-size: 14px; margin-bottom: 10px; }
.ip-cta { background: linear-gradient(135deg, var(--ip-navy), var(--ip-medical)); color: #fff; border-radius: 28px; padding: 46px; box-shadow: var(--ip-shadow); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.ip-cta h2 { color: #fff; margin: 0 0 10px; }
.ip-cta p { color: rgba(255,255,255,.86); margin: 0; font-size: 18px; }
.ip-list-clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ip-list-clean li { padding-left: 30px; position: relative; }
.ip-list-clean li:before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ip-gold); font-weight: 900; }
.ip-pricing { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.ip-price-card { border: 1px solid var(--ip-line); border-radius: var(--ip-radius); padding: 28px; background: #fff; position: relative; overflow: hidden; }
.ip-price-card.featured { border-color: var(--ip-gold); box-shadow: var(--ip-shadow); }
.ip-price { font-size: 34px; font-weight: 900; color: var(--ip-navy); margin: 10px 0; }
.ip-form { background: #fff; border: 1px solid var(--ip-line); border-radius: var(--ip-radius); padding: 28px; box-shadow: var(--ip-shadow); }
.ip-form label { display: block; font-weight: 750; margin-bottom: 6px; color: var(--ip-navy); }
.ip-form input, .ip-form select, .ip-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--ip-line); border-radius: 12px; font: inherit; margin-bottom: 16px; }
.ip-form textarea { min-height: 140px; }
.ip-form .ip-note { background: var(--ip-light); border-left: 4px solid var(--ip-gold); padding: 12px 14px; border-radius: 10px; font-size: 14px; color: var(--ip-slate); margin-bottom: 16px; }
.entry-content { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.entry-content p, .entry-content li { font-size: 18px; }
.ip-page-title { background: linear-gradient(135deg, var(--ip-navy), #133c5a); color: #fff; padding: 58px 0; }
.ip-page-title h1 { margin: 0 0 12px; font-size: clamp(38px, 4vw, 58px); letter-spacing: -.045em; line-height: 1.05; }
.ip-page-title p { margin: 0; font-size: 20px; color: rgba(255,255,255,.84); max-width: 820px; }
.ip-footer { background: var(--ip-navy); color: rgba(255,255,255,.82); padding: 46px 0 28px; }
.ip-footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
.ip-footer h4 { color: #fff; margin: 0 0 12px; }
.ip-footer a { color: rgba(255,255,255,.78); display: block; margin: 7px 0; }
.ip-footer a:hover { color: #fff; }
.ip-copyright { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 18px; color: rgba(255,255,255,.58); font-size: 14px; }
@media (max-width: 900px) {
  .ip-topbar .ip-container { flex-direction: column; gap: 2px; }
  .ip-header-inner { align-items: flex-start; }
  .ip-nav { flex-wrap: wrap; gap: 12px; }
  .ip-hero-grid, .ip-grid-2, .ip-grid-3, .ip-grid-4, .ip-pricing, .ip-cta, .ip-footer-grid { grid-template-columns: 1fr; }
  .ip-book-stack { max-width: 520px; margin: 0 auto; }
  .ip-cta { padding: 30px; }
}
@media (max-width: 560px) {
  .ip-container { width: min(100% - 28px, 1140px); }
  .ip-header-inner { gap: 14px; }
  .ip-nav a { font-size: 14px; }
  .ip-hero { padding: 54px 0; }
  .ip-book-card { grid-template-columns: 1fr; }
  .ip-book-card .ip-cover { width: 180px; }
}
/* Editable book-cover support added in v1.1.0 */
.ip-cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  background: linear-gradient(135deg, var(--ip-navy), var(--ip-medical));
  color: #fff;
  font-weight: 850;
  line-height: 1.15;
}
.ip-book-card-large { grid-template-columns: 220px 1fr; }
.ip-book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ip-admin-help { color: var(--ip-slate); font-size: 14px; }
@media (max-width: 560px) { .ip-book-card-large { grid-template-columns: 1fr; } }
