/* ============================================================
   KLD-IPATS - IP Basics page
   Builds on the landing page tokens in landiing.css
   (--kld-primary, --kld-primary-dark, --kld-primary-light, --kld-gold)
   ============================================================ */
.ipb { display: flow-root; --ipb-nav: 72px; --ipb-line: #e6ece8; --ipb-ink: #14201a; --ipb-muted: #5d6b63; --ipb-tint: #eef6f1; --ipb-radius: 22px;
       color: var(--ipb-ink); background: #f6f8f7; }
.ipb *, .ipb *::before, .ipb *::after { box-sizing: border-box; }
.ipb h1, .ipb h2, .ipb h3, .ipb h4, .ipb p { margin: 0; }
.ipb a { text-decoration: none; }

/* ---------- hero ---------- */
.ipb-hero { position: relative; overflow: hidden; padding: 4.2rem 0 7.5rem; color: #fff; text-align: center;
    background: radial-gradient(700px 320px at 85% -10%, rgba(201, 162, 39, .28), transparent 60%),
                radial-gradient(600px 300px at 0% 110%, rgba(255, 255, 255, .10), transparent 60%),
                linear-gradient(135deg, #0d3d21 0%, #1a6b3a 62%, #2d8a50 130%); }
.ipb-hero::before { content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.ipb-hero .container { position: relative; }
.ipb-crumbs { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; font-size: .84rem; color: rgba(255, 255, 255, .72); }
.ipb-crumbs a { color: rgba(255, 255, 255, .85); } .ipb-crumbs a:hover { color: #fff; text-decoration: underline; }
.ipb-crumbs b { color: #fff; font-weight: 600; }
.ipb-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; margin-bottom: 1.1rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #fff; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.ipb-badge i { color: var(--kld-gold, #c9a227); }
.ipb-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ipb-hero h1 em { font-style: normal; background: linear-gradient(90deg, #f1d572, #c9a227); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ipb-hero .ipb-lead { max-width: 660px; margin: 1.1rem auto 0; font-size: 1.1rem; line-height: 1.65; color: rgba(255, 255, 255, .8); }

/* ---------- finder ---------- */
.ipb-finder { position: relative; z-index: 3; margin: -4.6rem auto 0; max-width: 1040px; padding: 1.6rem 1.7rem 1.4rem; background: #fff; border: 1px solid var(--ipb-line); border-radius: 26px;
    box-shadow: 0 30px 60px -30px rgba(13, 61, 33, .45), 0 2px 6px rgba(13, 61, 33, .05); }
.ipb-finder-title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-weight: 800; font-size: 1.1rem; }
.ipb-finder-title i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #1a6b3a, #2d8a50); font-size: 1rem; }
.ipb-finder-title small { margin-left: auto; font-weight: 500; color: var(--ipb-muted); font-size: .82rem; }
.ipb-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.ipb-chip { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: .95rem 1rem; text-align: left; font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.3; color: var(--ipb-ink);
    background: #fafcfb; border: 1.5px solid var(--ipb-line); border-radius: 16px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; }
.ipb-chip i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 1.15rem; color: var(--kld-primary, #1a6b3a); background: var(--ipb-tint); transition: background .18s, color .18s; }
.ipb-chip:hover { transform: translateY(-3px); border-color: #b9d8c4; box-shadow: 0 14px 26px -16px rgba(26, 107, 58, .6); }
.ipb-chip.on { border-color: var(--kld-primary, #1a6b3a); background: var(--ipb-tint); box-shadow: 0 0 0 4px rgba(26, 107, 58, .12); }
.ipb-chip.on i { color: #fff; background: var(--kld-primary, #1a6b3a); }
.ipb-answer { display: none; align-items: flex-start; gap: .8rem; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 14px; background: #fffaf0; border: 1px solid #f0e2b0; color: #5c4700; font-size: .92rem; line-height: 1.55; }
.ipb-answer.show { display: flex; animation: ipbPop .3s ease; }
.ipb-answer i { margin-top: .15rem; color: var(--kld-gold, #c9a227); font-size: 1.1rem; }
.ipb-answer a { margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--kld-primary, #1a6b3a); }
@media (max-width: 991px) { .ipb-chips { grid-template-columns: repeat(2, 1fr); } .ipb-chips .ipb-chip:last-child { grid-column: 1 / -1; } }

/* ---------- sticky type selector ---------- */
.ipb-tabbar { position: sticky; top: var(--ipb-nav); z-index: 20; margin-top: 2.6rem; padding: .7rem 0; background: rgba(246, 248, 247, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ipb-tabs { display: flex; gap: .5rem; padding: .4rem; overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid var(--ipb-line); border-radius: 20px; box-shadow: 0 10px 24px -18px rgba(13, 61, 33, .5); }
.ipb-tabs::-webkit-scrollbar { display: none; }
.ipb-tab { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: .6rem; min-width: max-content; padding: .8rem 1.1rem; border: 0; border-radius: 14px; background: transparent; font: inherit; font-weight: 700; font-size: .93rem; color: var(--ipb-muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.ipb-tab i { font-size: 1.15rem; }
.ipb-tab:hover { color: var(--kld-primary, #1a6b3a); background: var(--ipb-tint); }
.ipb-tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, #1a6b3a, #2d8a50); box-shadow: 0 10px 20px -10px rgba(26, 107, 58, .8); }
.ipb-tab:focus-visible, .ipb-chip:focus-visible, .ipb-btn:focus-visible, .ipb-faq summary:focus-visible { outline: 3px solid rgba(201, 162, 39, .6); outline-offset: 2px; }

/* ---------- panels ---------- */
.ipb-panels { padding: 1.6rem 0 1rem; scroll-margin-top: calc(var(--ipb-nav) + 90px); }
.ipb-panel[hidden] { display: none; }
.ipb-panel { animation: ipbPanel .4s ease; }
.ipb-panel-head { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.6rem; }
.ipb-panel-icon { flex: 0 0 auto; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; font-size: 1.9rem; color: #fff; background: linear-gradient(135deg, #1a6b3a, #2d8a50); box-shadow: 0 16px 28px -14px rgba(26, 107, 58, .8); }
.ipb-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--kld-gold-dark, #b8911f); }
.ipb-panel-head h2 { margin-top: .2rem; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.ipb-panel-head p { margin-top: .5rem; max-width: 720px; font-size: 1.06rem; line-height: 1.65; color: var(--ipb-muted); }

.ipb-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.4rem; }
@media (max-width: 1100px) { .ipb-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ipb-facts { grid-template-columns: 1fr; } .ipb-panel-head { flex-direction: column; } }
.ipb-fact { display: flex; gap: .85rem; padding: 1.05rem 1.1rem; background: #fff; border: 1px solid var(--ipb-line); border-radius: 18px; }
.ipb-fact > i { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 1.15rem; color: var(--kld-primary, #1a6b3a); background: var(--ipb-tint); }
.ipb-fact small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ipb-muted); }
.ipb-fact b { display: block; margin-top: .15rem; font-size: .95rem; line-height: 1.35; }

.ipb-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.1rem; }
@media (max-width: 991px) { .ipb-grid { grid-template-columns: 1fr; } }
.ipb-card { padding: 1.5rem 1.6rem; background: #fff; border: 1px solid var(--ipb-line); border-radius: var(--ipb-radius); box-shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 18px 36px -26px rgba(16, 24, 20, .35); }
.ipb-card + .ipb-card { margin-top: 1.1rem; }
.ipb-grid > .ipb-card + .ipb-card { margin-top: 0; }
.ipb-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: 1.05rem; font-weight: 800; }
.ipb-card h3 i { color: var(--kld-primary, #1a6b3a); }
.ipb-card.accent { color: #fff; border: 0; background: linear-gradient(135deg, #0d3d21, #1a6b3a 70%, #2d8a50 130%); }
.ipb-card.accent h3 i { color: #f1d572; }
.ipb-card.gold { background: #fffaf0; border-color: #f0e2b0; }
.ipb-card.gold h3 i { color: var(--kld-gold-dark, #b8911f); }
.ipb-card p { line-height: 1.65; color: var(--ipb-muted); font-size: .95rem; }
.ipb-card.accent p { color: rgba(255, 255, 255, .82); }
.ipb-card p + p { margin-top: .7rem; }

.ipb-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.ipb-list li { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .85rem; border-radius: 12px; background: #f7faf8; font-size: .94rem; line-height: 1.45; }
.ipb-list li i { flex: 0 0 auto; margin-top: .1rem; color: var(--kld-primary-light, #2d8a50); font-size: 1.05rem; }
.ipb-list.checks li { background: rgba(255, 255, 255, .1); }
.ipb-list.checks li i { color: #f1d572; }
.ipb-list.no li i { color: #c2410c; }
.ipb-list.no li { background: #fff6f0; }

.ipb-steps { display: grid; gap: .8rem; counter-reset: c; margin: 0; padding: 0; list-style: none; }
.ipb-steps li { counter-increment: c; display: flex; gap: .9rem; padding: .9rem 1rem; border-radius: 14px; background: #f7faf8; font-size: .93rem; line-height: 1.5; }
.ipb-steps li::before { content: counter(c); flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: .82rem; color: #fff; background: var(--kld-primary, #1a6b3a); }
.ipb-steps b { display: block; }

.ipb-term { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; padding: .95rem 1.2rem; border-radius: 16px; background: var(--ipb-tint); border: 1px solid #cfe5d7; color: #164a2b; font-size: .95rem; }
.ipb-term i { font-size: 1.3rem; color: var(--kld-primary, #1a6b3a); }
.ipb-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.ipb-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .93rem; border: 1.5px solid transparent; transition: transform .18s, box-shadow .18s, background .18s; }
.ipb-btn.primary { color: #fff; background: linear-gradient(135deg, #1a6b3a, #2d8a50); box-shadow: 0 14px 24px -14px rgba(26, 107, 58, .9); }
.ipb-btn.primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 28px -14px rgba(26, 107, 58, .9); }
.ipb-btn.ghost { color: var(--kld-primary, #1a6b3a); background: #fff; border-color: #b9d8c4; }
.ipb-btn.ghost:hover { background: var(--ipb-tint); color: var(--kld-primary-dark, #0d3d21); }
.ipb-btn.light { color: var(--kld-primary-dark, #0d3d21); background: #fff; } .ipb-btn.light:hover { transform: translateY(-2px); color: var(--kld-primary-dark, #0d3d21); }
.ipb-btn.outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); } .ipb-btn.outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- comparison + scale + tables ---------- */
.ipb-mini { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.ipb-mini th, .ipb-mini td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--ipb-line); }
.ipb-mini thead th { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ipb-muted); background: #f7faf8; }
.ipb-mini thead th:first-child { border-radius: 12px 0 0 0; } .ipb-mini thead th:last-child { border-radius: 0 12px 0 0; }
.ipb-mini tbody tr:last-child td { border-bottom: 0; }
.ipb-mini td:first-child { font-weight: 700; }
.ipb-scale { display: flex; height: 14px; margin: 1.2rem 0 .5rem; border-radius: 999px; overflow: hidden; }
.ipb-scale i { display: block; height: 100%; }
.ipb-scale-l { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ipb-muted); }
.ipb-scale-k { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; margin-top: 1rem; font-size: .84rem; }
.ipb-scale-k span { display: flex; align-items: center; gap: .5rem; } .ipb-scale-k s { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

.ipb-section { padding: 3.6rem 0 0; }
.ipb-section-head { max-width: 640px; margin: 0 auto 2rem; text-align: center; }
.ipb-section-head span { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--kld-gold-dark, #b8911f); }
.ipb-section-head h2 { margin-top: .4rem; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.ipb-section-head p { margin-top: .6rem; color: var(--ipb-muted); line-height: 1.65; }
.ipb-compare { overflow-x: auto; background: #fff; border: 1px solid var(--ipb-line); border-radius: var(--ipb-radius); box-shadow: 0 18px 36px -28px rgba(16, 24, 20, .35); }
.ipb-compare table { min-width: 880px; width: 100%; border-collapse: collapse; font-size: .9rem; }
.ipb-compare th, .ipb-compare td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ipb-line); }
.ipb-compare thead th { position: sticky; top: 0; font-size: .95rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0d3d21, #1a6b3a); }
.ipb-compare thead th i { margin-right: .4rem; color: #f1d572; }
.ipb-compare tbody th { width: 150px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ipb-muted); background: #f7faf8; }
.ipb-compare tbody tr:last-child > * { border-bottom: 0; }
.ipb-compare tbody tr:nth-child(even) td { background: #fbfdfc; }

/* ---------- journey ---------- */
.ipb-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: j; position: relative; }
@media (max-width: 991px) { .ipb-journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ipb-journey { grid-template-columns: 1fr; } }
.ipb-journey article { counter-increment: j; position: relative; padding: 1.5rem 1.3rem 1.3rem; background: #fff; border: 1px solid var(--ipb-line); border-radius: 20px; box-shadow: 0 18px 36px -30px rgba(16, 24, 20, .4); transition: transform .2s, box-shadow .2s; }
.ipb-journey article:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(26, 107, 58, .5); }
.ipb-journey article::after { content: counter(j, decimal-leading-zero); position: absolute; top: 1rem; right: 1.2rem; font-size: 1.9rem; font-weight: 800; color: #e3ece6; }
.ipb-journey i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 15px; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #1a6b3a, #2d8a50); }
.ipb-journey h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: .4rem; }
.ipb-journey p { font-size: .9rem; line-height: 1.55; color: var(--ipb-muted); }

/* ---------- FAQ ---------- */
.ipb-faqs { max-width: 860px; margin: 0 auto; display: grid; gap: .7rem; }
.ipb-faq { background: #fff; border: 1px solid var(--ipb-line); border-radius: 16px; transition: box-shadow .2s, border-color .2s; }
.ipb-faq[open] { border-color: #b9d8c4; box-shadow: 0 18px 32px -26px rgba(26, 107, 58, .6); }
.ipb-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.3rem; font-weight: 700; cursor: pointer; list-style: none; }
.ipb-faq summary::-webkit-details-marker { display: none; }
.ipb-faq summary::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 1.15rem; font-weight: 700; color: var(--kld-primary, #1a6b3a); background: var(--ipb-tint); transition: transform .25s, background .2s, color .2s; }
.ipb-faq[open] summary::after { content: "\2212"; color: #fff; background: var(--kld-primary, #1a6b3a); }
.ipb-faq div { padding: 0 1.3rem 1.2rem; color: var(--ipb-muted); line-height: 1.7; font-size: .95rem; }

/* ---------- call to action ---------- */
.ipb-cta { position: relative; overflow: hidden; margin: 3.6rem 0 4rem; padding: 3rem 2rem; text-align: center; color: #fff; border-radius: 30px;
    background: radial-gradient(500px 240px at 90% 0%, rgba(201, 162, 39, .32), transparent 60%), linear-gradient(135deg, #0d3d21 0%, #1a6b3a 60%, #2d8a50 130%);
    box-shadow: 0 34px 60px -34px rgba(13, 61, 33, .8); }
.ipb-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.ipb-cta p { max-width: 560px; margin: .8rem auto 1.6rem; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.ipb-cta .ipb-actions { justify-content: center; margin-top: 0; }

/* ---------- motion ---------- */
.ipb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.ipb-reveal.ipb-in { opacity: 1; transform: none; }
@keyframes ipbPanel { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ipbPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ipb *, .ipb *::before, .ipb *::after { animation: none !important; transition: none !important; } .ipb-reveal { opacity: 1; transform: none; } }
@media (max-width: 767px) { .ipb-hero { padding: 3rem 0 6.5rem; } .ipb-finder { margin-inline: .75rem; padding: 1.2rem; } .ipb-tab span { display: none; } .ipb-tab { padding: .8rem 1rem; } .ipb-tab[aria-selected="true"] span { display: inline; } }