/* ══════════════════════════════════════════════════════════════════════
   EternalRelays — Design System
   Aesthetic: Archival Trust — the quiet authority of a heritage institution.
   Fonts: Playfair Display (headings) / DM Sans (UI & body) / Lora italic (accents)
   ══════════════════════════════════════════════════════════════════════ */

:root {
    /* ── Palette: warm parchment meets deep navy ── */
    --bg:             #faf9f7;   /* archival paper */
    --surface:        #f2f0ec;
    --surface-alt:    #e8e5df;
    --border:         #cec9c1;
    --border-dark:    #9a948c;

    --text:           #1c1917;   /* warm near-black */
    --text-muted:     #6b6459;

    --primary:        #0f172a;   /* deep navy — authority */
    --primary-hover:  #1e293b;
    --accent:         #78350f;   /* burnished bronze — warmth */

    --success:        #14532d;
    --success-bg:     #f0fdf4;
    --success-border: #166534;

    --warning:        #92400e;
    --warning-bg:     #fefce8;
    --warning-border: #b45309;

    --danger:         #7f1d1d;
    --danger-bg:      #fef2f2;
    --danger-border:  #b91c1c;

    --info:           #1e3a5f;
    --info-bg:        #eff6ff;
    --info-border:    #3b6299;

    --due:            #78350f;
    --due-bg:         #fffbeb;
    --due-border:     #d97706;

    --radius:         3px;
    --radius-lg:      6px;

    --shadow-sm:  0 1px 3px rgba(15,23,42,.06);
    --shadow-md:  0 4px 12px rgba(15,23,42,.09);
    --shadow-lg:  0 8px 24px rgba(15,23,42,.13);
}

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

/* ── Base Typography ─────────────────────────────────────────────────── */
body {
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { line-height: 1.75; }
p + p { margin-top: .75em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: .85em;
    background: var(--surface-alt);
    padding: .15em .4em;
    border-radius: var(--radius);
    color: var(--primary);
}

pre {
    background: var(--primary);
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: .85rem;
    line-height: 1.6;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* ── Utilities ───────────────────────────────────────────────────────── */
.hidden        { display: none !important; }
.text-muted    { color: var(--text-muted); }
.form-hint     { font-size: .82rem; color: var(--text-muted); margin-top: .375rem; line-height: 1.4; }
.optional-label { font-size: .75rem; font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.char-count    { font-size: .75rem; color: var(--text-muted); float: right; margin-top: .25rem; }
.char-count-warn { color: var(--danger); font-weight: 600; }
.unit-label    { font-size: .875rem; color: var(--text-muted); }

/* ── Navbar ──────────────────────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 66px;
    background: var(--bg);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .65rem;
    letter-spacing: -.01em;
    flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; color: var(--primary); }

.logo-icon    { width: 30px; height: 30px; }
.logo-icon-sm { width: 18px; height: 18px; vertical-align: middle; margin-right: .375rem; }
.logo-icon-lg { width: 72px; height: 72px; margin: 0 auto 2rem; display: block; }

.navbar-links { display: flex; align-items: center; gap: 1.75rem; }
.navbar-links a {
    text-decoration: none;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .15s;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.navbar-links a:hover { color: var(--primary); text-decoration: none; }
.navbar-links a.btn       { color: #fff; }
.navbar-links a.btn:hover { color: #fff; text-decoration: none; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.container {
    max-width: 62rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .6rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.4;
}
.btn:hover { text-decoration: none; }

.btn-sm    { padding: .38rem .875rem; font-size: .77rem; }
.btn-block { display: block; width: 100%; text-align: center; }

.btn-primary         { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover   { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: var(--shadow-sm); }
.btn-outline         { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover   { background: var(--primary); color: #fff; }
.btn-success         { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover   { background: #166534; border-color: #166534; }
.btn-warning         { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover   { opacity: .9; }
.btn-danger          { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover    { background: #991b1b; border-color: #991b1b; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: .9rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info-border); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.alert-failed  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-border); }
.alert-due     { background: var(--due-bg);     color: var(--due);     border-color: var(--due-border); }
.alert-actions { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }

/* Flash messages */
.flash {
    padding: .875rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: .9rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.flash:first-child { margin-top: 2rem; }
.flash-success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.flash-error   { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-border); }
.flash-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.flash-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info-border); }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .45rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    display: block;
    width: 100%;
    padding: .65rem .875rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    line-height: 1.5;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.form-group select {
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f172a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15,23,42,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--border-dark); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group .form-hint { margin-top: .375rem; }

.form-error {
    font-size: .8rem;
    color: var(--danger);
    margin-top: .3rem;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Standalone inputs (outside .form-group, e.g. admin search) */
input[type="text"]:not(.form-group *),
input[type="email"]:not(.form-group *),
input[type="number"]:not(.form-group *),
input[type="search"]:not(.form-group *),
input[type="password"]:not(.form-group *),
select:not(.form-group *) {
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    padding: .45rem .75rem;
    line-height: 1.5;
    -webkit-appearance: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    user-select: none;
}
.toggle-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* HTMX loading indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .18rem .55rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid currentColor;
    background: transparent;
    vertical-align: middle;
}
.badge-active    { color: var(--success); }
.badge-paused    { color: var(--text-muted); }
.badge-late      { color: var(--warning); }
.badge-triggered { color: var(--info); }
.badge-expired   { color: var(--text-muted); }
.badge-failed    { color: var(--danger); }
.badge-warning   { color: var(--warning); }
.badge-disabled  { color: var(--text-muted); }

/* ── Progress / Quota ────────────────────────────────────────────────── */
.quota-meters { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0; }
.quota-meter  {}
.quota-label  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .4rem;
}
.progress-bar { height: 4px; background: var(--surface-alt); border-radius: 99px; overflow: hidden; }
.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    transition: width .3s ease;
}
.progress-bar-fill.near-limit { background: var(--warning); }
.progress-bar-fill.at-limit   { background: var(--danger); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    padding: 6rem 2rem 5rem;
    text-align: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    color: var(--primary);
    margin-bottom: 1.25rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.85;
}

/* ── Public Marketing Pages ──────────────────────────────────────────── */
.public-page {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}
.public-page h2 { font-size: 1.9rem; margin-bottom: .5rem; }
.page-sub {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.75;
}

/* Static pages (TOS, Privacy, Contact, etc.) */
.static-page {
    padding-top: 3rem;
    padding-bottom: 4rem;
    max-width: 50rem;
}
.static-page h1 { margin-bottom: 1.5rem; }
.static-page h2 { font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.static-page p, .static-page li { color: var(--text-muted); line-height: 1.8; font-size: .95rem; }
.static-page li { margin-left: 1.5rem; margin-bottom: .35rem; }

.error-page { text-align: center; padding-top: 5rem; }
.error-code {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    opacity: .25;
    margin-bottom: 1rem;
}
.error-page h1 { margin-bottom: 1rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.contact-methods section {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: var(--radius);
}
.contact-methods h2 { font-size: 1rem; margin-bottom: .5rem; }

/* ── Use Case Grid ───────────────────────────────────────────────────── */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.use-case-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.use-case-icon  { font-size: 1.35rem; margin-bottom: .875rem; opacity: .55; display: block; }
.use-case-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--primary);
}
.use-case-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.75; }

/* ── Why Section / Comparison ────────────────────────────────────────── */
.why-section   { padding: 5rem 0; text-align: center; border-bottom: 1px solid var(--border); }
.why-heading   { font-size: 1.9rem; margin-bottom: .75rem; }
.why-sub {
    color: var(--text-muted);
    margin: 0 auto 3.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 1.5rem;
    text-align: left;
}
.compare-col {
    background: #fff;
    border: 1px solid var(--border);
    padding: 2.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.compare-col.compare-featured {
    border: 2px solid var(--primary);
    background: var(--bg);
    box-shadow: var(--shadow-md);
}
.compare-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .2rem .55rem;
    letter-spacing: .12em;
    margin-bottom: 1.25rem;
}
.compare-header  { margin-bottom: 1.75rem; border-bottom: 1px solid var(--surface-alt); padding-bottom: 1.25rem; }
.compare-icon    { font-size: 1.6rem; margin-bottom: .5rem; opacity: .6; }
.compare-name    {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: .25rem;
    font-weight: 700;
}
.compare-cost    { font-size: .875rem; color: var(--text-muted); font-style: italic; }

.compare-list    { list-style: none; display: flex; flex-direction: column; gap: .875rem; }
.compare-list li { font-size: .875rem; position: relative; padding-left: 1.75rem; }
.compare-list li::before { position: absolute; left: 0; font-weight: 700; }
.compare-good::before    { content: '✓'; color: var(--success); }
.compare-bad             { color: var(--text-muted); }
.compare-bad::before     { content: '✕'; color: var(--danger); opacity: .45; }

/* ── Steps / Process ─────────────────────────────────────────────────── */
.track       { margin-bottom: 4.5rem; }
.track h2    { font-size: 1.65rem; margin-bottom: .5rem; }
.track-sub   { color: var(--text-muted); margin-bottom: 2.5rem; }

.steps { display: flex; flex-direction: column; gap: 2rem; }
.step      { display: flex; gap: 2rem; align-items: flex-start; position: relative; }
.step::after {
    content: '';
    position: absolute;
    left: 1.3rem;
    top: 2.625rem;
    bottom: -2rem;
    width: 1px;
    background: var(--border);
}
.step:last-child::after { display: none; }
.step-num  {
    width: 2.625rem;
    height: 2.625rem;
    background: var(--primary);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.step-body h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step-body p  { color: var(--text-muted); font-size: .9rem; line-height: 1.8; }

/* ── Feature Grid ────────────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 4rem 0;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.feature-icon  { font-size: 1.35rem; margin-bottom: .75rem; opacity: .55; display: block; }
.feature-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: .5rem;
    font-size: 1rem;
}
.feature-desc  { font-size: .875rem; color: var(--text-muted); line-height: 1.75; }

/* ── Security Trust Section ─────────────────────────────────────────── */
.security-section {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    margin: 3rem 0;
    text-align: center;
}
.security-heading {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: .75rem;
}
.security-sub {
    color: rgba(255,255,255,.6);
    font-size: .95rem;
    margin: 0 auto 2.5rem;
    max-width: 540px;
    line-height: 1.7;
}
.security-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: left;
}
.security-pillar {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.security-pillar-icon  { font-size: 1.3rem; margin-bottom: .6rem; display: block; }
.security-pillar-title { font-weight: 700; color: #fff; font-size: .9rem; margin-bottom: .5rem; }
.security-pillar-body  { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.75; }

/* ── Trust Badges (billing / checkout) ──────────────────────────────── */
.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .35rem .7rem;
}
.trust-badge-icon { font-size: .9rem; opacity: .75; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item                        { background: #fff; border-top: 1px solid var(--border); transition: background .15s; }
.faq-item:first-child            { border-top: none; }
.faq-item:hover                  { background: var(--surface); }
.faq-item.is-open                { background: #fff; }
.faq-item.is-open .faq-summary   { border-bottom: 1px solid var(--surface-alt); }

.faq-summary {
    width: 100%;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    outline: none;
}
.faq-summary::after {
    content: '+';
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform .25s ease;
}
.faq-item.is-open .faq-summary::after { content: '−'; }

.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s cubic-bezier(.4,0,.2,1);
}
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
/* grid item: no padding, overflow:hidden lets the track collapse to 0 */
.faq-body-inner { min-height: 0; overflow: hidden; }
/* padding lives one level deeper, outside the grid item's box model */
.faq-body-content {
    padding: 1.25rem 1.5rem;
    line-height: 1.8;
    font-size: .9rem;
    color: var(--text-muted);
}
.faq-body-content p + p { margin-top: .5rem; }

/* ── Dashboard ───────────────────────────────────────────────────────── */
.dashboard { padding-top: 2.5rem; padding-bottom: 3rem; }

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.dashboard-header h1 { margin-bottom: 0; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 2px solid var(--primary);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.stat-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: .4rem;
}
.stat-label {
    color: var(--text-muted);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}
.stat-failed                    { border-top-color: var(--danger); }
.stat-failed .stat-value        { color: var(--danger); }

/* Switch / Capsule Cards */
.switch-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.switch-card {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    transition: border-left-color .15s, box-shadow .15s;
}
.switch-card:hover { border-left-color: var(--accent); box-shadow: var(--shadow-sm); }

.switch-info          { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }
.switch-info-left     { display: flex; align-items: center; gap: .875rem; flex-wrap: wrap; }
.capsule-icon         { font-size: .95rem; opacity: .45; }
.switch-info h3       { font-size: 1rem; margin: 0; }
.switch-info h3 a     { color: var(--primary); text-decoration: none; }
.switch-info h3 a:hover { color: var(--accent); }
.switch-deadline {
    color: var(--text-muted);
    font-size: .78rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--surface-alt);
    font-style: italic;
}
.switch-description {
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: .5rem;
}

/* Empty state */
.empty-state-block {
    text-align: center;
    padding: 4.5rem 2rem;
    background: var(--surface);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius);
    margin-top: 1.5rem;
}
.empty-state {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: .75rem;
}
.empty-state-sub {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    font-size: .9rem;
    line-height: 1.75;
}

/* ── Switch Detail Page ──────────────────────────────────────────────── */
.switch-detail { padding-top: 2.5rem; padding-bottom: 3rem; }

.switch-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.switch-header h1      { font-size: 1.75rem; margin: 0; }
.switch-description    { color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; line-height: 1.75; }

.switch-meta {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.meta-item { font-size: .9rem; color: var(--text-muted); }
.meta-item strong {
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--primary);
    margin-right: .5rem;
}

.payload-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.payload-info h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--surface-alt);
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.attachment-meta { margin-top: .25rem; }
.attachment-size { font-size: .78rem; color: var(--text-muted); margin-left: .4rem; }

.switch-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ── Warning Settings ────────────────────────────────────────────────── */
.warning-settings {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.warning-settings h2       { font-size: 1.05rem; margin-bottom: 1rem; }
.warning-settings-row      { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.warning-detail-fields     { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }

/* ── Check-in Methods ────────────────────────────────────────────────── */
.checkin-methods { margin-bottom: 2rem; padding: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.checkin-methods h2 { font-size: 1.05rem; margin-bottom: 1.25rem; }
.checkin-method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.checkin-method {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.checkin-method h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.checkin-method p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

/* ── Table ───────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: .5rem 0; }
.table th {
    padding: .6rem .75rem;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.table td { padding: .75rem; border-bottom: 1px solid var(--surface-alt); color: var(--text-muted); }
.table tbody tr:hover { background: var(--surface); }

/* ── Welcome / onboarding ────────────────────────────────────────────── */
.welcome-page {
    display: flex;
    justify-content: center;
    padding: 4rem 1rem 5rem;
}
.welcome-page-inner {
    width: 100%;
    max-width: 640px;
}
.welcome-page-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: .75rem;
}
.welcome-tagline {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}
.welcome-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
.welcome-type-card {
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
}
.welcome-type-card .type-icon  { font-size: 1.75rem; display: block; margin-bottom: .75rem; }
.welcome-type-card .type-title { font-size: 1rem; font-weight: 700; display: block; margin-bottom: .4rem; color: var(--text); }
.welcome-type-card .type-desc  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.welcome-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ── Auth ────────────────────────────────────────────────────────────── */
.auth-card {
    max-width: 420px;
    margin: 5rem auto 3rem;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    padding: 2.75rem 3rem;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
}
.auth-card h1  { margin-bottom: 2rem; text-align: center; font-size: 1.65rem; }
.auth-alt      { margin-top: 1.75rem; text-align: center; font-size: .875rem; color: var(--text-muted); }
.auth-alt a    { color: var(--accent); font-weight: 600; }
.auth-actions  { margin-top: 1.25rem; }
.auth-footer   { margin-top: 1.5rem; text-align: center; font-size: .85rem; color: var(--text-muted); }
.auth-page     { padding-top: 2rem; }

/* ── Billing ─────────────────────────────────────────────────────────── */
.billing-card {
    max-width: 520px;
    margin: 3.5rem auto 3rem;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
}
.billing-card h1 { margin-bottom: .5rem; }

.billing-price {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 1.5rem 0;
    letter-spacing: -.02em;
}
.billing-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}
.billing-features li {
    font-size: .9rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}
.billing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ── Settings ────────────────────────────────────────────────────────── */
.settings-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.settings-page > h1 { margin-bottom: 2rem; }

.settings-section {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-alt);
    flex-wrap: wrap;
}
.section-header h2 { margin-bottom: 0; }

.settings-subsection-title {
    font-size: 1rem;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--surface-alt);
    margin: 2rem 0;
}

.section-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.25rem; }

.danger-zone-form { margin-top: 1.25rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

.inline-form { display: flex; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.inline-form-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* API Keys */
.api-key-reveal {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius);
}
.key-value {
    display: block;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: .85rem;
    color: var(--primary);
    background: #fff;
    padding: .6rem .875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    word-break: break-all;
    margin: .75rem 0;
}
.key-warn { font-size: .8rem; color: var(--warning); font-weight: 600; }

.api-usage { margin-top: 2rem; }
.api-usage h3 { font-size: 1rem; margin-bottom: .75rem; }

/* ── Cards (generic shared) ──────────────────────────────────────────── */
.settings-section h2:first-child,
.settings-section > h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-alt);
}

/* ── Capsule Form ────────────────────────────────────────────────────── */
.form-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.form-page > h1 { margin-bottom: 2rem; }
.form-page > form { max-width: 48rem; }

.section-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .875rem;
}

/* Capsule type selector */
.capsule-type-section { margin-bottom: 2rem; }
.capsule-type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.type-card { position: relative; cursor: pointer; }
.type-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.type-card-inner {
    padding: 1.5rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s, background .15s;
    height: 100%;
}
.type-card:hover .type-card-inner { border-color: var(--border-dark); }
.type-card input:checked ~ .type-card-inner {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--primary);
}
.type-icon  { font-size: 1.5rem; margin-bottom: .75rem; display: block; opacity: .65; }
.type-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: .4rem;
}
.type-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.65; }

/* Schedule fields */
.schedule-fields { margin-bottom: 2rem; }

/* Time mode toggle (UTC / Local) */
.time-mode-toggle {
    display: inline-flex;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}
.time-pill {
    padding: .35rem .9rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: background .15s, color .15s;
    font-family: 'DM Sans', sans-serif;
}
.time-pill.active,
.time-pill[data-active="true"] {
    background: var(--primary);
    color: #fff;
}

/* Payload section */
.payload-section { margin-bottom: 2rem; }

/* ── Wizard multi-step form ──────────────────────────────────────────── */
.wizard-nav-steps {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}
.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .375rem;
    background: none;
    border: none;
    cursor: default;
    padding: 0;
    flex: none;
    min-width: 4.5rem;
}
.wizard-step-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    transition: border-color .2s, background .2s, color .2s;
}
.wizard-step-item.active .wizard-step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
.wizard-step-item.completed .wizard-step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
.wizard-step-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.wizard-step-item.active .wizard-step-label { color: var(--primary); }
.wizard-step-item.completed .wizard-step-label { color: var(--accent); cursor: pointer; }
.wizard-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-top: 1.125rem;
    transition: background .2s;
}
.wizard-step-line.completed { background: var(--accent); }
.wizard-step-subtext {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
}
.wizard-footer-right { display: flex; align-items: center; gap: .75rem; }
/* Larger, more prominent type cards for the type-selection step */
.wizard-type-step .capsule-type-selector { margin-top: 0; }
.wizard-type-step .type-card-inner { padding: 2rem 1.75rem; }
.wizard-type-step .type-icon { font-size: 2rem; margin-bottom: 1rem; opacity: .8; }
.wizard-type-step .type-title { font-size: 1.1rem; }
.wizard-type-step .type-desc { font-size: .875rem; line-height: 1.6; }
.wizard-type-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent);
    background: #fdf4e7;
    border: 1px solid #e5c99a;
    border-radius: var(--radius);
    padding: .25rem .625rem;
    margin-bottom: 1.25rem;
}

/* Duration input — fused number+unit compound control */
.duration-input { display: flex; align-items: stretch; flex-wrap: wrap; }
.duration-input input {
    width: 6rem;
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
}
.duration-input select {
    width: auto;
    border-left: 1px solid var(--border-dark);
    border-radius: 0 var(--radius) var(--radius) 0;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f172a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    padding-right: 1.9rem;
    padding-left: .75rem;
}
.duration-input input:focus { z-index: 1; }
.duration-input select:focus { z-index: 1; }

/* Vault timeline visualization
   .vt-event is pinned to dot-width (10px) with overflow:visible, so its
   in-flow label expands the box height without consuming any flex width.
   Segments fill all remaining space via flex-grow (set by JS).
   Segment labels float above the bar into the padding-top area. */
.vault-timeline {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0;
    padding: 2.25rem 3.5rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.viz-container { padding: .5rem 0; }
.viz-alternative { font-size: .85rem; color: var(--text-muted); font-style: italic; }

/* Timeline segments — flex-grow set by JS; margin-top centers bar with dot */
.vt-seg {
    position: relative;
    height: .1em;
    min-width: 4rem;
    background: var(--text);
    border-radius: 2px;
    opacity: .75;
    margin-top: calc(5px - .05em);
}
.vt-seg-grace { background: var(--warning); opacity: .65; }
.vt-seg-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + .5rem);
    white-space: nowrap;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Timeline dots/events
   width:10px = dot width only; overflow:visible lets the label spill out
   horizontally without affecting flex layout. Label is in-flow so it
   contributes to the vault-timeline's height, keeping it inside the box. */
.vt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    position: relative;
    z-index: 1;
}
.vt-dot-fire   { background: var(--danger); }
.vt-dot-hollow { background: #fff; border: 2px solid var(--primary); }

.vt-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
    width: 10px;
    overflow: visible;
}
.vt-event-label {
    margin-top: .5rem;
    width: max-content;
    text-align: center;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

/* Advanced settings */
.advanced-section {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.advanced-toggle {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .07em;
    background: none;
    border: none;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
}
.advanced-toggle:hover { color: var(--primary); }
.advanced-body { margin-top: 1.25rem; }

/* Attachment section */
.attachment-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ── Stream ──────────────────────────────────────────────────────────── */
.stream-section {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.stream-section h2      { font-size: 1.1rem; margin-bottom: .5rem; }
.stream-description     { color: var(--text-muted); font-size: .875rem; margin-bottom: 1.25rem; }
.stream-controls        { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.stream-size            { font-size: .8rem; color: var(--text-muted); }
.stream-preview         { display: block; width: 100%; max-width: 480px; margin-top: 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.recording-indicator    { font-size: .85rem; color: var(--danger); font-weight: 600; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
    padding: 3.5rem 2rem;
    background: var(--primary);
    color: rgba(255,255,255,.55);
    font-size: .875rem;
    margin-top: 0;
}
.footer-inner {
    max-width: 62rem;
    margin: 0 auto;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    margin-bottom: .875rem;
}
.footer-brand img { filter: invert(1); }
.footer-nav     { display: flex; gap: 2rem; margin: .875rem 0; flex-wrap: wrap; }
.footer-nav a   {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    transition: color .15s;
}
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy    { font-size: .78rem; color: rgba(255,255,255,.35); margin-top: .875rem; display: block; }

/* ── Responsive ──────────────────────────────────────────────────────── */
.nav-toggle { display: none; }

@media (max-width: 768px) {
    .navbar { padding: 0 1.25rem; }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.3rem;
        color: var(--primary);
        cursor: pointer;
        padding: .5rem;
    }
    .navbar-links {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 1.25rem;
        z-index: 99;
    }
    .navbar-links.open { display: flex; }

    .container { padding: 0 1.25rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: 1fr; }
    .security-pillars { grid-template-columns: 1fr; }
    .security-section { padding: 2.5rem 1.5rem; }
    .capsule-type-selector { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 4rem 1.5rem 3.5rem; }
    .auth-card  { margin: 2rem auto; padding: 2rem 1.5rem; }
    .billing-card { margin: 2rem auto; padding: 2rem 1.5rem; }
    .switch-info { flex-direction: column; align-items: flex-start; }
    .switch-actions { flex-wrap: wrap; }
    .step::after { display: none; }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .use-case-grid { grid-template-columns: 1fr; }
    .settings-section { padding: 1.5rem; }
    .wizard-step-label { display: none; }
    .wizard-nav-steps { margin-bottom: 1.75rem; }
}
