:root {
    --page: #f3f6f8;
    --panel: #ffffff;
    --panel-soft: #f7f9fb;
    --text: #141922;
    --muted: #626f7f;
    --line: #d9e1e8;
    --blue: #0f6378;
    --blue-dark: #143c5a;
    --gold: #b9822c;
    --green: #24745b;
    --red: #b42318;
    --shadow: 0 18px 42px rgba(20, 25, 34, 0.10);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(rgba(20, 25, 34, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 25, 34, 0.026) 1px, transparent 1px),
        linear-gradient(180deg, #f7f9fb 0%, #eef3f5 48%, #f6f7f4 100%);
    background-size: 42px 42px, 42px 42px, auto;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    font-size: 1.08rem;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    font-weight: 900;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--text);
    font-weight: 650;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    padding: 8px 12px;
}

.hero {
    position: relative;
    padding: clamp(54px, 9vw, 98px) clamp(18px, 4vw, 56px) 36px;
    overflow: hidden;
    background:
        repeating-linear-gradient(135deg, rgba(20, 25, 34, 0.032) 0 1px, transparent 1px 16px),
        linear-gradient(135deg, #ffffff 0%, #eef5f3 54%, #eef5f8 100%);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(26px, 5vw, 58px);
    align-items: center;
}

.hero h1,
.section h1 {
    margin: 0 0 18px;
    line-height: 1.04;
    font-size: clamp(2.45rem, 5vw, 5.25rem);
    max-width: 920px;
}

.hero p.lead,
.lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 760px;
}

.hero-proof {
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        #151b24;
    background-size: 24px 24px, 24px 24px, auto;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 24px 54px rgba(20, 25, 34, 0.20);
}

.hero-proof .eyebrow {
    color: #e4bd74;
}

.hero-proof .muted {
    color: #bac5d2;
}

.hero-proof .proof-list li {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.hero-proof .proof-list li::before {
    background: var(--gold);
}

.proof-list,
.clean-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

.proof-list li,
.clean-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.proof-list li::before,
.clean-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(34px, 6vw, 70px) clamp(18px, 4vw, 28px);
}

.section.full {
    max-width: none;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(217, 225, 232, 0.65);
    border-bottom: 1px solid rgba(217, 225, 232, 0.65);
}

.section.full > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.section.narrow {
    max-width: 820px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.section-header h2,
.section h2,
.install-card h1 {
    margin: 0 0 10px;
    line-height: 1.12;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.section h3 {
    margin-top: 0;
    line-height: 1.18;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

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

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.card.compact {
    padding: 16px;
}

.soft-panel {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.stat {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.stat strong {
    display: block;
    font-size: 1.45rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.96rem;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    box-shadow: 0 10px 22px rgba(15, 99, 120, 0.20);
}

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

.btn-danger {
    color: #fff;
    background: var(--red);
}

.btn-small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.86rem;
}

.btn-large {
    min-height: 50px;
    font-size: 1rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f4;
    border: 1px solid #cfe4dc;
    color: var(--blue-dark);
    padding: 4px 10px;
    font-size: 0.84rem;
    font-weight: 700;
}

.stars {
    color: var(--gold);
    font-weight: 900;
    white-space: nowrap;
}

.trust-strip {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: -8px auto 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.trust-metric {
    min-height: 112px;
    padding: 18px 16px;
    display: grid;
    align-content: center;
    gap: 3px;
    border-right: 1px solid var(--line);
}

.trust-metric:last-child {
    border-right: 0;
}

.trust-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.trust-metric strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
}

.trust-metric span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.page-hero {
    padding-top: clamp(44px, 7vw, 82px);
    padding-bottom: clamp(20px, 4vw, 42px);
}

.tool-card,
.process-card {
    min-height: 230px;
    display: grid;
    align-content: start;
}

.tool-card .btn {
    margin-top: auto;
    justify-self: start;
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #151b24;
    color: #fff;
    font-weight: 900;
    margin-bottom: 14px;
}

.legal-page .card h2 {
    margin-top: 22px;
}

.legal-page .card h2:first-child {
    margin-top: 0;
}

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

.profile-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
}

.profile-card img,
.profile-hero img {
    width: 76px;
    height: 76px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--line);
}

.profile-hero {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.profile-hero img {
    width: 150px;
    height: 150px;
}

.price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

label {
    display: grid;
    gap: 7px;
    font-weight: 750;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #c9deee;
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 11px 12px;
    font: inherit;
}

textarea {
    min-height: 132px;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 650;
}

.checkbox-row input {
    width: auto;
    margin-top: 6px;
}

.alert,
.flash,
.install-notice {
    max-width: 1180px;
    margin: 16px auto;
    padding: 13px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.alert.success,
.flash.success,
.check-item.ok {
    border-color: #bfe8d5;
    background: #effaf5;
    color: #0c5c3f;
}

.alert.error,
.flash.error,
.check-item.bad {
    border-color: #ffd0ca;
    background: #fff4f2;
    color: var(--red);
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.sample-document {
    white-space: pre-wrap;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

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

.before {
    border-left: 4px solid #d45d4c;
}

.after {
    border-left: 4px solid var(--green);
}

.rating-bar {
    display: grid;
    grid-template-columns: 42px 1fr 34px;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.rating-bar span:nth-child(2) {
    height: 10px;
    border-radius: 999px;
    background: #e7eef6;
    overflow: hidden;
}

.rating-bar i {
    display: block;
    height: 100%;
    background: var(--gold);
}

.message {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 14px;
    background: #fff;
}

.message.client {
    background: #eef8ff;
}

.message.admin,
.message.strategist {
    background: #f7fbf5;
}

.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
}

.admin-nav {
    display: grid;
    align-content: start;
    gap: 8px;
}

.admin-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
}

.install-body {
    min-height: 100vh;
}

.install-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 72px) 18px;
}

.install-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 5vw, 44px);
    box-shadow: var(--shadow);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.check-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: var(--panel-soft);
}

.check-item strong,
.check-item span {
    display: block;
}

.empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}

.site-footer {
    margin-top: 40px;
    padding: 0 clamp(18px, 4vw, 56px);
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        #101820;
    background-size: 28px 28px, 28px 28px, auto;
    color: #f8fafc;
    border-top: 4px solid var(--gold);
}

.footer-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 0 30px;
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(230px, 0.8fr) minmax(320px, 1fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: start;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 9px 22px;
    align-content: start;
    padding-top: 4px;
}

.footer-brand strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.25;
}

.footer-brand p,
.footer-contact p {
    color: #cbd3dc;
    margin: 0 0 8px;
    font-size: 0.96rem;
    line-height: 1.65;
}

.footer-contact h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 0.92rem;
    letter-spacing: 0;
    line-height: 1.25;
}

.site-footer a {
    color: #f1d99f;
    font-weight: 750;
    line-height: 1.35;
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 920px) {
    .hero-inner,
    .grid.two,
    .grid.three,
    .grid.four,
    .stat-row,
    .compare,
    .form-grid.two,
    .admin-shell,
    .check-grid,
    .footer-main,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .footer-links {
        max-width: 420px;
    }

    .trust-metric {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-metric:last-child {
        border-bottom: 0;
    }

    .site-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 3;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 9px 0;
    }

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

@media (max-width: 560px) {
    .site-header {
        flex-wrap: wrap;
    }

    .hero h1,
    .section h1 {
        font-size: 2.35rem;
    }

    .section-header {
        display: block;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
