/* Pricing calculator — editorial style matching site (uses tokens from app.css :root) */
.pricing-calc-section {
    background: #fff;
    padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 10vw, 120px);
}

.calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 991px) {
    .calc { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- Sheet (framed editorial card) ---- */
.calc__sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.calc-step {
    padding: clamp(26px, 4vw, 46px);
    border-bottom: 1px solid var(--line);
}

.calc-step:last-child { border-bottom: 0; }

.calc-step__head { margin-bottom: 24px; }

.calc-step__eyebrow {
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 700;
    margin: 0 0 10px;
    position: relative;
    padding-left: 34px;
}

.calc-step__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 2px;
    background: var(--brand);
}

.calc-step__title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
}

.calc-step__hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 46em;
}

/* ---- Packages (editorial list, hairline divided) ---- */
.calc-options { display: flex; flex-direction: column; }

.calc-opt {
    position: relative;
    display: block;
    cursor: pointer;
    padding: 20px 0 20px 22px;
    border-top: 1px solid var(--line);
}

.calc-opt:first-child { border-top: 0; padding-top: 4px; }

.calc-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc-opt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 20px;
    width: 3px;
    background: var(--brand);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease;
}

.calc-opt:first-child::before { top: 6px; }

.calc-opt:has(input:checked)::before { transform: scaleY(1); }

.calc-opt__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.calc-opt__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    transition: color 0.18s ease;
}

.calc-opt:hover .calc-opt__name { color: var(--brand-strong); }
.calc-opt:has(input:checked) .calc-opt__name { color: var(--brand); }

.calc-opt__range {
    flex: none;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.calc-opt:has(input:checked) .calc-opt__range { color: var(--brand); }

.calc-opt__desc {
    display: block;
    margin-top: 7px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

.calc-opt__audience { color: var(--ink-3); font-weight: 600; }

/* ---- Scope (underline tabs) ---- */
.calc-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
}

.calc-seg__item { cursor: pointer; }

.calc-seg__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc-seg__label {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.18s ease;
}

.calc-seg__item:hover .calc-seg__name { color: var(--ink); }
.calc-seg__item input:checked ~ .calc-seg__label { border-color: var(--brand); }
.calc-seg__item input:focus-visible ~ .calc-seg__label { outline: 2px solid var(--brand); outline-offset: 4px; }

.calc-seg__name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-3);
    transition: color 0.18s ease;
}

.calc-seg__item input:checked ~ .calc-seg__label .calc-seg__name { color: var(--brand); font-weight: 700; }

.calc-seg__plus { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.calc-seg__plus--free { color: var(--ink-3); font-weight: 600; }

/* ---- Features (two-column hairline list) ---- */
.calc-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
}

@media (max-width: 575px) {
    .calc-checks { grid-template-columns: 1fr; }
}

.calc-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    cursor: pointer;
}

.calc-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc-check__box {
    flex: none;
    width: 19px;
    height: 19px;
    border: 1.5px solid rgba(20, 20, 25, 0.28);
    border-radius: 5px;
    position: relative;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.calc-check__box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.calc-check input:checked ~ .calc-check__box {
    background: var(--brand);
    border-color: var(--brand);
}

.calc-check input:checked ~ .calc-check__box::after { transform: rotate(45deg) scale(1); }
.calc-check input:focus-visible ~ .calc-check__box { outline: 2px solid var(--brand); outline-offset: 2px; }

.calc-check__name {
    flex: 1;
    font-size: 15px;
    color: var(--ink-3);
    line-height: 1.35;
    transition: color 0.18s ease;
}

.calc-check:hover .calc-check__name { color: var(--ink); }
.calc-check:has(input:checked) .calc-check__name { color: var(--ink); font-weight: 600; }

.calc-check__price {
    flex: none;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.calc-check:has(input:checked) .calc-check__price { color: var(--brand); }

/* ---- Summary (sticky panel) ---- */
.calc__summary { position: relative; }

.calc-summary {
    position: sticky;
    top: calc(var(--site-nav-bar-h, 72px) + 24px);
    background: var(--ink);
    color: #fff;
    border-radius: 16px;
    padding: 34px 32px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .calc-summary { position: static; }
}

.calc-summary__eyebrow {
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffd2d4;
    font-weight: 700;
    margin: 0 0 14px;
    position: relative;
    padding-left: 34px;
}

.calc-summary__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 2px;
    background: var(--brand);
}

.calc-summary__total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 54px);
    line-height: 1;
    letter-spacing: -0.02em;
}

.calc-summary__cur {
    font-size: 0.42em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}

.calc-summary__lines {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 24px 0;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.calc-summary__lines:empty { margin: 24px 0 0; padding: 0; border: 0; }

.calc-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
}

.calc-line__name { color: rgba(255, 255, 255, 0.68); }

.calc-line__price {
    flex: none;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
}

.calc-summary__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 22px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.calc-summary__cta::after { content: '→'; transition: transform 0.25s ease; }
.calc-summary__cta:hover { background: var(--brand-strong); transform: translateY(-2px); }
.calc-summary__cta:hover::after { transform: translateX(4px); }

.calc-summary__note {
    margin: 16px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}
