/* ============================================================
   CITIZEN — plan page styles
   ============================================================ */
.plan-section { padding: 60px 24px; opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.plan-section.in { opacity: 1; transform: none; }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px,3.4vw,40px); font-weight: 700; margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Hero ---------- */
.plan-hero { padding: 70px 24px 50px; text-align: center; }
.plan-hero__title { font-size: clamp(34px, 5.2vw, 62px); font-weight: 700; margin: 22px 0 18px; }
.plan-hero__sub { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 auto 30px; }
.plan-hero__sub b { color: var(--text); }
.plan-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.plan-hero__stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; max-width: 720px; margin: 0 auto; }
.plan-hero__stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 12px; }
.plan-hero__stats b { font-family: 'Space Grotesk'; font-size: 28px; display: block; }
.plan-hero__stats span { font-size: 13px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; counter-reset: step; }
.step-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; transition: transform .25s var(--ease), border-color .25s; }
.step-item:hover { transform: translateY(-5px); border-color: var(--line-2); }
.step-item__n { font-family: 'Space Grotesk'; font-weight: 700; font-size: 15px; color: #06121b; background: var(--grad); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 8px 20px -8px rgba(56,225,201,.6); }
.step-item__t { font-family: 'Space Grotesk'; font-weight: 600; font-size: 16.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.step-item__body p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: start; }
.calc-inputs { padding: 26px; }
.field > span { font-size: 13.5px; color: var(--muted); display: block; margin-bottom: 9px; }
.field__input { display: flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 16px; }
.field__input input { flex: 1; background: none; border: none; color: var(--text); font-family: 'Space Grotesk'; font-size: 22px; font-weight: 600; outline: none; }
.cfield { display: block; margin-top: 22px; }
.cfield > span { font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 12px; }
.cfield > span b { color: var(--text); font-family: 'Space Grotesk'; font-size: 15px; }
.cfield input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: var(--surface-2); outline: none; }
.cfield input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); cursor: pointer; box-shadow: 0 0 10px rgba(56,225,201,.7); border: 2px solid var(--bg); }
.cfield input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); cursor: pointer; border: 2px solid var(--bg); }
.cfield__ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--muted-2); }
.calc-note { margin-top: 22px; font-size: 12px; color: var(--muted-2); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 16px; }

.calc-output { padding: 26px; }
.calc-total { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--glow); }
.calc-total > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.calc-total > div:first-child span { font-size: 13px; }
.calc-total b#oTotalDay { font-family: 'Space Grotesk'; font-size: 34px; font-variant-numeric: tabular-nums; }
.calc-total__sub { display: flex; gap: 26px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-total__sub b { font-family: 'Space Grotesk'; font-size: 15px; }

.calc-breakdown { display: flex; flex-direction: column; gap: 4px; }
.bk-row { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 14px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.bk-row:last-child { border-bottom: none; }
.bk-row__name { font-size: 14px; }
.bk-row__bar { height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bk-row__bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .35s var(--ease); }
.bk-row__v { font-family: 'Space Grotesk'; font-size: 14.5px; text-align: right; font-variant-numeric: tabular-nums; }
.bk-row__v small { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.bk-row--retopup .bk-row__bar { background: none; }

/* ---------- Caps ---------- */
.caps { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.cap { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.cap span { font-size: 12px; }
.cap b { font-family: 'Space Grotesk'; font-size: 18px; }
.cap--total { border-color: rgba(56,225,201,.35); background: rgba(56,225,201,.06); }
.cap-eta { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.cap-eta b { color: var(--text); font-family: 'Space Grotesk'; }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* ---------- Income detail ---------- */
.inc-detail { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.inc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: transform .25s var(--ease), border-color .25s; }
.inc-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.inc-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.inc-card__icon { font-size: 28px; }
.inc-card h3 { font-size: 18px; margin-bottom: 8px; }
.inc-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 16px; }
.inc-card__formula { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 12.5px; color: var(--gold-2); font-family: ui-monospace, Menlo, monospace; }

/* ---------- Rank table ---------- */
.rank-table { padding: 8px 0; }
.rank-row { display: grid; grid-template-columns: 1.1fr 2fr 1fr 1.1fr .9fr; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rank-row:last-child { border-bottom: none; }
.rank-row--head { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rank-row__name { font-family: 'Space Grotesk'; font-weight: 700; }
.rank-row__mult { font-family: 'Space Grotesk'; font-weight: 700; }
.rank-row .yes { color: var(--cyan); font-weight: 600; }

/* ---------- Reserve ---------- */
.reserve-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 18px; }
.reserve-feature { padding: 22px; }
.reserve-feature span { font-size: 24px; }
.reserve-feature b { font-family: 'Space Grotesk'; font-size: 15.5px; display: block; margin: 10px 0 6px; }
.reserve-feature p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.reserve-bar-wrap { padding: 22px 24px; }
.reserve-bar-wrap__top { display: flex; justify-content: space-between; margin-bottom: 12px; font-family: 'Space Grotesk'; }
.reserve-box__bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.reserve-box__fill { height: 100%; background: var(--grad); border-radius: 99px; box-shadow: 0 0 12px rgba(56,225,201,.5); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.faq-item.is-open { border-color: var(--line-2); }
.faq-q { width: 100%; background: none; border: none; color: var(--text); font-family: 'Space Grotesk'; font-weight: 600; font-size: 15.5px; text-align: left; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-ico { color: var(--cyan); font-size: 22px; transition: transform .25s; flex-shrink: 0; }
.faq-item.is-open .faq-ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.is-open .faq-a { max-height: 240px; }
.faq-a p { color: var(--muted); font-size: 14.5px; line-height: 1.6; padding: 0 20px 20px; }

/* ---------- CTA + disclaimer ---------- */
.cta { text-align: center; padding: 48px 24px; background: linear-gradient(180deg, rgba(56,225,201,.08), rgba(255,255,255,.02)); border-color: var(--line-2); }
.cta h2 { font-size: clamp(24px,3vw,34px); margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 24px; }
.disclaimer { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); padding: 20px 24px; font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 26px 0 30px; }
.disclaimer strong { color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .steps, .plan-hero__stats, .inc-detail, .reserve-grid { grid-template-columns: 1fr 1fr; }
  .calc-wrap { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .rank-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .rank-row--head { display: none; }
  .rank-row__name { grid-column: 1/-1; font-size: 17px; }
}
@media (max-width: 560px) {
  .steps, .plan-hero__stats, .inc-detail, .reserve-grid { grid-template-columns: 1fr; }
  .bk-row { grid-template-columns: 1fr auto; }
  .bk-row__bar { display: none; }
}
