/* Pricing page. One system: 8px scale, one radius, one hairline,
   one shadow. Contrast measured against the surface each colour sits on. */
.hp {
    /* Two brand colours, from the logo. The green is never text on white (2.75:1):
       it is a fill under navy text (5.7:1) or a mark on navy. */
    --ink: #002155;        /* logo navy: headings, links, dark surfaces; on white 15.6:1 */
    --green: #01B44C;      /* logo green: the one accent */
    --green-tint: #E6F8ED; /* the one tint of it */
    --navy-tint: #EEF2F8;
    --text: #1E293B;
    --muted: #475569;      /* on white 7.6:1 */
    --line: #E2E8F0;
    --tint: #F5F7FA;       /* neutral page band */
    --on-dark: #F8FAFC;
    --on-dark-muted: #C7D2E3;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    color: var(--text);
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; }
.hp a { color: var(--ink); }
.hp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hp-wrap--narrow { max-width: 800px; }

.hp-eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink); margin-bottom: 8px;
}
.hp-muted { color: var(--muted); font-weight: 500; }
.hp-small { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 16px; }

/* Buttons */
.hp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 24px; border-radius: 10px;
    font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hp a.hp-btn--primary { background: var(--green); color: var(--ink); }
.hp a.hp-btn--primary:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.hp a.hp-btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.hp a.hp-btn--ghost:hover { background: var(--ink); color: #fff; }
.hp-btn:focus-visible, .hp button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Plans ---------- */
.hp-plans { background: var(--tint); padding: 64px 0 80px; }
.hp-intro { text-align: center; margin: 0 auto 40px; }

.hp-cycle {
    display: inline-flex; padding: 4px; border-radius: 999px;
    background: #fff; box-shadow: inset 0 0 0 1px #94A3B8; /* control edge 3:1 on white */
}
.hp-cycle button {
    border: 0; background: transparent; cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 700; color: var(--muted);
    padding: 10px 24px; border-radius: 999px;
}
.hp-cycle button.active { background: var(--ink); color: #fff; }
.hp-save {
    display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
    font-size: 12px; background: var(--green-tint); color: var(--ink);
}
.hp-cycle button.active .hp-save { background: var(--green); color: var(--ink); }

.hp-ladder {
    list-style: none; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch;
}
.hp-plan {
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); outline: 1px solid var(--line);
}
.hp-plan--featured {
    background: var(--ink); color: var(--on-dark); outline: 0;
    box-shadow: 0 16px 40px rgba(0, 33, 85, 0.24);
}
.hp-plan-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 24px; }
.hp-level { display: flex; gap: 4px; }
.hp-level i { display: block; width: 28px; height: 6px; border-radius: 3px; background: #CBD5E1; }
.hp-level i.on { background: var(--green); }
.hp-plan--featured .hp-level i { background: rgba(255, 255, 255, 0.2); }
.hp-plan--featured .hp-level i.on { background: var(--green); }
.hp-badge {
    font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px; background: var(--green); color: var(--ink);
}

.hp-plan-name { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.hp-plan--featured .hp-plan-name { color: #fff; }
.hp-plan-tag { font-size: 16px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.hp-plan--featured .hp-plan-tag { color: var(--on-dark-muted); }

.hp-price {
    display: flex; align-items: flex-start; gap: 2px; margin-top: 24px;
    font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -2px;
    color: var(--ink); font-feature-settings: "tnum";
}
.hp-plan--featured .hp-price { color: #fff; }
.hp-cur { font-size: 26px; letter-spacing: 0; margin-top: 6px; }
.hp-per { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--muted); align-self: flex-end; margin: 0 0 6px 4px; }
.hp-plan--featured .hp-per { color: var(--on-dark-muted); }
.hp-billed { font-size: 14px; color: var(--muted); margin-top: 8px; min-height: 21px; }
.hp-plan--featured .hp-billed { color: var(--on-dark-muted); }

.hp-plan .hp-btn { display: flex; width: 100%; margin-top: 24px; }
.hp-best { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }
.hp-plan--featured .hp-best { color: var(--on-dark-muted); }

/* The one line that differs most between plans */
.hp-ai {
    margin-top: 24px; padding: 12px 16px; border-radius: 10px;
    font-size: 15px; font-weight: 700; line-height: 1.4;
}
.hp-ai--yes { background: var(--green-tint); color: var(--ink); }
.hp-ai--no { background: #FEF2F2; color: #B91C1C; }                 /* 5.9:1 */
.hp-plan--featured .hp-ai--yes { background: rgba(255, 255, 255, 0.1); color: #fff; }

.hp-plus-label {
    margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line);
    font-size: 14px; font-weight: 800; color: var(--ink);
}
.hp-plan--featured .hp-plus-label { color: #fff; border-top-color: rgba(255, 255, 255, 0.16); }
.hp-plus { list-style: none; padding: 0; margin-top: 16px; }
.hp-plus li {
    position: relative; padding-left: 28px;
    font-size: 15px; line-height: 1.5; color: var(--text);
}
.hp-plus li + li { margin-top: 12px; }
.hp-plus li::before, .hp-yes::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
    background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hp-plan--featured .hp-plus li { color: var(--on-dark); }
.hp-plan--featured .hp-plus li::before { background: var(--green); }
.hp-plus li strong { font-weight: 800; }

.hp-note { text-align: center; font-size: 15px; color: var(--muted); margin-top: 32px; }
.hp-custom {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin-top: 32px; padding: 24px 32px; background: #fff; border-radius: var(--radius);
    outline: 1px solid var(--line);
}
.hp-custom strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.hp-custom span { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Sections ---------- */
.hp-section { padding: 80px 0; background: #fff; }
.hp-section--tint { background: var(--tint); }
.hp-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.hp-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; color: var(--ink); }
.hp-head p:not(.hp-eyebrow) { font-size: 17px; line-height: 1.6; color: var(--muted); margin-top: 16px; }
.hp-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); outline: 1px solid var(--line); }
.hp-card h3 { font-size: 20px; font-weight: 800; color: var(--ink); }

/* ---------- Comparison ---------- */
.hp-switch { display: none; }
.hp-table { border-radius: var(--radius); outline: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.hp-table table { width: 100%; border-collapse: separate; border-spacing: 0; }
.hp-table thead th {
    position: sticky; top: 72px; z-index: 2; background: #fff;
    padding: 24px 16px; text-align: center; vertical-align: bottom;
    border-bottom: 1px solid var(--line);
}
.hp-table thead th:first-child { border-top-left-radius: var(--radius); }
.hp-table thead th:last-child { border-top-right-radius: var(--radius); }
.hp-th-name { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.hp-th-price { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.hp-table th.hp-col-feat { background: var(--ink); }
.hp-table th.hp-col-feat .hp-th-name { color: #fff; }
.hp-table th.hp-col-feat .hp-th-price { color: var(--on-dark-muted); }
.hp-table tbody th, .hp-table td {
    padding: 14px 16px; font-size: 15px; line-height: 1.45; border-bottom: 1px solid var(--line);
}
.hp-table tbody th { text-align: left; font-weight: 500; color: var(--text); width: 40%; }
.hp-row-note { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; line-height: 1.45; color: #B91C1C; }  /* 6.2:1 on white */
.hp-table td { text-align: center; color: var(--text); font-weight: 600; width: 20%; }
.hp-table td.hp-col-feat { background: var(--navy-tint); }
.hp-table tr.hp-group th {
    padding: 24px 16px 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink); background: #fff;
}
.hp-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.hp-yes { position: relative; display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.hp-yes::before { top: 0; }
.hp-no { color: #64748B; font-weight: 600; }   /* 4.8:1 */
.hp-tag {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: var(--ink); background: var(--navy-tint);
}

/* ---------- Message billing ---------- */
.hp-ratecard { max-width: 960px; margin: 0 auto; }
.hp-rate-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hp-market { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hp-market select {
    font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
    padding: 8px 12px; border-radius: 8px; border: 1px solid #94A3B8; background: #fff;
}
.hp-hint { font-size: 14px; color: #92400E; margin-top: 12px; }
.hp-rates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 24px; }
.hp-rates div { padding: 16px; border-radius: 12px; background: var(--tint); }
.hp-rates dt { font-size: 14px; color: var(--muted); }
.hp-rates dd { font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 4px; font-feature-settings: "tnum"; }
.hp-rates-zero { background: var(--green-tint) !important; }
.hp-rates-zero dt, .hp-rates-zero dd { color: var(--ink); }
.hp-calc-link {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin-top: 24px; padding: 24px; border-radius: 12px; background: var(--ink);
}
.hp-calc-link strong { display: block; font-size: 17px; color: #fff; margin-bottom: 4px; }
.hp-calc-link span { font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); }

/* ---------- Add-ons ---------- */
.hp-addon-grid {
    max-width: 960px; margin: 0 auto; padding: 0 32px;
    background: #fff; border-radius: var(--radius); outline: 1px solid var(--line); box-shadow: var(--shadow);
}
.hp-addon {
    display: grid; grid-template-columns: 44px 1fr 168px; gap: 24px; align-items: center;
    padding: 24px 0;
}
.hp-addon + .hp-addon { border-top: 1px solid var(--line); }
.hp-addon-icon {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 12px; background: var(--green-tint); color: var(--ink);
}
.hp-addon-icon svg { width: 22px; height: 22px; }
.hp-addon h3 { font-size: 17px; font-weight: 800; color: var(--ink); }
.hp-addon-body p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 4px; }
.hp-addon-price { text-align: right; font-size: 22px; font-weight: 800; color: var(--ink); font-feature-settings: "tnum"; }
.hp-addon-price span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- FAQ ---------- */
.hp-faq { background: #fff; border-radius: var(--radius); outline: 1px solid var(--line); box-shadow: var(--shadow); }
.hp-faq details + details { border-top: 1px solid var(--line); }
.hp-faq summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 24px 64px 24px 32px; font-size: 17px; font-weight: 700; color: var(--ink);
}
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after {
    content: '+'; position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
    font-size: 24px; font-weight: 500; color: var(--ink);
}
.hp-faq details[open] summary::after { content: '\2212'; }
.hp-faq details p { padding: 0 32px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.hp-faq details p + p { margin-top: 12px; }
.hp-faq details p:last-child { padding-bottom: 24px; }

/* ---------- Closing ---------- */
.hp-final { background: #fff; padding: 80px 0; }
.hp-final-panel {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
    padding: 56px; border-radius: var(--radius); background: var(--green-tint);
}
.hp-final h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; color: var(--ink); }
.hp-final-main > p { font-size: 18px; line-height: 1.6; color: var(--text); margin-top: 16px; }
.hp-final-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hp-final a.hp-btn--primary { background: var(--ink); color: #fff; }  /* 15.6:1 */
.hp-final a.hp-btn--primary:hover { box-shadow: inset 0 0 0 2px var(--green); }
.hp-final-facts {
    list-style: none; padding: 24px; border-radius: 12px; background: #fff;
    box-shadow: var(--shadow);
}
.hp-final-facts li {
    position: relative; padding-left: 32px;
    font-size: 16px; line-height: 1.5; color: var(--text);
}
.hp-final-facts li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hp-final-facts li + li::before { top: 19px; }
.hp-final-facts li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hp-final-facts strong { color: var(--ink); font-weight: 800; }
.hp-final-facts a { font-weight: 700; text-decoration: underline; }
.hp-alt { text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 24px; }
.hp-alt a { color: var(--ink); font-weight: 700; }

/* Site header on this page: the logo green, not the older site green. */
.page-pricing .header .btn-nav,
.page-pricing .header.scrolled .btn-nav { background: #01B44C !important; color: #002155 !important; }
.page-pricing .header .nav-menu a.active { color: #01B44C; }
.page-pricing .header.scrolled .nav-menu a.active { color: #002155; }
.page-pricing .header .nav-menu a.active::after { background: #01B44C; }

/* ---------- Narrow desktop: keep plan lists on one line ---------- */
@media (min-width: 1180px) and (max-width: 1199px) {
    .hp-wrap { padding: 0 24px; }
    .hp-ladder { gap: 16px; }
    .hp-plan { padding: 24px; }
    .hp-plus li { font-size: 14px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1179px) {
    .hp-ladder { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; align-items: start; }
    .hp-rates { grid-template-columns: repeat(3, 1fr); }
    .hp-final-panel { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
    .hp-wrap { padding: 0 16px; }
    .hp-plans { padding: 48px 0 56px; }
    .hp-intro { margin-bottom: 32px; }
    .hp-section, .hp-final { padding: 56px 0; }
    .hp-final-panel { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
    .hp-final-cta .hp-btn { flex: 1 1 100%; }
    .hp-head { margin-bottom: 32px; }
    .hp-plan, .hp-card { padding: 24px; }
    .hp-price { font-size: 48px; }
    .hp-cycle button { padding: 10px 16px; }
    .hp-custom { flex-direction: column; align-items: stretch; padding: 24px; }
    .hp-addon-grid { padding: 0 24px; }
    .hp-addon { grid-template-columns: 44px 1fr; gap: 12px 16px; align-items: start; }
    .hp-addon-price { grid-column: 2; text-align: left; }
    .hp-addon-price span { display: inline; margin-left: 2px; }
    .hp-rates { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hp-rates-zero { grid-column: 1 / -1; }
    .hp-calc-link { flex-direction: column; align-items: stretch; }

    .hp-switch {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px;
        margin-bottom: 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #94A3B8;
    }
    .hp-switch button {
        border: 0; background: transparent; cursor: pointer; font: inherit;
        font-size: 15px; font-weight: 700; color: var(--muted); padding: 10px 8px; border-radius: 8px;
    }
    .hp-switch button[aria-selected="true"] { background: var(--ink); color: #fff; }
    .hp-table thead th { top: 64px; padding: 16px 12px; }
    .hp-table tbody th, .hp-table td { padding: 12px; font-size: 14px; }
    .hp-table tbody th { width: 60%; }
    .hp-table td { width: 40%; }
    .hp-table[data-plan="starter"] .hp-col-growth, .hp-table[data-plan="starter"] .hp-col-business,
    .hp-table[data-plan="growth"] .hp-col-starter, .hp-table[data-plan="growth"] .hp-col-business,
    .hp-table[data-plan="business"] .hp-col-starter, .hp-table[data-plan="business"] .hp-col-growth { display: none; }
    .hp-table thead th:nth-child(2), .hp-table thead th:nth-child(3), .hp-table thead th:nth-child(4) { border-top-right-radius: var(--radius); }
    .hp-table tr.hp-group th { padding: 20px 12px 8px; }
}
