/* ==========================================================================
   SunTeam v2 — Income plan (/plan): graphical, full-width tables
   ========================================================================== */
.pl { overflow-x: clip; }
.pl-hero { position: relative; padding: 14px 0 30px; overflow: hidden; }
.pl-hero .hero-bg { z-index: -1; }
.pl-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.pl-copy { display: flex; flex-direction: column; gap: 16px; }
.pl-copy .lead { margin: 0; }
.pl-copy .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pl-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pl-facts div { padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); text-align: center; }
.pl-facts b { display: block; font-size: var(--fs-xl); font-weight: 900; }
.pl-facts span { font-size: var(--fs-xs); color: var(--text-3); }
.pl-art svg { display: block; width: 100%; max-width: 480px; height: auto; margin-inline: auto; }
.pl-step { transform-box: fill-box; transform-origin: bottom; animation: pl-grow .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.pl-line { stroke-dashoffset: 400; animation: pl-dash 2.4s var(--ease) .6s forwards; }
.pl-sun { transform-box: fill-box; transform-origin: center; animation: pl-pulse 4s ease-in-out infinite; }
.pl-flag { animation: pl-wave 3s ease-in-out infinite; transform-box: fill-box; }
.pl-coin circle { animation: u-bob2 4s ease-in-out infinite; }
.pl-coin circle:nth-child(2) { animation-delay: -1.3s; } .pl-coin circle:nth-child(3) { animation-delay: -2.6s; }
@keyframes pl-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pl-dash { to { stroke-dashoffset: 0; } }
@keyframes pl-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes pl-wave { 0%, 100% { transform: translate(394px, 24px) skewY(0); } 50% { transform: translate(394px, 24px) skewY(-6deg); } }
@keyframes u-bob2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* sticky nav */
.pl-nav { position: sticky; top: 86px; z-index: 15; margin: 6px 0 10px; }
.pl-nav-in { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin-inline: auto; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-2); overflow-x: auto; scrollbar-width: none; }
.pl-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 14px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); color: var(--text-2); transition: background .2s, color .2s; }
.pl-nav a:hover { background: var(--surface-sunk); }
.pl-nav a.is-on { background: #111318; color: #fff; }
#terms, #rules, #retail, #network, #examples, #ranks { scroll-margin-top: 150px; }

/* terms */
.pl-search { display: flex; align-items: center; gap: 8px; height: 44px; padding-inline: 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); min-width: 240px; }
.pl-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; }
.pl-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pl-term { padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.pl-term[hidden] { display: none; }
.pl-term:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--sun-400), var(--sh-1); }
.pt-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--amber-soft); color: var(--accent-ink); }
.pl-term h3 { margin: 12px 0 6px; font-size: var(--fs-md); font-weight: 900; }
.pl-term p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 2; text-align: justify; }

/* rules */
.pl-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pr-card { padding: 22px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pr-card.pr-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: linear-gradient(135deg, var(--sun-50), var(--surface)); }
.pr-free { background: linear-gradient(135deg, #EAF8EE, var(--surface)); }
.pr-warn { background: linear-gradient(135deg, #FFF1EC, var(--surface)); }
.pr-art { width: 110px; height: auto; margin-bottom: 8px; }
.pr-card h3 { font-size: var(--fs-lg); font-weight: 900; margin-bottom: 8px; }
.pr-card p { color: var(--text-2); line-height: 2; font-size: var(--fs-sm); margin: 0 0 8px; text-align: justify; }
.pr-note { padding: 10px 12px; border-radius: 14px; background: var(--amber-soft); color: var(--text) !important; }
.pr-card ul { margin: 6px 0 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.9; }
.pr-defs p { margin-bottom: 6px; }
.pr-list { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.9; }

/* band with image */
.pl-band { display: grid; grid-template-columns: 340px 1fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); margin-bottom: 18px; }
.pb-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; }
.pb-body p { margin: 0; color: var(--text-2); line-height: 2; }

.pl-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 10px; font-size: var(--fs-lg); font-weight: 900; }
.pl-sub small { font-weight: 600; color: var(--text-3); font-size: var(--fs-sm); }
.pl-stars { color: #F5B400; letter-spacing: 2px; font-size: 1.1em; }

/* full-width tables */
.pl-table-wrap { width: 100%; overflow-x: auto; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.pl-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.pl-table thead th { position: sticky; top: 0; padding: 14px 12px; background: #111318; color: #fff; font-weight: 800; text-align: center; white-space: nowrap; }
.pl-table thead th:first-child { text-align: start; }
.pl-table tbody td { padding: 14px 12px; border-top: 1px solid var(--line); text-align: center; color: var(--text-2); line-height: 1.9; }
.pl-table tbody td:first-child { text-align: start; font-weight: 700; color: var(--text); }
.pl-table tbody tr:hover td { background: var(--sun-50); }
.pl-table .pct { font-weight: 900; color: var(--text); font-size: var(--fs-md); }
.pl-table .bar { display: block; height: 10px; width: var(--w); min-width: 8px; border-radius: 99px; background: linear-gradient(90deg, #FFE45C, #F2C200); }
.pl-table.heat .pct { background: color-mix(in srgb, #FFC107 calc(var(--h) * 70%), var(--surface)); }
.pl-table.ranks { min-width: 860px; }
.pl-table.ranks tbody td { text-align: start; }
.pl-table.ranks .rk { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.pl-table.ranks .rk .club-badge { flex: none; filter: drop-shadow(0 6px 10px rgba(17,19,24,.2)); }
.pl-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--amber-soft); font-size: var(--fs-sm); line-height: 1.9; }
.pl-note .ic { flex: none; margin-top: 4px; color: var(--accent-ink); }

/* star tiers stepper */
.pl-tiers { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pl-tiers li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, #FFC107 calc(10% + var(--i) * 12%), var(--surface)), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.pl-tiers li::after { content: ""; position: absolute; top: 50%; inset-inline-end: -10px; width: 10px; height: 2px; background: var(--line-strong); }
.pl-tiers li:last-child::after { display: none; }
.pl-tiers b { font-weight: 900; }
.pl-tiers small { font-size: var(--fs-xs); color: var(--text-2); }

/* calcs */
.pl-calcs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc-card { padding: 22px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.pc-card.pc-wide { grid-column: 1 / -1; }
.pc-card h3 { display: flex; align-items: center; gap: 8px; font-weight: 900; }
.pc-card p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 2; }
.pc-eq { padding: 14px 16px; border-radius: 16px; background: #111318; color: #fff; font-weight: 700; text-align: center; }
.pc-eq b { color: var(--sun-400); }
.pc-tree { width: 100%; max-height: 130px; }
.pc-sum { display: flex; flex-direction: column; gap: 6px; }
.pc-sum div { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: var(--surface-sunk); font-size: var(--fs-sm); }
.pc-sum .tot { background: var(--sun-400); font-weight: 900; }
.pc-steps { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.ps { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--surface-sunk); }
.ps small { color: var(--text-2); line-height: 1.9; }
.ps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ps li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface); font-size: var(--fs-sm); font-weight: 700; }
.ps li span { direction: rtl; color: var(--text-3); font-weight: 600; }
.pc-total { padding: 16px; border-radius: 18px; background: linear-gradient(90deg, #12B76A, #0E9F5B); color: #fff; text-align: center; font-size: var(--fs-lg); }

/* cta */
.pl-cta { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; border-radius: 32px; overflow: hidden; background: #111318; color: #fff; }
.pl-cta img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-in { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(22px, 4vw, 40px); }
.pc-in h2 { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 900; }
.pc-in p { margin: 0; color: rgba(255,255,255,.72); line-height: 2; }

@media (prefers-reduced-motion: reduce) { .pl-step, .pl-line, .pl-sun, .pl-flag, .pl-coin circle { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 1100px) { .pl-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .pl-hero-grid, .pl-rules, .pr-card.pr-wide, .pl-band, .pl-calcs, .pc-steps, .pl-cta { grid-template-columns: 1fr; }
  .pl-art { order: -1; max-width: 360px; margin-inline: auto; }
  .pl-facts { grid-template-columns: 1fr 1fr; }
  .pb-img { max-height: 200px; overflow: hidden; }
  .pl-cta img { max-height: 200px; }
  .pl-nav { top: 76px; }
}
@media (max-width: 560px) { .pl-tiers { grid-template-columns: 1fr 1fr; } .pl-search { min-width: 0; width: 100%; } .hide-sm { display: none; } .pl-table { min-width: 520px; } }
