/* ==================================================
   PRICING PAGES (/bulk-sms-pricing, /whatsapp-pricing, /rcs-pricing)
   Page-only pieces (.pr-*). Shared product-page pieces come from product-v3.css (.pv-*),
   the base design from home-v2.css. Each page is wrapped in .pv-page--sms|whatsapp|rcs so
   --pv-accent is the channel's icon colour.
   ================================================== */

/* ---------- channel switcher ---------- */
.pr-switch__wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; }
.pr-switch { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 5px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--pv-soft-border, #E4E7EC); box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06); }
.pr-switch__item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px 8px 12px; border-radius: 999px;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #475467; text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.pr-switch__item img { display: block; width: 20px; height: 20px; }
.pr-switch__item { white-space: nowrap; }
.pr-switch__short { display: none; }
.pr-switch__item:hover { color: var(--f2h-ink); background: #F2F4F7; }
.pr-switch__item.is-active { background: var(--pv-accent); color: #FFFFFF; box-shadow: 0 6px 14px color-mix(in srgb, var(--pv-accent) 35%, transparent); }
.pr-switch__item.is-active img { filter: brightness(0) invert(1); }

/* ---------- hero ---------- */
/* Same first-screen hero as the product pages (min-height from home-v2.css); the rate card sits where the phone demo would */
@media (min-width: 1025px) {
    .pr-hero .f2h-hero__card { padding: 56px 56px; }
    .pr-hero .f2h-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
.pr-hero .f2h-hero__grid { align-items: center; }
.pr-hero .f2h-hero__title { font-size: clamp(34px, 4.2vw, 54px); }
.pr-hero .f2h-hero__title b { color: var(--pv-accent); -webkit-text-fill-color: var(--pv-accent); }
.pr-hero .f2h-hero__lead { max-width: 520px; }
.pr-hero__visual { display: flex; justify-content: center; }

/* ---------- rate calculator (SMS hero card) ---------- */
.pr-calc {
    width: 100%; max-width: 440px; padding: 26px 26px 22px;
    border-radius: 22px; background: #FFFFFF; border: 1px solid #EEF0F4;
    box-shadow: 0 24px 50px rgba(16, 24, 40, 0.10);
    font-family: 'Inter', sans-serif;
}
.pr-calc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pr-calc__head span { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--f2h-muted); }
.pr-calc__amount { display: inline-flex; align-items: baseline; gap: 2px; font-size: 26px; font-weight: 700; color: var(--f2h-ink); letter-spacing: -0.02em; }
.pr-calc__amount small { font-size: 16px; font-weight: 600; color: var(--f2h-muted); }
.pr-calc__amount input {
    width: 7ch; padding: 0; border: 0; border-bottom: 2px dashed var(--pv-soft-border); background: transparent;
    font: inherit; color: inherit; text-align: right; outline: none; -moz-appearance: textfield;
}
.pr-calc__amount input::-webkit-outer-spin-button, .pr-calc__amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pr-calc__amount input:focus { border-bottom-color: var(--pv-accent); }

.pr-range { position: relative; margin: 22px 0 6px; }
.pr-range input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0;
    border-radius: 999px; outline: none; cursor: pointer;
    background: linear-gradient(90deg, var(--pv-accent) 0%, var(--pv-accent) var(--pr-fill, 0%), #E4E7EC var(--pr-fill, 0%), #E4E7EC 100%);
}
.pr-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
    background: #FFFFFF; border: 3px solid var(--pv-accent); box-shadow: 0 2px 8px rgba(16, 24, 40, 0.18); cursor: grab;
}
.pr-range input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; border: 3px solid var(--pv-accent); box-shadow: 0 2px 8px rgba(16, 24, 40, 0.18); cursor: grab; }
.pr-range input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #E4E7EC; }
.pr-range input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--pv-accent); }
.pr-range__ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #98A2B3; }
.pr-range__ticks span { flex: 1; text-align: center; }
.pr-range__ticks span:first-child { text-align: left; }
.pr-range__ticks span:last-child { text-align: right; }

.pr-calc__out { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin-top: 18px; }
.pr-calc__stat { padding: 14px 16px; border-radius: 14px; background: #F8F9FC; border: 1px solid #EEF0F4; }
.pr-calc__stat small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #98A2B3; }
.pr-calc__stat strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; color: var(--f2h-ink); letter-spacing: -0.01em; }
.pr-calc__stat.is-rate { background: var(--pv-soft); border-color: var(--pv-soft-border); }
.pr-calc__stat.is-rate strong { font-size: 32px; color: var(--pv-accent); }
.pr-calc__stat.is-rate strong em { font-size: 13px; font-style: normal; font-weight: 500; color: var(--f2h-muted); margin-left: 4px; }
.pr-calc__note { margin: 12px 0 0 !important; font-size: 12px; line-height: 18px; color: #98A2B3; }
.pr-calc__note b { font-weight: 600; color: #667085; }
.pr-calc__cta { margin-top: 16px; }
.pr-calc__cta .f2h-btn { width: 100%; justify-content: center; }

/* ---------- slab table ---------- */
.pr-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 20px; align-items: start; }
.pr-card { padding: 26px 28px; border-radius: 22px; }
.pr-card h2 { margin: 0; font-family: inherit; font-size: 22px; font-weight: 700; color: var(--f2h-ink); letter-spacing: -0.01em; }
.pr-card > p { margin: 8px 0 0 !important; font-size: 14.5px; line-height: 22px; color: var(--f2h-muted); }
.pr-tablewrap { margin-top: 18px; overflow-x: auto; border-radius: 14px; border: 1px solid #EEF0F4; }
.pr-table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; font-size: 15px; }
.pr-table th, .pr-table td { padding: 13px 16px; text-align: left; white-space: nowrap; border-top: 1px solid #F2F4F7; }
.pr-table th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #98A2B3; background: #F8F9FC; border-top: 0; }
.pr-table td { color: #344054; }
.pr-table td:nth-child(2) { font-weight: 700; color: var(--f2h-ink); font-size: 17px; }
.pr-table td:nth-child(3), .pr-table th:nth-child(3) { text-align: right; }
.pr-table td:nth-child(3) { font-size: 12.5px; color: #98A2B3; }
.pr-table tr.is-on td { background: var(--pv-soft); }
.pr-table tr.is-on td:nth-child(2) { color: var(--pv-accent); }
.pr-table tr.is-on td:first-child { position: relative; padding-left: 28px; }
.pr-table tr.is-on td:first-child::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--pv-accent); }
.pr-table__best { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--pv-soft); color: var(--pv-accent); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; vertical-align: middle; }
.pr-note { margin: 12px 0 0 !important; font-size: 12.5px; line-height: 19px; color: #98A2B3; }

/* ---------- contact-sales card ---------- */
.pr-sales {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    padding: 28px; border-radius: 22px; color: var(--f2h-ink);
    background: var(--pv-soft, #F4F3FF);
    border: 1px solid var(--pv-soft-border, #E9E3FD);
}
.pr-sales__pill { display: inline-flex; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--pv-soft-border, #E9E3FD); color: var(--pv-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.pr-sales h2, .pr-sales h3 { margin: 4px 0 0; font-family: inherit; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--f2h-ink); letter-spacing: -0.01em; }
.pr-sales p { margin: 0 !important; font-size: 15px; line-height: 23px; color: var(--f2h-muted); }
.pr-sales ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: #344054; }
.pr-sales ul li { display: flex; align-items: center; gap: 8px; }
.pr-sales ul svg { color: var(--pv-accent); }
.pr-sales .f2h-btn { align-self: flex-start; margin-top: 10px; }
.pr-sales--wide { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pr-sales--wide .f2h-btn { margin-top: 0; }
.pr-sales--wide > div { max-width: 640px; }

/* ---------- rate cards (WhatsApp / RCS) ---------- */
.pr-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pr-rate { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 20px; }
.pr-rate__name { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--f2h-muted); }
.pr-rate__value { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; color: var(--pv-accent); line-height: 1.05; }
.pr-rate__value small { font-size: 20px; font-weight: 600; margin-right: 1px; }
.pr-rate__value em { font-size: 13px; font-style: normal; font-weight: 500; color: var(--f2h-muted); margin-left: 5px; letter-spacing: 0; }
.pr-rate__text { font-size: 14px; line-height: 21px; color: #475467; }
.pr-rate__eg { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: #98A2B3; }

/* big single rate (RCS hero card, WhatsApp hero preview) */
.pr-big {
    width: 100%; max-width: 420px; padding: 30px 28px 26px; text-align: center;
    border-radius: 22px; background: #FFFFFF; border: 1px solid #EEF0F4; box-shadow: 0 24px 50px rgba(16, 24, 40, 0.10);
    font-family: 'Inter', sans-serif;
}
.pr-big__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--pv-soft); }
.pr-big__icon img { width: 30px; height: 30px; }
.pr-big__name { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--f2h-muted); }
.pr-big__value { display: block; margin-top: 4px; font-size: 58px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--pv-accent); }
.pr-big__value small { font-size: 30px; font-weight: 600; margin-right: 2px; }
.pr-big__unit { display: block; margin-top: 6px; font-size: 14px; color: var(--f2h-muted); }
.pr-big__list { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid #F2F4F7; list-style: none; display: grid; gap: 9px; text-align: left; font-size: 14px; color: #344054; }
.pr-big__list li { display: flex; align-items: center; gap: 9px; }
.pr-big__list svg { flex: 0 0 auto; color: var(--pv-accent); }
.pr-big__list b { font-weight: 600; color: var(--f2h-ink); }
.pr-big .f2h-btn { width: 100%; justify-content: center; margin-top: 18px; }

/* WhatsApp hero: mini rate list */
.pr-mini { width: 100%; max-width: 420px; padding: 22px 24px; border-radius: 22px; background: #FFFFFF; border: 1px solid #EEF0F4; box-shadow: 0 24px 50px rgba(16, 24, 40, 0.10); font-family: 'Inter', sans-serif; }
.pr-mini__head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--f2h-muted); }
.pr-mini__head img { width: 24px; height: 24px; }
.pr-mini ul { margin: 12px 0 0; padding: 0; list-style: none; }
.pr-mini li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #F2F4F7; }
.pr-mini li span { font-size: 14.5px; color: #344054; }
.pr-mini li span small { display: block; font-size: 12px; color: #98A2B3; }
.pr-mini li strong { font-size: 22px; font-weight: 700; color: var(--pv-accent); letter-spacing: -0.01em; white-space: nowrap; }
.pr-mini li strong em { font-size: 12px; font-style: normal; font-weight: 500; color: var(--f2h-muted); margin-left: 3px; }
.pr-mini__foot { margin: 12px 0 0 !important; padding-top: 12px; border-top: 1px solid #F2F4F7; font-size: 12.5px; line-height: 18px; color: #98A2B3; }
.pr-mini__foot b { color: #16803C; font-weight: 600; }
.pr-mini .f2h-btn { width: 100%; justify-content: center; margin-top: 14px; }

/* ---------- "what's free" / included checklist ---------- */
.pr-free { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pr-free li { list-style: none; display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px; border-radius: 16px; }
.pr-free li .pv-tile { flex: 0 0 44px; width: 44px; height: 44px; }
.pr-free li .pv-tile img { width: 24px; height: 24px; }
.pr-free li strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--f2h-ink); }
.pr-free li div > span { display: block; margin-top: 2px; font-size: 13px; line-height: 19px; color: var(--f2h-muted); } /* the text line only: the icon tile is a span too */
.pr-free li i { display: inline-block; margin: 0; padding: 1px 7px; white-space: nowrap; border-radius: 999px; background: #F0FDF4; color: #16803C; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: middle; }

/* ---------- 3-step strip ---------- */
.pr-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: pr; }
.pr-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; }
.pr-steps li::before { counter-increment: pr; content: counter(pr); flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--pv-soft); color: var(--pv-accent); font-weight: 700; font-size: 15px; }
.pr-steps h3 { margin: 0; font-family: inherit; font-size: 15.5px; font-weight: 700; color: var(--f2h-ink); }
.pr-steps p { margin: 3px 0 0 !important; font-size: 13.5px; line-height: 20px; color: var(--f2h-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
    .pr-rates, .pr-free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .pr-hero__visual { margin-top: 8px; }
    .pr-grid { grid-template-columns: minmax(0, 1fr); }
    .pr-card { min-width: 0; }
    .pr-steps { grid-template-columns: minmax(0, 1fr); }
    .pr-sales--wide { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
    .pr-switch__wrap { width: 100%; justify-content: center; }
    .pr-switch { width: 100%; justify-content: space-between; gap: 4px; }
    .pr-switch__full { display: none; }
    .pr-switch__short { display: inline; }
    .pr-switch__item { flex: 1; justify-content: center; padding: 8px 6px; font-size: 12.5px; gap: 6px; }
    .pr-switch__item img { width: 18px; height: 18px; }
    .pr-calc { padding: 20px 18px 18px; }
    .pr-calc__out { grid-template-columns: 1fr 1fr; }
    .pr-calc__stat.is-rate strong { font-size: 26px; }
    .pr-range__ticks span:nth-child(even) { display: none; }
    .pr-card { padding: 20px 16px; }
    /* three columns fit a 358px card once they may wrap and the padding is tighter */
    .pr-table th, .pr-table td { padding: 11px 8px; font-size: 13px; white-space: normal; }
    .pr-table th:first-child, .pr-table td:first-child { padding-left: 12px; }
    .pr-table th:last-child, .pr-table td:last-child { padding-right: 12px; }
    .pr-table td:nth-child(2) { font-size: 15px; white-space: nowrap; }
    .pr-table td:nth-child(3) { font-size: 11.5px; }
    .pr-table tr.is-on td:first-child { padding-left: 24px; }
    .pr-table tr.is-on td:first-child::before { left: 9px; }
    .pr-table__best { display: block; margin: 2px 0 0; width: max-content; }
    .pr-rates, .pr-free { grid-template-columns: 1fr; }
    .pr-sales { padding: 22px 20px; }
    .pr-big__value { font-size: 48px; }
}

/* "higher volume?" line under the hero card button */
.pr-volume { margin: 12px 0 0 !important; text-align: center; font-size: 13px; line-height: 19px; color: var(--f2h-muted); }
.pr-volume a { color: var(--pv-accent); font-weight: 600; text-decoration: none; }
.pr-volume a:hover, .pr-volume a:focus { color: var(--pv-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
