/* ==========================================================================
   Janix homepage (v2) - editorial "operations console".
   Deep-blue field, cream editorial type, mono call-sheet labels, real product
   shown in framed screens, yellow as the stage-light accent. Mobile-first.
   Layers on the brand tokens in marketing.css.
   ========================================================================== */

/* Brand tokens (--blue, --cream, --yellow, --edge, …) are defined once in the
   global :root block in marketing.css, which loads first on every page. This
   sheet consumes them; it no longer redeclares a private :root (D1). */

/* --- Shared building blocks --- */
.band { padding: 5rem 1.5rem; }
.band-blue { background: var(--blue); }
.band-deep { background: var(--blue-deep); }
.band-cream { background: var(--cream); color: var(--blue); }
.band .container { max-width: 1140px; }

.eyebrow,
.section-label,
.kicker {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--yellow);
}
.section-label { display: inline-block; margin-bottom: 1.25rem; }
.section-label-dark { color: var(--blue); opacity: 0.55; }
.section-label-magenta { color: var(--magenta); }

.band h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.01em;
    font-size: clamp(2.4rem, 6vw, 4rem);
}
.band em { font-style: italic; color: var(--yellow); }
.band-cream em { color: var(--magenta); }

.big-body {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.7;
    max-width: 60ch;
    color: var(--cream-dim);
    margin-top: 1.5rem;
}
.band-cream .big-body { color: rgba(0, 40, 80, 0.78); }

.band-head { margin-bottom: 3rem; }

/* --- Buttons --- */
/* Home-family aliases of the unified D2 button system (#94). Same shape/radius/
   typography as marketing.css `.btn-primary` / `.btn-ghost`; .btn-solid = primary,
   .btn-line = secondary. Radius uses var(--radius-sm) (was an incoherent 2px). */
.btn-solid, .btn-line {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.95rem 1.6rem;
    border-radius: var(--radius-sm);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn-solid { background: var(--yellow); color: var(--blue); }
.btn-solid:hover { transform: translateY(-1px); background: var(--yellow-hover); box-shadow: 0 4px 16px rgba(218, 195, 4, 0.35); }
.btn-line { background: transparent; border: 1px solid var(--edge); color: var(--cream); }
.btn-line:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-1px); }
.btn-line-cream { color: var(--cream); border-color: rgba(242, 236, 227, 0.4); }
/* Contextual override: on cream bands the primary reads magenta (preserved). */
.band-cream .btn-solid { background: var(--magenta); color: var(--cream); }
.band-cream .btn-solid:hover { background: #b02b5b; box-shadow: 0 4px 16px rgba(151, 36, 77, 0.3); }
.btn-solid .arrow, .text-link .arrow { transition: transform 0.18s ease; }
.btn-solid:hover .arrow { transform: translateX(4px); }
/* Consistent keyboard focus ring (matches marketing.css buttons). */
.btn-solid:focus-visible, .btn-line:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 3px;
}

.text-link {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--yellow);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 2rem;
}
.band-cream .text-link { color: var(--magenta); }
.text-link:hover .arrow { transform: translateX(4px); }

/* --- Framed product screens --- */
.screen {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--blue-deep);
    border: 1px solid var(--edge);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
    padding-top: 36px;
}
/* browser-window chrome bar (first dot brand yellow) */
.screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 36px;
    background: #001423 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23dac304'/%3E%3Ccircle cx='24' cy='6' r='5' fill='%23f2ece3' fill-opacity='0.35'/%3E%3Ccircle cx='42' cy='6' r='5' fill='%23f2ece3' fill-opacity='0.22'/%3E%3C/svg%3E") no-repeat 16px center;
    border-bottom: 1px solid var(--edge);
    z-index: 2;
}
.screen img { display: block; width: 100%; height: auto; }
.screen figcaption {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--cream-dim);
    padding: 0.9rem 1.1rem;
    border-top: 1px solid var(--edge);
}
.screen-light { box-shadow: 0 30px 70px -34px rgba(0, 40, 80, 0.5); border-color: rgba(0, 40, 80, 0.12); }

/* ============================ HERO ============================ */
.hero-v2 {
    position: relative;
    overflow: hidden;
    padding: 9rem 1.5rem 4rem;
    background:
        radial-gradient(130% 110% at 82% -10%, #023a6b 0%, #002850 52%, #00193a 100%);
}
.hero-v2::after { /* faint grain for atmosphere */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-v2-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--cream);
    opacity: 0.85;
    margin-bottom: 1.6rem;
}
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 0 rgba(218, 195, 4, 0.6);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(218, 195, 4, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(218, 195, 4, 0); }
    100% { box-shadow: 0 0 0 0 rgba(218, 195, 4, 0); }
}
.hero-v2 h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.015em;
    color: var(--cream);
}
.hero-v2 h1 em { color: var(--yellow); font-style: italic; }
.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.65;
    color: var(--cream-dim);
    max-width: 40ch;
    margin: 1.6rem 0 2.2rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cta-row-center { justify-content: center; }
.hero-foot {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: rgba(242, 236, 227, 0.45);
    margin-top: 1.5rem;
}
.hero-v2-shot .screen { transform: none; }

/* staggered hero entrance */
.hero-v2-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-v2-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-v2-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-v2-copy > *:nth-child(3) { animation-delay: 0.22s; }
.hero-v2-copy > *:nth-child(4) { animation-delay: 0.30s; }
.hero-v2-copy > *:nth-child(5) { animation-delay: 0.38s; }
.hero-v2-shot { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.30s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .hero-v2-copy > *, .hero-v2-shot { animation: none; }
    .live-dot { animation: none; }
    .ticker-track { animation: none; }
}

/* ============================ TICKER ============================ */
.ticker {
    background: var(--blue-deep);
    border-top: 1px solid var(--edge);
    border-bottom: 1px solid var(--edge);
    overflow: hidden;
    padding: 0.9rem 0;
}
.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    white-space: nowrap;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--cream);
    animation: ticker 38s linear infinite;
    will-change: transform;
}
.ticker-track .dot { color: var(--yellow); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ PROBLEM ============================ */
.problem-head {
    line-height: 1.04 !important;
    font-style: italic;
}
.mono-red {
    font-family: 'Source Code Pro', monospace;
    font-style: normal;
    font-size: 0.78em;
    color: var(--yellow);
    background: rgba(218, 195, 4, 0.08);
    padding: 0.05em 0.3em;
    border-radius: 3px;
}

/* ============================ SHOWCASE ============================ */
.showcase-row {
    display: grid;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4.5rem;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-text .kicker { color: var(--magenta); display: block; margin-bottom: 0.9rem; }
.showcase-text h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.02;
    color: var(--blue);
    margin-bottom: 1rem;
}
.showcase-text p { color: rgba(0, 40, 80, 0.72); line-height: 1.65; max-width: 46ch; }

/* ============================ STACK LIST ============================ */
.stack-list {
    list-style: none;
    display: grid;
    gap: 1px;
    background: var(--edge);
    border: 1px solid var(--edge);
    border-radius: 6px;
    overflow: hidden;
}
.stack-list li { background: var(--blue); padding: 2rem 1.75rem; }
.stack-no {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--yellow);
}
.stack-list h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.7rem;
    color: var(--cream);
    margin: 0.6rem 0 0.6rem;
}
.stack-list p { color: var(--cream-dim); font-size: 0.95rem; line-height: 1.6; }

/* ============================ CASE STUDY ============================ */
.case-grid { display: grid; gap: 2.5rem; align-items: center; }
.case-facts { list-style: none; margin: 1.75rem 0 0.5rem; }
.case-facts li {
    padding: 0.7rem 0;
    border-top: 1px solid rgba(0, 40, 80, 0.12);
    color: rgba(0, 40, 80, 0.75);
    font-size: 0.95rem;
}
.case-facts span {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--magenta);
    margin-right: 0.5rem;
}

/* ============================ LEAD CTA ============================ */
.band-cta {
    background: linear-gradient(180deg, #002850 0%, #001a36 100%);
    text-align: center;
    padding: 6rem 1.5rem;
}
.cta-head {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 0.95;
    color: var(--cream);
}
.cta-body { margin: 1.5rem auto 2.5rem; }
.email-capture { display: block; margin: 3.5rem auto 0; max-width: 440px; }
.email-capture label {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--lavender);
    display: block;
    margin-bottom: 0.8rem;
}
.email-capture-row { display: flex; gap: 0.6rem; }
.email-capture input {
    flex: 1;
    background: rgba(242, 236, 227, 0.06);
    border: 1px solid var(--edge);
    border-radius: 2px;
    padding: 0.85rem 1rem;
    color: var(--cream);
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
}
.email-capture input:focus { outline: none; border-color: var(--yellow); }
.email-capture button {
    background: var(--yellow);
    color: var(--blue);
    border: none;
    border-radius: 2px;
    padding: 0 1.4rem;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.email-capture-note {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    color: rgba(242, 236, 227, 0.4);
    margin-top: 0.8rem;
}

/* ============================ RESPONSIVE ============================ */
@media (min-width: 860px) {
    .band { padding: 7rem 2rem; }
    .hero-v2 { padding: 11rem 2rem 6rem; }
    .hero-v2-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4rem; }
    .showcase-row { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
    .showcase-row.reverse .screen { order: 2; }
    .stack-list { grid-template-columns: repeat(3, 1fr); }
    .case-grid { grid-template-columns: 1fr 1.1fr; }
}
@media (min-width: 560px) and (max-width: 859px) {
    .stack-list { grid-template-columns: repeat(2, 1fr); }
}

/* ============================ COMPARISON TABLE ============================ */
.cmp-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--edge);
    border-radius: 8px;
}
.cmp {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
    font-family: 'Source Code Pro', monospace;
}
.cmp thead th {
    background: var(--blue-deep);
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1rem 0.9rem;
    text-align: center;
    border-bottom: 1px solid var(--edge);
}
.cmp th.cmp-feature { text-align: left; }
.cmp tbody th.cmp-feature {
    text-align: left;
    font-weight: 400;
    color: var(--cream-dim);
    padding: 0.8rem 0.9rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(242, 236, 227, 0.06);
    position: sticky;
    left: 0;
    background: var(--blue);
    min-width: 220px;
}
.cmp td {
    text-align: center;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(242, 236, 227, 0.06);
    color: var(--cream);
    font-size: 0.82rem;
}
.cmp-cat td {
    background: rgba(218, 195, 4, 0.07);
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.7rem 0.9rem;
    text-align: left;
}
.cmp-yes { color: var(--yellow); font-weight: 700; }
.cmp-no { color: rgba(242, 236, 227, 0.28); }
.cmp-val { color: var(--cream); font-size: 0.78rem; }

/* ---- Row highlight: groups where the tiers actually differ ---- */
.cmp tbody tr.cmp-differs td {
    background: rgba(218, 195, 4, 0.05);
}
.cmp tbody tr.cmp-differs th.cmp-feature {
    /* lift the sticky-left cell above the row tint so it still reads as highlighted */
    background: var(--blue-panel);
    color: var(--cream);
}
.cmp-cat-differs td {
    background: rgba(218, 195, 4, 0.12);
}

/* ---- Producer column emphasis ---- */
/* Columns: 1=Feature, 2=Organizer, 3=Producer, 4=Studio, 5=Enterprise */
.cmp-producer-emphasis thead th:nth-child(3) {
    color: var(--yellow);
    box-shadow: inset 0 -2px 0 var(--yellow);
}
.cmp-producer-emphasis tbody td:nth-child(3) {
    background: rgba(218, 195, 4, 0.08);
}
/* When Producer cell is also in a differing row, lift the tint */
.cmp-producer-emphasis tbody tr.cmp-differs td:nth-child(3) {
    background: rgba(218, 195, 4, 0.14);
}

/* polish: feature-grid hover + screen caption sits flush */
.stack-list li { transition: background 0.2s ease; }
.stack-list li:hover { background: #073156; }
.stack-list li:hover .stack-no { color: #f2ece3; }
.screen figcaption { background: var(--blue-deep); }

/* ============================ PRICING CALCULATOR MODAL ============================
   Behavior + slider logic in /js/pricing-calculator.js. Pricing-page-scoped.
   Layered on top of the brand tokens already declared above (--blue, --cream, --yellow). */

/* Lock background scroll while the modal is open. */
body.calc-modal-open { overflow: hidden; }

.calc-overlay {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 17, 36, 0.78);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.calc-overlay.show { opacity: 1; }

.calc-modal {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    background: #06294d;
    border: 1px solid var(--edge);
    border-top: 3px solid var(--yellow);
    border-radius: 10px;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7);
    padding: 1.75rem 1.75rem 1.5rem;
}

.calc-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(242, 236, 227, 0.65);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}
.calc-close:hover,
.calc-close:focus-visible {
    color: var(--yellow);
    background: rgba(218, 195, 4, 0.08);
    outline: none;
}

.calc-header {
    margin-bottom: 1.15rem;
    padding-right: 2.5rem;
}
.calc-eyebrow {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: var(--yellow);
    margin-bottom: 0.6rem;
}
.calc-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.05;
    color: var(--cream);
    letter-spacing: -0.01em;
}

.calc-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 760px) {
    .calc-body {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .calc-panel-results {
        border-left: 1px solid var(--edge);
        padding-left: 1.5rem;
    }
    .calc-panel-inputs {
        padding-right: 1.5rem;
    }
}

/* Reset the global `section { padding: 6rem 2rem }` that leaks in from
   marketing.css onto these <section class="calc-panel"> children — keep
   only the left/right gutter applied below at ≥760px. */
.calc-panel { min-width: 0; padding: 0; }

.calc-panel-title {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(242, 236, 227, 0.55);
    margin-bottom: 1.1rem;
}

/* ---- Sliders ---- */
.calc-slider-group { margin-bottom: 1.25rem; }

.calc-slider-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}
.calc-slider-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.78rem;
    color: var(--cream-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.calc-slider-value {
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 600;
    color: var(--yellow);
    line-height: 1;
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(242, 236, 227, 0.18);
    border-radius: 2px;
    outline: none;
    margin: 0.4rem 0 0.1rem;
    cursor: pointer;
}
.calc-slider:focus-visible {
    box-shadow: 0 0 0 3px rgba(218, 195, 4, 0.35);
    border-radius: 2px;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--yellow);
    border: 2px solid #06294d;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.12s ease;
}
.calc-slider:hover::-webkit-slider-thumb { transform: scale(1.08); }
.calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--yellow);
    border: 2px solid #06294d;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
.calc-slider::-moz-range-track {
    background: rgba(242, 236, 227, 0.18);
    height: 4px;
    border-radius: 2px;
}

.calc-summary {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.65;
    color: rgba(242, 236, 227, 0.72);
}
.calc-summary-strong {
    color: var(--cream);
    font-weight: 600;
    font-family: 'Source Code Pro', monospace;
}

/* ---- Tier results ---- */
.calc-tier-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.calc-tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(242, 236, 227, 0.1);
    border-radius: 6px;
    background: rgba(242, 236, 227, 0.02);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.calc-tier-row.calc-tier-row-best {
    border-color: rgba(218, 195, 4, 0.55);
    background: rgba(218, 195, 4, 0.06);
}
.calc-tier-meta { min-width: 0; }
.calc-tier-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.45rem;
    line-height: 1.15;
    color: var(--cream);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}
.calc-tier-sub {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    color: rgba(242, 236, 227, 0.55);
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}
.calc-tier-cost {
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 600;
    color: var(--cream);
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.calc-best-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--blue);
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    line-height: 1;
    vertical-align: middle;
    font-style: normal;
}

.calc-tier-foot {
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(242, 236, 227, 0.6);
    margin-top: 1rem;
}
.calc-tier-foot a {
    color: var(--yellow);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.calc-tier-foot a:hover { color: #ecd62a; }

@media (max-width: 480px) {
    .calc-modal { padding: 2rem 1.25rem 1.5rem; }
    .calc-header { padding-right: 2rem; }
    .calc-tier-row { padding: 0.75rem 0.85rem; }
    .calc-tier-cost { font-size: 1.2rem; }
}

/* ---- Pricing calculator button (yellow-outline, clock icon) ----
   Overrides the base .btn.btn-ghost styling from marketing.css so the
   tiers-section CTA reads as a yellow-highlighted action, parallel to the
   .nav-cta-get-started yellow-outline pill. Icon uses currentColor so the
   inline-SVG clock recolors on hover with the text. */
.tier-cards-calc {
    background: transparent;
    color: var(--yellow);
    border: 1px solid var(--yellow);
}
.tier-cards-calc:hover {
    background: var(--yellow);
    color: var(--blue);
    border-color: var(--yellow);
}
.tier-cards-calc-icon {
    color: inherit;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transform: none;
    font-size: 1em;
}
.tier-cards-calc-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}
