/* ============================================================
   PRICING PAGE — pricing.css
   Page-specific styles. Uses global CSS variables from
   global.css and public.css. Overrides/extends pricing-* classes.
   New wrapper elements prefixed .pl-
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.pl-page {
    max-width:  1280px;
    margin:     0 auto;
    padding:    calc(var(--sp-16) + 64px) var(--sp-8) var(--sp-20);
}

/* ── Hero ─────────────────────────────────────────────────── */
.pl-hero {
    display:        flex;
    flex-direction: column;
    gap:            var(--sp-8);
    margin-bottom:  var(--sp-12);
    align-items:    flex-start;
}

@media (min-width: 900px) {
    .pl-hero {
        flex-direction:  row;
        align-items:     flex-end;
        justify-content: space-between;
    }
}

.pl-hero-content { max-width: 700px; }

.pl-h1 {
    font-family:    var(--font-display);
    font-size:      clamp(2.25rem, 4.5vw, 4.25rem);
    font-weight:    700;
    letter-spacing: -0.03em;
    line-height:    1.05;
    color:          #fff;
    margin-bottom:  0;
    margin-top:     var(--sp-6);
}

.pl-h1 em {
    font-style: italic;
    color:      var(--clr-green);
}

.pl-hero-sub {
    font-family: var(--font-body);
    font-size:   0.9375rem;
    color:       rgba(255,255,255,0.38);
    line-height: 1.7;
    max-width:   280px;
    font-weight: 300;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.pricing-tabs-wrap {
    margin-bottom:   var(--sp-12);
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             var(--sp-3);
}

.pricing-tabs {
    display:       inline-flex;
    background:    #111311;
    border:        1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-pill);
    padding:       4px;
    gap:           4px;
}

.pricing-tab-btn {
    font-family:  var(--font-display);
    font-size:    0.875rem;
    font-weight:  600;
    color:        rgba(255,255,255,0.4);
    background:   none;
    border:       none;
    border-radius: var(--r-pill);
    padding:      0.5rem 1.75rem;
    cursor:       pointer;
    transition:   color 0.2s, background 0.2s;
    box-shadow:   none;
}

.pricing-tab-btn:hover {
    color: rgba(255,255,255,0.75);
}

.pricing-tab-btn.active {
    background:  var(--clr-green);
    color:       #0e0e0e;
    box-shadow:  none;
}

.pricing-tabs-hint {
    font-family: var(--font-body);
    font-size:   0.75rem;
    color:       rgba(255,255,255,0.22);
    text-align:  center;
}

/* ── Cards grid ───────────────────────────────────────────── */
.pricing-plans-grid {
    display:   grid;
    gap:       var(--sp-6);
    margin-top: var(--sp-5);
    margin-bottom: var(--sp-8);
    align-items: center;
    grid-template-columns: 1fr;
    padding-top: var(--sp-4); /* room for featured card scale(1.05) overflow */
    overflow: visible;
}

@media (min-width: 768px) {
    .pricing-plans-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .pricing-plans-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .pricing-plans-grid.cols-1 { grid-template-columns: 1fr; }
}

/* ── Individual card ──────────────────────────────────────── */
.pricing-card {
    position:        relative;
    background:      #0a0a0a;
    border:          1px solid rgba(255,255,255,0.06);
    border-radius:   var(--r-xl);
    padding:         2.5rem;
    display:         flex;
    flex-direction:  column;
    height:          100%;
    /* No overflow:hidden — the card background respects border-radius natively.
       Removing it lets the absolutely-positioned badge always show without clipping. */
    transition:      box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                     border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                     transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    box-shadow:   0 0 40px -10px rgba(202, 255, 111, 0.2);
    border-color: var(--clr-green);
    transform:    translateY(-2px);
}

.pricing-card.featured {
    background:   #131313;
    border-color: rgba(202,255,111,0.4);
    box-shadow:   0 25px 50px -12px rgba(0,0,0,0.6);
    z-index:      2;
    transform:    none;
}

@media (min-width: 768px) {
    .pricing-card.featured {
        transform: scale(1.05);
    }
}

.pricing-card.featured:hover {
    box-shadow:   0 0 60px -8px rgba(202,255,111,0.3);
    border-color: var(--clr-green);
}

@media (min-width: 768px) {
    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-2px);
    }
}

.pricing-card.quote-card {
    background:   #0a0a0a;
    border-color: rgba(255,255,255,0.06);
}

/* "Most Popular" badge — top-right corner of card.
   Card has no overflow:hidden so this is never clipped.
   border-top-right-radius matches the card's own corner (--r-xl = 20px). */
.pricing-badge {
    position:       absolute;
    top:            0;
    right:          0;
    background:     var(--clr-green);
    color:          #0e0e0e;
    font-family:    var(--font-display);
    font-size:      0.5rem;
    font-weight:    700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding:        0.4rem 0.875rem;
    border-top-right-radius:  var(--r-xl); /* follows card corner */
    border-bottom-left-radius: var(--r-lg);
}

/* Hosting badge — top of card */
.plan-hosting-badge {
    font-family:    var(--font-display);
    font-size:      0.625rem;
    font-weight:    700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color:          rgba(255,255,255,0.28);
    margin-bottom:  var(--sp-3);
    display:        block;
    padding:        0;
    background:     none;
    border:         none;
    border-radius:  0;
}

.pricing-card.featured .plan-hosting-badge {
    color: var(--clr-green);
}

/* Plan name */
.plan-name {
    font-family:    var(--font-display);
    font-size:      clamp(1.5rem, 2.5vw, 2rem);
    font-weight:    700;
    color:          #fff;
    margin-bottom:  var(--sp-6);
    line-height:    1.1;
    letter-spacing: -0.025em;
}

/* Price */
.plan-price {
    font-family:    var(--font-display);
    font-size:      clamp(2rem, 3.5vw, 2.75rem);
    font-weight:    700;
    color:          var(--clr-green);
    line-height:    1;
    letter-spacing: -0.025em;
    margin-bottom:  var(--sp-2);
}

.plan-price sup {
    font-size:      0.5em;
    vertical-align: super;
    font-weight:    700;
}

.plan-price-note {
    font-family:  var(--font-body);
    font-size:    0.8125rem;
    color:        rgba(255,255,255,0.32);
    margin-bottom: var(--sp-8);
    line-height:  1.5;
}

.plan-price-note strong {
    color:       rgba(255,255,255,0.62);
    font-weight: 600;
}

/* Divider */
.plan-divider {
    height:        1px;
    background:    rgba(255,255,255,0.07);
    margin-bottom: var(--sp-6);
    margin-top:    0;
}

/* Feature list */
.plan-features {
    list-style:     none;
    padding:        0;
    margin:         0 0 var(--sp-8);
    display:        flex;
    flex-direction: column;
    gap:            var(--sp-4);
    flex:           1;
}

.plan-features li {
    display:     flex;
    align-items: flex-start;
    gap:         var(--sp-3);
    font-family: var(--font-body);
    font-size:   0.875rem;
    color:       rgba(255,255,255,0.45);
    line-height: 1.55;
}

.plan-features li::before {
    content:          '';
    flex-shrink:      0;
    width:            17px;
    height:           17px;
    margin-top:       1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23caff6f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size:  contain;
    background-repeat: no-repeat;
}

.pricing-card.featured .plan-features li {
    color:       rgba(255,255,255,0.75);
    font-weight: 500;
}

/* Quote card examples list */
.plan-examples {
    list-style:     none;
    padding:        0;
    margin:         0 0 var(--sp-8);
    display:        flex;
    flex-direction: column;
    gap:            var(--sp-4);
    flex:           1;
}

.plan-examples li {
    display:     flex;
    align-items: flex-start;
    gap:         var(--sp-3);
    font-family: var(--font-body);
    font-size:   0.875rem;
    color:       rgba(255,255,255,0.38);
    line-height: 1.55;
}

.plan-examples li::before {
    content:    '→';
    color:      var(--clr-green);
    flex-shrink: 0;
    font-size:  0.8125rem;
    margin-top: 1px;
}

/* Description for custom quote */
.plan-desc {
    font-family:   var(--font-body);
    font-size:     0.9rem;
    color:         rgba(255,255,255,0.38);
    line-height:   1.65;
    margin-bottom: var(--sp-5);
    font-weight:   300;
}

/* CMS addon note (overrides inline style from renderPlanCard) */
.pricing-card [style*="border-top:1px dashed"] {
    border-top: 1px dashed rgba(202,255,111,0.18) !important;
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
}

/* Buttons */
.btn-plan {
    display:      block;
    width:        100%;
    padding:      1rem;
    border-radius: var(--r-pill);
    font-family:  var(--font-display);
    font-size:    0.9375rem;
    font-weight:  700;
    text-align:   center;
    text-decoration: none;
    cursor:       pointer;
    transition:   background 0.3s, opacity 0.2s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
    margin-top:   auto;
}

.btn-plan:active { transform: scale(0.98); }

.btn-plan-primary {
    background:  var(--clr-green);
    color:       #0e0e0e;
    border:      none;
    box-shadow:  0 8px 24px -4px rgba(202,255,111,0.25);
}

.btn-plan-primary:hover {
    opacity:    0.88;
    box-shadow: 0 12px 32px -4px rgba(202,255,111,0.35);
}

.btn-plan-secondary {
    background:   none;
    color:        var(--clr-green);
    border:       1px solid rgba(202,255,111,0.3);
}

.btn-plan-secondary:hover {
    background:   rgba(202,255,111,0.07);
    border-color: rgba(202,255,111,0.55);
}

/* ── Business tab hosting explainer ──────────────────────── */
.pl-hosting-explain {
    display:       grid;
    grid-template-columns: 1fr;
    gap:           var(--sp-6);
    background:    #111311;
    border:        1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-xl);
    padding:       var(--sp-6);
    margin-bottom: var(--sp-8);
}

@media (min-width: 640px) {
    .pl-hosting-explain { grid-template-columns: 1fr 1fr; }
}

.pl-hosting-option-label {
    font-family:    var(--font-display);
    font-size:      0.625rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom:  var(--sp-2);
}

.pl-hosting-option-label--managed { color: var(--clr-green); }
.pl-hosting-option-label--self    { color: rgba(255,255,255,0.32); }

.pl-hosting-option-desc {
    font-family: var(--font-body);
    font-size:   0.875rem;
    color:       rgba(255,255,255,0.38);
    line-height: 1.65;
}

/* ── Custom CTA card ──────────────────────────────────────── */
.custom-cta-card {
    display:         flex;
    flex-direction:  column;
    gap:             var(--sp-6);
    align-items:     center;
    text-align:      center;
    background:      #111311;
    border:          1px solid rgba(255,255,255,0.07);
    border-radius:   var(--r-xl);
    padding:         var(--sp-8) var(--sp-8);
    margin-top:      var(--sp-12);
    margin-bottom:   0;
}

@media (min-width: 640px) {
    .custom-cta-card {
        flex-direction: row;
        text-align:     left;
    }
}

.custom-cta-text h3 {
    font-family:    var(--font-display);
    font-size:      clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight:    700;
    color:          #fff;
    margin-bottom:  var(--sp-2);
    letter-spacing: -0.02em;
}

.custom-cta-text p {
    font-family: var(--font-body);
    font-size:   0.9375rem;
    color:       rgba(255,255,255,0.35);
    line-height: 1.65;
}

/* ── Custom CTA button (btn-accent doesn't exist globally) ── */
.custom-cta-card a.btn-accent,
.custom-cta-card .btn.btn-accent {
    display:         inline-flex;
    align-items:     center;
    background:      var(--clr-green);
    color:           #0e0e0e;
    font-family:     var(--font-display);
    font-weight:     700;
    text-decoration: none;
    border-radius:   var(--r-pill);
    white-space:     nowrap;
    flex-shrink:     0;
    border:          none;
    transition:      opacity 0.2s, box-shadow 0.2s;
    box-shadow:      0 6px 20px -4px rgba(202,255,111,0.25);
}

.custom-cta-card a.btn-accent:hover,
.custom-cta-card .btn.btn-accent:hover {
    opacity:    0.88;
    box-shadow: 0 8px 28px -4px rgba(202,255,111,0.35);
}

/* ── Domain note ──────────────────────────────────────────── */
.pl-domain-note {
    text-align:  center;
    padding:     var(--sp-8) 0;
    border-top:  1px solid rgba(255,255,255,0.07);
    margin-top:  var(--sp-8);
}

.pl-domain-note p {
    font-family: var(--font-body);
    font-size:   0.875rem;
    color:       rgba(255,255,255,0.32);
    max-width:   560px;
    margin:      0 auto;
    line-height: 1.7;
}

.pl-domain-note strong {
    color:       rgba(255,255,255,0.65);
    font-weight: 600;
}

/* ── Guarantee section ────────────────────────────────────── */
.pl-guarantee {
    margin-top:            var(--sp-16);
    display:               grid;
    grid-template-columns: 1fr;
    gap:                   var(--sp-16);
    align-items:           center;
}

@media (min-width: 768px) {
    .pl-guarantee { grid-template-columns: 1fr 1fr; }
}

.pl-guarantee-img {
    position:      relative;
    aspect-ratio:  16/9;
    border-radius: var(--r-xl);
    overflow:      hidden;
    background:    #111311;
}

.pl-guarantee-placeholder {
    width:       100%;
    height:      100%;
    display:     flex;
    align-items: center;
    justify-content: center;
    background:  linear-gradient(135deg, #111311 0%, #1a1f1a 50%, #0e0e0e 100%);
    position:    relative;
    overflow:    hidden;
}

.pl-guarantee-placeholder::before {
    content:          '';
    position:         absolute;
    inset:            0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(202,255,111,0.025) 20px,
        rgba(202,255,111,0.025) 21px
    );
}

.pl-guarantee-placeholder-label {
    font-family:    var(--font-display);
    font-size:      0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color:          rgba(255,255,255,0.15);
    position:       relative;
    z-index:        1;
}

.pl-guarantee-h2 {
    font-family:    var(--font-display);
    font-size:      clamp(2rem, 4vw, 3rem);
    font-weight:    700;
    letter-spacing: -0.03em;
    color:          #fff;
    margin-bottom:  var(--sp-10);
    line-height:    1.1;
}

.pl-guarantee-h2 em {
    font-style: italic;
    color:      var(--clr-green);
}

.pl-guarantee-points {
    display:        flex;
    flex-direction: column;
    gap:            var(--sp-8);
}

.pl-guarantee-point {
    display:     flex;
    gap:         var(--sp-6);
    align-items: flex-start;
}

.pl-guarantee-icon {
    flex-shrink:     0;
    width:           48px;
    height:          48px;
    border-radius:   50%;
    border:          1px solid rgba(202,255,111,0.2);
    display:         flex;
    align-items:     center;
    justify-content: center;
    transition:      border-color 0.3s;
}

.pl-guarantee-point:hover .pl-guarantee-icon {
    border-color: rgba(202,255,111,0.45);
}

.pl-guarantee-icon svg {
    width:  22px;
    height: 22px;
    stroke: var(--clr-green);
}

.pl-guarantee-point h4 {
    font-family:    var(--font-display);
    font-size:      1.0625rem;
    font-weight:    700;
    color:          #fff;
    margin-bottom:  var(--sp-2);
    letter-spacing: -0.01em;
}

.pl-guarantee-point p {
    font-family: var(--font-body);
    font-size:   0.875rem;
    color:       rgba(255,255,255,0.38);
    line-height: 1.65;
}

/* ── Mobile tweaks ────────────────────────────────────────── */
@media (max-width: 599px) {
    .pl-page          { padding-left: var(--sp-5); padding-right: var(--sp-5); }
    .pl-hero          { margin-bottom: var(--sp-16); }
    .pl-hero-sub      { max-width: 100%; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-2px); }
    .pricing-card     { padding: 1.75rem; }
}
