/* The Revenue Plan (/calculator/), round 2: title, funnel tabs, the calculator (KPI and its number), the plan on the
   right. Tantra palette and Inter. Mobile first; from 1024px the plan is a sticky right column. */
.page-calc { background: var(--paper); }
.cx-bar { background: var(--ink); }
.cx-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.cx-logo { display: inline-flex; align-items: center; gap: 8px; }
.cx-help { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 0; border-radius: 999px; font: 650 13px var(--sans); color: var(--white); cursor: pointer; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.cx-help span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--volt); font-weight: 800; font-size: 12px; }
.cx-help:hover { background: rgba(255, 255, 255, .14); }
.cx-help.is-new::after { content: ''; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); animation: cx-ping 1.6s infinite; }
@keyframes cx-ping { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); } }

.cx-head { background: radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--volt) 25%, transparent), transparent 70%), var(--ink); color: var(--text-d); padding: 36px 0 40px; }
.cx-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--iris); }
.cx-h1 { margin: 0; color: var(--white); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.cx-lede { max-width: 52ch; margin: 12px 0 0; color: var(--muted-d); font-size: 16px; }
.cx-sample { display: inline-block; margin: 16px 0 0; padding: 8px 14px; border-radius: 10px; background: rgba(251, 191, 36, .12); color: #fde68a; font-size: 14px; }
.cx-sample a { color: var(--white); font-weight: 700; }

.cx-tabsbar { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.cx-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.cx-tabs::-webkit-scrollbar { display: none; }
.cx-tab { flex: none; display: grid; gap: 1px; text-align: left; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-family: var(--sans); transition: border-color .15s, background .15s; }
.cx-tab b { font-size: 14px; color: var(--ink); white-space: nowrap; }
.cx-tab span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cx-tab.is-rec span { color: var(--volt-deep); font-weight: 650; }
.cx-tab:hover { border-color: var(--haze); }
.cx-tab[aria-selected=true] { border-color: var(--volt); background: var(--lilac); box-shadow: 0 0 0 1px var(--volt); }

.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; padding-bottom: 72px; }
.cx-main { min-width: 0; display: grid; gap: 14px; align-content: start; }
.cx-side { min-width: 0; }
@media (max-width: 1023px) { .cx-side { order: -1; } }
@media (min-width: 1024px) { .cx-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; } .cx-side { position: sticky; top: 84px; } }
@media (min-width: 1280px) { .cx-grid { grid-template-columns: minmax(0, 760px) 420px; justify-content: space-between; } }

/* Stage cards */
.cx-st { padding: 6px 18px 10px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.cx-st__h { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 15px; font-weight: 750; letter-spacing: -.01em; color: var(--ink); }
.cx-st__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--white); font-size: 12.5px; font-weight: 800; }
.cx-st__note { margin: 4px 0 8px; font-size: 14px; color: var(--muted); }
.cx-r { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.cx-st__h + .cx-r, .cx-r--head + .cx-r { border-top: 0; }
.cx-r--ch { grid-template-columns: minmax(0, 1fr) auto auto 28px; }
.cx-r--head { min-height: 0; padding: 4px 0 0; border: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cx-r--head span:nth-child(2), .cx-r--head span:nth-child(3) { width: 96px; text-align: center; }
.cx-r__n { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cx-r__n small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.cx-f { position: relative; display: inline-flex; align-items: center; width: 96px; height: 44px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--paper); transition: border-color .15s, box-shadow .15s, background .15s; }
.cx-f--usd { width: 120px; }
.cx-f:focus-within { border-color: var(--volt); background: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 16%, transparent); }
.cx-f input, .cx-f select { width: 100%; height: 100%; min-width: 0; border: 0; background: transparent; padding: 0 26px 0 12px; font: 700 15.5px/1 var(--sans); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.cx-f--usd input { padding: 0 12px 0 24px; }
.cx-f i { position: absolute; font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); pointer-events: none; }
.cx-f i.post { right: 11px; } .cx-f i.pre { left: 11px; }
.cx-f--sel { width: 180px; }
.cx-f--sel select { appearance: none; -webkit-appearance: none; text-align: left; padding: 0 34px 0 12px; font-weight: 650; font-size: 14.5px; cursor: pointer; background: var(--chev) right 10px center / 16px no-repeat; }
.cx-r.is-over .cx-f:not(.cx-f--sel):not(.is-share), .cx-f.is-set { border-color: var(--amber); background: #fffbeb; }
.cx-undo { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--lilac); color: var(--volt-deep); font-size: 15px; cursor: pointer; }
.cx-undo:hover { background: var(--lilac-2); }
.cx-foot { display: flex; gap: 18px; padding: 6px 4px; }
.cx-link { padding: 0; border: 0; background: none; font: 650 14px var(--sans); color: var(--volt-deep); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.cx-link--mute { color: var(--muted); }
@media (max-width: 479px) {
  .cx-st { padding: 6px 14px 10px; }
  .cx-r--ch { grid-template-columns: minmax(0, 1fr) auto auto 28px; row-gap: 6px; }
  .cx-r--ch .cx-r__n { grid-column: 1 / -1; }
  .cx-r--ch .cx-f:first-of-type { grid-column: 2; }
  .cx-r--head { display: none; }
  .cx-r--ch { row-gap: 22px; padding-bottom: 10px; }
  .cx-r--ch .cx-f::before { content: 'Rate'; position: absolute; left: 2px; top: -18px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .cx-r--ch .cx-f.is-share::before { content: 'Share'; }
  .cx-f { width: 84px; } .cx-f--usd { width: 108px; } .cx-f--sel { width: 156px; }
}

/* The plan */
.cx-plan { padding: 22px 22px 18px; border-radius: 20px; background: radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--volt) 28%, transparent), transparent 70%), var(--ink); color: var(--text-d); box-shadow: var(--sh-3); }
.cx-goal { display: grid; gap: 6px; }
.cx-goal > span:first-child { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--iris); }
.cx-goal__f { position: relative; display: block; border-bottom: 2px solid rgba(255, 255, 255, .18); transition: border-color .15s; }
.cx-goal__f:focus-within { border-color: var(--iris); }
.cx-goal__f i { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-style: normal; font-size: clamp(28px, 1.6rem + 1vw, 40px); font-weight: 800; color: var(--muted-d); }
.cx-goal input { width: 100%; padding: 4px 0 6px clamp(22px, 1.2rem + .6vw, 30px); border: 0; background: transparent; outline: none; font: 800 clamp(30px, 1.7rem + 1.2vw, 44px)/1.1 var(--sans); letter-spacing: -.035em; color: var(--white); font-variant-numeric: tabular-nums; }
.cx-plan__k { margin: 20px 0 8px; font-size: 13px; font-weight: 650; color: var(--muted-d); }
.cx-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cx-s { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.cx-s__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--iris) 16%, transparent); color: var(--iris); font-size: 12px; font-weight: 800; }
.cx-s__t { margin: 3px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); }
.cx-s__i { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 3px 0; font-size: 14px; color: var(--text-d); }
.cx-s__i b { font-weight: 650; color: var(--text-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-s__i.is-key b { font-size: 17px; font-weight: 800; color: var(--white); }
.cx-plan__later { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: var(--muted-d); }
.cx-warn { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: rgba(251, 191, 36, .12); color: #fde68a; font-size: 13.5px; font-weight: 600; }

/* Guide drawer */
.cx-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100vw, 460px); max-width: 100vw; height: 100%; max-height: 100%; padding: 0; border: 0; background: var(--paper); color: var(--text); box-shadow: -24px 0 60px color-mix(in srgb, var(--ink) 25%, transparent); overflow-y: auto; }
.cx-drawer[open] { animation: cx-in .28s var(--ease); }
@keyframes cx-in { from { transform: translateX(40px); opacity: 0; } }
.cx-drawer::backdrop { background: color-mix(in srgb, var(--ink) 45%, transparent); backdrop-filter: blur(2px); }
.cx-drawer__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 22px 16px; background: var(--ink); }
.cx-drawer__head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; color: var(--white); }
.cx-drawer__head .cx-eyebrow { margin-bottom: 4px; }
.cx-drawer__x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.cx-drawer__x:hover { background: rgba(255, 255, 255, .18); }
.cx-drawer__body { display: grid; gap: 10px; padding: 16px; }
.cx-g { border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.cx-g summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.cx-g summary::-webkit-details-marker { display: none; }
.cx-g__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--lilac); color: var(--volt-deep); font-weight: 800; font-size: 13.5px; }
.cx-g[open] .cx-g__n { background: var(--volt); color: var(--white); }
.cx-g__t { font-weight: 700; font-size: 15px; color: var(--ink); }
.cx-g__chev { margin-left: auto; flex: none; width: 18px; height: 18px; background: var(--chev) center / contain no-repeat; transition: transform .2s var(--ease); }
.cx-g[open] .cx-g__chev { transform: rotate(180deg); }
.cx-g__b { padding: 0 16px 16px; display: grid; gap: 14px; }
.cx-g ol { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 10px; }
.cx-g li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.55; counter-increment: g; }
.cx-g li::before { content: counter(g); position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--volt-deep); background: var(--lilac); }
.cx-g li b { color: var(--ink); }
.cx-g__mock { border-radius: 12px; padding: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; }
.mk { display: block; }
.mk em { display: block; font-style: normal; font-size: 10px; font-weight: 600; opacity: .75; }
.mk--dark { padding: 12px; border-radius: 10px; background: var(--ink); color: var(--white); }
.mk--dark > em { color: var(--iris); opacity: 1; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.mk--dark > b { display: block; font-size: 22px; letter-spacing: -.03em; margin: 2px 0 8px; }
.mk__list { display: grid; gap: 4px; }
.mk__list span { display: flex; justify-content: space-between; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1); }
.mk--tabs { display: flex; gap: 6px; overflow: hidden; }
.mk--tabs span { flex: none; padding: 7px 10px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; color: var(--ink); }
.mk--tabs span.on { border-color: var(--volt); background: var(--lilac); box-shadow: 0 0 0 1px var(--volt); }
.mk--tabs em { color: var(--volt-deep); opacity: 1; }
.mk--kpi { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.mk__name { flex: 1; font-weight: 700; color: var(--ink); }
.mk__field { padding: 6px 10px; border-radius: 8px; border: 1.5px solid var(--amber); background: #fffbeb; font-weight: 800; color: var(--ink); }
.mk__undo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); color: var(--volt-deep); font-weight: 800; }
.mk--ch { display: grid; gap: 6px; }
.mk--ch span { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; color: var(--ink); }
.mk--ch i { padding: 3px 8px; border-radius: 6px; border: 1.5px solid var(--line); font-style: normal; font-weight: 700; }
.mk--ch i:first-of-type { margin-left: auto; }
.mk--btns { display: flex; flex-wrap: wrap; gap: 6px; }
.mk--btns span { padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; color: var(--volt-deep); }
.mk--btns span.g { color: var(--muted); }

/* How the plan is calculated (Adi 2026-11-08): revenue maths, editable benchmarks, every conversion with its numbers */
.cx-calc { padding: 8px 0 88px; }
.cx-calc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding: 32px 0 20px; border-top: 1px solid var(--line); }
.cx-eyebrow--dark { color: var(--volt-deep); }
.cx-calc__h { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.cx-calc__lede { max-width: 64ch; margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
[data-cx-calc] { display: grid; gap: 14px; }
.cx-card { padding: 18px 20px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); min-width: 0; }
.cx-card__h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 750; color: var(--ink); }
.cx-tblwrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.cx-bt { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.cx-bt th, .cx-bt td { padding: 10px 8px; border-top: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.cx-bt thead th { border-top: 0; padding-top: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cx-bt tbody th { font-weight: 400; width: 30%; }
.cx-bt tbody th b { display: block; font-size: 14.5px; font-weight: 650; color: var(--ink); }
.cx-bt small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cx-bt .cx-f { width: 88px; height: 38px; border-radius: 9px; }
.cx-bt .cx-f--usd { width: 96px; }
.cx-bt .cx-f input { font-size: 14px; }
.cx-used b { font-size: 15px; color: var(--volt-deep); font-variant-numeric: tabular-nums; }
.cx-used.is-over b { color: #b45309; }
.cx-src2 { max-width: 240px; font-size: 12.5px; color: var(--muted); }
.cx-eqs__k { margin: 18px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cx-eqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cx-eq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.cx-eqs > .cx-eq:first-child { border-top: 0; }
@media (min-width: 900px) { .cx-eq { grid-template-columns: 220px minmax(0, 1fr) auto; align-items: baseline; } }
.cx-eq__l { font-weight: 650; color: var(--ink); }
.cx-eq__f { color: var(--muted); line-height: 1.6; }
.cx-eq__r { font-size: 15.5px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-eq__r small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cx-t { display: inline; padding: 1px 6px; border-radius: 6px; background: var(--paper); color: var(--text); white-space: nowrap; }
.cx-t b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cx-t--k { background: var(--lilac); }
.cx-t--k b { color: var(--volt-deep); }
@media (max-width: 599px) { .cx-t { white-space: normal; } .cx-card { padding: 16px 14px; } }
@media print { .cx-calc { break-before: page; } }
@media (max-width: 759px) {
  .cx-bt { min-width: 0; }
  .cx-bt thead { display: none; }
  .cx-bt, .cx-bt tbody { display: block; }
  .cx-bt tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; padding: 14px 0 12px; border-top: 1px solid var(--line-2); }
  .cx-bt tbody tr:first-child { border-top: 0; padding-top: 4px; }
  .cx-bt th, .cx-bt td { padding: 0; border: 0; }
  .cx-bt tbody th { grid-column: 1 / -1; width: auto; }
  .cx-bt td:nth-child(2), .cx-bt td:nth-child(3), .cx-bt td:nth-child(4) { position: relative; }
  .cx-bt td:nth-child(2)::before, .cx-bt td:nth-child(3)::before, .cx-bt td:nth-child(4)::before { position: absolute; top: -17px; left: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .cx-bt td:nth-child(2)::before { content: 'Low'; } .cx-bt td:nth-child(3)::before { content: 'Typical'; } .cx-bt td:nth-child(4)::before { content: 'Strong'; }
  .cx-bt .cx-f, .cx-bt .cx-f--usd { width: 100%; }
  .cx-used { grid-column: 1 / 2; }
  .cx-src2 { grid-column: 2 / -1; max-width: none; }
}
