/* =========================================================
   Pricing calculators + tool CTAs
   ========================================================= */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc-form { display: grid; gap: 18px; min-width: 0; }
.calc-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow-sm); }
.calc-step[hidden] { display: none; }
.calc-step h2 { font-size: 1.15rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.calc-step h2 .sn { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: .82rem; color: #fff; background: var(--grad-brand); flex-shrink: 0; }
.calc-step .help { margin: 0 0 14px; font-size: .9rem; color: var(--text-2); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .ob { position: relative; display: flex; gap: 10px; align-items: flex-start; height: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--bg); transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast); }
.opt .ob .icon { color: var(--primary); width: 22px; height: 22px; margin-top: 1px; }
.opt .ob strong { display: block; font-size: .95rem; line-height: 1.3; }
.opt .ob small { display: block; color: var(--text-2); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.opt .ob .pr { display: block; margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--primary-600); }
.opt:hover .ob { border-color: #A5ADE3; }
.opt input:checked + .ob { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px rgba(79, 70, 229, .14); }
.opt input:focus-visible + .ob { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt input:disabled + .ob { opacity: .45; cursor: not-allowed; }
.opt.check .ob { padding-right: 38px; }
.opt.check .ob::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--border-strong); background: #fff; }
.opt.check input:checked + .ob::after { border-color: var(--primary); background: var(--primary) url("../img/tick.svg") center / 12px no-repeat; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row output { min-width: 64px; text-align: center; padding: 8px 10px; border-radius: 10px; background: var(--primary-50); color: var(--primary-600); font-weight: 800; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 8px; min-height: 0; padding: 0; border: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary) var(--fill, 0%), var(--muted) var(--fill, 0%)); }
.calc input[type="range"]:focus { box-shadow: none; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 4px 12px -2px rgba(79, 70, 229, .5); cursor: grab; }
.calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; }
.calc input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-2); margin-top: 6px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: var(--muted); border: 1px solid var(--border); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--text-2); transition: background-color var(--t-fast), color var(--t-fast); }
.seg input:checked + span { background: var(--surface); color: var(--primary-600); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }

/* result card */
.calc-result { position: sticky; top: 92px; border-radius: var(--radius-xl); overflow: hidden; background: var(--ink); color: var(--text-inv); box-shadow: var(--shadow-lg); isolation: isolate; }
.calc-result::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%; background: #7C3AED; filter: blur(80px); opacity: .5; z-index: -1; }
.calc-result::after { content: ""; position: absolute; width: 260px; height: 260px; left: -120px; bottom: -120px; border-radius: 50%; background: #0D9488; filter: blur(80px); opacity: .35; z-index: -1; }
.cr-head { padding: 24px 24px 0; }
.cr-k { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #C7D2FE; display: flex; justify-content: space-between; gap: 8px; }
.cr-plan { color: var(--accent); }
.cr-price { margin: 10px 0 2px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cr-price .big { font-size: clamp(2.3rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cr-price .unit { font-size: .95rem; color: var(--text-inv-2); }
.cr-sub { font-size: .85rem; color: var(--text-inv-2); margin: 0; }
.cr-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 24px; }
.cr-meta div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cr-meta small { display: block; font-size: .72rem; color: var(--text-inv-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cr-meta b { font-size: .95rem; color: #fff; }
.cr-break { margin: 0 24px; padding: 12px 0; border-top: 1px dashed rgba(255, 255, 255, .15); max-height: 220px; overflow-y: auto; list-style: none; display: grid; gap: 6px; font-size: .87rem; }
.cr-break li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-inv); }
.cr-break li span:last-child { color: #fff; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-break li.inc span:last-child { color: #5EEAD4; font-weight: 600; }
.cr-actions { padding: 18px 24px 22px; display: grid; gap: 12px; }
.cr-actions .btn { width: 100%; }
.btn-offer { background: linear-gradient(135deg, #FDE68A, #F59E0B 55%, #F97316); color: var(--ink); font-weight: 800; box-shadow: 0 10px 30px -8px rgba(245, 158, 11, .7); animation: offer-pulse 2.4s ease-in-out infinite; overflow: visible; }
.btn-offer:hover { color: var(--ink); }
.btn-offer .tag { position: absolute; top: -10px; right: 12px; padding: 2px 8px; border-radius: 99px; background: var(--rose); color: #fff; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.cr-trust { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: .76rem; color: var(--text-inv-2); padding: 0 24px 22px; }
.cr-trust span { display: inline-flex; align-items: center; gap: 5px; }
.cr-trust .icon { width: 14px; height: 14px; color: #5EEAD4; }
@keyframes offer-pulse { 0%, 100% { box-shadow: 0 10px 30px -8px rgba(245, 158, 11, .7); } 50% { box-shadow: 0 10px 40px -4px rgba(245, 158, 11, .95); } }

/* dialogs */
.offer-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -20px rgba(11, 16, 51, .6); overflow: auto; }
.offer-dialog::backdrop { background: rgba(11, 16, 51, .6); backdrop-filter: blur(4px); }
.offer-dialog[open] { animation: dlg-in 360ms var(--ease-spring); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.od-head { position: relative; padding: 26px 64px 22px 26px; background: linear-gradient(135deg, #1E1B4B, #4C1D95 60%, #134E4A); color: #fff; }
.od-head .eyebrow { margin-bottom: 8px; color: #FDE68A; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.od-head h2 { color: #fff; font-size: 1.45rem; margin: 0 0 4px; }
.od-head p { margin: 0; color: var(--text-inv-2); font-size: .95rem; }
.od-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.od-close:hover { background: rgba(255, 255, 255, .2); }
.od-body { padding: 22px 26px 26px; display: grid; gap: 16px; }
.od-pricebox { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-50), #FFF1E6); border: 1px solid #FCE3B0; }
.od-pricebox .was { display: block; font-size: .9rem; color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 2px; }
.od-pricebox .now { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.od-pricebox .save { padding: 8px 12px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; font-size: .9rem; text-align: center; line-height: 1.25; }
.od-conds { list-style: none; display: grid; gap: 8px; }
.od-conds label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast); }
.od-conds input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }
.od-conds label:has(input:checked) { border-color: var(--teal); background: var(--teal-50); }
.od-conds strong { display: block; font-size: .95rem; }
.od-conds small { color: var(--text-2); font-size: .82rem; }
.od-conds .pct { margin-left: auto; font-weight: 800; color: var(--teal); white-space: nowrap; }
.od-timer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--rose-50); color: #9F1239; font-weight: 700; font-size: .92rem; text-align: center; }
.od-timer .icon { width: 18px; height: 18px; }
.od-timer b { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.od-code { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--primary); background: var(--primary-50); }
.od-code b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.1rem; letter-spacing: .08em; color: var(--primary-600); }
.od-code small { color: var(--text-2); }
.od-fine { font-size: .78rem; color: var(--text-2); margin: 0; }
.od-step[hidden] { display: none; }
.od-summary { list-style: none; display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--muted); font-size: .9rem; }
.od-summary li { display: flex; justify-content: space-between; gap: 12px; }
.od-summary li b { white-space: nowrap; }
.proceed-dialog .od-head { background: linear-gradient(135deg, #0B1033, #312E81); }

/* mobile sticky price bar */
.calc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .4); }
.calc-bar b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.calc-bar small { display: block; color: var(--text-inv-2); font-size: .72rem; }
.calc-bar .btn { min-height: 44px; padding: 8px 16px; }

/* tool CTA cards used across the site */
.tool-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tool-card { position: relative; display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t); }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C7CDF7; color: var(--text); }
.tool-card .icon-tile { margin: 0; flex-shrink: 0; }
.tool-card strong { display: block; font-size: 1.05rem; }
.tool-card small { display: block; color: var(--text-2); font-size: .88rem; }
.tool-card .badge { position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 99px; background: var(--accent-50); color: var(--accent-600); font-size: .72rem; font-weight: 800; }
.on-dark .tool-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.on-dark .tool-card:hover { color: #fff; }
.on-dark .tool-card small { color: var(--text-inv-2); }

@media (max-width: 1000px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: relative; top: auto; }
  .calc-bar.is-visible { display: flex; }
  body.has-calc .fab-wa { bottom: 84px; }
  body.has-calc .to-top { bottom: 152px; }
}
@media (max-width: 680px) {
  .tool-cta { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .od-pricebox { flex-direction: column; align-items: flex-start; }
  .tool-card .badge { position: static; align-self: flex-start; order: 3; }
}
@media (max-width: 380px) { .opt-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .btn-offer { animation: none; } }

fieldset.calc-step { margin: 0; min-width: 0; }
.mega-foot-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
.mega-foot-row .mega-foot { margin-top: 0; }
.mega-foot.mf-alt { background: var(--accent-50); color: var(--accent-600); gap: 8px; justify-content: flex-start; }
.mega-foot.mf-alt .icon { width: 18px; height: 18px; }

.od-status { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.od-status.busy { background: var(--primary-50); color: var(--primary-600); }
.od-status.busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.od-status.ok { background: var(--teal-50); color: #115E59; }
.od-status.bad { background: var(--rose-50); color: #9F1239; }
.od-status .link-arrow { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; cursor: pointer; }
