:root {
    --page-bg: #c9d5c3;
    --page-bg-soft: #eef3ea;
    --panel-bg: #fbfbf8;
    --cream: #f6f0df;
    --sidebar-bg: #f2f3f1;
    --text: #202423;
    --muted: #65706a;
    --line: #dde3da;
    --accent: #2f5d4d;
    --accent-dark: #214437;
    --accent-soft: #dfeae3;
    --yellow: #f7eaa2;
    --blue: #bfe5ea;
    --pink: #ffd5dc;
    --orange: #f3be83;
    --success: #2f6f4f;
    --error: #9d2f2f;
    --shadow-soft: 0 18px 46px rgba(59, 72, 61, 0.14);
    --shadow-card: 0 12px 28px rgba(59, 72, 61, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0)),
        var(--page-bg);
    letter-spacing: 0;
}

body.nav-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

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

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;
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 12px auto 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius);
    background: rgba(251, 251, 248, 0.9);
    box-shadow: 0 12px 28px rgba(59, 72, 61, 0.11);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 850;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(47, 93, 77, 0.22);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 7px;
    color: #38413d;
    font-size: 14px;
    font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent-dark);
    outline: 0;
}

.site-nav .nav-cta {
    margin-left: 6px;
    background: var(--accent);
    color: #fff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
    background: var(--accent-dark);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--text);
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 42px;
    min-height: calc(100vh - 96px);
    padding-top: 62px;
    padding-bottom: 48px;
}

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

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    line-height: 1.06;
}

h1 {
    max-width: 760px;
    font-size: 58px;
}

h2 {
    font-size: 38px;
}

h3 {
    font-size: 20px;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-text {
    max-width: 610px;
    margin: 22px 0 0;
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:active {
    transform: translateY(0);
}

.button:focus-visible {
    outline: 3px solid rgba(47, 93, 77, 0.28);
    outline-offset: 3px;
}

.button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.button-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 22px rgba(47, 93, 77, 0.2);
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary {
    border-color: rgba(47, 93, 77, 0.22);
    background: rgba(255, 255, 255, 0.68);
    color: var(--accent-dark);
}

.button-secondary:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(59, 72, 61, 0.1);
}

.product-preview {
    display: grid;
    grid-template-columns: 178px 1fr;
    min-height: 438px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: var(--shadow-soft);
}

.preview-sidebar {
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: var(--sidebar-bg);
}

.preview-title {
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 850;
}

.preview-search {
    height: 34px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.preview-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 6px;
    padding: 0 8px;
    border-radius: 6px;
    color: #4d5752;
    font-size: 13px;
    font-weight: 750;
}

.preview-line.active {
    background: #e8ebe5;
}

.preview-line span {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--yellow);
}

.preview-line:nth-child(4) span {
    background: var(--blue);
}

.preview-line:nth-child(5) span {
    background: var(--pink);
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.preview-tags b {
    width: 46px;
    height: 22px;
    border-radius: 5px;
    background: var(--blue);
}

.preview-tags b:nth-child(2) {
    background: var(--pink);
}

.preview-tags b:nth-child(3) {
    background: var(--orange);
}

.preview-board {
    padding: 26px;
}

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

.preview-header span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.preview-header strong {
    display: block;
    font-size: 30px;
}

.preview-header button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font-size: 24px;
}

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

.mini-note {
    min-height: 132px;
    padding: 16px;
    border: 1px solid rgba(32, 36, 35, 0.04);
    border-radius: 7px;
    box-shadow: 0 10px 20px rgba(59, 72, 61, 0.1);
}

.mini-note span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 850;
}

.mini-note strong {
    display: block;
    font-size: 17px;
}

.mini-note p {
    margin: 8px 0 0;
    color: #48524d;
    font-size: 13px;
    line-height: 1.45;
}

.note-yellow,
.icon-yellow {
    background: var(--yellow);
}

.note-blue,
.icon-blue {
    background: var(--blue);
}

.note-pink,
.icon-pink {
    background: var(--pink);
}

.note-orange,
.icon-orange {
    background: var(--orange);
}

.benefits,
.how-it-works,
.pricing,
.signup,
.contact {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
    margin: 14px 0 0;
}

.feature-grid,
.steps,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.step-card,
.price-card,
.form-panel {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    background: rgba(251, 251, 248, 0.84);
    box-shadow: var(--shadow-card);
}

.feature-card,
.step-card {
    padding: 22px;
}

.icon-card,
.step-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 7px;
    color: #27302c;
    font-size: 19px;
    font-weight: 900;
}

.feature-card p,
.step-card p {
    margin: 12px 0 0;
}

.steps {
    counter-reset: steps;
}

.step-card {
    position: relative;
    background: var(--panel-bg);
}

.step-number {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

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

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
}

.featured-plan {
    border-color: rgba(47, 93, 77, 0.38);
    background: #fffdf6;
    transform: translateY(-10px);
}

.popular-badge {
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--yellow);
    color: #4c4522;
    font-size: 12px;
    font-weight: 900;
}

.price {
    margin: 18px 0;
    color: var(--text);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.price span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.price-card ul {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.price-card li {
    position: relative;
    padding-left: 24px;
    color: #4d5752;
    line-height: 1.5;
}

.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

.price-card .button {
    width: 100%;
    margin-top: auto;
}

.demo-note {
    margin: 20px 0 0;
    font-size: 14px;
}

.signup .form-panel {
    max-width: 860px;
}

.form-panel {
    padding: 26px;
}

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

.full-row {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
    color: #38413d;
    font-size: 14px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfd8cf;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    outline: 0;
}

input,
select {
    min-height: 46px;
    padding: 0 12px;
}

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

input:hover,
select:hover,
textarea:hover {
    border-color: #aebdae;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 93, 77, 0.16);
}

input:invalid[data-touched="true"],
select:invalid[data-touched="true"],
textarea:invalid[data-touched="true"] {
    border-color: var(--error);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
}

.check-row input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.form-message {
    min-height: 24px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: var(--error);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
    align-items: start;
    gap: 40px;
}

.contact-facts {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.contact-facts p {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 7px;
    background: rgba(251, 251, 248, 0.78);
}

.contact-facts strong {
    color: var(--text);
}

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

.legal-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 0;
}

.legal-strip article {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    background: rgba(251, 251, 248, 0.78);
    box-shadow: var(--shadow-card);
}

.legal-strip h2 {
    font-size: 22px;
}

.legal-strip p {
    margin: 10px 0 0;
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    background: rgba(32, 36, 35, 0.9);
    color: #f9fbf6;
}

.site-footer p {
    color: #d3ddd6;
}

.footer-brand {
    display: grid;
    gap: 10px;
    max-width: 620px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 24px 0;
}

.site-footer a {
    color: #f9fbf6;
    font-weight: 750;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--yellow);
    outline: 0;
}

.academic-note,
.copyright {
    margin: 10px 0 0;
    font-size: 14px;
}

@media (max-width: 980px) {
    .site-header {
        min-height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 88px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: var(--radius);
        background: var(--panel-bg);
        box-shadow: var(--shadow-soft);
    }

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

    .site-nav a,
    .site-nav .nav-cta {
        justify-content: center;
        margin-left: 0;
    }

    .hero,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding-top: 56px;
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 32px;
    }

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

@media (max-width: 760px) {
    .section {
        width: min(100% - 24px, 1180px);
        padding: 58px 0;
    }

    .site-header,
    .site-footer {
        width: min(100% - 24px, 1180px);
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .hero-text {
        font-size: 16px;
    }

    .product-preview {
        grid-template-columns: 1fr;
    }

    .preview-sidebar {
        display: none;
    }

    .preview-board {
        padding: 18px;
    }

    .preview-header strong {
        font-size: 24px;
    }

    .note-grid,
    .feature-grid,
    .steps,
    .pricing-grid,
    .legal-strip,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .featured-plan {
        transform: none;
    }

    .contact-layout {
        gap: 24px;
    }
}

@media (max-width: 460px) {
    .hero-actions,
    .button {
        width: 100%;
    }

    .product-preview {
        min-height: 0;
    }

    .mini-note {
        min-height: 118px;
    }

    .form-panel,
    .price-card,
    .feature-card,
    .step-card,
    .site-footer {
        padding: 20px;
    }
}
