/* =========================================================================
   StatusBird - CSS
   Professional, polished design for an e-commerce monitoring SaaS.
   ========================================================================= */

/* --- Reset & Base -------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: #334155;
    background-color: #f8fafc;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #1d4ed8;
}

img {
    max-width: 100%;
}

/* --- Container ----------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navbar -------------------------------------------------------------- */

.navbar {
    background: #fff;
    color: #334155;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 1rem 0;
}

.nav-brand {
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand:hover {
    text-decoration: none;
    color: #14b8a6;
}

.nav-logo {
    height: 68px;
    width: auto;
}

/* Hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #475569;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Sticky mobile CTA bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.mobile-cta-bar a {
    display: block;
    text-align: center;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: #0f172a;
    background: #f1f5f9;
    text-decoration: none;
}

.nav-links .btn {
    margin-left: 0.5rem;
    color: #fff;
}

.nav-links .btn:hover {
    color: #fff;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    gap: 0.5rem;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #cbd5e1;
}

.btn-outline:hover {
    background: #f1f5f9;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
}

.btn-lg {
    padding: 0.875rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Flash messages ------------------------------------------------------ */

.flash {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.925rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.flash-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.flash-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.flash a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Footer -------------------------------------------------------------- */

.footer {
    margin-top: auto;
    padding: 2.5rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

/* =========================================================================
   Landing Page
   ========================================================================= */

.hero {
    padding: 5rem 0 4rem;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* Two-column hero layout */
.hero-content {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-visual {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* SMS alert mockup cards */
.sms-mockup {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.sms-mockup-offset {
    margin-left: 2rem;
    opacity: 0.8;
}

.sms-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.sms-app-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sms-app-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sms-from {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.sms-time {
    font-size: 0.72rem;
    color: #94a3b8;
}

.sms-body {
    font-size: 0.825rem;
    color: #334155;
    line-height: 1.55;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid #bfdbfe;
    letter-spacing: 0.01em;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.035em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* Social proof */

.social-proof {
    padding: 2rem 0 3rem;
    text-align: center;
}

.social-proof p {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.service-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-logo {
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    opacity: 0.6;
    letter-spacing: -0.02em;
}

/* Testimonials */

.testimonials {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.testimonial-card {
    max-width: 680px;
    margin: 0 auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 3rem;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e293b;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    font-size: 0.9rem;
    color: #64748b;
}

.testimonial-author strong {
    color: #1e293b;
}

/* How it works */

.how-it-works {
    padding: 4rem 0;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #14b8a6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.how-it-works h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-desc {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.step-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.step-icon-1 {
    background: #eff6ff;
    color: #2563eb;
}

.step-icon-2 {
    background: #f0fdf4;
    color: #16a34a;
}

.step-icon-3 {
    background: #fefce8;
    color: #ca8a04;
}

.step-card h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-card p {
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.6;
}

/* Pricing */

.pricing {
    text-align: center;
    padding: 4rem 0 5rem;
}

.pricing h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Two-plan pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 780px;
    margin: 2.5rem auto 0;
    text-align: left;
}

/* Four-plan pricing grid */
.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
    gap: 1rem;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    border-color: #5eead4;
    box-shadow: 0 12px 40px rgba(20, 184, 166, 0.1);
}

.pricing-card-pro {
    border-color: #14b8a6;
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.12);
}

.pricing-card-pro-plus {
    border-color: #6366f1;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.pricing-card-pro-plus .price-tier {
    color: #6366f1;
}

.pricing-card-executive {
    border-color: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12);
}

.pricing-card-executive .price-tier {
    color: #d97706;
}

.pricing-card-free .price-amount {
    color: #475569;
}

.price-tier {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.pricing-card-pro .price-tier {
    color: #14b8a6;
}

.price-tagline {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0.25rem 0 0;
}

.pricing-card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price-amount span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #94a3b8;
}

.price-period {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
    text-align: left;
}

.price-features li {
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-features li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #ecfdf5;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.price-features li.feature-locked {
    color: #94a3b8;
}

.price-features li.feature-locked::before {
    background: #f1f5f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.pro-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #7c3aed;
    background: #ede9fe;
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Comparison table */

.comparison {
    text-align: center;
    padding: 4rem 0 5rem;
}

.comparison h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.comparison-table-wrap {
    max-width: 760px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.925rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.comparison-table thead tr {
    background: #f8fafc;
}

.comparison-table th {
    padding: 0.85rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.comparison-table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: #fafafe;
}

.comparison-table .col-highlight {
    background: #f0fdfa;
    color: #0f766e;
    font-weight: 600;
}

.comparison-table thead .col-highlight {
    background: #0f766e;
    color: #fff;
}

.comparison-table .check {
    color: #10b981;
}

.comparison-table .check::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.35rem;
    vertical-align: middle;
    background: #ecfdf5;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 11px;
    background-position: center;
    background-repeat: no-repeat;
}

.comparison-table .cross {
    color: #94a3b8;
}

.comparison-table .cross::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.35rem;
    vertical-align: middle;
    background: #fef2f2;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 11px;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================================================================
   Auth Pages
   ========================================================================= */

/* Platform picker (welcome page) */

.platform-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-align: left;
}

.platform-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.platform-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}

.platform-card-name {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.platform-card-hint {
    font-size: 0.78rem;
    color: #94a3b8;
}

@media (max-width: 480px) {
    .platform-picker {
        grid-template-columns: 1fr;
    }
}

.auth-container {
    max-width: 420px;
    margin: 3.5rem auto;
    text-align: center;
}

.auth-container h1 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: #64748b;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.auth-form {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* --- Forms --------------------------------------------------------------- */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="time"],
.form-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.925rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.form-group input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.form-group small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.form-group h3 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* --- Toggle / Checkbox labels -------------------------------------------- */

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.925rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.toggle-label:hover {
    background: #f8fafc;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #14b8a6;
}

.text-muted {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* =========================================================================
   Dashboard
   ========================================================================= */

.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.alert-setup-nudge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-setup-nudge-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.alert-setup-nudge-body {
    flex: 1;
}

.alert-setup-nudge-body strong {
    display: block;
    color: #1e40af;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.alert-setup-nudge-body p {
    margin: 0;
    font-size: 0.85rem;
    color: #3b82f6;
}

@media (max-width: 640px) {
    .alert-setup-nudge {
        flex-wrap: wrap;
    }
    .alert-setup-nudge .btn {
        width: 100%;
        text-align: center;
    }
}

.dashboard-header h1 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Summary bar */

.status-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.status-summary-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.summary-good {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.summary-good .status-summary-icon {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.summary-issues {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.summary-issues .status-summary-icon {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}

.summary-critical {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.summary-critical .status-summary-icon {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* AI incident card */

.ai-incident-card {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.ai-incident-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-incident-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #92400e;
    background: #fef3c7;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ai-incident-loading {
    font-size: 13px;
    color: #78350f;
    opacity: 0.7;
}

.ai-incident-summary {
    margin: 0 0 10px;
    font-size: 14px;
    color: #1c1917;
    line-height: 1.65;
}

.ai-incident-actions {
    margin: 0;
    padding-left: 18px;
}

.ai-incident-actions li {
    font-size: 14px;
    color: #1c1917;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Revenue impact card */

.revenue-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border: 1px solid #fca5a5;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 16px;
}

.revenue-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.revenue-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #991b1b;
    background: #fee2e2;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.revenue-service-name {
    font-size: 13px;
    color: #7f1d1d;
    font-weight: 500;
}

.revenue-loss-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.revenue-loss-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.revenue-loss-sublabel {
    font-size: 14px;
    color: #7f1d1d;
    font-weight: 500;
}

.revenue-loss-detail {
    font-size: 13px;
    color: #991b1b;
    line-height: 1.5;
}

/* Upgrade nudge variants */

.revenue-card-upgrade {
    opacity: 0.9;
}

.correlation-card-upgrade {
    opacity: 0.9;
}

.upgrade-plan-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #fff;
    background: #6366f1;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.upgrade-plan-tag-executive {
    background: #d97706;
}

/* Correlated outage card */

.correlation-card {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.correlation-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.correlation-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.correlation-services {
    font-size: 13px;
    color: #1e40af;
    font-weight: 500;
}

.correlation-text {
    font-size: 14px;
    color: #1e3a5f;
    line-height: 1.65;
    margin: 0;
}

.correlation-recommendation {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 6px;
    padding: 8px 12px;
    display: none;
}

/* Communication pack modal */

.comms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.comms-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.comms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.comms-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.comms-modal-close:hover {
    color: #475569;
}

.comms-modal-body {
    padding: 20px 24px 24px;
}

.comms-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.comms-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comms-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comms-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #475569;
}

.comms-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.65;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
}

.comms-copy-btn {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    background: none;
    border: 1px solid #bfdbfe;
    border-radius: 5px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.comms-copy-btn:hover {
    background: #eff6ff;
}

/* Service analysis page */

.analysis-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

/* BFCM / scorecards two-column layout */
.bfcm-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.analysis-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
}

.analysis-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}

.analysis-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.analysis-link {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
}

.analysis-link:hover {
    text-decoration: underline;
}

/* Per-card alert nudge for free users */

.card-alert-nudge {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    margin-top: 6px;
    display: block;
}

.card-alert-nudge:hover {
    text-decoration: underline;
}

/* Missed-alert upgrade card — shown when free user has active incidents */

.missed-alert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #ea580c;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.missed-alert-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc2626;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

.missed-alert-body {
    flex: 1;
    min-width: 200px;
}

.missed-alert-body strong {
    display: block;
    font-size: 14px;
    color: #9a3412;
    margin-bottom: 3px;
}

.missed-alert-body p {
    margin: 0;
    font-size: 13px;
    color: #c2410c;
    line-height: 1.5;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2); }
    50%       { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.08); }
}

/* Empty state */

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.75rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Category sections */

.category-section {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Service cards grid */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.875rem;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.service-card-operational::before {
    background: #10b981;
}

.service-card-degraded::before {
    background: #f59e0b;
}

.service-card-major::before {
    background: #f97316;
}

.service-card-critical::before {
    background: #ef4444;
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.service-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.975rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.service-logo-sm {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Status dot with pulse animation */

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-operational {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.status-degraded {
    background-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-major {
    background-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-critical {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.08);
    }
}

/* Status text */

.service-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.825rem;
}

.status-label {
    font-weight: 600;
    font-size: 0.825rem;
}

.status-text-operational {
    color: #10b981;
}

.status-text-degraded {
    color: #f59e0b;
}

.status-text-major {
    color: #f97316;
}

.status-text-critical {
    color: #ef4444;
}

.last-checked {
    color: #94a3b8;
    font-size: 0.775rem;
}

/* =========================================================================
   Onboarding - Service Picker
   ========================================================================= */

.onboarding {
    padding: 2rem 0;
}

.onboarding h1 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.15s;
}

.checkbox-card:hover {
    border-color: #5eead4;
    background: #fafafe;
}

.checkbox-card.checked,
.checkbox-card:has(input:checked) {
    border-color: #14b8a6;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.08);
}

.checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.925rem;
}

/* =========================================================================
   Settings
   ========================================================================= */

/* =========================================================================
   Blog
   ========================================================================= */

.blog-index { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.blog-index h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.blog-index .page-subtitle { color: #64748b; margin-bottom: 2rem; }

.blog-post-list { display: flex; flex-direction: column; gap: 1.25rem; }

.blog-card { display: block; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.blog-card:hover { border-color: #14b8a6; box-shadow: 0 4px 16px rgba(20,184,166,0.08); }
.blog-card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem; color: #0f172a; }
.blog-card-meta { font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.5rem; }
.blog-card-desc { color: #64748b; font-size: 0.925rem; line-height: 1.55; margin-bottom: 0.75rem; }
.blog-read-more { color: #14b8a6; font-size: 0.875rem; font-weight: 600; }

.blog-post { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.blog-post-header { margin-bottom: 2rem; }
.blog-back { color: #64748b; text-decoration: none; font-size: 0.875rem; display: inline-block; margin-bottom: 1rem; }
.blog-back:hover { color: #14b8a6; }
.blog-post-header h1 { font-size: 2rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.5rem; }
.blog-post-date { color: #94a3b8; font-size: 0.875rem; }

.blog-post-body { line-height: 1.75; color: #374151; font-size: 1.025rem; }
.blog-post-body h2 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 2rem 0 0.75rem; }
.blog-post-body p { margin-bottom: 1.15rem; }
.blog-post-body ul, .blog-post-body ol { margin: 0.75rem 0 1.15rem 1.5rem; }
.blog-post-body li { margin-bottom: 0.4rem; }
.blog-post-body blockquote { border-left: 4px solid #14b8a6; padding: 0.75rem 1.25rem; background: #f0fdfa; border-radius: 0 8px 8px 0; margin: 1.25rem 0; color: #0f766e; font-style: italic; }
.blog-post-body a { color: #14b8a6; }
.blog-post-body strong { color: #0f172a; }

.blog-post-cta { margin-top: 3rem; background: #f0fdfa; border: 1.5px solid #99f6e4; border-radius: 12px; padding: 2rem; }
.blog-post-cta h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog-post-cta p { color: #64748b; margin-bottom: 1.25rem; line-height: 1.6; }

/* --- Settings locked state ----------------------------------------------- */

.settings-locked {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* --- Admin dashboard ----------------------------------------------------- */

.admin-dashboard {
    padding: 2rem 0;
    max-width: 1100px;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-kpi {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.admin-kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.admin-kpi-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.admin-card h2 {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table td {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f8fafc;
    color: #475569;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table-full th,
.admin-table-full td {
    padding: 0.6rem 0.75rem;
}

.admin-table-full th:first-child,
.admin-table-full td:first-child {
    padding-left: 0;
}

.admin-td-right {
    text-align: right;
    color: #0f172a;
}

.admin-plan-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    text-transform: capitalize;
}

.admin-plan-active {
    background: #dcfce7;
    color: #15803d;
}

.admin-plan-free {
    background: #f1f5f9;
    color: #475569;
}

.admin-plan-trial {
    background: #fef9c3;
    color: #854d0e;
}

.admin-plan-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.text-warn {
    color: #f59e0b;
}

.settings {
    max-width: 1140px;
    padding: 2rem 0;
}

.settings h1 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.settings-form {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

/* =========================================================================
   Billing
   ========================================================================= */

.billing {
    max-width: 560px;
    padding: 2rem 0;
}

.billing h1 {
    color: #0f172a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.billing-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.billing-card h2 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1rem;
}

.plan-status {
    margin-bottom: 1.25rem;
}

.plan-status p {
    margin-top: 0.5rem;
    color: #475569;
}

.plan-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-active {
    background: #ecfdf5;
    color: #065f46;
}

.badge-trial {
    background: #f0fdfa;
    color: #0f766e;
}

.badge-inactive {
    background: #fef2f2;
    color: #991b1b;
}

.billing-info {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.billing-info h3 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.billing-info ul {
    list-style: none;
}

.billing-info li {
    padding: 0.4rem 0;
    color: #475569;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.billing-info li::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #ecfdf5;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Radio buttons ------------------------------------------------------- */

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.925rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.radio-label:hover {
    background: #f8fafc;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #14b8a6;
}

/* --- Impact messages (Feature 5) ---------------------------------------- */

.impact-message {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    line-height: 1.4;
}

/* --- Incident History (Feature 6) --------------------------------------- */

.history {
    padding: 2rem 0;
}

.history h1 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
}

.uptime-summary {
    margin-bottom: 2rem;
}

.uptime-pct {
    font-weight: 700;
    font-size: 0.9rem;
}

.uptime-good {
    color: #10b981;
}

.uptime-ok {
    color: #f59e0b;
}

.uptime-bad {
    color: #ef4444;
}

.incidents-section {
    margin-top: 2rem;
}

.incident-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.incident-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.incident-degraded::before { background: #f59e0b; }
.incident-major::before { background: #f97316; }
.incident-critical::before { background: #ef4444; }

.incident-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.incident-status {
    font-size: 0.825rem;
    font-weight: 600;
    color: #64748b;
}

.incident-body {
    padding-left: 1.6rem;
}

.incident-time {
    font-size: 0.825rem;
    color: #94a3b8;
}

.period-toggle {
    display: flex;
    gap: 0.5rem;
}

/* --- SEO Service Status Pages (Feature 7) ------------------------------- */

.services-index {
    padding: 2rem 0;
}

.services-index h1 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-status-page {
    padding: 2rem 0;
    max-width: 700px;
}

.service-status-page h1 {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.uptime-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border: 1px solid #e2e8f0;
}

.uptime-card h2 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.uptime-big {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.status-hero {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-section h2 {
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* =========================================================================
   Collections - Landing Page
   ========================================================================= */

.collections {
    padding: 4rem 0;
    text-align: center;
}

.collections h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1060px;
    margin: 0 auto;
}

.collection-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, transform 0.2s;
}

.collection-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.collection-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: #f0fdfa;
    color: #0f766e;
}

.collection-card h3 {
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.collection-card p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.collection-count {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f766e;
    background: #f0fdfa;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid #ccfbf1;
}

/* =========================================================================
   Collections - Onboarding Quick Select
   ========================================================================= */

.collection-selector {
    margin-bottom: 2rem;
}

.collection-selector-title {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.collection-selector-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.collection-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.collection-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.15s;
}

.collection-btn:hover {
    border-color: #5eead4;
    background: #fafafe;
}

.collection-btn.active {
    border-color: #14b8a6;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.08);
}

.collection-btn-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
}

.collection-btn-count {
    font-size: 0.75rem;
    color: #64748b;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
    }

    .hero-visual {
        flex: none;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .sms-mockup-offset {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        flex-direction: column;
        padding: 0.75rem 1rem 1rem;
        gap: 0.25rem;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.65rem 0.75rem;
        width: 100%;
    }

    .nav-links .btn {
        margin-left: 0;
        margin-top: 0.25rem;
        justify-content: center;
    }

    .mobile-cta-bar {
        display: block;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .pricing-grid,
    .pricing-grid-4 {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .status-summary {
        font-size: 0.875rem;
    }

    body {
        padding-bottom: 72px;
    }
}

/* --- Cookie consent banner ------------------------------------------- */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1e293b;
    color: #f1f5f9;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

.cookie-banner a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* --- Modal overlay ---------------------------------------------------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-box h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #0f172a;
}

.modal-box p {
    color: #475569;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* --- Danger button ---------------------------------------------------- */

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-danger:hover {
    background: #b91c1c;
}
