:root {
    --ink: #17332d;
    --ink-deep: #10241f;
    --paper: #ffffff;
    --soft: #f4f7f3;
    --muted: #62736e;
    --line: #d8e0dc;
    --brand: #0e7667;
    --brand-dark: #09594e;
    --accent: #cd5334;
    --yellow: #f2c84b;
    --success: #137447;
    --danger: #b42318;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a { color: var(--brand); }

button, input, select { font: inherit; }

.site-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-deep);
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--ink-deep);
    color: var(--paper);
    font-size: 12px;
}

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--brand); }

.nav-command, .primary-command, .secondary-command, .disabled-command {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 10px 16px;
    border: 1px solid transparent;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.site-nav .nav-command, .primary-command {
    background: var(--brand);
    color: var(--paper);
}

.site-nav .nav-command:hover, .primary-command:hover { background: var(--brand-dark); color: var(--paper); }
.secondary-command { border-color: var(--brand); background: var(--paper); color: var(--brand); }
.secondary-command:hover { background: var(--soft); }
.disabled-command { width: 100%; border-color: var(--line); background: var(--soft); color: var(--muted); cursor: not-allowed; }
.full { width: 100%; }

.flash-region { width: min(1180px, calc(100% - 32px)); margin: 18px auto 0; }
.site-alert { border: 1px solid; border-radius: 6px; padding: 12px 14px; }
.site-alert.success { color: var(--success); border-color: #96cfad; background: #f1fbf5; }
.site-alert.error { color: var(--danger); border-color: #efaaa3; background: #fff5f4; }

.hero-band {
    min-height: min(720px, calc(100vh - 68px));
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: 54px;
    padding: 64px max(24px, calc((100vw - 1180px) / 2));
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.hero-copy { max-width: 590px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 850; text-transform: uppercase; }
.hero-copy h1, .page-intro h1, .auth-context h1, .legal-page h1 {
    margin: 0;
    font-size: 54px;
    line-height: 1.05;
    letter-spacing: 0;
}
.hero-lead { margin: 24px 0 0; color: var(--muted); font-size: 19px; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--muted); font-size: 14px; font-weight: 650; }
.hero-facts span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--yellow); }

.product-scene {
    width: 100%;
    min-width: 0;
    border: 1px solid #315149;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ink-deep);
    color: #eef7f3;
    box-shadow: 0 22px 55px rgba(15, 39, 33, 0.16);
}
.preview-toolbar { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #315149; }
.preview-toolbar div { display: grid; gap: 3px; }
.preview-kicker { color: #8db3a8; font-size: 11px; text-transform: uppercase; }
.live-state { color: #cdebdc; font-size: 12px; }
.live-state::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: #37c77b; }
.preview-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #315149; }
.preview-metrics div { min-width: 0; display: grid; gap: 6px; padding: 18px 16px; border-right: 1px solid #315149; }
.preview-metrics div:last-child { border-right: 0; }
.preview-metrics span { color: #99b9b0; font-size: 11px; }
.preview-metrics strong { font-size: 21px; white-space: nowrap; }
.preview-metrics small { color: #63d697; }
.preview-table { padding: 8px 18px 18px; }
.preview-row { min-height: 46px; display: grid; grid-template-columns: minmax(160px, 1fr) 70px 60px 80px; align-items: center; gap: 12px; border-bottom: 1px solid #29463f; font-size: 12px; }
.preview-head { color: #8db3a8; text-transform: uppercase; font-size: 10px; }
.positive { color: #63d697; font-weight: 700; }

.proof-band { padding: 28px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); }
.proof-band p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.proof-band div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px; color: #48615a; }

.feature-band, .workflow-band, .pricing-preview-band, .pricing-grid, .pricing-note, .page-intro, .legal-page {
    padding-left: max(24px, calc((100vw - 1180px) / 2));
    padding-right: max(24px, calc((100vw - 1180px) / 2));
}
.feature-band { padding-top: 92px; padding-bottom: 92px; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.compact { margin-bottom: 0; }
.section-heading h2 { margin: 0; font-size: 38px; line-height: 1.15; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article { padding: 28px 24px 30px; border-right: 1px solid var(--line); }
.feature-grid article:last-child { border-right: 0; }
.feature-number { color: var(--accent); font-size: 12px; font-weight: 800; }
.feature-grid h3 { margin: 22px 0 10px; font-size: 20px; }
.feature-grid p { margin: 0; color: var(--muted); }

.workflow-band { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; padding-top: 88px; padding-bottom: 88px; background: var(--ink-deep); color: var(--paper); }
.workflow-list { margin: 0; padding: 0; list-style: none; counter-reset: workflow; border-top: 1px solid #355148; }
.workflow-list li { counter-increment: workflow; display: grid; grid-template-columns: 34px 180px 1fr; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid #355148; }
.workflow-list li::before { content: counter(workflow, decimal-leading-zero); color: var(--yellow); font-size: 12px; font-weight: 800; }
.workflow-list span { color: #abc0ba; }
.workflow-band .section-heading h2 { color: var(--paper); }

.pricing-preview-band { display: flex; justify-content: space-between; align-items: end; gap: 48px; padding-top: 72px; padding-bottom: 72px; background: #fff8e8; border-bottom: 1px solid #eadfbf; }
.pricing-preview-band .primary-command { flex: 0 0 auto; }

.page-intro { padding-top: 84px; padding-bottom: 46px; text-align: center; }
.page-intro h1 { font-size: 48px; }
.page-intro > p:last-child { max-width: 700px; margin: 20px auto 0; color: var(--muted); font-size: 18px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 72px; }
.price-card { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: var(--paper); }
.price-card.featured { border-color: var(--brand); box-shadow: inset 0 4px 0 var(--brand); }
.price-card-head { min-height: 108px; display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.price-card h2 { margin: 0; font-size: 24px; }
.price-card-head p { color: var(--muted); margin: 8px 0 0; }
.plan-badge { border-radius: 999px; padding: 4px 8px; background: #fff0eb; color: var(--accent); font-size: 11px; font-weight: 800; }
.plan-price { min-height: 62px; margin: 18px 0; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 38px; }
.plan-price span { color: var(--muted); }
.plan-list { min-height: 248px; margin: 0 0 24px; padding: 0; list-style: none; }
.plan-list li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.pricing-note { padding-top: 60px; padding-bottom: 60px; background: var(--soft); border-top: 1px solid var(--line); }
.pricing-note h2 { margin: 0 0 10px; }
.pricing-note p { margin: 0; max-width: 760px; color: var(--muted); }

.auth-band { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 0.9fr 1.1fr; }
.auth-context { padding: 82px max(42px, calc((100vw - 1180px) / 2)); padding-right: 64px; background: var(--ink-deep); color: var(--paper); }
.auth-context h1 { font-size: 45px; max-width: 520px; }
.auth-context p { max-width: 500px; color: #b3c8c2; font-size: 18px; }
.auth-context a { color: #f7d777; font-weight: 700; }
.context-list { margin: 28px 0; padding: 0; list-style: none; }
.context-list li { padding: 11px 0; border-bottom: 1px solid #355148; }
.auth-form { width: min(520px, calc(100% - 48px)); margin: 58px auto; align-self: center; display: grid; gap: 16px; }
.auth-form h2 { margin: 0 0 6px; font-size: 28px; }
.auth-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
.auth-form label small { color: var(--muted); font-weight: 500; }
.auth-form input, .auth-form select { width: 100%; min-height: 46px; border: 1px solid #bfcac5; border-radius: 6px; background: var(--paper); color: var(--ink); padding: 10px 12px; }
.auth-form input:focus, .auth-form select:focus { outline: 3px solid rgba(14, 118, 103, 0.18); border-color: var(--brand); }
.form-row { display: flex; align-items: center; gap: 12px; }
.form-row.end { justify-content: flex-end; }
.form-back { text-align: center; font-weight: 700; }
.checkbox-row { grid-template-columns: 20px 1fr; align-items: start; font-weight: 500 !important; }
.checkbox-row input { min-height: 18px; width: 18px; margin-top: 3px; }
.captcha-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 12px; }
.captcha-block label { grid-column: 1 / -1; }
.captcha-block img { grid-column: 1 / -1; width: 220px; max-width: 100%; height: 72px; border: 1px solid var(--line); border-radius: 6px; }
.captcha-block input { grid-column: 1 / 2; text-transform: uppercase; }
.text-command { min-height: 46px; border: 0; background: transparent; color: var(--brand); padding: 8px 0; font-weight: 750; cursor: pointer; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.legal-page { max-width: 900px; margin: 0 auto; padding-top: 76px; padding-bottom: 92px; }
.legal-page h1 { font-size: 48px; }
.legal-page > p { color: var(--muted); }
.legal-page h2 { margin-top: 38px; font-size: 22px; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; padding: 44px max(24px, calc((100vw - 1180px) / 2)); background: #f3f5f4; border-top: 1px solid var(--line); }
.site-footer p { margin: 6px 0 0; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer small { grid-column: 1 / -1; color: var(--muted); }

@media (max-width: 980px) {
    .hero-band { grid-template-columns: 1fr; gap: 36px; }
    .hero-copy { max-width: 760px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid article:nth-child(2) { border-right: 0; }
    .feature-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .workflow-band { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
    .plan-list, .price-card-head { min-height: 0; }
}

@media (max-width: 740px) {
    .site-header { position: static; align-items: flex-start; }
    .site-brand span:last-child { display: none; }
    .site-nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 15px; }
    .site-nav a:first-child { display: none; }
    .hero-band { min-height: 0; padding-top: 54px; padding-bottom: 54px; }
    .hero-copy h1, .page-intro h1, .auth-context h1, .legal-page h1 { font-size: 38px; }
    .hero-lead { font-size: 17px; }
    .preview-metrics { grid-template-columns: repeat(2, 1fr); }
    .preview-metrics div:nth-child(2) { border-right: 0; }
    .preview-metrics div:nth-child(-n+2) { border-bottom: 1px solid #315149; }
    .preview-row { grid-template-columns: minmax(130px, 1fr) 58px 68px; }
    .preview-row span:nth-child(3) { display: none; }
    .proof-band div { display: grid; grid-template-columns: 1fr 1fr; }
    .section-heading h2 { font-size: 30px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
    .feature-grid article:last-child { border-bottom: 0; }
    .workflow-list li { grid-template-columns: 30px 1fr; }
    .workflow-list span { grid-column: 2; }
    .pricing-preview-band { align-items: start; flex-direction: column; }
    .auth-band { grid-template-columns: 1fr; }
    .auth-context { padding: 54px 24px; }
    .auth-form { margin: 42px auto 58px; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer small { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
