:root {
    --bg: #eef4f3;
    --panel: #ffffff;
    --line: #d6e2df;
    --text: #142024;
    --muted: #647678;
    --graphite-900: #10191d;
    --graphite-800: #142024;
    --graphite-700: #1b2529;
    --graphite-600: #26383d;
    --cyan-900: #005f61;
    --cyan-800: #00706f;
    --cyan-700: #007c79;
    --cyan-600: #0b918d;
    --cyan-500: #1aa6a0;
    --cyan-400: #45bbb6;
    --cyan-100: #ccece9;
    --cyan-50: #dff3f1;
    --orange-900: #8d2808;
    --orange-700: #c93d0b;
    --orange-600: #f05a16;
    --orange-500: #ff6a1a;
    --orange-100: #ffedd5;
    --orange-50: #fff0e7;
    --blue: var(--graphite-800);
    --green: var(--cyan-700);
    --teal: var(--cyan-500);
    --accent-gradient: linear-gradient(135deg, var(--graphite-600), var(--graphite-900));
    --shadow: 0 18px 44px rgba(20, 32, 36, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 0%, rgba(0, 124, 121, 0.12), transparent 30%),
        radial-gradient(circle at 96% 10%, rgba(240, 90, 22, 0.1), transparent 26%),
        var(--bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px clamp(18px, 4vw, 54px);
    border-bottom: 1px solid rgba(207, 229, 237, 0.82);
    background: rgba(248, 253, 255, 0.94);
    backdrop-filter: blur(12px);
}

.brand {
    color: var(--text);
    font-size: 19px;
    font-weight: 900;
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-weight: 800;
}

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

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: clamp(24px, 5vw, 70px);
    padding: clamp(34px, 7vw, 90px) clamp(18px, 6vw, 86px);
    background:
        linear-gradient(115deg, rgba(238, 244, 243, 0.94), rgba(238, 244, 243, 0.72)),
        radial-gradient(circle at 82% 12%, rgba(0, 124, 121, 0.18), transparent 28%),
        radial-gradient(circle at 92% 72%, rgba(240, 90, 22, 0.12), transparent 24%),
        linear-gradient(135deg, #fbfdfc, #dff3f1);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
}

h2 {
    margin-bottom: 10px;
    font-size: 34px;
}

h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.hero-copy > p:not(.eyebrow),
.section-heading > p,
.band p {
    max-width: 660px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-link,
.secondary-link,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.primary-link,
button {
    border: 1px solid var(--cyan-600);
    color: #fff;
    background: var(--accent-gradient);
}

.secondary-link {
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--panel);
}

.public-elena-help {
    max-width: 720px;
    margin-top: 18px;
    border: 1px solid rgba(0, 124, 121, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

.public-elena-help summary {
    min-height: 44px;
    padding: 11px 14px;
    color: var(--cyan-900);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.public-elena-help-body {
    display: grid;
    gap: 8px;
    padding: 0 14px 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.public-elena-help-body p {
    margin: 0;
}

.product-shot {
    min-height: 390px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 92% 12%, rgba(240, 90, 22, 0.08), transparent 26%),
        linear-gradient(135deg, #ffffff, var(--cyan-50));
    box-shadow: var(--shadow);
}

.shot-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.shot-top span {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--green);
}

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

.shot-grid div,
.shot-list p,
.plan-card,
.success-panel,
.signup-form,
.plan-selector {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.shot-grid div {
    padding: 14px;
}

.shot-grid span,
.selected-plan span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.shot-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
}

.shot-list {
    display: grid;
    gap: 10px;
}

.shot-list p {
    margin: 0;
    padding: 14px;
}

.band,
.plans,
.signup-page {
    padding: 58px clamp(18px, 6vw, 86px);
}

.band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    gap: 28px;
    background: var(--panel);
}

.feature-list,
.plan-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 24px;
}

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

.plan-card {
    padding: 22px;
    box-shadow: var(--shadow);
}

.plan-card p {
    color: var(--muted);
}

.plan-card .primary-link {
    width: 100%;
    margin-top: 18px;
}

.signup-grid {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 560px);
    gap: 20px;
    align-items: start;
}

.plan-selector,
.signup-form,
.success-panel {
    padding: 20px;
    box-shadow: var(--shadow);
}

.plan-selector {
    display: grid;
    gap: 10px;
}

.plan-option {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.plan-option span {
    color: var(--muted);
    font-size: 14px;
}

.plan-option.active {
    border-color: var(--cyan-600);
    background: var(--cyan-50);
}

.signup-form {
    display: grid;
    gap: 14px;
}

.selected-plan {
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan-50), #fff);
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.field-status {
    justify-self: start;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--cyan-900);
    background: var(--cyan-50);
    font-size: 12px;
    font-weight: 900;
}

.field-status.optional {
    color: #476172;
    background: #eef3f7;
}

input,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
    gap: 10px;
}

.tenant-address-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.tenant-address-row input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.domain-suffix {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: var(--muted);
    background: #f8fbfd;
    font-weight: 900;
}

.phone-label small {
    color: var(--muted);
    font-weight: 700;
}

.iti {
    width: 100%;
}

.success-panel {
    max-width: 780px;
    margin-bottom: 20px;
    border-color: rgba(0, 124, 121, 0.28);
    background: var(--cyan-50);
}

.error-panel {
    border-color: rgba(240, 90, 22, 0.32);
    background: var(--orange-50);
}

.access-denied-page {
    min-height: 100vh;
}

.not-found-page {
    min-height: 100vh;
}

.payment-simulator-page {
    min-height: 100vh;
}

.access-denied-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(24px, 6vw, 80px);
}

.not-found-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(24px, 6vw, 80px);
}

.payment-simulator-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(24px, 6vw, 80px);
}

.access-denied-panel {
    width: min(100%, 720px);
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.not-found-panel {
    width: min(100%, 720px);
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.payment-simulator-panel {
    width: min(100%, 760px);
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.access-denied-panel h1 {
    margin-bottom: 14px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1;
}

.not-found-panel h1 {
    margin-bottom: 14px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1;
}

.payment-simulator-panel h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
}

.access-denied-panel p:not(.eyebrow) {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.not-found-panel p:not(.eyebrow) {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.payment-simulator-panel p:not(.eyebrow) {
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.access-denied-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.payment-simulator-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.payment-simulator-summary div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfd;
}

.payment-simulator-summary dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.payment-simulator-summary dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-weight: 900;
}

.payment-simulator-section {
    display: grid;
    gap: 14px;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.payment-simulator-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.payment-simulator-section-header .eyebrow {
    margin: 0;
}

.payment-simulator-section-header strong {
    color: var(--cyan-900);
}

.payment-simulator-summary.compact {
    margin: 0;
}

.payment-simulator-timeline {
    display: grid;
    gap: 8px;
}

.payment-simulator-event {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(0, 124, 121, 0.22);
    border-radius: 8px;
    background: var(--cyan-50);
}

.payment-simulator-event span {
    color: var(--muted);
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 800;
}

.payment-simulator-alert {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid rgba(0, 124, 121, 0.28);
    border-radius: 8px;
    background: var(--cyan-50);
    color: var(--cyan-900);
    font-weight: 800;
}

.payment-simulator-alert[data-state="danger"] {
    border-color: rgba(240, 90, 22, 0.32);
    background: var(--orange-50);
    color: #8a3211;
}

.payment-simulator-alert[data-state="success"] {
    border-color: rgba(0, 124, 121, 0.36);
}

.payment-simulator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 920px) {
    .hero,
    .band,
    .signup-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

    .phone-row {
        grid-template-columns: 1fr;
    }

    .payment-simulator-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

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