:root {
    --navy-950: #070d22;
    --navy-900: #0b1533;
    --navy-800: #13214a;
    --blue: #1f6bff;
    --blue-dark: #1450d6;
    --blue-light: #4d9bff;
    --sky: #5fb0ff;
    --text: #0f1b3a;
    --muted: #4a5878;
    --border: #dfe6f3;
    --surface: #ffffff;
    --surface-soft: #f4f7fd;
    --green: #16a34a;
    --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

section[id] { scroll-margin-top: 72px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

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

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #2a78ff 0%, var(--blue-dark) 100%);
    box-shadow: 0 8px 20px rgba(31, 107, 255, 0.35);
}

.btn-primary:hover { background: linear-gradient(180deg, #3d86ff 0%, #1a5ce8 100%); }

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
    background: transparent;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-outline {
    color: var(--blue-dark);
    border-color: var(--blue-dark);
    background: #fff;
}

.btn-outline:hover { background: #eef4ff; }

/* ---------- Pills & badges ---------- */
.pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
}

.pill-dark {
    color: #e6ecff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.pill-light {
    color: var(--text);
    background: #e6eeff;
    border: 1px solid #cfdcfb;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 13, 34, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #dbe3f7;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

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

.nav-actions { display: flex; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 72px 0 84px;
    background:
        radial-gradient(ellipse 60% 70% at 85% 40%, rgba(46, 110, 255, 0.55) 0%, rgba(46, 110, 255, 0) 70%),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(31, 107, 255, 0.45) 0%, rgba(31, 107, 255, 0) 70%),
        linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, #12286b 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    font-weight: 800;
}

.text-accent { color: var(--sky); }

.hero-lead {
    max-width: 560px;
    font-size: 1.1rem;
    color: #d5def3;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 30px 0 22px;
}

.hero-checks,
.availability-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.hero-checks li,
.availability-checks li,
.plan-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.hero-checks li { color: #d5def3; }

.hero-checks svg,
.availability-checks svg,
.plan-list svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--blue-light);
}

/* ---------- Hero mockup ---------- */
.hero-visual {
    position: relative;
    min-height: 330px;
}

.browser {
    position: absolute;
    top: 0;
    right: 0;
    width: 92%;
    height: 280px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(240, 245, 255, 0.92) 0%, rgba(200, 215, 245, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.browser-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px 6px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 10px;
    color: #5b6785;
    font-size: 0.9rem;
}

.url-bar {
    flex: 1;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #2c3757;
    font-size: 0.8rem;
}

.ext-btn {
    display: inline-flex;
    padding: 4px;
    border-radius: 6px;
    background: #dbe7ff;
    outline: 2px solid #9bbcff;
}

.ext-btn img { width: 16px; height: 18px; }

.browser-body {
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
}

.popup {
    position: absolute;
    top: 54px;
    right: 6%;
    width: 330px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 24px 50px rgba(5, 15, 50, 0.45);
    font-size: 0.8rem;
}

.popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.popup-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.95rem;
}

.popup-brand img { width: 18px; height: 20px; }

.badge-active {
    padding: 2px 9px;
    border-radius: 999px;
    color: var(--green);
    background: #e3f7ea;
    font-weight: 600;
    font-size: 0.72rem;
}

.popup-route {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #eef9f2;
    border: 1px solid #d3efdc;
}

.popup-route small { font-weight: 600; font-size: 0.72rem; }

.route-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.route-row strong { display: block; font-weight: 500; }
.route-row em { font-style: normal; color: var(--green); font-size: 0.72rem; }

.flag-us {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
    background:
        linear-gradient(#3c3b6e, #3c3b6e) top left / 45% 54% no-repeat,
        repeating-linear-gradient(180deg, #b22234 0 2.14px, #fff 2.14px 4.28px);
}

.popup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid #eef1f7;
}

.select {
    min-width: 130px;
    padding: 4px 24px 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.74rem;
    position: relative;
}

.select::after {
    content: "⌄";
    position: absolute;
    right: 8px;
    top: 0;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 19px;
    border-radius: 999px;
    background: #cbd3e3;
    flex-shrink: 0;
}

.toggle::after {
    content: "";
    position: absolute;
    top: 2.5px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
}

.toggle.on { background: var(--blue); }
.toggle.on::after { left: auto; right: 3px; }

.toggle-lg { width: 42px; height: 24px; }
.toggle-lg::after { width: 18px; height: 18px; top: 3px; }

.popup-usage { padding-top: 12px; }

.usage-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.74rem;
}

.usage-track {
    height: 7px;
    border-radius: 999px;
    background: #e5ebf6;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
}

/* ---------- Features ---------- */
.features {
    padding: 40px 0;
    background: linear-gradient(180deg, #f6f8fd 0%, #eef2fa 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature {
    padding: 4px 26px;
    border-left: 1px solid var(--border);
}

.feature:first-child { border-left: 0; padding-left: 0; }

.feature-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.feature h3 { font-size: 1.02rem; font-weight: 700; }

.feature p { color: var(--muted); font-size: 0.93rem; }

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--blue);
    background: #e4edff;
}

.icon-tile svg { width: 22px; height: 22px; }

/* ---------- Steps ---------- */
.steps-section { padding: 56px 0 64px; }

.steps-section h2,
.pricing h2 {
    margin: 14px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
}

.section-lead { color: var(--muted); }

.steps {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.step {
    position: relative;
    padding: 18px 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 36, 90, 0.05);
}

.step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    color: var(--blue);
    font-size: 1.2rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.step-icon {
    display: inline-flex;
    margin-left: 14px;
    vertical-align: middle;
    color: var(--blue);
}

.step-icon svg { width: 28px; height: 28px; }

.step h3 { margin: 14px 0 6px; font-size: 1.02rem; font-weight: 700; }

.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing {
    padding: 56px 0;
    color: #fff;
    background:
        radial-gradient(ellipse 55% 80% at 90% 50%, rgba(46, 110, 255, 0.55) 0%, rgba(46, 110, 255, 0) 70%),
        linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 60%, #183aa0 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 0.85fr 2fr;
    gap: 40px;
    align-items: center;
}

.pricing h2 { color: #fff; }

.pricing-copy p { color: #d5def3; max-width: 360px; }

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

.plan {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    color: var(--text);
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.plan--popular {
    outline: 2.5px solid var(--blue);
    outline-offset: 0;
    transform: translateY(-6px);
}

.plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.plan-head h3 { font-size: 1rem; font-weight: 600; }

.badge-popular {
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-size: 0.72rem;
    font-weight: 600;
}

.plan-price { margin: 6px 0 14px; }
.plan-price strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); font-size: 0.9rem; }

.plan-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    flex-grow: 1;
}

.plan-list li { padding: 4px 0; color: #2b3756; font-size: 0.84rem; }
.plan-list svg { color: var(--blue); }

/* ---------- Availability ---------- */
.availability {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.availability-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 48px;
}

.available-for {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 48px;
    border-right: 1px solid var(--border);
}

.available-for strong { font-weight: 600; }

.available-for a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.availability-checks li { color: var(--text); }

.chrome-logo,
.firefox-logo {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chrome-logo {
    background:
        radial-gradient(circle, #4285f4 0 27%, #fff 27% 35%, transparent 35%),
        conic-gradient(from 30deg, #ea4335 0 120deg, #fbbc04 120deg 240deg, #34a853 240deg 360deg);
}

.chrome-logo--sm { width: 22px; height: 22px; box-shadow: 0 0 0 2px #fff; }

.firefox-logo {
    background:
        radial-gradient(circle at 55% 55%, #7542e5 0 32%, transparent 33%),
        conic-gradient(from 200deg, #ff9500, #ff4f5e, #ff980e, #ffbd4f, #ff9500);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 22px 0;
    color: var(--muted);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-sm { color: var(--text); font-size: 1rem; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-copy p { max-width: none; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .step::after { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .feature:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero { padding: 48px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 520px; width: 100%; justify-self: center; }
    .available-for { border-right: 0; padding-right: 0; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .nav-actions .btn-ghost { display: none; }
    .brand { font-size: 1.15rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-visual { min-height: 360px; }
    .browser { width: 100%; }
    .popup { right: 50%; transform: translateX(50%); width: min(330px, 92%); }
    .features-grid,
    .steps,
    .plans { grid-template-columns: 1fr; }
    .feature { border-left: 0; padding: 0; }
    .plan--popular { transform: none; }
    .available-for { flex-wrap: wrap; gap: 16px 24px; justify-content: center; }
    .availability-checks { justify-content: center; }
}

/* ---------- Billing toggle & included list ---------- */
.billing-toggle {
    display: inline-flex;
    margin-top: 22px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.billing-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #d5def3;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.billing-toggle button.is-active {
    color: var(--navy-900);
    background: #fff;
}

.save-tag {
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    color: #0d6b34;
    background: #c9f2d8;
}

.plans-included {
    grid-column: 1 / -1;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.plans-included strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.plans-included ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
}

.plans-included li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #d5def3;
}

.plans-included svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--blue-light);
}

@media (max-width: 900px) {
    .plans-included ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .plans-included ul { grid-template-columns: 1fr; }
}

.plan { position: relative; }

.plan .badge-popular {
    position: absolute;
    top: -11px;
    right: 16px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(31, 107, 255, 0.4);
}

.plan-billing {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
}

/* ---------- Footer links ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--blue-dark); }

/* ---------- Inner pages ---------- */
.page-hero {
    padding: 56px 0 48px;
    color: #fff;
    background:
        radial-gradient(ellipse 55% 90% at 90% 40%, rgba(46, 110, 255, 0.5) 0%, rgba(46, 110, 255, 0) 70%),
        linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 60%, #12286b 100%);
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
}

.page-hero p { max-width: 640px; color: #d5def3; font-size: 1.05rem; }

.page-body { padding-top: 48px; padding-bottom: 64px; }

.prose { max-width: 780px; color: #2b3756; }
.prose h2 { margin: 36px 0 12px; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--blue-dark); }

.callout {
    margin: 24px 0 8px;
    padding: 18px 22px;
    border-radius: var(--radius);
    border: 1px solid #cfdcfb;
    background: #f1f6ff;
}

.callout strong { display: block; margin-bottom: 6px; color: var(--text); }
.callout ul { margin-bottom: 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.about-facts {
    position: sticky;
    top: 88px;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.about-facts strong { display: block; margin-bottom: 10px; }

.about-facts ul { list-style: none; margin: 0 0 18px; padding: 0; }

.about-facts li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.9rem;
}

.about-facts svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--blue); }

.values-heading { margin: 56px 0 20px; font-size: 1.6rem; font-weight: 800; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 36, 90, 0.05);
}

.value-card h3 { margin: 14px 0 6px; font-size: 1.02rem; font-weight: 700; }
.value-card p { color: var(--muted); font-size: 0.92rem; }

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding: 28px 32px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(120deg, var(--navy-900) 0%, #183aa0 100%);
}

.about-cta h2 { margin-bottom: 6px; font-size: 1.4rem; }
.about-cta p { color: #d5def3; }
.about-cta a:not(.btn) { color: #fff; }

@media (max-width: 1080px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-facts { position: static; }
}

@media (max-width: 640px) {
    .values-grid { grid-template-columns: 1fr; }
    .about-cta { padding: 22px; }
    .about-cta .btn { width: 100%; }
}

/* ---------- Welcome (after install) & partner links ---------- */
.welcome-hero { padding-bottom: 56px; }
.welcome-hero .hero-actions { margin-top: 22px; }

.welcome-status { display: inline-flex; align-items: center; gap: 8px; }
.welcome-status i {
    width: 8px; height: 8px; border-radius: 50%;
    background: #9fb1d6; box-shadow: 0 0 0 4px rgba(159, 177, 214, 0.18);
}
.welcome-status[data-state="checking"] i { animation: rg-pulse 1.1s ease-in-out infinite; }
.welcome-status[data-state="ok"] i { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }
.welcome-status[data-state="missing"] i { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); }
@keyframes rg-pulse { 50% { opacity: 0.35; } }

.partner-card {
    display: flex; align-items: flex-start; gap: 14px;
    max-width: 560px; margin-top: 26px; padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07); color: #fff;
}
.partner-card div { display: grid; gap: 4px; }
.partner-card small { color: #c9d5ef; font-size: 0.9rem; line-height: 1.5; }
.partner-card code { background: rgba(255, 255, 255, 0.14); border-radius: 6px; padding: 1px 7px; font-size: 0.95em; }
.partner-mark {
    flex: none; display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--blue); color: #fff;
}
.partner-mark svg { width: 16px; height: 16px; }
.partner-card[data-state="pending"] .partner-mark { background: #3a4a78; }
.partner-card[data-state="manual"] .partner-mark { background: #b7791f; }

.welcome-steps { padding-top: 48px; }
.welcome-steps .steps { margin-top: 0; }

.welcome-help {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px;
}
.welcome-tip {
    padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface-soft);
}
.welcome-tip h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.welcome-tip p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.welcome-tip a { color: var(--blue); font-weight: 600; }

.welcome-missing {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 28px; padding: 18px 22px;
    border: 1px solid #f6d58a; border-radius: var(--radius); background: #fffaf0;
}
.welcome-missing p { margin: 0; color: #6b4e12; }

@media (max-width: 900px) {
    .welcome-help { grid-template-columns: 1fr; }
}

/* ---------- Manual install ---------- */
.install-meta { align-self: center; color: #c9d5ef; font-size: 0.9rem; }
.install-steps h2 { margin-top: 0; }
.install-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; max-width: 820px; }
.install-list li {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
    background: #fff; box-shadow: 0 6px 18px rgba(16, 36, 90, 0.05);
}
.install-list .step-num { flex: none; margin-top: 2px; }
.install-list h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; }
.install-list p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.install-list code, .welcome-tip code {
    background: var(--surface-soft); border: 1px solid var(--border); border-radius: 6px;
    padding: 1px 6px; font-size: 0.9em; color: var(--text);
}
.copy-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.copy-row code { font-size: 0.95rem; padding: 6px 10px; }

/* ---------- Sign up / sign in / account ---------- */
.auth-page {
    padding: 56px 0 72px;
    background:
        radial-gradient(ellipse 55% 70% at 85% 30%, rgba(46, 110, 255, 0.45) 0%, rgba(46, 110, 255, 0) 70%),
        linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 65%, #183aa0 100%);
    color: #fff;
}
.auth-grid { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 48px; align-items: center; }
.auth-copy h1 { margin: 16px 0 12px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.12; }
.auth-copy p { color: #d5def3; max-width: 460px; line-height: 1.6; }
.auth-card {
    background: #fff; color: var(--text); border-radius: 18px; padding: 28px;
    box-shadow: 0 30px 70px rgba(4, 12, 40, 0.45);
}
.auth-card h2 { margin: 0 0 16px; font-size: 1.35rem; font-weight: 800; }
.auth-card label { display: grid; gap: 6px; margin-bottom: 14px; font-size: 0.86rem; font-weight: 600; }
.auth-card input:not([type="checkbox"]) {
    width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
    font: inherit; font-weight: 400; color: var(--text); background: #fff; outline: none;
}
.auth-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.15); }
.auth-card input[aria-invalid="true"] { border-color: #dc2626; }
.auth-card small { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.auth-card .auth-error { color: #dc2626; }
.auth-optional { font-weight: 400; color: var(--muted); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); line-height: 1.5; }
.auth-check input { margin-top: 3px; }
.auth-check a, .auth-switch a, .auth-link { color: var(--blue); font-weight: 600; }
.auth-link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.auth-switch { margin: 14px 0 0; text-align: center; font-size: 0.88rem; color: var(--muted); }
.auth-code { text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem !important; letter-spacing: 0.45em; }
.btn-block { width: 100%; justify-content: center; margin-top: 4px; }
.auth-alert { padding: 11px 13px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 14px; line-height: 1.5; }
.auth-alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert--info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.account-wrap { max-width: 980px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.account-head h1 { margin: 14px 0 4px; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; }
.account-head p { margin: 0; color: #c9d5ef; }
.account-head .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.account-card { background: #fff; color: var(--text); border-radius: 16px; padding: 20px; }
.account-card h3 { margin: 0 0 10px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.account-big { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; }
.account-muted { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.account-muted a { color: var(--blue); }
.account-ok { margin: 6px 0 0; color: var(--green); font-size: 0.86rem; font-weight: 600; }
.account-track { margin: 10px 0 8px; }
.account-cta { margin-top: 22px; color: var(--text); }
.account-cta .btn { margin-top: 12px; }

@media (max-width: 900px) {
    .auth-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
    .auth-row { grid-template-columns: 1fr; }
    .auth-card { padding: 22px; }
    .account-head { flex-direction: column; align-items: flex-start; }
}
.auth-inbox {
    display: flex; gap: 12px; align-items: flex-start;
    margin-bottom: 16px; padding: 13px 14px; border-radius: 12px;
    background: #fffbeb; border: 1px solid #fde68a; color: #78350f;
    font-size: 0.86rem; line-height: 1.55;
}
.auth-inbox svg { flex: none; margin-top: 2px; color: #d97706; }
.auth-inbox div { display: grid; gap: 2px; }
.auth-inbox strong { color: #713f12; }
