@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --primary: #5b4ff7;
    --primary-dark: #4438d8;
    --secondary: #172033;
    --background: #f5f7fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #687386;
    --success: #17a673;
    --warning: #f2a93b;
    --danger: #dc4a5b;
    --border: #dfe5ed;
    --soft-purple: #eeecff;
    --shadow-sm: 0 8px 24px rgba(34, 43, 69, 0.08);
    --shadow-lg: 0 32px 80px rgba(34, 43, 69, 0.16);
    --radius: 16px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.brand {
    font-family: "Manrope", "DM Sans", sans-serif;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #fff;
    background: var(--secondary);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(223, 229, 237, 0.75);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-inner {
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: linear-gradient(145deg, #756bff, var(--primary-dark));
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(91, 79, 247, 0.25);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav > a:not(.button) {
    color: #4c586b;
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav > a:hover {
    color: var(--primary);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
.password-toggle:focus-visible {
    outline: 3px solid rgba(91, 79, 247, 0.25);
    outline-offset: 2px;
}

.button-small {
    min-height: 40px;
    padding-inline: 16px;
    font-size: 0.9rem;
}

.button-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(91, 79, 247, 0.24);
}

.button-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 14px 30px rgba(91, 79, 247, 0.3);
}

.button-secondary,
.button-ghost {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.button-full {
    width: 100%;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 105px;
    background:
        radial-gradient(circle at 78% 22%, rgba(91, 79, 247, 0.15), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(25, 199, 160, 0.09), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f7f8fd 100%);
}

.hero::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.35;
    background-image: linear-gradient(rgba(82, 92, 120, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(82, 92, 120, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.96fr 1.04fr;
    align-items: center;
    gap: 78px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(23, 166, 115, 0.12);
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 24px;
    font-size: clamp(2.8rem, 5vw, 4.65rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero h1 span {
    color: var(--primary);
}

.hero-lead {
    max-width: 610px;
    margin-bottom: 31px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions,
.hero-proof {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-proof {
    gap: 22px;
    margin-top: 29px;
    color: #536074;
    font-size: 0.84rem;
    font-weight: 600;
}

.hero-proof span::first-letter {
    color: var(--success);
}

.product-preview {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(215, 221, 232, 0.9);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    transform: rotate(1deg);
}

.preview-topbar,
.preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 19px;
    border-bottom: 1px solid var(--border);
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.preview-title > span:last-child {
    display: grid;
}

.preview-title strong {
    font-size: 0.92rem;
}

.preview-title small {
    color: var(--muted);
    font-size: 0.7rem;
}

.avatar {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    font-weight: 800;
}

.avatar-laura {
    color: #4939ce;
    background: var(--soft-purple);
}

.live-pill {
    padding: 5px 9px;
    color: var(--success);
    background: #eaf9f3;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.chat-canvas {
    min-height: 405px;
    padding: 22px;
    background: #f5f7f9;
}

.chat-day {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 3px 10px;
    color: #7a8495;
    background: #e8ebef;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
}

.bubble {
    position: relative;
    width: fit-content;
    max-width: 77%;
    margin-bottom: 13px;
    padding: 11px 13px 20px;
    border-radius: 14px;
    font-size: 0.84rem;
    line-height: 1.45;
    box-shadow: 0 3px 8px rgba(31, 44, 67, 0.06);
}

.bubble time {
    position: absolute;
    right: 10px;
    bottom: 5px;
    color: #8d95a3;
    font-size: 0.57rem;
}

.bubble-customer {
    margin-left: auto;
    background: #dff8ea;
    border-bottom-right-radius: 4px;
}

.bubble-ai {
    padding-top: 30px;
    background: #fff;
    border-bottom-left-radius: 4px;
}

.bubble.short {
    min-width: 118px;
}

.ai-label {
    position: absolute;
    top: 8px;
    left: 13px;
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
}

.typing {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-top: 8px;
    padding: 9px 12px;
    color: #8992a1;
    background: #fff;
    border-radius: 12px;
    font-size: 0.62rem;
}

.typing i {
    width: 5px;
    height: 5px;
    background: #9fa8b6;
    border-radius: 50%;
    animation: blink 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) {
    animation-delay: 150ms;
}

.typing i:nth-child(3) {
    margin-right: 4px;
    animation-delay: 300ms;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

.preview-meta {
    border-top: 1px solid var(--border);
    border-bottom: 0;
}

.preview-meta > div {
    display: grid;
    gap: 1px;
}

.preview-meta span {
    color: var(--muted);
    font-size: 0.62rem;
}

.preview-meta strong {
    font-size: 0.75rem;
}

.success-text {
    color: var(--success);
}

.hot-text {
    color: #d7602e;
}

.feature-section {
    padding: 96px 0 108px;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 15px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.section-heading p,
.feature-card p {
    color: var(--muted);
}

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

.feature-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    color: var(--primary);
    background: var(--soft-purple);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
}

.feature-card h3 {
    margin-bottom: 9px;
    font-size: 1.1rem;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.site-footer {
    color: #aeb7c5;
    background: #121a29;
}

.footer-inner {
    min-height: 105px;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
    font-size: 0.82rem;
}

.brand-footer {
    color: #fff;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.88fr) minmax(500px, 1.12fr);
    min-height: calc(100vh - 76px);
    background: #fff;
}

.auth-page .site-footer {
    display: none;
}

.auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 700px;
    padding: clamp(55px, 7vw, 105px);
    color: #fff;
    background:
        radial-gradient(circle at 5% 95%, rgba(70, 229, 191, 0.17), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(146, 135, 255, 0.3), transparent 32%),
        #171e39;
}

.eyebrow-light {
    color: #a9a1ff;
}

.auth-aside h1 {
    max-width: 570px;
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 4.5vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.auth-aside > div > p {
    max-width: 510px;
    color: #bfc7d6;
    font-size: 1.05rem;
}

.auth-quote {
    position: relative;
    max-width: 520px;
    padding: 22px 24px 22px 52px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.auth-quote p {
    margin: 0;
    color: #e6e9f0;
    font-size: 0.93rem;
}

.quote-mark {
    position: absolute;
    top: 9px;
    left: 18px;
    color: #948aff;
    font-family: Georgia, serif;
    font-size: 2.4rem;
}

.auth-card {
    align-self: center;
    width: min(100% - 50px, 455px);
    margin: 60px auto;
}

.auth-heading {
    margin-bottom: 31px;
}

.auth-heading h2 {
    margin-bottom: 7px;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.auth-heading p {
    color: var(--muted);
}

.mobile-brand {
    display: none;
    margin-bottom: 25px;
}

.auth-form,
.field {
    display: grid;
    gap: 8px;
}

.auth-form {
    gap: 20px;
}

.field label,
.checkbox-row {
    font-size: 0.86rem;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    height: 49px;
    padding: 0 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cfd6e1;
    border-radius: 9px;
    transition: border 160ms, box-shadow 160ms;
}

.field input:hover,
.field select:hover {
    border-color: #aeb7c5;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
    border-color: var(--danger);
}

.field-error {
    min-height: 16px;
    color: var(--danger);
    font-size: 0.72rem;
}

.label-row,
.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.muted-link {
    color: var(--primary);
    font-size: 0.77rem;
    font-weight: 700;
    opacity: 0.65;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    padding: 5px 6px;
    color: var(--primary);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
    transform: translateY(-50%);
}

.checkbox-row {
    justify-content: flex-start;
    gap: 9px;
    color: #566174;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.phase-note {
    margin-top: 27px;
    padding: 13px 14px;
    color: #626e81;
    background: #f6f5ff;
    border: 1px solid #e2dfff;
    border-radius: 10px;
    font-size: 0.74rem;
    line-height: 1.5;
}

.phase-note span {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 7px;
    color: var(--primary-dark);
    background: #e7e4ff;
    border-radius: 999px;
    font-weight: 800;
}

.toast-region {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    display: grid;
    gap: 10px;
}

.toast {
    max-width: 360px;
    padding: 13px 16px;
    color: #fff;
    background: #202a3b;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 0.84rem;
    animation: toast-in 180ms ease-out;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead,
    .hero h1 {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-proof {
        justify-content: center;
    }

    .product-preview {
        width: min(100%, 660px);
        margin: auto;
        transform: none;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }

    .auth-card {
        padding-block: 45px;
    }

    .mobile-brand {
        display: grid;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        min-height: 66px;
    }

    .site-nav > a:not(.button) {
        display: none;
    }

    .hero {
        padding: 65px 0 75px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 13vw, 3.7rem);
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-proof {
        display: grid;
        justify-items: start;
        width: fit-content;
        margin-inline: auto;
        gap: 8px;
    }

    .chat-canvas {
        min-height: 370px;
        padding: 15px;
    }

    .bubble {
        max-width: 88%;
    }

    .preview-meta {
        gap: 10px;
        padding-inline: 14px;
    }

    .feature-section {
        padding: 70px 0;
    }

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

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        padding-block: 26px;
    }

    .auth-card {
        width: min(100% - 30px, 455px);
    }

    .auth-heading h2 {
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Installer */
.installer-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(91, 79, 247, 0.11), transparent 27%),
        radial-gradient(circle at 92% 26%, rgba(23, 166, 115, 0.08), transparent 24%),
        #f5f7fb;
}

.installer-container {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.installer-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.installer-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.installer-header-inner > span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.installer-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(540px, 1.28fr);
    align-items: start;
    gap: 62px;
    padding-block: 70px 90px;
}

.installer-intro {
    position: sticky;
    top: 35px;
}

.installer-intro h1 {
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 4vw, 3.65rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.installer-intro > p {
    color: var(--muted);
}

.requirements-card,
.installer-help,
.installer-form-card,
.install-success-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: var(--shadow-sm);
}

.requirements-card {
    margin-top: 30px;
    padding: 22px;
}

.requirements-card h2 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.requirements-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: #f8f9fc;
    border-radius: 9px;
}

.requirements-list li > span {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
}

.requirements-list li > div {
    display: grid;
}

.requirements-list strong {
    font-size: 0.78rem;
}

.requirements-list small {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.65rem;
}

.requirement-ok > span {
    color: var(--success);
    background: #e9f8f2;
}

.requirement-fail > span {
    color: var(--danger);
    background: #fff0f2;
}

.installer-help {
    margin-top: 16px;
    padding: 16px 18px;
    color: #6c5722;
    background: #fffaf0;
    border-color: #f2dfae;
    box-shadow: none;
    font-size: 0.78rem;
}

.installer-help p {
    margin: 4px 0 0;
}

.installer-help code,
.installer-privacy code {
    padding: 2px 5px;
    color: #493f9b;
    background: rgba(91, 79, 247, 0.08);
    border-radius: 4px;
}

.installer-form-card {
    padding: clamp(25px, 4vw, 42px);
}

.installer-form-heading {
    margin-bottom: 30px;
}

.installer-form-heading > span {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.installer-form-heading h2 {
    margin: 4px 0 7px;
    font-size: 1.8rem;
    letter-spacing: -0.035em;
}

.installer-form-heading p {
    color: var(--muted);
    font-size: 0.86rem;
}

.install-errors {
    margin-bottom: 25px;
    padding: 15px 17px;
    color: #8f2f3c;
    background: #fff2f4;
    border: 1px solid #f6ccd2;
    border-radius: 10px;
    font-size: 0.8rem;
}

.install-errors ul {
    margin: 7px 0 0;
    padding-left: 20px;
}

.installer-form {
    display: grid;
    gap: 28px;
}

.installer-form fieldset {
    display: grid;
    gap: 16px;
    min-width: 0;
    margin: 0;
    padding: 0 0 28px;
    border: 0;
    border-bottom: 1px solid var(--border);
}

.installer-form legend {
    margin-bottom: 17px;
    color: var(--secondary);
    font-family: "Manrope", sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
}

.install-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.install-grid-host {
    grid-template-columns: 1fr 125px;
}

.install-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.install-field label {
    color: #3d485b;
    font-size: 0.76rem;
    font-weight: 700;
}

.install-field input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cfd6e1;
    border-radius: 8px;
}

.install-field small,
.inline-error {
    min-height: 14px;
    margin: 0;
    color: var(--danger);
    font-size: 0.67rem;
}

.password-help,
.installer-privacy {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 0.7rem;
}

.install-confirm {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #566174;
    font-size: 0.77rem;
    cursor: pointer;
}

.install-confirm input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.installer-form .button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.installer-privacy {
    text-align: center;
}

.install-success-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 72px);
    padding: 50px 20px;
}

.install-success-card {
    width: min(100%, 570px);
    padding: clamp(30px, 6vw, 55px);
    text-align: center;
}

.success-check {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 24px;
    color: #fff;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 12px 25px rgba(23, 166, 115, 0.25);
    font-size: 1.6rem;
    font-weight: 900;
}

.install-success-card h1 {
    margin-bottom: 12px;
    font-size: 2.5rem;
    letter-spacing: -0.05em;
}

.install-success-card > p {
    color: var(--muted);
}

.install-summary {
    display: grid;
    gap: 8px;
    margin: 26px 0;
}

.install-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 13px;
    background: #f7f8fb;
    border-radius: 8px;
    text-align: left;
}

.install-summary dt {
    color: var(--muted);
    font-size: 0.72rem;
}

.install-summary dd {
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
}

.success-help {
    margin-bottom: 20px;
    color: #216c55;
    background: #effaf6;
    border-color: #c5eadc;
    text-align: left;
}

@media (max-width: 900px) {
    .installer-shell {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-block: 48px 70px;
    }

    .installer-intro {
        position: static;
    }
}

@media (max-width: 580px) {
    .installer-container {
        width: min(calc(100% - 24px), 1180px);
    }

    .installer-header-inner {
        min-height: 64px;
    }

    .installer-shell {
        padding-block: 38px 55px;
    }

    .installer-intro h1 {
        font-size: 2.45rem;
    }

    .install-grid,
    .install-grid-host {
        grid-template-columns: 1fr;
    }

    .installer-form-card {
        padding: 24px 18px;
    }
}

/* Authentication and protected area */
.form-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.82rem;
}

.form-alert-error {
    color: #8f2f3c;
    background: #fff2f4;
    border-color: #f6ccd2;
}

.form-alert-success {
    color: #216c55;
    background: #effaf6;
    border-color: #c5eadc;
}

.muted-link,
.auth-switch a {
    text-decoration: none;
    opacity: 1;
}

.muted-link:hover,
.auth-switch a:hover {
    text-decoration: underline;
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.auth-switch a {
    color: var(--primary-dark);
    font-weight: 800;
}

.auth-shell-wide {
    grid-template-columns: minmax(330px, 0.72fr) minmax(600px, 1.28fr);
}

.auth-card-wide {
    width: min(100% - 50px, 700px);
}

.auth-fieldset {
    display: grid;
    gap: 16px;
    min-width: 0;
    margin: 0;
    padding: 0 0 22px;
    border: 0;
    border-bottom: 1px solid var(--border);
}

.auth-fieldset legend {
    margin-bottom: 14px;
    font-family: "Manrope", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.password-requirements {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.dashboard-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 90% 5%, rgba(91, 79, 247, 0.08), transparent 28%),
        #f5f7fb;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.dashboard-header-inner,
.dashboard-nav {
    display: flex;
    align-items: center;
}

.dashboard-header-inner {
    justify-content: space-between;
    min-height: 72px;
}

.dashboard-nav {
    gap: 22px;
    font-size: 0.8rem;
}

.dashboard-nav a,
.dashboard-nav button {
    color: #4c586b;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-nav a:hover,
.dashboard-nav button:hover {
    color: var(--primary);
}

.dashboard-nav form {
    margin: 0;
}

.dashboard-user {
    padding: 6px 10px;
    color: var(--primary-dark);
    background: var(--soft-purple);
    border-radius: 999px;
    font-weight: 800;
}

.dashboard-main {
    padding-block: 60px 90px;
}

.dashboard-alert {
    max-width: 760px;
}

.dashboard-welcome {
    max-width: 740px;
    margin-bottom: 38px;
}

.dashboard-welcome h1,
.settings-heading h1 {
    margin-bottom: 10px;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.dashboard-welcome p,
.settings-heading p,
.dashboard-next p {
    color: var(--muted);
}

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

.dashboard-card,
.dashboard-next,
.settings-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.dashboard-card {
    padding: 24px;
}

.dashboard-card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--primary);
    background: var(--soft-purple);
    border-radius: 11px;
    font-weight: 900;
}

.dashboard-card h2 {
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.dashboard-card p {
    margin-bottom: 5px;
    font-family: "Manrope", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: capitalize;
}

.dashboard-card small {
    color: var(--muted);
    font-size: 0.7rem;
}

.dashboard-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
    padding: 28px;
}

.dashboard-next span {
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-next h2 {
    margin: 4px 0 6px;
    font-size: 1.35rem;
}

.dashboard-next p {
    margin: 0;
    font-size: 0.85rem;
}

.settings-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(430px, 1fr);
    align-items: start;
    gap: 60px;
}

.settings-heading {
    position: sticky;
    top: 35px;
}

.settings-card {
    padding: clamp(24px, 5vw, 42px);
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 960px) {
    .auth-shell-wide,
    .settings-shell {
        grid-template-columns: 1fr;
    }

    .settings-heading {
        position: static;
    }

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

@media (max-width: 680px) {
    .auth-form-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-block: 14px;
    }

    .dashboard-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .dashboard-user {
        display: none;
    }

    .dashboard-main {
        padding-block: 42px 65px;
    }

    .dashboard-next {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}
