/* Hosting plans. Uses the site type and colour already set in style.css. */

body.page-hosting {
    padding-top: 72px;
    background: var(--bg-light);
}

.page-hero {
    padding: 56px 0 28px;
}

.page-hero h1 {
    max-width: 16ch;
    margin: 12px 0 16px;
}

.page-hero .lede {
    max-width: 62ch;
    font-size: 1.125rem;
}

.crumb {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.crumb a { color: var(--text-secondary); }

.guard {
    background: #0f172a;
    color: white;
    border-radius: var(--radius-lg);
    padding: 22px 28px;
    margin: 8px 0 36px;
}

.guard strong { color: white; }
.guard p { color: #cbd5e1; margin: 6px 0 0; }

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.plan-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.plan-card.featured {
    border-color: #7dd3fc;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.plan-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.plan-card h2 {
    font-size: 1.55rem;
    margin: 8px 0 4px;
}

.plan-who {
    min-height: 3.2em;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-build {
    margin: 8px 0 18px;
    font-size: 0.95rem;
}

.plan-card ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    flex: 1;
}

.plan-card li {
    padding: 8px 0 8px 22px;
    position: relative;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle);
}

.plan-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.plan-card .btn { width: 100%; }

.compare-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin: 36px 0;
}

.compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.compare th,
.compare td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    font-size: 0.95rem;
}

.compare th {
    background: var(--bg-subtle);
    font-size: 0.95rem;
}

.compare td:first-child,
.compare th:first-child {
    color: var(--text-primary);
    font-weight: 600;
    width: 22%;
}

.section-block {
    padding: 12px 0 36px;
}

.section-block h2 { margin-bottom: 10px; }

.addon-grid,
.detail-grid,
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.addon,
.detail-card,
.module {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
}

.addon h3,
.detail-card h3,
.module h3 { margin-bottom: 8px; }

.addon .price {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.fact-list { list-style: none; padding: 0; margin: 16px 0 0; }
.fact-list li {
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.fact-list strong { color: var(--text-primary); }

.plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.notice {
    background: white;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 18px;
    margin: 18px 0;
}

.page-hosting .footer { margin-top: 24px; }

.page-hosting .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
}

@media (max-width: 768px) {
    .page-hosting .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-hosting .footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
    .page-hosting .footer-grid { grid-template-columns: 1fr; }
    .page-hosting .footer-brand { grid-column: span 1; }
}

@media (max-width: 900px) {
    .plan-grid,
    .addon-grid,
    .detail-grid,
    .module-grid,
    .split { grid-template-columns: 1fr; }
    .plan-who { min-height: 0; }
}
