:root {
    color-scheme: dark;
    --font-display: "Avenir Next", "Segoe UI", sans-serif;
    --font-body: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bg: #0f1412;
    --bg-deep: #0a0e0c;
    --surface: #151b18;
    --surface-alt: #1b231f;
    --surface-hover: #222b26;
    --text: #f4f7f4;
    --text-muted: #a0aca4;
    --text-soft: #768178;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(34, 197, 94, 0.22);
    --accent: #1fa34a;
    --accent-strong: #15773a;
    --accent-soft: rgba(31, 163, 74, 0.1);
    --highlight: #d6b100;
    --danger: #d96b6b;
    --shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f7f4;
    --bg-deep: #eef2ee;
    --surface: #ffffff;
    --surface-alt: #fafcf9;
    --surface-hover: #f3f7f3;
    --text: #1a221c;
    --text-muted: #667267;
    --text-soft: #859085;
    --line: rgba(26, 34, 28, 0.08);
    --line-strong: rgba(31, 163, 74, 0.18);
    --accent: #17863d;
    --accent-strong: #10612c;
    --accent-soft: rgba(23, 134, 61, 0.08);
    --highlight: #b69200;
    --danger: #bf5555;
    --shadow: 0 12px 26px rgba(30, 52, 38, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background: radial-gradient(circle at top right, rgba(214, 177, 0, 0.14), transparent 28%), linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    z-index: 2;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.portal-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 20px 16px 42px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.brand-mark strong {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
}

.theme-toggle,
.button {
    min-height: 48px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}

.theme-toggle {
    width: 48px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.button {
    padding: 0 16px;
    border: 1px solid var(--line);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button-primary {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

.button-secondary {
    background: transparent;
    color: var(--text);
}

.button-highlight {
    background: #c9a227;
    border-color: transparent;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.button-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.14) 50%, transparent 82%);
    transform: translateX(-130%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.button-highlight:hover,
.button-highlight:focus-visible {
    transform: translateY(-1px) scale(1.02);
    background: #d4ad2f;
    box-shadow: 0 10px 22px rgba(201, 162, 39, 0.18);
}

.button-highlight:hover::after,
.button-highlight:focus-visible::after {
    transform: translateX(130%);
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    line-height: 1;
    opacity: 0.96;
    flex: 0 0 auto;
}

.button-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-actions .button-highlight {
    min-width: 260px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 18px;
    margin-bottom: 18px;
}

.hero-grid-single {
    grid-template-columns: 1fr;
}

.landing-duo {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.landing-duo .hero-grid,
.landing-duo .pricing-spotlight {
    margin-bottom: 0;
}

.landing-duo .hero-card {
    height: 100%;
}

.landing-duo .hero-title {
    max-width: 18ch;
}

.landing-duo .pricing-card {
    height: 100%;
    grid-template-columns: 1fr;
    align-content: space-between;
}

.landing-duo .pricing-title {
    max-width: 16ch;
}

.hero-card,
.panel {
    background: rgba(21, 27, 24, 0.95);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

[data-theme="light"] .hero-card,
[data-theme="light"] .panel {
    background: rgba(255, 255, 255, 0.96);
}

.hero-panel,
.login-panel,
.feature-card {
    padding: 26px 22px;
}

.hero-panel {
    justify-items: center;
    text-align: center;
}

.login-panel {
    align-content: start;
    gap: 14px;
}

.login-panel-header {
    display: grid;
    gap: 4px;
}



.page-stack,
.stack,
.feature-grid {
    display: grid;
    gap: 16px;
}

.hero-title,
.section-title {
    font-family: var(--font-display);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    max-width: 24ch;
    margin: 0 auto 14px;
}

.section-title {
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-subtitle,
.muted-text {
    color: var(--text-muted);
    line-height: 1.65;
}

.hero-actions,
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
}

.top-entry-pill,
.top-logout-pill {
    min-height: 46px;
    padding-inline: 16px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.top-entry-pill {
    background: var(--accent-soft);
    border-color: var(--line-strong);
    color: var(--accent);
}

.top-logout-pill {
    background: rgba(217, 107, 107, 0.12);
    border-color: rgba(217, 107, 107, 0.24);
    color: var(--danger);
}

.top-entry-pill::after,
.top-logout-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-130%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.top-entry-pill::after {
    background: linear-gradient(120deg, transparent 20%, rgba(214, 177, 0, 0.18) 50%, transparent 80%);
}

.top-logout-pill::after {
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.14) 50%, transparent 80%);
}

.top-entry-pill:hover,
.top-entry-pill:focus-visible,
.top-logout-pill:hover,
.top-logout-pill:focus-visible {
    transform: translateY(-1px) scale(1.06);
}

.top-entry-pill:hover,
.top-entry-pill:focus-visible {
    border-color: rgba(214, 177, 0, 0.28);
    background: linear-gradient(135deg, rgba(31, 163, 74, 0.18), rgba(214, 177, 0, 0.1));
    box-shadow: 0 10px 24px rgba(31, 163, 74, 0.14);
    color: #d5ffe1;
}

.top-logout-pill:hover,
.top-logout-pill:focus-visible {
    border-color: rgba(217, 107, 107, 0.34);
    background: linear-gradient(135deg, rgba(217, 107, 107, 0.24), rgba(191, 85, 85, 0.18));
    box-shadow: 0 10px 24px rgba(217, 107, 107, 0.16);
    color: #ffd9d9;
}

.top-entry-pill:hover::after,
.top-entry-pill:focus-visible::after,
.top-logout-pill:hover::after,
.top-logout-pill:focus-visible::after {
    transform: translateX(130%);
}

.login-form .button-primary {
    position: relative;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.login-form .button-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(214, 177, 0, 0.18) 50%, transparent 80%);
    transform: translateX(-130%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.login-form .button-primary:hover,
.login-form .button-primary:focus-visible {
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(214, 177, 0, 0.24);
    background: linear-gradient(135deg, rgba(31, 163, 74, 0.96), rgba(28, 143, 64, 0.96));
    box-shadow: 0 10px 24px rgba(31, 163, 74, 0.14);
}

.login-form .button-primary:hover::after,
.login-form .button-primary:focus-visible::after {
    transform: translateX(130%);
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-alt);
    color: var(--text);
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-hover);
    transform: translateY(-1px);
}

#login,
#senha {
    text-align: center;
}

#login::placeholder,
#senha::placeholder {
    text-align: center;
}

#senha {
    letter-spacing: 0.22em;
    font-weight: 800;
}

.alert {
    padding: 13px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(217, 107, 107, 0.2);
    background: rgba(217, 107, 107, 0.1);
    color: var(--danger);
    font-size: 0.92rem;
}

.session-card {
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 16px;
}

.session-copy strong {
    display: block;
    margin-bottom: 6px;
}

.trust-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    min-height: 180px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(21, 27, 24, 0.98), rgba(24, 31, 27, 0.94));
}

.trust-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(31, 163, 74, 0.22), transparent 26%),
        radial-gradient(circle at 78% 72%, rgba(214, 177, 0, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 60%);
    pointer-events: none;
}

.trust-head,
.trust-pills {
    position: relative;
    z-index: 1;
}

.trust-head {
    display: grid;
    gap: 12px;
    align-content: start;
}

.trust-head .status-pill {
    justify-self: start;
}

.trust-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: 16ch;
}

.trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-top: auto;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(31, 163, 74, 0.08);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}



.mobile-showcase {
    margin-bottom: 18px;
}

.mobile-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 18px;
    padding: 24px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.mobile-card::before {
    content: "";
    position: absolute;
    inset: auto auto -110px -80px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 163, 74, 0.14), transparent 68%);
    pointer-events: none;
}

.mobile-title {
    max-width: 16ch;
}

.mobile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-visual {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame {
    position: absolute;
    width: 168px;
    height: 320px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(27, 35, 31, 0.98), rgba(15, 20, 18, 0.96));
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.phone-ios {
    left: 50%;
    transform: translateX(-64%) rotate(-7deg);
    z-index: 2;
    animation: floatPhoneLeft 5.8s ease-in-out infinite;
}

.phone-android {
    left: 50%;
    transform: translateX(16%) rotate(8deg);
    z-index: 1;
    animation: floatPhoneRight 6.3s ease-in-out infinite;
}

.phone-glow {
    position: absolute;
    inset: auto -36px -52px;
    height: 120px;
    background: radial-gradient(circle, rgba(214, 177, 0, 0.2), transparent 66%);
    pointer-events: none;
}

.phone-screen {
    position: absolute;
    inset: 10px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(22, 31, 27, 0.98), rgba(18, 24, 21, 0.98)),
        linear-gradient(135deg, rgba(31, 163, 74, 0.08), rgba(214, 177, 0, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.phone-notch {
    width: 68px;
    height: 14px;
    border-radius: 0 0 12px 12px;
    background: rgba(8, 11, 10, 0.92);
    margin: 0 auto;
}

.phone-camera {
    width: 44px;
    height: 10px;
    border-radius: 999px;
    background: rgba(8, 11, 10, 0.9);
    margin: 10px auto 0;
}

.mini-card,
.mini-pill {
    margin-inline: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-card {
    background: rgba(255, 255, 255, 0.04);
}

.mini-card-top {
    height: 68px;
    margin-top: 18px;
}

.mini-card-mid {
    height: 94px;
    margin-top: 14px;
}

.mini-card-tall {
    height: 128px;
    margin-top: 14px;
}

.mini-pill {
    height: 16px;
    margin-top: 14px;
}

.mini-pill-green {
    width: 72%;
    background: linear-gradient(90deg, rgba(31, 163, 74, 0.88), rgba(57, 191, 100, 0.68));
}

.mini-pill-yellow {
    width: 54%;
    background: linear-gradient(90deg, rgba(214, 177, 0, 0.88), rgba(226, 197, 80, 0.68));
}

@keyframes floatPhoneLeft {
    0%, 100% { transform: translateX(-64%) rotate(-7deg) translateY(0); }
    50% { transform: translateX(-64%) rotate(-7deg) translateY(-8px); }
}

@keyframes floatPhoneRight {
    0%, 100% { transform: translateX(16%) rotate(8deg) translateY(0); }
    50% { transform: translateX(16%) rotate(8deg) translateY(10px); }
}

.pricing-spotlight {
    margin-bottom: 18px;
}

.pricing-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: auto -80px -90px auto;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(214, 177, 0, 0.12), transparent 68%);
    pointer-events: none;
}

.pricing-title {
    max-width: 18ch;
}

.billing-switch {
    position: relative;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 5px;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    min-width: min(100%, 320px);
}

.billing-slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 8px);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(31, 163, 74, 0.95), rgba(214, 177, 0, 0.7));
    box-shadow: 0 8px 22px rgba(31, 163, 74, 0.18);
    transition: transform 0.22s ease;
    z-index: 0;
}

.billing-switch[data-plan-mode="anual"] .billing-slider {
    transform: translateX(calc(100% + 6px));
}

.billing-option {
    position: relative;
    z-index: 1;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.billing-option.is-active {
    color: #ffffff;
}

.pricing-panel {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(24, 31, 27, 0.98), rgba(18, 24, 21, 0.96));
    text-align: left;
}

[data-theme="light"] .pricing-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 246, 0.98));
}

.pricing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-self: start;
}

.pricing-badge {
    justify-self: start;
}

.pricing-badge-secondary {
    background: rgba(214, 177, 0, 0.1);
    color: var(--highlight);
}

.pricing-value {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 6vw, 3.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.pricing-period {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
}

.pricing-note {
    color: var(--text-muted);
    line-height: 1.6;
}

.pricing-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.pricing-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(31, 163, 74, 0.08);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.highlight-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.highlight-card {
    position: relative;
    overflow: visible;
    align-content: start;
    min-height: 100%;
    padding: 22px 26px 24px;
}

.highlight-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(214, 177, 0, 0.12), transparent 68%);
    pointer-events: none;
}

.highlight-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.highlight-title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.highlight-card .page-subtitle {
    line-height: 1.6;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


.preloader-br {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 16% 18%, rgba(31, 163, 74, 0.16), transparent 24%),
        radial-gradient(circle at 84% 16%, rgba(214, 177, 0, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(10, 14, 12, 0.98) 0%, rgba(15, 20, 18, 0.99) 100%);
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader-br.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preload-active {
    overflow: hidden;
}

.portal-entry {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.preload-ready .portal-entry {
    opacity: 1;
    transform: translateY(0);
}

.preloader-panel {
    width: min(100%, 460px);
    padding: 26px 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(21, 27, 24, 0.92);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

[data-theme="light"] .preloader-panel {
    background: rgba(255, 255, 255, 0.95);
}

.preloader-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.preloader-dots {
    display: flex;
    gap: 7px;
}

.preloader-dots span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    animation: pulseDot 1.1s ease-in-out infinite;
}

.preloader-dots span:nth-child(1) {
    background: var(--accent);
}

.preloader-dots span:nth-child(2) {
    background: var(--highlight);
    animation-delay: 0.15s;
}

.preloader-dots span:nth-child(3) {
    background: rgba(244, 247, 244, 0.7);
    animation-delay: 0.3s;
}

.preloader-title {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.7vw, 1.65rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.preloader-copy {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.preloader-progress {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.preloader-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #39bf64 42%, var(--highlight));
    box-shadow: 0 0 24px rgba(31, 163, 74, 0.28);
    animation: loadPortalBar 1.45s ease forwards;
}

@keyframes loadPortalBar {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes pulseDot {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.72;
    }
    50% {
        transform: translateY(-2px) scale(1.08);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-br,
    .portal-entry,
    .preloader-progress span,
    .preloader-dots span {
        transition: none;
        animation: none;
    }

    .preloader-progress span {
        width: 100%;
    }
}

@media (max-width: 920px) {
    .landing-duo,
    .hero-grid,
    .highlight-strip,
    .feature-grid,
    .pricing-card,
    .mobile-card {
        grid-template-columns: 1fr;
    }

    .pricing-title,
    .mobile-title {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .portal-shell {
        padding-inline: 12px;
    }

    .topbar {
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .brand-mark {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
    }

    .topbar-actions {
        order: 2;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .top-entry-pill,
    .top-logout-pill {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        margin-top: 0;
    }

    .theme-toggle {
        flex: 0 0 48px;
        align-self: auto;
    }

    .button-primary,
    .button-secondary,
    .button-highlight {
        width: 100%;
    }

    .hero-actions .button-highlight {
        min-width: 0;
    }

    .mobile-visual {
        min-height: 280px;
        transform: scale(0.92);
        transform-origin: center top;
    }

    .billing-switch {
        min-width: 100%;
    }

    .login-page-card {
        padding: 18px 14px;
    }
}


.portal-shell-narrow {
    width: min(100%, 560px);
    padding: 16px 12px 28px;
}

.portal-shell-narrow .topbar {
    margin-bottom: 12px;
}

.login-page-card {
    position: relative;
    overflow: hidden;
    gap: 16px;
    padding: 22px 20px;
}

.login-page-accent {
    position: absolute;
    inset: -110px -70px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 163, 74, 0.1), transparent 64%);
    pointer-events: none;
}

.login-page-header {
    position: relative;
    z-index: 1;
    gap: 2px;
}

.login-form {
    position: relative;
    z-index: 1;
    gap: 12px;
}

.portal-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 11, 10, 0.74);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 20;
}

.portal-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.portal-modal-panel {
    width: min(100%, 420px);
    display: grid;
    gap: 14px;
    padding: 22px 20px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.2s ease;
    text-align: center;
}

.portal-modal-overlay.is-visible .portal-modal-panel {
    transform: translateY(0) scale(1);
}

.portal-modal-pill {
    justify-self: center;
}

.portal-modal-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
