:root {
  --ipo-ink: #0c1720;
  --ipo-muted: #53646a;
  --ipo-paper: #f5f8f5;
  --ipo-white: #ffffff;
  --ipo-green: #08784d;
  --ipo-green-dark: #07523a;
  --ipo-lime: #d9f36d;
  --ipo-cyan: #79d6cf;
  --ipo-yellow: #ffd166;
  --ipo-red: #c54a43;
  --ipo-line: #dce5df;
  --ipo-navy: #0b2124;
}

html { scroll-behavior: smooth; }

body.ipo-story {
  margin: 0;
  background: var(--ipo-paper);
  color: var(--ipo-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.ipo-story *, .ipo-story *::before, .ipo-story *::after { box-sizing: border-box; }
.ipo-story img { max-width: 100%; }
.ipo-story a { color: var(--ipo-green); }
.ipo-story p, .ipo-story li { line-height: 1.72; }
.ipo-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ipo-eyebrow { margin: 0 0 10px; color: var(--ipo-green); font-size: .78rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }

.ipo-hero {
  position: relative;
  min-height: clamp(590px, 76vh, 780px);
  overflow: hidden;
  background: var(--ipo-navy);
  color: white;
}

.ipo-hero-image, .ipo-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ipo-hero-image { object-fit: cover; object-position: center 48%; }
.ipo-hero-shade { background: linear-gradient(90deg, rgba(6, 24, 26, .96) 0%, rgba(6, 24, 26, .8) 43%, rgba(6, 24, 26, .18) 76%, rgba(6, 24, 26, .08) 100%); }
.ipo-hero-content { position: relative; z-index: 1; display: flex; min-height: inherit; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 82px 72px; }
.ipo-hero .ipo-eyebrow { color: var(--ipo-lime); }
.ipo-hero h1 { max-width: 810px; margin: 0; color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.15rem, 6.2vw, 6.6rem); font-weight: 600; line-height: .96; letter-spacing: 0; text-wrap: balance; }
.ipo-lede { max-width: 710px; margin: 28px 0 0; color: #e6f0ec; font-size: clamp(1.12rem, 1.7vw, 1.42rem); }
.ipo-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ipo-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; padding: 13px 20px; font-weight: 800; text-decoration: none; }
.ipo-button-primary { background: var(--ipo-lime); color: var(--ipo-navy) !important; }
.ipo-button-ghost { border-color: rgba(255,255,255,.55); color: white !important; backdrop-filter: blur(8px); }
.ipo-button:hover { transform: translateY(-1px); }
.ipo-updated { margin: 28px 0 0; color: rgba(255,255,255,.74); font-size: .88rem; }

.ipo-answer-band { border-bottom: 1px solid #9ddfc1; background: #dff7eb; }
.ipo-answer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-block: 25px; }
.ipo-answer-grid p { margin: 0; color: #173b32; font-size: 1.02rem; }
.ipo-answer-grid a { white-space: nowrap; font-weight: 800; }

.ipo-facts { padding: 78px 0 86px; background: var(--ipo-white); }
.ipo-section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 52px; align-items: end; margin-bottom: 34px; }
.ipo-section-heading h2, .ipo-article h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 4vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: 0; text-wrap: balance; }
.ipo-section-heading > p { margin: 0; color: var(--ipo-muted); font-size: 1rem; }
.ipo-fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ipo-line); }
.ipo-fact-grid article { min-width: 0; padding: 28px 26px; border-right: 1px solid var(--ipo-line); }
.ipo-fact-grid article:last-child { border-right: 0; }
.ipo-fact-grid span, .ipo-fact-grid small { display: block; color: var(--ipo-muted); }
.ipo-fact-grid span { font-weight: 750; }
.ipo-fact-grid strong { display: block; margin: 11px 0 8px; color: var(--ipo-green-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.5vw, 3.55rem); line-height: 1; }
.ipo-fact-grid small { line-height: 1.45; }
.ipo-identity-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 15px; align-items: start; margin-top: 28px; }
.ipo-identity-note > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--ipo-green); border-radius: 50%; color: var(--ipo-green); font-family: Georgia, serif; font-weight: 800; }
.ipo-identity-note p { margin: 3px 0 0; color: var(--ipo-muted); }

.ipo-lab { padding: 82px 0 92px; background: var(--ipo-navy); color: white; }
.ipo-section-heading-light h2 { color: white; }
.ipo-section-heading-light > p { color: #b8cbc8; }
.ipo-section-heading-light .ipo-eyebrow { color: var(--ipo-lime); }
.ipo-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #315054; }
.ipo-tool { position: relative; min-width: 0; padding: 30px; border-right: 1px solid #315054; background: #102b2f; }
.ipo-tool:last-child { border-right: 0; }
.ipo-tool-input { background: #123634; }
.ipo-tool-step { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 24px; border: 1px solid #678184; border-radius: 50%; color: var(--ipo-lime); font-weight: 900; }
.ipo-tool h3 { min-height: 58px; margin: 0; color: white; font-size: 1.34rem; line-height: 1.25; }
.ipo-tool > p { min-height: 72px; margin: 12px 0 25px; color: #b8cbc8; font-size: .92rem; }
.ipo-tool label { display: block; margin-bottom: 8px; color: #dbe8e5; font-size: .86rem; font-weight: 750; }
.ipo-money-input { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; border-bottom: 2px solid var(--ipo-cyan); padding: 2px 0 8px; }
.ipo-money-input span { color: var(--ipo-cyan); font-family: Georgia, serif; font-size: 2rem; }
.ipo-money-input input { min-width: 0; border: 0; outline: 0; background: transparent; color: white; font-size: 2rem; font-weight: 800; }
.ipo-range { width: 100%; height: 6px; margin: 24px 0 20px; border-radius: 6px; accent-color: var(--ipo-lime); cursor: pointer; }
.ipo-range-risk { accent-color: var(--ipo-yellow); }
.ipo-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.ipo-presets button { min-height: 37px; border: 1px solid #486266; border-radius: 3px; background: transparent; color: #dceae7; font: inherit; font-size: .79rem; font-weight: 750; cursor: pointer; }
.ipo-presets button:hover, .ipo-presets button.is-active { border-color: var(--ipo-lime); color: var(--ipo-lime); }
.ipo-result-primary { margin-top: 24px; border-top: 1px solid #426064; padding-top: 22px; }
.ipo-result-primary span, .ipo-result-primary small { display: block; color: #abc1be; }
.ipo-result-primary strong { display: block; margin: 6px 0; color: var(--ipo-lime); font-family: Georgia, serif; font-size: 3rem; line-height: 1; }
.ipo-result-foot { min-height: auto !important; margin: 10px 0 0 !important; color: #dceae7 !important; }
.ipo-range-label { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.ipo-range-label output { color: var(--ipo-lime); font-size: 1.3rem; font-weight: 900; }
.ipo-mini-results { display: grid; gap: 1px; background: #355155; }
.ipo-mini-results > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 14px; background: #173437; }
.ipo-mini-results span { color: #afc3c0; font-size: .84rem; }
.ipo-mini-results strong { color: white; font-size: .96rem; text-align: right; }
.ipo-caveat { min-height: auto !important; margin: 18px 0 0 !important; color: #93aaa7 !important; font-size: .77rem !important; line-height: 1.55 !important; }
.ipo-market-price { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; margin: 4px 0 15px; }
.ipo-market-price span { color: #afc3c0; font-size: .84rem; }
.ipo-market-price strong { color: white; font-size: 1.2rem; }
.ipo-outcome { border: 1px solid #49666a; padding: 16px; }
.ipo-outcome span { color: #afc3c0; font-size: .8rem; }
.ipo-outcome strong { display: block; margin: 6px 0; color: white; font-size: 1.6rem; }
.ipo-outcome p { min-height: auto; margin: 0; color: var(--ipo-lime); font-size: .82rem; }
.ipo-outcome.is-loss { border-color: #8b504c; }
.ipo-outcome.is-loss p { color: #ffaaa3; }

.ipo-article { display: grid; grid-template-columns: 230px minmax(0, 760px); column-gap: 86px; align-items: start; padding-block: 82px 110px; }
.ipo-article > section { grid-column: 2; min-width: 0; margin-bottom: 88px; scroll-margin-top: 110px; }
.ipo-article > section:last-child { margin-bottom: 0; }
.ipo-article p, .ipo-article li { color: #34464c; font-size: 1.045rem; }
.ipo-article h2 { margin-bottom: 25px; }
.ipo-article h3 { letter-spacing: 0; }
.ipo-toc { position: sticky; top: 100px; grid-column: 1; grid-row: 1 / span 20; display: flex; flex-direction: column; border-left: 1px solid #bdcbc4; padding-left: 20px; }
.ipo-toc strong { margin-bottom: 13px; color: var(--ipo-ink); }
.ipo-toc a { padding: 7px 0; color: #5b6a6f; font-size: .86rem; text-decoration: none; }
.ipo-toc a:hover { color: var(--ipo-green); }
.ipo-explain-box { margin: 30px 0; border-left: 4px solid var(--ipo-green); background: #e2f4e9; padding: 22px 25px; }
.ipo-explain-box strong { color: var(--ipo-green-dark); font-size: 1.05rem; }
.ipo-explain-box p { margin: 7px 0 0; color: #21423a; }
.ipo-steps { list-style: none; margin: 32px 0; padding: 0; border-top: 1px solid var(--ipo-line); }
.ipo-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; border-bottom: 1px solid var(--ipo-line); padding: 24px 0; }
.ipo-steps li > span { color: var(--ipo-green); font-family: Georgia, serif; font-size: 1.2rem; }
.ipo-steps h3, .ipo-risk-list h3 { margin: 0 0 7px; color: var(--ipo-ink); font-size: 1.1rem; }
.ipo-steps p, .ipo-risk-list p { margin: 0; }
.ipo-warning { margin-top: 30px; border: 1px solid #dca9a4; background: #fff4f2; padding: 23px 25px; }
.ipo-warning strong { color: #8f2f29; }
.ipo-warning p { margin: 6px 0 0; color: #663f3c; }
.ipo-question-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ipo-line); border-left: 1px solid var(--ipo-line); margin: 32px 0; }
.ipo-question-grid article { padding: 23px; border-right: 1px solid var(--ipo-line); border-bottom: 1px solid var(--ipo-line); background: rgba(255,255,255,.5); }
.ipo-question-grid span { color: var(--ipo-green); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.ipo-question-grid h3 { margin: 7px 0 9px; font-size: 1.08rem; }
.ipo-question-grid p { margin: 0; font-size: .9rem; }
.ipo-risk-list { border-top: 1px solid var(--ipo-line); }
.ipo-risk-list article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--ipo-line); padding: 22px 0; }
.ipo-risk-list article > span { color: #85958e; font-family: Georgia, serif; }
.ipo-loss-strip { margin-top: 30px; display: grid; grid-template-columns: auto auto 1fr; gap: 12px 18px; align-items: baseline; border-block: 1px solid #d6a39d; padding: 22px 0; }
.ipo-loss-strip strong { color: var(--ipo-ink); }
.ipo-loss-strip > span { color: var(--ipo-red); font-size: 1.7rem; font-weight: 900; }
.ipo-loss-strip p { grid-column: 1 / -1; margin: 0; }

.ipo-article > .ipo-readiness { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 62px; margin: 0 0 92px; background: #e7efe8; padding: 46px; }
.ipo-readiness-copy h2 { margin-bottom: 20px; }
.ipo-readiness-copy > p { margin-bottom: 28px; }
.ipo-readiness-score { display: flex; gap: 17px; align-items: center; }
.ipo-readiness-score > span { display: grid; flex: 0 0 78px; height: 78px; place-items: center; border: 6px solid #bfd0c8; border-radius: 50%; color: var(--ipo-green); font-size: 1.1rem; }
.ipo-readiness-score b { font-size: 1.5rem; }
.ipo-readiness-score strong { display: block; color: var(--ipo-ink); }
.ipo-readiness-score p { margin: 3px 0 0; font-size: .85rem; line-height: 1.45; }
.ipo-checklist { display: grid; gap: 8px; }
.ipo-checklist label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 13px; align-items: start; border: 1px solid #c4d3cc; background: rgba(255,255,255,.67); padding: 14px; cursor: pointer; }
.ipo-checklist input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--ipo-green); }
.ipo-checklist strong, .ipo-checklist small { display: block; }
.ipo-checklist strong { color: var(--ipo-ink); font-size: .91rem; }
.ipo-checklist small { margin-top: 3px; color: #5c6b68; line-height: 1.45; }
.ipo-checklist label:has(input:checked) { border-color: var(--ipo-green); background: #f8fff9; }

.ipo-faq details { border-bottom: 1px solid var(--ipo-line); }
.ipo-faq details:first-of-type { border-top: 1px solid var(--ipo-line); }
.ipo-faq summary { position: relative; list-style: none; padding: 22px 50px 22px 0; color: var(--ipo-ink); font-size: 1.05rem; font-weight: 780; cursor: pointer; }
.ipo-faq summary::-webkit-details-marker { display: none; }
.ipo-faq summary::after { content: "+"; position: absolute; top: 18px; right: 5px; color: var(--ipo-green); font-size: 1.5rem; font-weight: 400; }
.ipo-faq details[open] summary::after { content: "−"; }
.ipo-faq details p { margin: -5px 0 22px; padding-right: 35px; }
.ipo-sources ul { list-style: none; margin: 28px 0; padding: 0; border-top: 1px solid var(--ipo-line); }
.ipo-sources li { border-bottom: 1px solid var(--ipo-line); }
.ipo-sources li a { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 24px; padding: 18px 0; text-decoration: none; }
.ipo-sources li strong { color: var(--ipo-green-dark); }
.ipo-sources li span { color: var(--ipo-muted); font-size: .88rem; }
.ipo-editorial-note { border-left: 3px solid #8da39a; padding-left: 17px; font-size: .88rem !important; }
.ipo-related > div { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ipo-line); border-left: 1px solid var(--ipo-line); }
.ipo-related a { min-width: 0; border-right: 1px solid var(--ipo-line); border-bottom: 1px solid var(--ipo-line); padding: 21px; background: white; text-decoration: none; }
.ipo-related a strong, .ipo-related a span { display: block; }
.ipo-related a strong { color: var(--ipo-green-dark); }
.ipo-related a span { margin-top: 5px; color: var(--ipo-muted); font-size: .84rem; }

@media (max-width: 980px) {
  .ipo-hero-shade { background: linear-gradient(90deg, rgba(6,24,26,.95), rgba(6,24,26,.62)); }
  .ipo-fact-grid { grid-template-columns: repeat(2, 1fr); }
  .ipo-fact-grid article:nth-child(2) { border-right: 0; }
  .ipo-fact-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--ipo-line); }
  .ipo-tool-grid { grid-template-columns: 1fr; }
  .ipo-tool { border-right: 0; border-bottom: 1px solid #315054; }
  .ipo-tool:last-child { border-bottom: 0; }
  .ipo-tool h3, .ipo-tool > p { min-height: 0; }
  .ipo-article { grid-template-columns: 1fr; }
  .ipo-toc { position: static; grid-column: 1; grid-row: auto; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 18px; margin-bottom: 58px; border-left: 0; border-top: 1px solid #bdcbc4; border-bottom: 1px solid #bdcbc4; padding: 15px 0; }
  .ipo-toc strong { flex-basis: 100%; margin-bottom: 3px; }
  .ipo-article > section { grid-column: 1; }
  .ipo-article > .ipo-readiness { grid-column: 1; }
}

@media (max-width: 720px) {
  .ipo-wrap { width: min(100% - 28px, 1180px); }
  .ipo-hero { min-height: 650px; }
  .ipo-hero-image { object-position: 61% center; }
  .ipo-hero-shade { background: linear-gradient(180deg, rgba(6,24,26,.55) 0%, rgba(6,24,26,.94) 60%, rgba(6,24,26,.98) 100%); }
  .ipo-hero-content { justify-content: flex-end; padding-block: 78px 45px; }
  .ipo-hero h1 { font-size: clamp(2.65rem, 12vw, 4.3rem); }
  .ipo-lede { margin-top: 20px; font-size: 1.02rem; }
  .ipo-updated { font-size: .78rem; }
  .ipo-answer-grid, .ipo-section-heading { grid-template-columns: 1fr; gap: 18px; }
  .ipo-answer-grid a { white-space: normal; }
  .ipo-facts, .ipo-lab { padding-block: 60px; }
  .ipo-section-heading { margin-bottom: 27px; }
  .ipo-section-heading h2, .ipo-article h2 { font-size: 2.35rem; }
  .ipo-fact-grid { grid-template-columns: 1fr 1fr; }
  .ipo-fact-grid article { padding: 21px 15px; }
  .ipo-fact-grid strong { font-size: 2rem; }
  .ipo-tool { padding: 24px 20px; }
  .ipo-money-input input { font-size: 1.65rem; }
  .ipo-article { padding-block: 58px 80px; }
  .ipo-article > section { margin-bottom: 68px; }
  .ipo-question-grid, .ipo-related > div { grid-template-columns: 1fr; }
  .ipo-article > .ipo-readiness { grid-template-columns: 1fr; gap: 34px; margin-bottom: 70px; padding: 28px 20px; }
  .ipo-sources li a { grid-template-columns: 1fr; gap: 5px; }
  .ipo-loss-strip { grid-template-columns: 1fr auto; }
  .ipo-loss-strip p { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ipo-button { transition: none; }
}
