/* Pricing v2 (dark). Loaded only by pricing.php, after css/home.css (tokens, header/footer, FAQ). */

.pv-hero { text-align: center; }
body.sm-home-v2 section.pv-hero { padding-bottom: 24px; }
.pv-hero-in { position: relative; }
.pv-h1 { margin-top: 16px; }
body.sm-home-v2 section.pv-calc-sec { padding-top: 16px; }

.pv-calc { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.pv-left { flex: 2 1 560px; min-width: 0; border: 1px solid var(--h-line); border-radius: 24px; background: var(--h-surface); padding: 32px; display: flex; flex-direction: column; }
.pv-right { flex: 1 1 340px; min-width: 0; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }

.pv-step { margin: 0; padding: 28px 0; border: 0; border-top: 1px solid var(--h-line); min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pv-step:first-child { padding-top: 0; border-top: 0; }
.pv-step:last-child { padding-bottom: 0; }
.pv-step-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pv-step-head--top { align-items: flex-start; }
.pv-h { margin: 0; padding: 0; font-size: 20px; font-weight: 700; color: var(--h-text); }
.pv-opt { font-size: 14px; font-weight: 500; color: var(--h-dim); }
.pv-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--h-muted); }
.pv-small { margin: 0; font-size: 13px; color: var(--h-dim); }
.pv-left a, .pv-small a { color: var(--h-accent-soft); }

/* radios styled as cards (real inputs, keyboard friendly) */
.pv-billing { display: flex; padding: 4px; border-radius: 999px; background: var(--h-surface-2); border: 1px solid var(--h-line-2); }
.pv-billing label, .pv-plan, .pv-mopt { position: relative; cursor: pointer; }
.pv-billing input, .pv-plan input, .pv-mopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pv-billing span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--h-text-2); }
.pv-billing em { font-style: normal; font-weight: 700; color: var(--h-live); }
.pv-billing input:checked + span { background: var(--h-text); color: #120f18; font-weight: 700; }
.pv-billing input:checked + span em { color: #0b6b5f; }
.pv-billing input:focus-visible + span { outline: 2px solid var(--h-live); outline-offset: 2px; }

.pv-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.pv-plan { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; border: 2px solid var(--h-line-2); background: var(--h-surface-2); min-height: 44px; }
.pv-plan:hover { border-color: #4a3f58; }
.pv-plan.is-checked, .pv-plan:has(input:checked) { border-color: var(--h-accent); background: #1e0c1d; box-shadow: 0 0 40px -16px rgba(227, 91, 214, 0.7); }
.pv-plan:has(input:focus-visible) { outline: 2px solid var(--h-live); outline-offset: 3px; }
.pv-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pv-plan-name { font-size: 17px; font-weight: 700; color: var(--h-text); }
.pv-badge { padding: 3px 8px; border-radius: 999px; background: #2a0f2a; color: var(--h-accent-soft); font-family: var(--h-mono); font-size: 10px; }
.pv-plan-price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--h-text); }
.pv-plan-price small, .pv-total small, .pv-mcard-price small { font-size: 13px; font-weight: 500; color: var(--h-muted); }
.pv-plan-tag { font-size: 13px; line-height: 1.45; color: var(--h-muted); }

/* messages */
.pv-num { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--h-dim); }
.pv-num input { width: 140px; min-height: 44px; box-sizing: border-box; padding: 0 12px; border-radius: 12px; border: 1px solid var(--h-line-2); background: var(--h-surface-2); color: var(--h-text); font-family: var(--h-mono); font-size: 16px; text-align: right; }
.pv-track { position: relative; height: 10px; border-radius: 6px; background: var(--h-line); overflow: hidden; }
.pv-track-incl, .pv-track-extra { position: absolute; top: 0; bottom: 0; left: 0; width: 0; }
.pv-track-incl { background: var(--h-accent); }
.pv-track-extra { background: #f4a6ee; }
#pv-msgs { width: 100%; margin: -4px 0 0; accent-color: var(--h-accent); min-height: 32px; }
.pv-scale { display: flex; justify-content: space-between; gap: 8px; font-family: var(--h-mono); font-size: 12px; color: var(--h-dim); }
.pv-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.pv-key--incl { background: var(--h-accent); }
.pv-key--extra { background: #f4a6ee; }

/* team */
.pv-unlimited { margin: 0; padding: 14px 16px; border-radius: 14px; background: #0e1413; border: 1px solid #1f3a36; font-size: 14px; color: var(--h-text-2); }
.pv-unlimited strong { color: var(--h-text); }
.pv-unlimited[hidden], .pv-steppers[hidden] { display: none; }
.pv-steppers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.pv-stepper { padding: 16px; border-radius: 16px; background: var(--h-surface-2); border: 1px solid var(--h-line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-stepper-name { display: block; font-size: 15px; font-weight: 600; color: var(--h-text); }
.pv-stepper-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--h-muted); }
.pv-stepper-ctl { display: flex; align-items: center; gap: 6px; }
.pv-stepper-ctl button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--h-line-2); background: var(--h-surface); color: var(--h-text); font-size: 20px; cursor: pointer; }
.pv-stepper-ctl button:disabled { opacity: 0.4; cursor: default; }
.pv-stepper-ctl output { min-width: 28px; text-align: center; font-family: var(--h-mono); font-size: 17px; color: var(--h-text); }

/* managed */
.pv-managed { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.pv-mopt { min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--h-line-2); background: var(--h-surface-2); }
.pv-mopt.is-checked, .pv-mopt:has(input:checked) { border-color: var(--h-accent); background: #1e0c1d; }
.pv-mopt:has(input:focus-visible) { outline: 2px solid var(--h-live); outline-offset: 3px; }
.pv-mopt-name { font-size: 15px; font-weight: 700; color: var(--h-text); }
.pv-mopt-price { font-family: var(--h-mono); font-size: 13px; color: var(--h-muted); }

/* price panel */
.pv-panel { border-radius: 24px; border: 1px solid #3a2840; background: radial-gradient(ellipse at 50% 0%, #3a0f36 0%, #160e1a 70%); padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 40px 100px -40px rgba(154, 15, 140, 0.6); }
.pv-billed { margin: 0; font-family: var(--h-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--h-accent-soft); }
.pv-total { margin: 0; font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--h-text); }
.pv-total small { font-size: 18px; font-weight: 600; color: var(--h-text-2); }
.pv-planline { margin: -6px 0 0; font-size: 14px; color: var(--h-text-2); }
.pv-nudge { padding: 14px 16px; border-radius: 14px; background: #0e1413; border: 1px solid #1f3a36; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; color: #e4f7f3; }
.pv-nudge[hidden] { display: none; }
.pv-nudge button { align-self: flex-start; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--h-live); background: transparent; color: var(--h-live); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pv-due { padding: 16px 0; border-top: 1px solid #3a2840; border-bottom: 1px solid #3a2840; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--h-text-2); }
.pv-due small { display: block; margin-top: 2px; font-size: 12px; color: var(--h-muted); }
#pv-due { font-family: var(--h-mono); font-size: 22px; color: var(--h-text); }
.pv-pay, .pv-sales { min-height: 54px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 16px; font-size: 17px; font-weight: 800; text-decoration: none; }
.pv-pay { background: var(--h-text); color: #120f18 !important; }
.pv-pay[hidden] { display: none; }
.pv-sales { border: 1px solid #4a3f58; color: var(--h-text) !important; font-weight: 600; font-size: 16px; }
.pv-pay-note { margin: -4px 0 0; font-size: 13px; line-height: 1.45; color: var(--h-text-2); }
.pv-pay-note[hidden] { display: none; }
.pv-break-btn { min-height: 44px; border: 0; background: transparent; color: var(--h-accent-soft); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.pv-break { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pv-break[hidden] { display: none; }
.pv-break div { display: flex; justify-content: space-between; gap: 12px; }
.pv-break dt { color: var(--h-text-2); }
.pv-break dd { margin: 0; font-family: var(--h-mono); color: var(--h-text); text-align: right; }
.pv-fine { margin: 0; padding: 0 8px; font-size: 12px; line-height: 1.6; color: var(--h-dim); text-align: center; }

/* phones: total pinned to the bottom */
.pv-mbar { display: none; }
@media (max-width: 899px) {
  .pv-right { position: static; }
  .pv-mbar {
    position: fixed; z-index: 55; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 18px;
    background: #160e1a; border: 1px solid #3a2840; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8);
  }
  .pv-mbar small { display: block; font-family: var(--h-mono); font-size: 11px; color: var(--h-accent-soft); }
  .pv-mbar strong { font-size: 20px; color: var(--h-text); }
  .pv-mbar-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; background: var(--h-text); color: #120f18 !important; font-weight: 700; font-size: 14px; text-decoration: none; }
  .pv-mbar.is-off { display: none; }
}

/* compare table */
.pv-table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--h-line); border-radius: 20px; background: var(--h-surface); }
.pv-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.pv-table th, .pv-table td { padding: 15px 22px; text-align: left; vertical-align: top; }
.pv-table thead th { padding-top: 22px; padding-bottom: 18px; font-weight: 600; color: var(--h-dim); font-size: 13px; }
.pv-th-name { display: block; font-size: 17px; font-weight: 700; color: var(--h-text); }
.pv-th-price { font-family: var(--h-mono); font-size: 13px; font-weight: 400; color: var(--h-muted); }
.pv-table thead .pv-hl .pv-th-name { color: var(--h-accent-soft); }
.pv-table tbody tr { border-top: 1px solid var(--h-line); }
.pv-table tbody th { font-weight: 500; color: var(--h-text-2); }
.pv-table td { color: var(--h-text); }
.pv-table .pv-hl { background: #150f18; }
.pv-table .pv-group th { padding-top: 22px; font-family: var(--h-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--h-accent-soft); font-weight: 500; }
.pv-yes { color: var(--h-live); font-weight: 700; }
.pv-no { color: #6e6879; }
.pv-onb-note { margin-top: 14px; }

.pv-enterprise { margin-top: 24px; padding: 28px 32px; border-radius: 22px; border: 1px solid #3a2840; background: #150f18; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; scroll-margin-top: 90px; }
.pv-enterprise > div { flex: 1 1 420px; }
.pv-enterprise .smh-h3 { margin-top: 10px; }

/* managed cards */
.pv-mcard { gap: 10px; }
.pv-mcard-price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--h-text); }
.pv-mcard-hours { font-size: 14px; font-weight: 600; color: var(--h-text-2); }
.pv-mcard-list { margin: 6px 0 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--h-line); padding-top: 14px; }
.pv-mcard-list dt { font-family: var(--h-mono); font-size: 11px; color: var(--h-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.pv-mcard-list dd { margin: 2px 0 0; font-size: 14px; color: var(--h-text); }
.pv-mcard--ent { border-color: #3a2840; background: #150f18; }
.pv-mcard-btn { margin-top: auto; justify-content: center; }

@media (max-width: 640px) {
  .pv-left { padding: 22px; border-radius: 20px; }
  .pv-total { font-size: 46px; }
  .pv-panel { padding: 26px 22px; }
  .pv-num { align-items: flex-start; }
  .pv-scale > span:nth-child(2) { display: none; }
  .pv-enterprise { padding: 24px; }
}

/* single plan card */
.pv-one { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px 28px; padding: 22px; border-radius: 18px; border: 2px solid var(--h-accent); background: #1e0c1d; box-shadow: 0 0 40px -16px rgba(227, 91, 214, 0.7); }
.pv-one-main { display: flex; flex-direction: column; gap: 8px; }
.pv-one .pv-plan-price { font-size: 40px; }
.pv-one-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--h-text); }
.pv-one-list li { position: relative; padding-left: 24px; line-height: 1.4; }
.pv-one-list li::before { content: "✓"; position: absolute; left: 0; color: var(--h-live); font-weight: 700; }
.pv-table--two { min-width: 520px; }
