:root {
    --ez-primary: #0f8a5f;
    --ez-primary-strong: #0a6849;
    --ez-secondary: #14b8a6;
    --ez-mint: #dff8ed;
    --ez-soft: #f3fbf7;
    --ez-surface: #ffffff;
    --ez-dark: #102a27;
    --ez-muted: #64748b;
    --ez-border: #d9e9e2;
    --ez-gold: #d6a84f;
    --ez-danger: #b42318;
    --ez-warning: #b7791f;
    --ez-shadow: 0 24px 70px rgba(15, 138, 95, 0.14);
    --ez-shadow-soft: 0 14px 38px rgba(16, 42, 39, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ez-public-body,
body.ez-auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--ez-dark);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 30rem),
        linear-gradient(135deg, #f8fffb 0%, var(--ez-soft) 48%, #eef8f4 100%);
}

a {
    color: inherit;
}

.ez-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.ez-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(248, 255, 251, 0.82);
    border-bottom: 1px solid rgba(217, 233, 226, 0.75);
}

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

.ez-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ez-brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    color: #fff;
    font-weight: 800;
    background:
        linear-gradient(145deg, var(--ez-primary), var(--ez-secondary)),
        var(--ez-primary);
    box-shadow: 0 14px 28px rgba(15, 138, 95, 0.26);
    position: relative;
    overflow: hidden;
}

.ez-brand-mark::after {
    content: "";
    position: absolute;
    inset: 9px 8px auto;
    height: 10px;
    border-radius: 10px 10px 2px 2px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0.42;
}

.ez-brand-text strong {
    display: block;
    font-size: 1.05rem;
}

.ez-brand-text span {
    display: block;
    margin-top: 1px;
    color: var(--ez-muted);
    font-size: 0.78rem;
}

.ez-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ez-nav a {
    text-decoration: none;
    color: #31524c;
    font-weight: 700;
    font-size: 0.93rem;
    padding: 8px 10px;
    border-radius: 999px;
}

.ez-nav a:hover {
    background: rgba(15, 138, 95, 0.08);
    color: var(--ez-primary);
}

.ez-hero {
    position: relative;
    padding: 48px 0 34px;
    overflow: hidden;
}

.ez-hero::before,
.ez-auth-shell::before,
.ez-error-shell::before {
    content: "";
    position: absolute;
    inset: 28px 0 auto auto;
    width: 360px;
    height: 360px;
    opacity: 0.18;
    background-image:
        linear-gradient(30deg, rgba(15, 138, 95, 0.22) 12%, transparent 12.5%, transparent 87%, rgba(15, 138, 95, 0.22) 87.5%, rgba(15, 138, 95, 0.22)),
        linear-gradient(150deg, rgba(15, 138, 95, 0.22) 12%, transparent 12.5%, transparent 87%, rgba(15, 138, 95, 0.22) 87.5%, rgba(15, 138, 95, 0.22));
    background-size: 42px 72px;
    pointer-events: none;
}

.ez-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    gap: 34px;
}

.ez-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--ez-primary-strong);
    background: rgba(15, 138, 95, 0.09);
    border: 1px solid rgba(15, 138, 95, 0.16);
    font-weight: 800;
    font-size: 0.84rem;
}

.ez-hero h1,
.ez-section-title h2,
.ez-auth-title h1,
.ez-error-content h1 {
    margin: 0;
    color: var(--ez-dark);
    letter-spacing: 0;
}

.ez-hero h1 {
    font-size: clamp(2.15rem, 4.4vw, 4.05rem);
    line-height: 1.04;
    max-width: 720px;
}

.ez-hero p {
    margin: 16px 0 0;
    max-width: 650px;
    color: var(--ez-muted);
    font-size: 1.02rem;
    line-height: 1.62;
}

.ez-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.ez-button,
.ez-button-secondary,
.ez-button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.ez-button {
    color: #fff;
    background: linear-gradient(135deg, var(--ez-primary), var(--ez-secondary));
    box-shadow: 0 15px 30px rgba(15, 138, 95, 0.24);
}

.ez-button:hover,
.ez-button-secondary:hover,
.ez-button-ghost:hover {
    transform: translateY(-1px);
}

.ez-button-secondary {
    color: var(--ez-primary-strong);
    background: #fff;
    border: 1px solid var(--ez-border);
    box-shadow: 0 12px 28px rgba(16, 42, 39, 0.06);
}

.ez-button-ghost {
    color: var(--ez-primary-strong);
    background: rgba(15, 138, 95, 0.08);
}

.ez-button.full,
.ez-button-secondary.full {
    width: 100%;
}

.ez-button[disabled] {
    opacity: .7;
    cursor: wait;
}

.ez-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ez-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #31524c;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--ez-border);
    font-size: .86rem;
    font-weight: 700;
}

.ez-dashboard-preview {
    border-radius: 26px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(217, 233, 226, 0.9);
    box-shadow: var(--ez-shadow);
}

.ez-dashboard-frame {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ez-border);
}

.ez-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e8f1ed;
    background: linear-gradient(180deg, #ffffff, #f8fffb);
}

.ez-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    background: var(--ez-secondary);
}

.ez-preview-content {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 330px;
}

.ez-preview-side {
    padding: 14px 12px;
    background: #0d322b;
    color: rgba(255,255,255,.78);
}

.ez-preview-side div {
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: .82rem;
}

.ez-preview-side div:first-child,
.ez-preview-side div:nth-child(4) {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.ez-preview-main {
    padding: 14px;
    background: #f8fbfa;
}

.ez-stat-grid,
.ez-feature-grid,
.ez-advantage-grid,
.ez-pricing-grid {
    display: grid;
    gap: 16px;
}

.ez-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ez-mini-card,
.ez-feature-card,
.ez-step-card,
.ez-price-card,
.ez-faq-item,
.ez-tenant-card,
.ez-auth-card,
.ez-empty-state,
.ez-error-card {
    border-radius: 22px;
    background: var(--ez-surface);
    border: 1px solid var(--ez-border);
    box-shadow: var(--ez-shadow-soft);
}

.ez-mini-card {
    padding: 13px;
}

.ez-mini-card strong {
    display: block;
    font-size: 1.22rem;
    margin-bottom: 4px;
}

.ez-progress {
    overflow: hidden;
    height: 9px;
    margin-top: 9px;
    border-radius: 999px;
    background: #e8f2ee;
}

.ez-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ez-primary), var(--ez-secondary));
}

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

.ez-section-title {
    max-width: 720px;
    margin-bottom: 28px;
}

.ez-section-title.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.ez-section-title h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.13;
}

.ez-section-title p {
    margin: 12px 0 0;
    color: var(--ez-muted);
    font-size: 1rem;
    line-height: 1.65;
}

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

.ez-feature-card,
.ez-step-card,
.ez-price-card,
.ez-faq-item {
    padding: 22px;
}

.ez-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    margin-bottom: 16px;
    color: var(--ez-primary-strong);
    background: linear-gradient(135deg, rgba(15, 138, 95, 0.12), rgba(20, 184, 166, 0.16));
    font-weight: 900;
}

.ez-feature-card h3,
.ez-step-card h3,
.ez-price-card h3,
.ez-faq-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.ez-feature-card p,
.ez-step-card p,
.ez-price-card p,
.ez-faq-item p {
    margin: 0;
    color: var(--ez-muted);
    line-height: 1.62;
    font-size: .94rem;
}

.ez-band {
    background: linear-gradient(135deg, rgba(15, 138, 95, 0.09), rgba(20, 184, 166, 0.09));
    border-block: 1px solid rgba(217, 233, 226, 0.85);
}

.ez-advantage-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ez-advantage {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--ez-border);
}

.ez-advantage strong {
    display: block;
    margin-bottom: 4px;
}

.ez-advantage span {
    color: var(--ez-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.ez-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    counter-reset: step;
}

.ez-step-card {
    position: relative;
}

.ez-step-card::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    margin-bottom: 16px;
    color: #fff;
    background: var(--ez-primary);
    font-weight: 900;
}

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

.ez-price-card.featured {
    border-color: rgba(15, 138, 95, .36);
    box-shadow: var(--ez-shadow);
}

.ez-price {
    margin: 14px 0;
    font-size: 2rem;
    font-weight: 900;
}

.ez-price small {
    color: var(--ez-muted);
    font-size: .88rem;
    font-weight: 700;
}

.ez-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.ez-list li {
    color: #31524c;
    font-size: .94rem;
}

.ez-list li::before {
    content: "✓";
    color: var(--ez-primary);
    font-weight: 900;
    margin-right: 8px;
}

.ez-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ez-footer {
    padding: 34px 0;
    border-top: 1px solid var(--ez-border);
    color: var(--ez-muted);
}

.ez-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ez-auth-shell,
.ez-error-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 22px 0;
    overflow: hidden;
}

.ez-auth-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(340px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.ez-auth-card {
    padding: 22px;
}

.ez-auth-title {
    margin: 14px 0 15px;
}

.ez-auth-title h1 {
    font-size: clamp(1.48rem, 3vw, 1.95rem);
    line-height: 1.12;
}

.ez-auth-title p {
    margin: 8px 0 0;
    color: var(--ez-muted);
    line-height: 1.48;
}

.ez-auth-panel {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 500px;
    padding: 24px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(214, 168, 79, .28), transparent 20rem),
        linear-gradient(145deg, #0c3a32 0%, #0f8a5f 62%, #14b8a6 100%);
    box-shadow: var(--ez-shadow);
    overflow: hidden;
}

.ez-auth-panel::before {
    content: "";
    position: absolute;
    inset: 26px 26px auto auto;
    width: 210px;
    height: 210px;
    border-radius: 42px;
    border: 1px solid rgba(255,255,255,.2);
    transform: rotate(12deg);
}

.ez-auth-panel > * {
    position: relative;
}

.ez-auth-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 3vw, 2.18rem);
    line-height: 1.1;
}

.ez-auth-panel p {
    color: rgba(255,255,255,.82);
    line-height: 1.58;
}

.ez-benefit-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.ez-benefit {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
}

.ez-form {
    display: grid;
    gap: 10px;
}

.ez-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ez-field {
    display: grid;
    gap: 5px;
}

.ez-field label,
.ez-check label {
    font-weight: 800;
    font-size: .84rem;
    color: #25443f;
}

.ez-field input,
.ez-field textarea,
.ez-search input {
    width: 100%;
    min-height: 39px;
    border: 1px solid var(--ez-border);
    border-radius: 14px;
    padding: 8px 12px;
    color: var(--ez-dark);
    background: #fbfffd;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.ez-field textarea {
    min-height: 64px;
    resize: vertical;
}

.ez-field input:focus,
.ez-field textarea:focus,
.ez-search input:focus {
    border-color: rgba(15, 138, 95, .55);
    box-shadow: 0 0 0 4px rgba(15, 138, 95, .11);
    background: #fff;
}

.ez-field-error {
    color: var(--ez-danger);
    font-size: .84rem;
    font-weight: 700;
}

.ez-password-wrap {
    position: relative;
}

.ez-password-wrap input {
    padding-right: 72px;
}

.ez-password-toggle {
    position: absolute;
    right: 8px;
    top: 6px;
    min-height: 26px;
    border: 0;
    border-radius: 10px;
    padding: 0 10px;
    background: rgba(15, 138, 95, .08);
    color: var(--ez-primary);
    font-weight: 800;
    cursor: pointer;
}

.ez-form-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.ez-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

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

.ez-link {
    color: var(--ez-primary-strong);
    text-decoration: none;
    font-weight: 800;
}

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

.ez-alert {
    padding: 13px 14px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--ez-border);
    font-weight: 700;
    line-height: 1.5;
}

.ez-alert.success {
    color: #07543b;
    background: #e8f8f0;
    border-color: #b9ead1;
}

.ez-alert.error {
    color: var(--ez-danger);
    background: #fff1f0;
    border-color: #ffd4cf;
}

.ez-auth-note {
    margin-top: 10px;
    color: var(--ez-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.ez-auth-footer {
    margin-top: 15px;
    text-align: center;
    color: var(--ez-muted);
}

.ez-step-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}

.ez-step-strip span {
    padding: 7px 9px;
    border-radius: 999px;
    background: #eef9f3;
    color: var(--ez-primary-strong);
    font-size: .78rem;
    font-weight: 900;
    text-align: center;
}

.ez-tenant-list {
    display: grid;
    gap: 14px;
}

.ez-tenant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
}

.ez-tenant-card h3 {
    margin: 0 0 4px;
}

.ez-tenant-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--ez-muted);
    font-size: .87rem;
}

.ez-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: #eef9f3;
    color: var(--ez-primary-strong);
    font-size: .76rem;
    font-weight: 900;
}

.ez-badge.warning {
    color: var(--ez-warning);
    background: #fff8e5;
}

.ez-search {
    margin-bottom: 16px;
}

.ez-empty-state {
    padding: 28px;
    text-align: center;
}

.ez-empty-state h3 {
    margin: 10px 0 6px;
}

.ez-empty-state p {
    color: var(--ez-muted);
    margin: 0;
}

.ez-error-shell {
    text-align: center;
}

.ez-error-card {
    position: relative;
    width: min(720px, calc(100% - 36px));
    margin: 0 auto;
    padding: 42px;
}

.ez-error-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15,138,95,.12), rgba(20,184,166,.16));
    color: var(--ez-primary);
    font-size: 2.4rem;
}

.ez-error-content p {
    color: var(--ez-muted);
    line-height: 1.7;
}

@media (max-width: 980px) {
    .ez-nav {
        display: none;
    }

    .ez-hero-grid,
    .ez-auth-grid {
        grid-template-columns: 1fr;
    }

    .ez-auth-panel {
        min-height: auto;
        order: -1;
    }

    .ez-feature-grid,
    .ez-advantage-grid,
    .ez-step-grid,
    .ez-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 981px) and (max-height: 780px) {
    .ez-auth-shell {
        padding: 14px 0;
    }

    .ez-auth-card {
        padding: 18px;
    }

    .ez-auth-title {
        margin: 10px 0 12px;
    }

    .ez-auth-panel {
        min-height: 460px;
        padding: 20px;
    }

    .ez-auth-panel h2 {
        font-size: 2rem;
    }

    .ez-benefit-grid {
        gap: 9px;
        margin-top: 14px;
    }

    .ez-benefit {
        padding: 8px 10px;
    }

    .ez-hero {
        padding-top: 34px;
    }

    .ez-hero h1 {
        font-size: clamp(2rem, 4vw, 3.55rem);
    }

    .ez-preview-content {
        min-height: 292px;
    }
}

@media (min-width: 981px) and (max-height: 700px) {
    .ez-auth-grid {
        gap: 18px;
    }

    .ez-auth-card {
        padding: 16px;
    }

    .ez-brand-mark {
        width: 36px;
        height: 36px;
    }

    .ez-brand-text span,
    .ez-auth-panel p,
    .ez-auth-note {
        font-size: .82rem;
    }

    .ez-auth-title h1 {
        font-size: 1.52rem;
    }

    .ez-auth-panel {
        min-height: 420px;
    }

    .ez-auth-panel h2 {
        font-size: 1.76rem;
    }

    .ez-field textarea {
        min-height: 52px;
    }
}

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

    .ez-topbar-inner {
        min-height: 60px;
    }

    .ez-brand-text span {
        display: none;
    }

    .ez-hero {
        padding-top: 34px;
    }

    .ez-actions,
    .ez-footer-inner,
    .ez-tenant-card,
    .ez-form-row {
        align-items: stretch;
        flex-direction: column;
    }

    .ez-button,
    .ez-button-secondary,
    .ez-button-ghost {
        width: 100%;
    }

    .ez-preview-content,
    .ez-stat-grid,
    .ez-feature-grid,
    .ez-advantage-grid,
    .ez-step-grid,
    .ez-pricing-grid,
    .ez-faq-grid,
    .ez-form-grid,
    .ez-step-strip {
        grid-template-columns: 1fr;
    }

    .ez-preview-side {
        display: none;
    }

    .ez-section {
        padding: 48px 0;
    }

    .ez-auth-shell {
        padding: 12px 0;
        align-items: start;
    }

    .ez-auth-card,
    .ez-auth-panel,
    .ez-error-card {
        padding: 22px;
        border-radius: 24px;
    }
}
