/* =============================================================================
 * Pontica Cost Optimisation Calculator v2 — styles (mobile-first).
 * Scoped under .pcalc2 so it never bleeds into the Oxygen theme.
 * ========================================================================== */

.pcalc2 {
    --navy: #002B59;
    --navy-mid: #0A3A78;
    --blue: #1F6FC4;
    --blue-accent: #0066CC;
    --green: #38B54A;
    --green-light: #7BE08C;
    --lightblue-bg: #E6F9FF;
    --muted: #5A6B82;
    --line: #E2E8F0;
    --white: #FFFFFF;

    --radius-card: 16px;
    --radius-lg: 24px;
    --radius-btn: 10px;
    --shadow-card: 0 24px 60px rgba(0, 43, 89, 0.12);
    --shadow-soft: 0 4px 24px rgba(0, 43, 89, 0.08);
    --shadow-green: 0 8px 20px rgba(56, 181, 74, 0.30);

    --maxw: 1280px;
    --pad-x: 32px;

    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--navy);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.pcalc2 *,
.pcalc2 *::before,
.pcalc2 *::after {
    box-sizing: border-box;
}

/* Force Inter across the calculator's OWN sections. The host Oxygen theme sets
 * font-family directly on heading tags (h1–h4), overriding the family inherited
 * from .pcalc2 (it falls back to the theme's Fira Sans). We scope this to the
 * calculator's section wrappers and deliberately do NOT include `.pc2-modal`, so
 * the Piotnet popup form keeps its own native cascade exactly as it renders on
 * prod (don't restyle the form). */
.pcalc2 .pc2-hero, .pcalc2 .pc2-hero *,
.pcalc2 .pc2-steps, .pcalc2 .pc2-steps *,
.pcalc2 .pc2-calculator, .pcalc2 .pc2-calculator *,
.pcalc2 .pc2-why, .pcalc2 .pc2-why *,
.pcalc2 .pc2-cases, .pcalc2 .pc2-cases *,
.pcalc2 .pc2-industries, .pcalc2 .pc2-industries *,
.pcalc2 .pc2-faq, .pcalc2 .pc2-faq *,
.pcalc2 .pc2-cta, .pcalc2 .pc2-cta * {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}

/* Restore icon fonts that the rule above must not clobber. */
.pcalc2 [class*="icon-"],
.pcalc2 .piotnetforms-select-wrapper::before,
.pcalc2 .piotnetforms-select-drop-down::before {
    font-family: 'icomoon' !important;
}

/* The popup hosts the Piotnet form, which renders in the theme font on the live
 * site. .pcalc2 sets Inter as its base, which the modal would otherwise inherit —
 * pin the modal subtree back to the site font so the form stays identical to how
 * it looks today on prod. (Piotnet's own field styling is untouched.) */
.pcalc2 .pc2-modal__dialog {
    font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.pcalc2 img {
    max-width: 100%;
    display: block;
}

/* ---- Scroll reveal animations -------------------------------------------- */
/* Activated only when JS adds `.pc2-anim` to the root, so content stays fully
 * visible if JS / IntersectionObserver are unavailable. Reduced-motion safe. */
.pc2-anim .pc2-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--pc2-reveal-delay, 0ms);
    will-change: opacity, transform;
}
.pc2-anim .pc2-reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .pc2-anim .pc2-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---- Layout primitives --------------------------------------------------- */

/* v0 uses 24px side gutters on mobile (we previously used 32px, which made
 * cards/tiles ~16px too narrow). The container reads --pad-x. */
@media (max-width: 768px) {
    .pcalc2 { --pad-x: 24px; }
}

.pc2-container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

/* Oxygen's automatic-oxygen.css forces `section { padding: 0 !important }`, which
 * silently zeroed our section rhythm. Re-assert it with !important (a more specific
 * selector beats the bare `section` rule). Hero owns its own spacing; CTA applies
 * padding on its inner wrapper — exclude both. */
.pcalc2 section {
    padding-block: 64px !important;
}

@media (min-width: 769px) {
    .pcalc2 section {
        padding-block: 96px !important;
    }

    /* v0 uses 80px (not 96px) on the Calculator and Case Studies sections.
     * Must use !important to beat the global section rule above. */
    .pcalc2 .pc2-calculator,
    .pcalc2 .pc2-cases {
        padding-block: 80px !important;
    }
}

.pcalc2 .pc2-hero,
.pcalc2 .pc2-cta {
    padding-block: 0 !important;
}

.pc2-section-head {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: 36px;
}

.pc2-h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: normal;
    margin: 0 0 14px;
    color: var(--navy);
}

/* Mobile: section headings render at 30px/36px in v0. Industries overrides this
 * to 32px via a more specific rule, which is intentionally left intact. */
@media (max-width: 768px) {
    .pc2-h2 {
        font-size: 30px;
        line-height: 36px;
    }
}

.pc2-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}

.pc2-section-sub {
    font-size: 17px;
    color: var(--muted);
    margin: 0;
}

/* ---- Buttons ------------------------------------------------------------- */

/* !important guards defend against the Oxygen theme's global button styles. */
.pcalc2 .pc2-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    font-family: inherit;
    font-weight: 700 !important;
    font-size: 16px;
    line-height: 1 !important;
    padding: 15px 28px !important;
    margin: 0;
    border: none !important;
    border-radius: var(--radius-btn) !important;
    cursor: pointer;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pcalc2 .pc2-btn:hover { transform: translateY(-1px); }
.pcalc2 .pc2-btn:focus-visible { outline: 3px solid rgba(31, 111, 196, 0.5); outline-offset: 2px; }

.pcalc2 .pc2-btn--green {
    background: var(--green) !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: var(--shadow-green);
}
.pcalc2 .pc2-btn--green:hover { background: #2fa040 !important; }

.pcalc2 .pc2-btn--white {
    background: #fff !important;
    background-image: none !important;
    color: var(--green) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.pcalc2 .pc2-btn--outline {
    background: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
.pcalc2 .pc2-btn--outline:hover { background: rgba(255, 255, 255, 0.12) !important; }

.pcalc2 .pc2-btn--pill { border-radius: 999px !important; padding-inline: 38px !important; }
.pcalc2 .pc2-btn--block { width: 100% !important; }

/* =============================================================================
 * HERO
 * ========================================================================== */

.pc2-hero {
    position: relative;
    overflow: hidden;
    background: var(--blue-accent);
}

/* Desktop hero artwork is a single full-bleed PNG that already bakes in the
 * blue field, the circular photo, and the green accent crescent (matches v0,
 * which renders the same image object-cover / object-center). No overlay shapes. */
.pc2-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* Desktop: pin the artwork to the top of the hero and let its height follow the
 * PNG's intrinsic ratio so the full composition — circle + green crescent at the
 * bottom — is revealed above the (separate, opaque) stats strip, exactly like v0
 * where the hero image is a self-contained full block with the stats band below. */
@media (min-width: 769px) {
    .pc2-hero__bg {
        inset: 0 0 auto 0;
        aspect-ratio: 1672 / 941;
    }
}

/* The old field + tint overlays distorted the baked-in composition; off on
 * desktop too. (Mobile already hides them in the <=768px block.) */
.pc2-hero__tint,
.pc2-hero__field {
    display: none;
}

.pc2-hero__inner {
    position: relative;
    padding-block: 48px 44px;
}

.pc2-hero__copy { max-width: 560px; }

.pc2-hero__title {
    color: #fff;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pc2-hero__title-main {
    font-size: clamp(40px, 9vw, 54px);
}
.pc2-hero__title-accent {
    color: #fff;
    font-size: clamp(28px, 6.5vw, 38px);
}

.pc2-hero__card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 24px 60px rgba(0, 43, 89, 0.22);
    padding: 20px;
    max-width: 380px;
}

.pc2-hero__card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.pc2-hero__card-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lightblue-bg);
    border-radius: 10px;
    color: var(--blue-accent);
}
.pc2-hero__card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #1A6FC4;
    line-height: 1.2;
}
.pc2-hero__card-sub {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 18px;
}

.pc2-hero__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

/* Input + button stay STACKED at all widths. */
.pc2-hero__inputrow {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pc2-hero__input {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    padding: 12.5px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    color: var(--navy);
    outline: none;
    -moz-appearance: textfield;
}
.pc2-hero__input:focus { border-color: var(--blue); }
.pc2-hero__input::-webkit-outer-spin-button,
.pc2-hero__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pcalc2 .pc2-hero__btn {
    width: 100% !important;
    padding: 13.5px 0 !important;
    font-size: 14px !important;
}

/* ---- Trust badges (on the blue field, below the card) -------------------- */
.pc2-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 28px;
}

.pc2-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: center;
    padding-inline: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}
.pc2-badge:last-child { border-right: none; }

.pc2-badge__label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}

.pc2-badge__seal {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc2-badge__seal svg { display: block; }

/* ISO seal: white circle + dotted inner ring + text */
.pc2-badge__seal--iso {
    position: relative;
    border: 2px solid #fff;
    border-radius: 50%;
}
.pc2-badge__iso-ring {
    position: absolute;
    inset: 4px;
    border: 1px dotted rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}
.pc2-badge__iso-text {
    font-size: 8px;
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Clutch badge: wider, single line score + stars + caption */
.pc2-badge--clutch { justify-content: center; }
.pc2-badge__seal--clutch {
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.pc2-badge__clutch-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pc2-badge__clutch-score {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.pc2-badge__clutch-stars {
    display: inline-flex;
    gap: 1px;
}
.pc2-badge__clutch-cap {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}

/* Stats strip — pills with cyan outline + glow on navy (matches v0). */
.pc2-hero__stats {
    position: relative;
    background: #002B59;
}
.pc2-hero__stats-inner {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding-block: 40px;
    flex-wrap: wrap;
}
.pc2-stat {
    background: #002B59;
    border: 2px solid rgba(31, 174, 233, 0.40);
    border-radius: 9999px;
    box-shadow: 0 0 30px 0 rgba(31, 174, 233, 0.15);
    padding: 20px 32px;
    text-align: center;
}
.pc2-stat__num {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.pc2-stat__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1FAEE9;
    line-height: 1.5;
    margin-top: 4px;
}

/* Mobile photo block is hidden by default; only shown in the mobile media query. */
.pc2-hero__photo { display: none; }

@media (min-width: 769px) {
    /* Make the copy column as tall as the artwork (same intrinsic ratio as the
     * PNG) so the full circle + green crescent clear the opaque stats strip that
     * follows — mirrors v0, where the copy floats in the top of a tall hero image
     * with empty blue space beneath the card down to the crescent. */
    .pc2-hero__inner {
        padding-block: 96px 56px;
        min-height: calc(100vw * 941 / 1672);
    }
    .pc2-hero__title-main { white-space: nowrap; font-size: 54px; }
    .pc2-hero__stats-inner { gap: 48px; }
    .pc2-stat__num { font-size: 48px; }
}

/* ---- MOBILE hero: matches v0 mobile composition (photo block on top, solid
 * blue section with "What about your cost?" heading + card + badges below).
 * Scoped to <=768px so the desktop layout above stays pixel-identical. ------- */
@media (max-width: 768px) {
    /* Desktop curved-background system off on mobile. */
    .pc2-hero__bg,
    .pc2-hero__field,
    .pc2-hero__tint { display: none; }

    /* Solid blue for the section beneath the photo. */
    .pc2-hero { background: var(--blue-accent); }

    /* Photo block: full-width 300px, image cover, H1 overlaid on left half. */
    .pc2-hero__photo {
        display: block;
        position: relative;
        width: 100%;
        height: 300px;
        overflow: hidden;
    }
    .pc2-hero__photo-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 65% center;
    }
    .pc2-hero__photo-title {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 50%;
        display: flex;
        align-items: center;
        padding-inline: 16px;
        color: #fff;
        font-weight: 800;
        font-size: 22px;
        line-height: 1.15;
        letter-spacing: -0.025em;
        z-index: 2;
    }

    /* Blue copy section below the photo. */
    .pc2-hero__inner { padding-block: 32px; }
    .pc2-hero .pc2-container { padding-inline: 24px; }
    .pc2-hero__copy { max-width: none; }

    /* The in-flow H1 just provides the "What about your cost?" heading on mobile;
     * its first line ("Your demand is doubling") is shown in the photo overlay. */
    .pc2-hero__title { margin: 0 0 24px; }
    .pc2-hero__title-main { display: none; }
    .pc2-hero__title-accent {
        font-size: 22px;
        line-height: 1.15;
        position: relative;
        padding-bottom: 19px;
    }
    .pc2-hero__title-accent::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 3px;
        background: #fff;
        border-radius: 999px;
    }

    /* Card spans the full width of the blue section; type matches v0 mobile. */
    .pc2-hero__card { max-width: none; }
    .pc2-hero__card-title { white-space: normal; font-size: 16px; }
    .pc2-hero__card-sub { font-size: 12px; }
    .pc2-hero__label { font-size: 11px; }

    /* Badges: ISO / GDPR / NIS2 in a centered row, no dividers; Clutch wraps. */
    .pc2-hero__badges {
        justify-content: center;
        gap: 16px;
        margin-top: 32px;
    }
    .pc2-badge { border-right: none; padding-inline: 16px; }
    .pc2-badge--clutch { flex-basis: 100%; margin-top: 8px; }
}

/* =============================================================================
 * 3 STEPS
 * ========================================================================== */

.pc2-steps { background: #fff; }

.pc2-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.pc2-step {
    background: #fff;
    border: 1px solid var(--lightblue-bg);
    border-radius: var(--radius-card);
    padding: 32px;
}
.pc2-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lightblue-bg);
    color: var(--navy);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 16px;
}
.pc2-step__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--navy);
}
.pc2-step__text {
    font-size: 16px;
    color: var(--muted);
    margin: 0;
}

@media (min-width: 769px) {
    .pc2-steps__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Mobile: scale the steps section heading down to match v0 (~30px), and the
 * step card titles to 20px so they fit one line (v0 mobile). */
@media (max-width: 768px) {
    .pc2-steps .pc2-h2 { font-size: 30px; line-height: 36px; }
    .pc2-step__title { font-size: 20px; }
}

/* =============================================================================
 * CALCULATOR
 * ========================================================================== */

.pc2-calculator {
    background: var(--lightblue-bg);
}

.pc2-calc-card {
    width: 100%;
    background: linear-gradient(to bottom, #002B59 0%, #0A3A78 50%, #1F6FC4 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 43, 89, 0.25);
    padding: 28px 22px;
    color: #fff;
    overflow: hidden;
}

.pc2-calc-card__title {
    font-size: clamp(20px, 3.4vw, 24px);
    font-weight: 700;
    margin: 0 0 24px;
    color: #fff;
}

.pc2-calc-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

/* Slider */
.pc2-calc-slider { width: 100%; }

.pc2-slider-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #9FC8FF;
    margin-bottom: 18px;
}

/* Green value pill — sits below the slider, left-aligned (v0). */
.pc2-slider-valuewrap {
    display: flex;
    margin-top: 14px;
}

.pc2-slider-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(56, 181, 74, 0.45);
}

.pc2-slider-value {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.pc2-slider-hint {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    letter-spacing: normal;
}

.pc2-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;               /* ~44px-friendly touch target */
    background: transparent;
    outline: none;
    margin: 4px 0;
    cursor: pointer;
}

/* WebKit: thin visible track + larger thumb */
.pc2-slider-input::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}
.pc2-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -9px;           /* center 26px thumb on 8px track */
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green);
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Firefox */
.pc2-slider-input::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}
.pc2-slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.pc2-slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Circle / ring */
.pc2-calc-circle {
    display: flex;
    justify-content: center;
}

.pc2-ring-wrap {
    position: relative;
    width: 200px;
    height: 200px;
}

.pc2-ring {
    width: 100%;
    height: 100%;
}

.pc2-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.pc2-ring-pct {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.pc2-ring-saved {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #1FAEE9;
}

/* Cost areas */
.pc2-cost-areas { margin-top: 28px; }

.pc2-cost-areas__title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 18px;
    text-align: center;
}

.pc2-cost-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 10px;
}

.pc2-cost-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.pc2-cost-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* Table */
.pc2-table-title {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #fff;
    text-align: center;
}

/* v0: the table sits directly on the dark card — semi-transparent rows,
 * white text, subtle dividers. No white card. */
.pc2-table {
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pc2-table__head,
.pc2-table__row,
.pc2-table__total {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr;
    align-items: center;
}

.pc2-table__head {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}
.pc2-table__head span { padding: 12px 16px; }
.pc2-table__head span:last-child { text-align: right; }

.pc2-table__row {
    font-size: 14px;
    color: #fff;
}
.pc2-table__row span { padding: 10px 16px; }
.pc2-table__row span:last-child { text-align: right; font-weight: 700; }
.pc2-table__row:nth-child(odd) { background: rgba(255, 255, 255, 0.10); }
.pc2-table__row:nth-child(even) { background: rgba(255, 255, 255, 0.05); }

/* Highlighted unit (CSS Agent): count cell is a solid green pill-cell. */
.pc2-table__row.is-highlight span:last-child {
    background: var(--green);
    color: #fff;
    font-weight: 700;
}

.pc2-table__total {
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}
.pc2-table__total span { padding: 14px 16px; }
.pc2-table__total span:last-child { text-align: right; }

.pc2-calc-cta {
    margin-top: 26px;
    text-align: center;
}
/* v0's in-card pill is ~56px tall (16px/40px padding). */
.pcalc2 .pc2-calc-cta .pc2-btn {
    padding-block: 20px !important;
}

/* ---- Calculator: tablet/desktop ----------------------------------------- */
@media (min-width: 769px) {
    .pc2-calc-card { padding: 48px 48px 40px; }

    .pc2-calc-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 48px;
    }
    .pc2-calc-slider { flex: 1 1 auto; min-width: 0; }
    .pc2-calc-circle { flex: 0 0 220px; }
    .pc2-ring-wrap { width: 200px; height: 200px; }
    .pc2-ring-pct { font-size: 52px; }

    .pc2-cost-areas { margin-top: 40px; }

    .pc2-cost-icons {
        grid-template-columns: repeat(6, 1fr);
        max-width: 720px;
        margin-inline: auto;
    }

    .pc2-table__head span,
    .pc2-table__row span { font-size: 14px; }
}

/* =============================================================================
 * WHY PONTICA
 * ========================================================================== */

.pc2-why { background: #fff; }

/* v0's heading renders on one line — let this section's head span the
   full container instead of the global 720px clamp. */
.pc2-why .pc2-section-head--wide {
    max-width: none;
    margin-bottom: 64px;
}

/* v0's eyebrow here is mixed-case ("Why companies choose Pontica?"),
   not the uppercase global default. */
.pc2-why .pc2-eyebrow {
    text-transform: none;
}

.pc2-why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
/* Mobile: columns are full-width and center-aligned (matches v0). */
.pc2-why__col {
    text-align: center;
}
.pc2-why__icon-wrap {
    display: block;
    margin-bottom: 24px;
    line-height: 0;
}
.pc2-why__icon {
    display: inline-block;
    width: 48px;
    height: 48px;
}
.pc2-why__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}
.pc2-why__text {
    font-size: 16px;
    line-height: 26px;
    color: var(--muted);
    margin: 0;
}

/* Mobile heading: v0 renders this at 30px/36px (vs the 36px desktop). */
.pc2-why .pc2-h2 {
    font-size: 30px;
    line-height: 36px;
}

@media (min-width: 769px) {
    .pc2-why .pc2-h2 { font-size: 36px; line-height: 40px; }
    .pc2-why__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
    /* Desktop: columns left-aligned under a left-aligned icon. */
    .pc2-why__col { max-width: 360px; text-align: left; }
    .pc2-why__icon { display: block; }
}

/* =============================================================================
 * CASE STUDIES
 * ========================================================================== */

.pc2-cases { background: var(--lightblue-bg); }

.pc2-cases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.pc2-case {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}
.pc2-case__media { height: 200px; overflow: hidden; }
.pc2-case__media img { width: 100%; height: 100%; object-fit: cover; }

.pc2-case__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pc2-case__category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.pc2-case__stat {
    font-size: 40px;
    font-weight: 800;
    color: var(--green);
    line-height: 1.05;
    margin-bottom: 4px;
}
.pc2-case__stat-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
}
.pc2-case__quote {
    font-size: 15px;
    font-style: italic;
    color: var(--navy);
    line-height: 1.625;
    margin: 0 0 16px;
    flex: 1;
}
.pc2-case__role {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

@media (min-width: 769px) {
    .pc2-cases__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* =============================================================================
 * INDUSTRIES
 * ========================================================================== */

.pc2-industries { background: #fff; }

.pc2-industries .pc2-h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}
@media (min-width: 769px) {
    .pc2-industries .pc2-h2 { font-size: 40px; }
}

.pc2-industries__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pc2-tile {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 43, 89, 0.08);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.pc2-tile:focus-visible {
    outline: 3px solid rgba(31, 111, 196, 0.6);
    outline-offset: 3px;
}
.pc2-tile__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.pc2-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pc2-tile:hover .pc2-tile__media img { transform: scale(1.06); }
.pc2-tile__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 16px 20px;
    border-top: 4px solid #38B54A;
}
.pc2-tile__label {
    color: #002B59;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

@media (min-width: 769px) {
    .pc2-industries__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* =============================================================================
 * FAQ
 * ========================================================================== */

.pc2-faq { background: #fff; }
.pc2-faq__container { max-width: 760px; }

.pc2-faq__list {
    display: flex;
    flex-direction: column;
}

.pc2-faq-item {
    border-bottom: 1px solid #E6F9FF;
    background: transparent;
}

.pc2-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 20px 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.4;
}

.pc2-faq-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: var(--green);
    transition: transform 0.2s ease;
}
.pc2-faq-item.is-open .pc2-faq-icon { transform: rotate(180deg); }

.pc2-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.pc2-faq-item.is-open .pc2-faq-a { max-height: 460px; }
.pc2-faq-a p {
    margin: 0;
    padding: 0 0 20px;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.625;
}

/* =============================================================================
 * FINAL CTA BAND
 * ========================================================================== */

.pcalc2 .pc2-cta { background: var(--green); }
.pc2-cta__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 48px;
    /* The host theme applies a flex `gap` to this container, which stacked on
     * top of the children's margins and inflated the band (~313px). Zero it so
     * the title/sub margins (12px / 26px) alone control the rhythm — matches v0
     * (~251px). */
    gap: 0 !important;
}
.pc2-cta__title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: normal;
}
.pc2-cta__sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 26px;
}

/* Mobile: CTA title matches v0 (24px) — the global .pc2-h2 mobile rule does not
 * apply here since the CTA title carries its own class. */
@media (max-width: 768px) {
    .pc2-cta__title { font-size: 24px; }
}
.pc2-cta__btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}
/* v0 CTA buttons are ~2px taller (solid 48px, outline 52px). */
.pcalc2 .pc2-cta__btns .pc2-btn {
    padding-block: 16px !important;
}
@media (min-width: 600px) {
    .pc2-cta__btns { flex-direction: row; }
}

/* =============================================================================
 * MODAL (Piotnet form)
 * ========================================================================== */

.pc2-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 18, 40, 0.62);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.pc2-modal.is-open { display: flex; }

.pc2-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 30px 80px rgba(0, 18, 40, 0.45);
    width: 100%;
    max-width: 560px;
    margin: auto;
    padding: 40px 26px 30px;
    animation: pc2-modal-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pc2-modal-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.pc2-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lightblue-bg);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.15s ease;
}
.pc2-modal__close:hover { background: #d4f1fb; }

.pc2-modal__body { width: 100%; }

