:root {
  --ink: #182431;
  --muted: #647384;
  --line: #d9e2ea;
  --soft: #f2f6f9;
  --paper: #ffffff;
  --green: #17324d;
  --green-2: #275f86;
  --mint: #e2edf5;
  --cream: #edf3f7;
  --orange: #4f83a8;
  --shadow: 0 18px 55px rgba(27, 47, 67, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #edf2f6; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.auth-gate { min-height: 100vh; padding: clamp(24px, 5vw, 68px); display: grid; place-items: center; background: radial-gradient(circle at 15% 15%, rgba(93,139,175,.22), transparent 30%), linear-gradient(135deg, #111f2d, #244b68); }
.auth-stage { width: min(1040px, 100%); min-height: 610px; display: grid; grid-template-columns: .95fr 1.05fr; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; background: #fff; box-shadow: 0 28px 90px rgba(6,31,23,.28); }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; gap: 44px; padding: clamp(34px, 5vw, 62px); color: #fff; background: linear-gradient(155deg, rgba(255,255,255,.04), transparent), var(--green); }
.auth-brand { width: max-content; display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.auth-brand > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--green); background: #f0e3c9; font: 800 25px Georgia, serif; }
.auth-brand strong { font-size: 24px; letter-spacing: -.8px; }
.auth-kicker { color: #e8b47e; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.auth-story h1 { margin: 13px 0 18px; font-size: clamp(38px, 5vw, 58px); line-height: 1.02; }
.auth-story p { max-width: 410px; margin: 0; color: #c4d7ce; font-size: 13px; line-height: 1.7; }
.auth-trust { display: flex; flex-wrap: wrap; gap: 11px 20px; color: #c4d7ce; font-size: 10px; }
.auth-card { position: relative; display: grid; align-content: center; padding: clamp(32px, 6vw, 70px); background: #fff; }
.auth-back { position: absolute; top: 24px; left: 28px; padding: 7px 0; border: 0; color: var(--green-2); background: transparent; font-size: 10px; font-weight: 750; }
.auth-panel h2 { margin: 7px 0 10px; font: 600 clamp(28px, 4vw, 38px) Georgia, serif; }
.auth-panel > p { margin: 0 0 25px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.auth-loading { display: grid; justify-items: center; gap: 13px; color: var(--green); }
.auth-loading .brand-mark { width: 50px; height: 50px; font-size: 28px; animation: authPulse 1.25s ease-in-out infinite; }
@keyframes authPulse { 50% { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(23,79,59,.18); } }
.microsoft-button { width: 100%; min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #cbd6d1; border-radius: 9px; color: #23352e; background: #fff; font-size: 11px; font-weight: 750; }
.microsoft-button:hover { border-color: #95aaa0; background: #f8faf9; }
.microsoft-button span { color: #1769aa; font-size: 20px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #8c9893; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-form { display: grid; gap: 14px; }
.auth-form label > span { display: block; margin: 0 0 6px 2px; color: #50615a; font-size: 9px; font-weight: 800; letter-spacing: .35px; }
.auth-form input { width: 100%; height: 45px; padding: 0 12px; border: 1px solid #d8e0dc; border-radius: 9px; color: var(--ink); background: #fbfcfb; font-size: 11px; outline: 0; }
.auth-form input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(34,107,80,.09); }
.auth-form .primary-button { min-height: 46px; justify-content: center; margin-top: 4px; }
.auth-consent { display: flex; align-items: flex-start; gap: 9px; }
.auth-consent input { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.auth-consent span { margin: 0 !important; font-weight: 500 !important; line-height: 1.5; }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.auth-links button, .auth-signout-link { padding: 0; border: 0; color: var(--green-2); background: transparent; font-size: 9px; font-weight: 750; }
.auth-message { margin-top: 18px; padding: 11px 12px; border-radius: 8px; color: #285e46; background: #e7f4eb; font-size: 10px; line-height: 1.5; }
.auth-message.error { color: #8c4038; background: #f9ebe9; }
.auth-legal { margin: 21px 0 0; color: #89958f; font-size: 8px; line-height: 1.55; text-align: center; }
.auth-legal button, .inline-legal-link { padding: 0; border: 0; color: var(--green-2); background: transparent; font: inherit; font-weight: 750; text-decoration: underline; }
.auth-signout-link { margin-top: 18px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 22px; color: #fff; background: var(--green); }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 10px 42px; color: #fff; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: #f0e3c9; font-family: Georgia, serif; font-weight: 800; font-size: 23px; }
.brand strong { display: block; font-size: 21px; letter-spacing: -.8px; }
.brand small { display: block; margin-top: 2px; color: #a9c1b6; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; }
.main-nav { display: grid; gap: 8px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 0; border-radius: 10px; color: #c6d8d0; background: transparent; text-align: left; transition: .2s ease; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 3px 0 #e8b47e; }
.nav-icon { width: 22px; text-align: center; font-size: 17px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 20px; background: rgba(255,255,255,.13); font-size: 11px; text-align: center; }
.sidebar-foot { margin-top: auto; }
.demo-pill { width: max-content; display: flex; align-items: center; gap: 7px; margin: 0 8px 18px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #b9d2c7; font-size: 11px; }
.demo-pill span { width: 7px; height: 7px; border-radius: 50%; background: #78d09f; box-shadow: 0 0 0 4px rgba(120,208,159,.12); }
.company-mini { display: flex; align-items: center; gap: 10px; padding: 13px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: #e4d2b2; font-size: 11px; font-weight: 800; }
.company-mini strong, .company-mini small { display: block; }
.company-mini strong { font-size: 12px; }
.company-mini small { margin-top: 2px; color: #9cb7ab; font-size: 10px; }

main { min-width: 0; }
.topbar { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(12px); }
.eyebrow { margin: 0 0 5px; color: var(--green-2); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.save-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: #6fb486; }
.save-state.saving i { background: #e8b47e; }
.icon-button { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; color: var(--green); background: #fff; font-size: 17px; }
.account-button { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; }
.account-button:hover { border-color: #b9c9c1; background: var(--soft); }
.account-button > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--green); font-size: 9px; font-weight: 850; }
.account-button strong, .account-button small { display: block; max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-button strong { font-size: 10px; }
.account-button small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.view { display: none; padding: 0 clamp(24px, 4vw, 58px) 64px; }
.view.active { display: block; }
.legal-footer { position: fixed; z-index: 35; right: 18px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 7px 11px; border: 1px solid rgba(23,79,59,.13); border-radius: 999px; color: #65746e; background: rgba(255,255,255,.94); box-shadow: 0 5px 20px rgba(20,50,40,.09); font-size: 9px; backdrop-filter: blur(8px); }
.legal-footer button { padding: 0; border: 0; color: var(--green); background: transparent; font-size: inherit; font-weight: 750; }
.legal-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(10,28,22,.66); }
.legal-dialog { width: min(760px, 100%); max-height: min(86vh, 860px); overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 28px 90px rgba(6,31,23,.35); }
.legal-dialog > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.legal-dialog > header h2 { font-size: 17px; }
.legal-content { padding: 28px 30px 38px; }
.legal-content > h2 { margin-bottom: 24px; font-size: 30px; }
.legal-content h3 { margin: 24px 0 7px; color: var(--green); font-size: 13px; }
.legal-content p { margin: 0; color: #53635d; font-size: 12px; line-height: 1.7; }
.legal-content a { color: var(--green-2); }
.progress-wrap { display: flex; align-items: center; max-width: 760px; margin: 26px auto; padding: 0 12px; }
.progress-step { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; color: #93a09b; background: transparent; text-align: left; }
.progress-step > span { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border: 1px solid #c8d2cd; border-radius: 50%; background: #f7f9f8; font-size: 11px; font-weight: 800; }
.progress-step strong, .progress-step small { display: block; }
.progress-step strong { font-size: 12px; }
.progress-step small { margin-top: 2px; font-size: 9px; }
.progress-step.active, .progress-step.done { color: var(--green); }
.progress-step.active > span { color: #fff; border-color: var(--green); background: var(--green); box-shadow: 0 0 0 5px rgba(23,79,59,.1); }
.progress-step.done > span { color: transparent; border-color: var(--green); background: var(--green); position: relative; }
.progress-step.done > span::after { content: "✓"; position: absolute; color: #fff; }
.progress-line { height: 1px; flex: 1; min-width: 26px; margin: 0 16px; background: #cdd6d2; }

.workflow-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.step-panel { display: none; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 0 8px 35px rgba(34, 62, 52, .06); overflow: hidden; }
.step-panel.active { display: block; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 30px 20px; }
.section-kicker { display: block; margin-bottom: 7px; color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
h2 { margin: 0; font-family: Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1.2; }
.status-badge, .concept-label { padding: 7px 10px; border-radius: 999px; color: #93613e; background: var(--cream); font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
.info-banner { display: flex; gap: 13px; margin: 0 30px 22px; padding: 13px 15px; border: 1px solid #cee0d7; border-radius: 11px; color: #31594a; background: #eff7f3; }
.info-banner .spark { width: 25px; height: 25px; display: grid; place-items: center; flex: none; border-radius: 8px; color: #fff; background: var(--green-2); }
.info-banner p { margin: 0; font-size: 11px; line-height: 1.55; }
.form-section { padding: 21px 30px 24px; border-top: 1px solid #edf0ee; }
.form-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.form-section-title > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-size: 9px; font-weight: 850; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { font-family: Georgia, serif; font-size: 15px; }
.form-section-title small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.wide { grid-column: 1 / -1; }
.field > span { display: block; margin: 0 0 6px 2px; color: #4b5a55; font-size: 9px; font-weight: 750; letter-spacing: .4px; text-transform: uppercase; }
.field input, .field select, .field textarea, .inline-add input, .inline-add select { width: 100%; border: 1px solid #d7dfdb; border-radius: 9px; outline: 0; color: var(--ink); background: #fbfcfb; transition: .2s ease; }
.field input, .field select { height: 42px; padding: 0 12px; }
.field textarea { padding: 11px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-add input:focus, .inline-add select:focus { border-color: #5b9079; box-shadow: 0 0 0 3px rgba(91,144,121,.12); background: #fff; }
.number-field { display: flex; align-items: center; position: relative; }
.number-field input { padding-right: 78px; }
.number-field span { position: absolute; right: 12px; color: var(--muted); font-size: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.tag-row span { padding: 5px 8px; border-radius: 7px; color: #4d685d; background: #edf3f0; font-size: 9px; }
.panel-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 30px; border-top: 1px solid #e7ece9; background: #f8faf9; }
.panel-footer > span { color: var(--muted); font-size: 9px; }
.primary-button, .secondary-button, .text-button, .ai-button { border: 0; border-radius: 9px; font-weight: 700; transition: .2s ease; }
.primary-button { padding: 12px 17px; color: #fff; background: var(--green); box-shadow: 0 7px 15px rgba(23,79,59,.15); }
.primary-button:hover, .ai-button:hover { background: #0f3f2e; transform: translateY(-1px); }
.primary-button b { margin-left: 8px; }
.secondary-button { padding: 11px 15px; border: 1px solid #d4ded9; color: var(--green); background: #fff; }
.secondary-button:hover { border-color: #9fb9ae; }
.text-button { padding: 8px 10px; color: var(--green-2); background: #edf5f1; font-size: 10px; }
.panel-intro { margin: -9px 30px 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.quote-editor { margin: 0 30px 22px; padding: 20px; border: 1px solid #cfdae3; border-radius: 13px; background: #f5f8fb; }
.quote-editor-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.quote-editor-heading h3 { margin: 0; font-size: 15px; }
.quote-editor-heading > small { color: var(--muted); font-size: 10px; }
.quote-add-row { display: grid; grid-template-columns: 1.35fr 1.35fr .55fr .7fr .7fr auto; gap: 9px; align-items: end; }
.quote-add-row label, .quote-adjustment-row label { display: grid; gap: 5px; color: #536476; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.quote-add-row input, .quote-add-row select, .quote-adjustment-row input, .quote-adjustment-row select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #d2dce4; border-radius: 8px; color: var(--ink); background: #fff; outline: 0; }
.quote-add-row input:focus, .quote-add-row select:focus, .quote-adjustment-row input:focus, .quote-adjustment-row select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(39,95,134,.1); }
.quote-add-row button { height: 38px; white-space: nowrap; }
.quote-adjustment-row { display: grid; grid-template-columns: 1fr .55fr 1.4fr auto; gap: 9px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid #dbe3ea; }
.quote-adjustment-row button { height: 38px; padding-inline: 15px; }
.quote-line-name strong, .quote-line-name small { display: block; min-height: 1em; border-radius: 3px; }
.quote-line-name [contenteditable="true"]:hover, .quote-line-name [contenteditable="true"]:focus { outline: 1px dashed #90aabd; background: #f4f8fb; }

.catalog { border-top: 1px solid #edf0ee; }
.catalog-group { border-bottom: 1px solid #edf0ee; }
.catalog-title { display: flex; align-items: center; gap: 9px; padding: 14px 30px 9px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.catalog-title i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--cream); font-style: normal; font-size: 12px; }
.catalog-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) 78px 100px; gap: 10px; align-items: center; padding: 11px 30px; transition: .2s ease; }
.catalog-item:hover { background: #fafcfb; }
.catalog-item.selected { background: #f4f9f6; }
.check { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #bac8c2; border-radius: 6px; color: transparent; background: #fff; }
.selected .check { border-color: var(--green); color: #fff; background: var(--green); }
.catalog-name strong, .catalog-name small { display: block; }
.catalog-name strong { font-size: 11px; }
.catalog-name small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.mini-input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid #d8e0dc; border-radius: 7px; background: #fff; text-align: right; }
.price-wrap { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; }
.price-wrap input { text-align: right; }
.inline-add { display: grid; grid-template-columns: 2fr .7fr 1fr auto; gap: 8px; margin: 18px 30px; padding: 13px; border: 1px dashed #c5d1cb; border-radius: 10px; background: #fafcfb; }
.inline-add input, .inline-add select { height: 36px; padding: 0 9px; font-size: 10px; }
.inline-add button { padding: 0 12px; border: 0; border-radius: 8px; color: var(--green); background: var(--mint); font-size: 10px; font-weight: 800; }
.inline-add-note { margin: -9px 30px 18px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.selection-summary { display: grid; grid-template-columns: 130px 150px 1fr; gap: 18px; align-items: center; margin: 18px 30px 24px; padding: 16px 18px; border-radius: 12px; color: #fff; background: #244d3f; }
.selection-summary > div span, .selection-summary > div small { display: block; }
.selection-summary > div span { font-family: Georgia, serif; font-size: 18px; }
.selection-summary > div small { margin-top: 3px; color: #b9cec5; font-size: 8px; }
.ai-button { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 8px 13px; color: var(--green); background: #f2dfbd; text-align: left; }
.ai-button:hover { color: #fff; }
.ai-button i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.5); font-style: normal; }
.ai-button span { flex: 1; }
.ai-button small { display: block; margin-top: 3px; font-size: 8px; font-weight: 500; opacity: .75; }

.context-card { position: sticky; top: 122px; padding: 21px; border-radius: 16px; color: #fff; background: #1f493b; box-shadow: var(--shadow); }
.context-top { display: flex; align-items: center; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.13); }
.mini-spark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: #efdcb8; }
.context-top small, .context-top strong { display: block; }
.context-top small { color: #adc6bb; font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.context-top strong { margin-top: 2px; font-family: Georgia, serif; font-size: 14px; }
.context-event { padding: 17px 0; }
.context-event small, .context-event strong, .context-event span { display: block; }
.context-event small { color: #9db8ad; font-size: 8px; letter-spacing: 1px; }
.context-event strong { margin: 6px 0 5px; font-size: 11px; line-height: 1.4; }
.context-event span { color: #c6d7d0; font-size: 9px; }
.context-lines { min-height: 88px; display: grid; align-content: start; gap: 9px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.side-line { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; }
.side-line span { color: #c7d8d1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-line strong { font-weight: 650; white-space: nowrap; }
.context-empty { color: #91aca1; font-size: 9px; line-height: 1.5; }
.context-total { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 17px; }
.context-total span { color: #b5cabf; font-size: 8px; }
.context-total strong { font-family: Georgia, serif; font-size: 20px; }
.context-card > p { margin: 14px 0 0; color: #92afa3; font-size: 8px; line-height: 1.5; }

.success-banner { display: flex; align-items: center; gap: 12px; margin: 0 30px 20px; padding: 12px 14px; border-radius: 10px; color: #285e46; background: #e8f5ed; }
.success-banner > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #418e64; }
.success-banner strong, .success-banner small { display: block; }
.success-banner strong { font-size: 10px; }
.success-banner small { margin-top: 2px; font-size: 8px; line-height: 1.4; }
.preview-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.preview-actions button:disabled { cursor: not-allowed; opacity: .48; }
.offer-status { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .45px; }
.offer-status.draft, .offer-status.needs_review { color: #8b5c18; background: #fff2d9; }
.offer-status.reviewed { color: #245f46; background: #dff3e8; }
.offer-status.sent { color: #265a7c; background: #e2f1fb; }
.success-banner.warning { color: #7d581d; background: #fff3dd; }
.success-banner.warning > span { background: #d4952e; }

.email-import-card { margin: 0 30px 24px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; }
.email-import-heading, .email-import-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.email-import-heading { margin-bottom: 13px; }
.email-import-heading h3 { margin: 2px 0 0; font: 600 18px Georgia, serif; }
.ai-live-badge { display: inline-flex; align-items: center; flex: none; padding: 6px 9px; border-radius: 999px; color: #fff; background: var(--green); font-size: 8px; font-weight: 800; }
.email-import-actions { margin-top: 10px; }
.email-import-actions small { color: var(--muted); font-size: 8px; }
.ai-review-panel { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: start; margin-top: 13px; padding: 12px; border: 1px solid #ead9b9; border-radius: 10px; background: #fffaf0; }
.ai-review-panel > strong { color: #79551c; font-size: 9px; }
.ai-review-panel div span { display: block; color: #9b7d4b; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.ai-review-panel p { margin: 4px 0 0; color: #5f574a; font-size: 9px; line-height: 1.45; }
.ai-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; color: #53645d; font-size: 9px; line-height: 1.45; cursor: pointer; }
.ai-consent input { width: 15px; height: 15px; flex: none; margin-top: 1px; accent-color: var(--green); }

.data-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.data-section > small { display: block; margin-top: 12px; color: #697a73; font-size: 8px; line-height: 1.45; }
.quote-paper { margin: 0 30px 28px; padding: 37px 39px 26px; border: 1px solid #dfe5e2; color: #24312d; background: #fff; box-shadow: 0 10px 35px rgba(24,50,41,.09); }
.quote-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 2px solid var(--green); }
.quote-brand { display: flex; align-items: center; gap: 10px; }
.quote-brand > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50% 50% 45% 55%; color: #fff; background: var(--green); font-family: Georgia, serif; font-size: 12px; }
.quote-brand > span img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
.quote-brand > span b { font: inherit; }
.quote-brand strong, .quote-brand small { display: block; }
.quote-brand strong { font-family: Georgia, serif; font-size: 15px; }
.quote-brand small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.quote-meta { text-align: right; }
.quote-meta span, .quote-meta strong, .quote-meta small { display: block; }
.quote-meta span { color: var(--orange); font-size: 8px; font-weight: 850; letter-spacing: 1.4px; }
.quote-meta strong { margin: 5px 0; font-size: 12px; }
.quote-meta small { color: var(--muted); font-size: 8px; }
.quote-addresses { display: grid; grid-template-columns: 1fr 1.2fr; gap: 35px; padding: 24px 0; }
.quote-addresses div { display: flex; flex-direction: column; gap: 3px; }
.quote-addresses small { margin-bottom: 5px; color: var(--orange); font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.quote-addresses strong { font-size: 10px; }
.quote-addresses span { color: var(--muted); font-size: 8px; line-height: 1.45; }
.editable-copy { min-height: 48px; margin-bottom: 19px; padding: 8px; border: 1px dashed transparent; font-size: 9px; line-height: 1.65; }
.editable-copy:hover, [contenteditable="true"]:focus { border-color: #c9d8d1; outline: 0; background: #fafcfb; }
.quote-table { width: 100%; border-collapse: collapse; font-size: 8px; }
.quote-table th { padding: 8px 7px; color: #fff; background: var(--green); text-align: left; font-size: 7px; text-transform: uppercase; letter-spacing: .6px; }
.quote-table th:nth-child(n+3), .quote-table td:nth-child(n+3) { text-align: right; }
.quote-table td { padding: 9px 7px; border-bottom: 1px solid #e7ebe9; vertical-align: top; }
.quote-table td[contenteditable="true"] { cursor: text; }
.quote-line-name strong, .quote-line-name small { display: block; }
.quote-line-name small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.remove-line { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; color: #a95e55; background: #f8ecea; }
.quote-bottom { display: grid; grid-template-columns: 1fr 225px; gap: 30px; margin-top: 24px; }
.quote-notes { font-size: 8px; line-height: 1.55; }
.quote-notes p { min-height: 35px; margin: 6px 0; padding: 5px; border: 1px dashed transparent; color: var(--muted); }
.quote-notes small { color: #87928e; font-size: 7px; }
.totals { display: grid; gap: 7px; }
.totals > div { display: flex; justify-content: space-between; gap: 18px; font-size: 8px; }
.grand-total { margin-top: 4px; padding: 10px 11px; color: #fff; background: var(--green); font-size: 9px !important; }
.quote-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; margin-top: 35px; padding-top: 12px; border-top: 1px solid #dfe5e2; color: #83908b; font-size: 6px; }
.demo-watermark { width: 100%; margin-top: 8px; color: #a8633a; font-weight: 800; letter-spacing: 1px; text-align: center; }

.empty-state { max-width: 720px; margin: 85px auto; padding: 70px 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.empty-state > span { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 16px; color: var(--green); background: var(--mint); font-size: 24px; }
.empty-state p { max-width: 460px; margin: 12px auto 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.draft-list-wrap { max-width: 1000px; margin: 30px auto; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.draft-list { padding: 0 30px 30px; display: grid; gap: 10px; }
.draft-card { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.draft-card strong, .draft-card small { display: block; }
.draft-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.draft-card .amount { font-family: Georgia, serif; }
.draft-card button { padding: 8px 10px; border: 0; border-radius: 7px; color: #965d55; background: #faeeec; }

.services-shell { max-width: 1180px; margin: 30px auto; }
.services-overview { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 20px; padding: 27px 30px; border-radius: 17px; color: #fff; background: var(--green); box-shadow: var(--shadow); }
.services-overview .section-kicker { color: #e8b47e; }
.services-overview h2 { font-size: 27px; }
.services-overview p { max-width: 660px; margin: 10px 0 0; color: #bed1c8; font-size: 11px; line-height: 1.65; }
.service-stats { display: flex; align-items: center; gap: 20px; flex: none; }
.service-stats > div { min-width: 62px; padding-right: 20px; border-right: 1px solid rgba(255,255,255,.17); }
.service-stats strong, .service-stats span { display: block; }
.service-stats strong { font-family: Georgia, serif; font-size: 24px; }
.service-stats span { margin-top: 3px; color: #b9cec5; font-size: 8px; text-transform: uppercase; letter-spacing: .8px; }
.service-stats .primary-button { color: var(--green); background: #f2dfbd; box-shadow: none; white-space: nowrap; }
.service-stats .primary-button:hover { color: #fff; background: var(--green-2); }
.service-admin-grid { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 20px; align-items: start; }
.service-create-card, .service-list-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 35px rgba(34,62,52,.06); }
.service-create-card { position: sticky; top: 122px; overflow: hidden; }
.card-heading { display: flex; align-items: center; gap: 11px; padding: 21px 22px 17px; border-bottom: 1px solid #edf0ee; }
.card-heading > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-size: 15px; }
.card-heading strong, .card-heading small { display: block; }
.card-heading strong { font-family: Georgia, serif; font-size: 15px; }
.card-heading small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.service-form-grid { display: grid; gap: 12px; padding: 18px 22px; }
.service-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.price-field { position: relative; }
.price-field input { padding-right: 28px; }
.price-field > span { position: absolute; right: 11px; top: 50%; color: var(--muted); font-size: 10px; transform: translateY(-50%); }
.service-create-button { width: 100%; margin-top: 2px; font-size: 11px; }
.local-data-note { margin: 0; padding: 15px 22px 18px; border-top: 1px solid #edf0ee; color: #66746f; background: #f8faf9; font-size: 8px; line-height: 1.6; }
.local-data-note strong { color: var(--green); }
.service-list-card { overflow: hidden; }
.service-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; }
.service-list-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 19px; font-weight: 600; }
.service-list-labels, .service-admin-row { display: grid; grid-template-columns: minmax(190px, 1.7fr) 125px 112px 70px 90px 85px; gap: 10px; align-items: center; }
.service-list-labels { padding: 9px 24px; color: #7b8883; background: #f4f7f5; font-size: 7px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.service-admin-row { padding: 13px 24px; border-top: 1px solid #edf0ee; transition: .2s ease; }
.service-admin-row:hover { background: #fafcfb; }
.service-admin-row.inactive { background: #f7f8f7; opacity: .67; }
.service-main-fields { display: grid; gap: 5px; }
.service-main-fields input, .compact-field input, .compact-field select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid #d8e0dc; border-radius: 7px; outline: 0; color: var(--ink); background: #fff; font-size: 9px; }
.service-main-fields input:first-child { font-size: 10px; font-weight: 750; }
.service-main-fields input:last-child { height: 28px; color: var(--muted); font-size: 8px; }
.service-main-fields input:focus, .compact-field input:focus, .compact-field select:focus { border-color: #5b9079; box-shadow: 0 0 0 3px rgba(91,144,121,.1); }
.compact-field > span { display: none; }
.compact-field input:disabled { color: #8d9994; background: #edf1ef; cursor: not-allowed; }
.compact-price { position: relative; }
.compact-price input { padding-right: 22px; text-align: right; }
.compact-price b { position: absolute; right: 8px; top: 50%; color: var(--muted); font-size: 8px; transform: translateY(-50%); }
.service-row-actions { display: grid; justify-items: start; gap: 6px; }
.active-toggle { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 8px; font-weight: 750; cursor: pointer; }
.active-toggle input { accent-color: var(--green); }
.service-row-actions small { color: #919b97; font-size: 7px; }
.delete-service { padding: 4px 7px; border: 0; border-radius: 6px; color: #965d55; background: #faeeec; font-size: 7px; font-weight: 750; }

.document-import-card { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px 28px; align-items: center; margin-bottom: 20px; padding: 23px 25px 18px; border: 1px solid #cdded6; border-radius: 16px; background: linear-gradient(135deg, #fff 0%, #f5faf7 100%); box-shadow: 0 8px 30px rgba(34,62,52,.05); }
.document-import-card [hidden] { display: none !important; }
.document-import-copy { display: flex; align-items: flex-start; gap: 14px; }
.document-import-copy .import-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--green); box-shadow: 0 7px 18px rgba(23,79,59,.18); }
.document-import-copy h3 { margin: 2px 0 6px; font-family: Georgia, serif; font-size: 19px; font-weight: 600; }
.document-import-copy p { max-width: 660px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.document-dropzone { position: relative; min-height: 105px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 14px; border: 1.5px dashed #91b2a3; border-radius: 12px; color: var(--green); background: rgba(220,236,228,.45); text-align: center; cursor: pointer; transition: .2s ease; }
.document-dropzone:hover, .document-dropzone.dragging { border-color: var(--green); background: var(--mint); transform: translateY(-1px); }
.document-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.document-dropzone > span { font-size: 20px; line-height: 1; }
.document-dropzone strong { font-size: 13px; }
.document-dropzone small { color: var(--muted); font-size: 11px; }
.import-processing { min-height: 105px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; border-radius: 12px; color: var(--green); background: var(--mint); }
.import-processing i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-style: normal; animation: spin 1s linear infinite; }
.import-processing strong, .import-processing small { display: block; }
.import-processing strong { font-size: 13px; }
.import-processing small { max-width: 230px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.import-result { grid-column: 1 / -1; overflow: hidden; border: 1px solid #d8e3de; border-radius: 12px; background: #fff; }
.import-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-bottom: 1px solid #e8eeeb; background: #f8fbf9; }
.import-result-heading > div { display: flex; align-items: center; gap: 10px; }
.import-result-heading > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--green-2); }
.import-result-heading strong, .import-result-heading small { display: block; }
.import-result-heading strong { font-size: 13px; }
.import-result-heading small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.import-result-heading em { padding: 5px 8px; border-radius: 999px; color: #8a582f; background: var(--cream); font-size: 11px; font-style: normal; font-weight: 750; }
.company-import-preview { display: grid; grid-template-columns: repeat(4, 1fr); }
.company-import-preview > div { min-width: 0; padding: 14px 16px; border-right: 1px solid #e8eeeb; }
.company-import-preview > div:last-child { border-right: 0; }
.company-import-preview small, .company-import-preview strong { display: block; }
.company-import-preview small { margin-bottom: 5px; color: #7e8c86; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.company-import-preview strong { overflow: hidden; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; }
.service-import-preview { display: grid; }
.service-import-row { display: grid; grid-template-columns: 22px minmax(220px, 1fr) 140px 150px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #edf1ef; cursor: pointer; }
.service-import-row:hover { background: #fafcfb; }
.service-import-row input { accent-color: var(--green); }
.service-import-row span strong, .service-import-row span small { display: block; }
.service-import-row span strong { font-size: 12px; }
.service-import-row span small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.service-import-row em { color: var(--muted); font-size: 11px; font-style: normal; }
.service-import-row b { color: var(--green); font-size: 12px; text-align: right; }
.import-result-actions { display: flex; gap: 9px; padding: 14px 16px; background: #f8faf9; }
.import-privacy { grid-column: 1 / -1; margin: -5px 0 0; color: #6d7b75; font-size: 11px; line-height: 1.5; }
.import-privacy strong { color: var(--green); }

.company-shell { max-width: 1160px; margin: 30px auto; }
.company-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 20px; padding: 28px 30px; border-radius: 17px; color: #fff; background: var(--green); box-shadow: var(--shadow); }
.company-hero .section-kicker { color: #e8b47e; }
.company-hero h2 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 28px; font-weight: 600; }
.company-hero p { max-width: 670px; margin: 10px 0 0; color: #c6d8d0; font-size: 14px; line-height: 1.55; }
.company-hero-state { flex: none; display: flex; align-items: center; gap: 11px; min-width: 220px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.08); }
.company-hero-state > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: #f1dfbd; font-weight: 800; }
.company-hero-state small, .company-hero-state strong { display: block; }
.company-hero-state small { color: #e8cda4; font-size: 10px; font-weight: 800; letter-spacing: .9px; }
.company-hero-state strong { margin-top: 4px; font-size: 13px; }
.company-settings-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 20px; align-items: start; }
.company-profile-card, .company-form-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 35px rgba(34,62,52,.06); }
.company-profile-card { position: sticky; top: 122px; overflow: hidden; }
.company-logo-card { display: grid; justify-items: center; gap: 13px; padding: 27px 24px 20px; text-align: center; }
.company-logo-preview { width: 84px; height: 84px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d5dfda; border-radius: 23px; color: #fff; background: var(--green); box-shadow: 0 8px 22px rgba(23,79,59,.18); font-family: Georgia, serif; font-size: 24px; font-weight: 700; }
.company-logo-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.company-logo-card strong, .company-logo-card small { display: block; }
.company-logo-card strong { font-family: Georgia, serif; font-size: 18px; }
.company-logo-card small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.logo-actions { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; }
.upload-button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.logo-actions .text-button { font-size: 11px; }
.logo-note { margin: 12px 24px 20px; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.company-preview-details { display: grid; gap: 0; border-top: 1px solid #edf0ee; }
.company-preview-details > div { padding: 14px 22px; border-bottom: 1px solid #edf0ee; }
.company-preview-details small, .company-preview-details strong, .company-preview-details span { display: block; }
.company-preview-details small { margin-bottom: 5px; color: #82908a; font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.company-preview-details strong, .company-preview-details span { font-size: 12px; line-height: 1.5; }
.company-preview-details span { color: var(--muted); }
.company-form-card { overflow: hidden; }
.company-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 26px 19px; border-bottom: 1px solid #edf0ee; }
.company-form-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.company-form-card form { padding: 0 26px 25px; }
.company-form-card fieldset { margin: 0; padding: 22px 0; border: 0; border-bottom: 1px solid #edf0ee; }
.company-form-card legend { width: 100%; margin-bottom: 14px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.company-form-card .field span { font-size: 11px; }
.company-form-card .field input { height: 42px; font-size: 13px; }
.company-form-card .field textarea { min-height: 96px; resize: vertical; font-size: 13px; line-height: 1.55; }
.field-help { margin: -3px 0 16px; padding: 12px 14px; border-radius: 10px; color: #5d6b66; background: #f4f8f6; font-size: 12px; line-height: 1.55; }
.field-help code { color: var(--green); font-family: inherit; font-weight: 750; }
.company-form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; }

.usage-shell { max-width: 1120px; margin: 30px auto; }
.usage-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 30px; border-radius: 17px; color: #fff; background: var(--green); box-shadow: var(--shadow); }
.usage-hero .section-kicker { color: #e8b47e; }
.usage-hero h2 { font-size: 28px; }
.usage-hero p { max-width: 650px; margin: 10px 0 0; color: #c6d8d0; font-size: 14px; line-height: 1.55; }
.usage-plan { min-width: 215px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.08); }
.usage-plan small, .usage-plan strong, .usage-plan span { display: block; }
.usage-plan small { color: #e8cda4; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.usage-plan strong { margin: 7px 0 4px; font-family: Georgia, serif; font-size: 20px; }
.usage-plan span { color: #c6d8d0; font-size: 13px; }
.usage-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 20px; margin-top: 20px; }
.usage-card, .usage-stat-card, .usage-history-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 35px rgba(34,62,52,.06); }
.usage-meter-card { padding: 26px 28px; }
.usage-card-heading, .usage-history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.usage-card-heading h3, .usage-history-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 20px; font-weight: 600; }
.usage-period { padding: 7px 10px; border-radius: 999px; color: var(--green); background: var(--mint); font-size: 12px; font-weight: 750; }
.usage-meter-value { display: flex; align-items: baseline; gap: 10px; margin: 35px 0 14px; }
.usage-meter-value strong { font-family: Georgia, serif; font-size: 48px; font-weight: 600; line-height: 1; }
.usage-meter-value span { color: var(--muted); font-size: 15px; }
.usage-meter-value b { color: var(--ink); }
.usage-progress { height: 12px; overflow: hidden; border-radius: 999px; background: #e6ece9; }
.usage-progress span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--green), #4e9877); transition: width .35s ease; }
.usage-meter-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 11px; color: var(--muted); font-size: 13px; }
.usage-meter-foot strong { color: var(--green); }
.usage-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.usage-stat-card { position: relative; min-height: 145px; padding: 20px; }
.usage-stat-card small, .usage-stat-card strong { display: block; }
.usage-stat-card small { padding-right: 38px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.usage-stat-card strong { margin-top: 16px; font-family: Georgia, serif; font-size: 23px; font-weight: 600; }
.usage-stat-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.usage-stat-wide { grid-column: 1 / -1; min-height: 112px; }
.usage-stat-wide strong { font-size: 19px; }
.usage-stat-icon { position: absolute; top: 16px; right: 17px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-size: 13px; font-weight: 800; }
.usage-history-card { margin-top: 20px; overflow: hidden; }
.usage-history-heading { padding: 24px 26px 20px; }
.usage-history-labels, .usage-history-row { display: grid; grid-template-columns: 110px 140px minmax(180px, 1fr) 140px 100px; gap: 14px; align-items: center; }
.usage-history-labels { padding: 10px 26px; color: #788680; background: #f4f7f5; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.usage-history-row { min-height: 58px; padding: 10px 26px; border-top: 1px solid #edf0ee; font-size: 13px; }
.usage-history-row strong { color: var(--green); }
.usage-status { width: max-content; display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 750; }
.usage-status.sent { color: #286c4f; background: #e4f2eb; }
.usage-status.draft { color: #93613e; background: var(--cream); }
.usage-mvp-note { margin: 16px 2px 0; padding: 15px 17px; border: 1px solid #d6e2dc; border-radius: 11px; color: #5d6b66; background: #f5f9f7; font-size: 13px; line-height: 1.55; }
.usage-mvp-note strong { color: var(--green); }

.outlook-hero { max-width: 1120px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 45px; align-items: center; margin: 48px auto 28px; }
.outlook-hero h2 { margin: 11px 0 16px; font-size: clamp(29px, 3vw, 42px); line-height: 1.08; }
.outlook-hero > div > p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.concept-label { width: max-content; margin-bottom: 22px; color: #864f2f; background: #f6e3cf; }
.honesty-note { display: block; max-width: 380px; margin-top: 12px; color: #7b8782; font-size: 9px; line-height: 1.5; }
.outlook-mock { overflow: hidden; border: 1px solid #cfd9d4; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.mock-window-bar { height: 39px; display: flex; align-items: center; gap: 6px; padding: 0 13px; color: #6f7d78; background: #e9eeeb; font-size: 8px; }
.mock-window-bar span { width: 7px; height: 7px; border-radius: 50%; background: #c0cac5; }
.mock-window-bar strong { margin-left: 7px; }
.mock-layout { display: grid; grid-template-columns: 1fr 210px; min-height: 360px; }
.mock-mail { padding: 33px 28px; }
.mock-mail small { color: #77847f; font-size: 8px; }
.mock-mail h3 { margin: 12px 0 22px; font-family: Georgia, serif; font-size: 17px; }
.mock-mail p { padding: 16px 0; border-top: 1px solid #e4e9e6; color: #5f6b67; font-size: 10px; line-height: 1.75; }
.addin-pane { padding: 15px; border-left: 1px solid #dfe6e2; background: #f8faf9; }
.addin-brand { display: flex; align-items: center; gap: 7px; padding-bottom: 13px; border-bottom: 1px solid #dfe6e2; }
.addin-brand > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--green); font-family: Georgia, serif; }
.addin-brand strong { font-size: 12px; }
.addin-brand em { margin-left: auto; padding: 3px 5px; border-radius: 4px; color: #8d603f; background: var(--cream); font-size: 6px; font-style: normal; text-transform: uppercase; }
.scan-status { display: flex; align-items: center; gap: 8px; margin: 15px 0; padding: 10px; border-radius: 8px; color: var(--green); background: #e6f0eb; font-size: 8px; }
.scan-status i { font-style: normal; }
.scan-status.scanning i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.detected-field, .detected-grid > div { margin-bottom: 8px; padding: 9px; border: 1px solid #dce4e0; border-radius: 8px; background: #fff; }
.detected-field small, .detected-field strong, .detected-field span, .detected-grid small, .detected-grid strong { display: block; }
.detected-field small, .detected-grid small { color: #88948f; font-size: 6px; text-transform: uppercase; }
.detected-field strong, .detected-grid strong { margin-top: 4px; font-size: 8px; }
.detected-field span { margin-top: 4px; color: #52625c; font-size: 7px; }
.detected-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.addin-pane button { width: 100%; padding: 10px; border: 0; border-radius: 7px; color: #9db1a8; background: #dce5e1; font-size: 8px; }
.integration-flow, .mvp-boundary { max-width: 1120px; display: grid; gap: 14px; margin: 18px auto; }
.integration-flow { grid-template-columns: repeat(3, 1fr); }
.integration-flow > div, .mvp-boundary > div { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.integration-flow span, .mvp-boundary span { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 8px; color: var(--green); background: var(--mint); font-size: 9px; font-weight: 800; }
.integration-flow strong, .mvp-boundary strong { font-family: Georgia, serif; font-size: 13px; }
.integration-flow p, .mvp-boundary p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.mvp-boundary { grid-template-columns: 1fr 1fr; }
.mvp-boundary > div { display: grid; grid-template-columns: 32px 1fr; align-items: start; }
.mvp-boundary span { grid-row: 1 / 3; }

.account-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(11,31,24,.58); backdrop-filter: blur(5px); }
.account-dialog { width: min(720px, 100%); max-height: min(820px, calc(100vh - 48px)); overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 28px 90px rgba(7,28,21,.3); }
.account-dialog > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 27px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(9px); }
.account-dialog h2 { margin: 4px 0 0; font: 600 26px Georgia, serif; }
.account-summary { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; margin: 23px 27px 12px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.account-summary > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--green); font-size: 12px; font-weight: 850; }
.account-summary strong, .account-summary small { display: block; }
.account-summary strong { font-size: 12px; }
.account-summary small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.account-summary em { padding: 6px 9px; border-radius: 999px; color: var(--green); background: var(--mint); font-size: 8px; font-style: normal; font-weight: 800; }
.organization-summary { display: flex; align-items: center; gap: 9px; margin: 0 27px 20px; padding: 12px 15px; border-radius: 10px; color: #fff; background: var(--green); }
.organization-summary small { color: #b9cec5; font-size: 7px; font-weight: 800; letter-spacing: .8px; }
.organization-summary strong { font-size: 10px; }
.organization-summary span { margin-left: auto; color: #b9cec5; font-size: 8px; }
.team-section { margin: 0 27px 18px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; }
.team-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.team-heading h3 { margin: 3px 0 0; font: 600 17px Georgia, serif; }
.team-heading > small, .team-section > p { color: var(--muted); font-size: 8px; }
.team-section > p { margin: 12px 0 0; line-height: 1.5; }
.account-settings-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.account-settings-form .field { margin: 0; }
.account-settings-form .primary-button { min-height: 39px; padding: 9px 13px; white-space: nowrap; }
.account-recovery-button { margin-top: 12px; }
.invite-form { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; align-items: end; gap: 10px; }
.invite-form .field { margin: 0; }
.invite-form .primary-button { min-height: 39px; padding: 9px 13px; white-space: nowrap; }
.team-list, .invitation-list { display: grid; gap: 8px; }
.team-row, .invitation-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; background: var(--soft); }
.invitation-row { grid-template-columns: minmax(0, 1fr) auto; }
.team-row > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-size: 9px; font-weight: 850; }
.team-row strong, .team-row small, .invitation-row strong, .invitation-row small { display: block; }
.team-row strong, .invitation-row strong { font-size: 10px; }
.team-row small, .invitation-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.team-row-actions { display: flex; align-items: center; gap: 7px; }
.team-row-actions select, .team-row-actions button, .invitation-row button { min-height: 30px; padding: 5px 8px; border: 1px solid #d4ded9; border-radius: 7px; color: var(--green); background: #fff; font-size: 8px; }
.team-row-actions button, .invitation-row button { color: #98564f; }
.team-empty { padding: 18px; border-radius: 9px; color: var(--muted); background: var(--soft); font-size: 9px; text-align: center; }
.account-dialog > footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 27px 23px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); }
.danger-button { color: #964f48; }
.account-dialog > footer span { color: #6b7b74; font-size: 8px; }

.toast { position: fixed; right: 25px; bottom: 25px; z-index: 90; padding: 12px 16px; border-radius: 9px; color: #fff; background: #183f32; box-shadow: var(--shadow); font-size: 10px; transform: translateY(25px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
  .auth-stage { grid-template-columns: .85fr 1.15fr; }
  .auth-story { padding: 38px; }
  .app-shell { grid-template-columns: 82px minmax(0, 1fr); }
  .sidebar { padding: 24px 13px; }
  .brand { justify-content: center; margin: 0 0 38px; }
  .brand > span:last-child, .nav-item:not(.active)::after, .nav-item { font-size: 0; }
  .nav-item { justify-content: center; padding: 12px 8px; }
  .nav-icon { font-size: 18px; }
  .nav-count { position: absolute; margin: -26px 0 0 25px; font-size: 8px; }
  .demo-pill, .company-mini > div:not(.avatar) { display: none; }
  .company-mini { justify-content: center; border: 0; padding: 0; }
  .workflow-grid { grid-template-columns: minmax(0, 1fr); }
  .context-card { position: relative; top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .context-top, .context-event { border: 0; padding: 0; }
  .context-lines, .context-total { grid-column: 1 / -1; }
  .service-admin-grid { grid-template-columns: 1fr; }
  .service-create-card { position: static; }
  .company-settings-grid { grid-template-columns: 1fr; }
  .company-profile-card { position: static; }
  .document-import-card { grid-template-columns: minmax(0, 1fr) 280px; }
  .company-import-preview { grid-template-columns: 1fr 1fr; }
  .company-import-preview > div:nth-child(2) { border-right: 0; }
  .company-import-preview > div:nth-child(-n+2) { border-bottom: 1px solid #e8eeeb; }
  .service-import-row { grid-template-columns: 22px minmax(180px, 1fr) 120px; }
  .service-import-row b { grid-column: 2 / -1; text-align: left; }
  .usage-grid { grid-template-columns: 1fr; }
  .outlook-hero { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .auth-gate { padding: 0; place-items: stretch; }
  .auth-stage { min-height: 100vh; display: block; border: 0; border-radius: 0; }
  .auth-story { min-height: 215px; justify-content: flex-start; gap: 25px; padding: 28px 24px; }
  .auth-story h1 { margin: 9px 0 0; font-size: 35px; }
  .auth-story p, .auth-trust { display: none; }
  .auth-card { min-height: calc(100vh - 215px); align-content: start; padding: 34px 24px; }
  .auth-links { align-items: flex-start; flex-direction: column; }
  .account-modal { padding: 0; place-items: stretch; }
  .account-dialog { width: 100%; max-height: 100vh; border-radius: 0; }
  .account-dialog > header, .account-dialog > footer { padding-left: 18px; padding-right: 18px; }
  .account-summary, .organization-summary, .team-section { margin-left: 18px; margin-right: 18px; }
  .account-settings-form { grid-template-columns: 1fr; }
  .organization-summary { align-items: flex-start; flex-direction: column; }
  .organization-summary span { margin-left: 0; }
  .invite-form { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: 34px minmax(0, 1fr); }
  .invitation-row { grid-template-columns: 1fr; }
  .team-row-actions { grid-column: 2; justify-self: start; }
  .invitation-row button { justify-self: start; }
  .app-shell { display: block; }
  .sidebar { position: fixed; top: auto; bottom: 0; z-index: 30; width: 100%; height: 66px; flex-direction: row; padding: 8px 13px; }
  .brand, .sidebar-foot { display: none; }
  .main-nav { width: 100%; grid-template-columns: repeat(6, 1fr); gap: 3px; }
  .nav-item { flex-direction: column; gap: 3px; color: #bcd0c7; font-size: 8px !important; }
  .nav-item.active { box-shadow: inset 0 -2px #e8b47e; }
  .nav-icon { font-size: 15px; }
  .nav-count { margin: -24px 0 0 27px; }
  .topbar { min-height: 82px; padding: 17px 18px; }
  .save-state { display: none; }
  .account-button div { display: none; }
  .account-button { padding-right: 6px; }
  .view { padding: 0 12px 90px; }
  .progress-wrap { justify-content: space-around; padding: 0; }
  .progress-step div, .progress-line { display: none; }
  .field-grid, .selection-summary, .quote-addresses, .quote-bottom, .integration-flow, .mvp-boundary { grid-template-columns: 1fr; }
  .panel-heading, .form-section, .panel-footer { padding-left: 18px; padding-right: 18px; }
  .info-banner, .panel-intro, .inline-add, .inline-add-note, .selection-summary, .success-banner, .quote-paper { margin-left: 18px; margin-right: 18px; }
  .email-import-card { margin-left: 18px; margin-right: 18px; }
  .quote-editor { margin-left: 18px; margin-right: 18px; padding: 17px; }
  .quote-editor-heading { align-items: flex-start; flex-direction: column; }
  .quote-add-row, .quote-adjustment-row { grid-template-columns: 1fr 1fr; }
  .quote-add-row label:first-child, .quote-add-row label:nth-child(2), .adjustment-label-field { grid-column: 1 / -1; }
  .quote-add-row button, .quote-adjustment-row button { width: 100%; }
  .email-import-heading, .email-import-actions { align-items: flex-start; flex-direction: column; }
  .ai-review-panel { grid-template-columns: 1fr; }
  .catalog-item { grid-template-columns: 28px minmax(0, 1fr) 65px; padding: 11px 18px; }
  .catalog-item .price-wrap { grid-column: 2 / -1; }
  .inline-add { grid-template-columns: 1fr 1fr; }
  .inline-add input:first-child { grid-column: 1 / -1; }
  .selection-summary { gap: 12px; }
  .quote-paper { padding: 24px 16px 20px; overflow-x: auto; }
  .quote-table { min-width: 570px; }
  .quote-footer { display: grid; }
  .preview-heading { display: block; }
  .preview-actions { justify-content: flex-start; margin-top: 14px; }
  .context-card { display: none; }
  .outlook-hero { margin-top: 26px; }
  .mock-layout { grid-template-columns: 1fr; }
  .mock-mail { display: none; }
  .addin-pane { border-left: 0; min-height: 330px; }
  .draft-card { grid-template-columns: 1fr auto; }
  .draft-card .amount { grid-column: 1 / -1; }
  .services-shell { margin-top: 18px; }
  .company-shell { margin-top: 18px; }
  .document-import-card { grid-template-columns: 1fr; padding: 20px 18px 16px; }
  .document-import-copy { display: grid; }
  .document-dropzone, .import-processing { min-height: 115px; }
  .company-import-preview { grid-template-columns: 1fr; }
  .company-import-preview > div { border-right: 0; border-bottom: 1px solid #e8eeeb; }
  .company-import-preview > div:nth-child(2) { border-right: 0; }
  .company-import-preview > div:nth-child(-n+2) { border-bottom: 1px solid #e8eeeb; }
  .company-import-preview > div:last-child { border-bottom: 0; }
  .service-import-row { grid-template-columns: 22px minmax(0, 1fr); }
  .service-import-row em, .service-import-row b { grid-column: 2; text-align: left; }
  .import-result-heading { align-items: flex-start; }
  .import-result-heading em { flex: none; }
  .import-result-actions { display: grid; }
  .company-hero { display: block; padding: 23px 20px; }
  .company-hero h2 { font-size: 25px; }
  .company-hero-state { min-width: 0; margin-top: 20px; }
  .company-form-heading { padding: 20px 18px 16px; }
  .company-form-card form { padding: 0 18px 20px; }
  .company-form-actions { display: grid; }
  .services-overview { display: block; padding: 23px 20px; }
  .service-stats { flex-wrap: wrap; margin-top: 20px; }
  .service-stats .primary-button { width: 100%; }
  .service-list-heading { align-items: flex-start; padding: 20px 18px 16px; }
  .service-list-labels { display: none; }
  .service-admin-row { grid-template-columns: 1fr 1fr; padding: 15px 18px; }
  .service-main-fields { grid-column: 1 / -1; }
  .compact-field > span { display: block; margin: 0 0 5px 1px; color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; }
  .service-row-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 3px; }
  .usage-shell { margin-top: 18px; }
  .usage-hero { display: block; padding: 23px 20px; }
  .usage-hero h2 { font-size: 25px; }
  .usage-plan { min-width: 0; margin-top: 20px; }
  .usage-meter-card { padding: 22px 20px; }
  .usage-card-heading, .usage-history-heading { display: block; }
  .usage-period, .usage-history-heading .status-badge { display: inline-block; margin-top: 13px; }
  .usage-meter-value { margin-top: 28px; }
  .usage-meter-value strong { font-size: 42px; }
  .usage-stat-grid { grid-template-columns: 1fr; }
  .usage-stat-wide { grid-column: auto; }
  .usage-history-heading { padding: 21px 19px 17px; }
  .usage-history-labels { display: none; }
  .usage-history-row { grid-template-columns: 1fr 1fr; gap: 9px 18px; padding: 15px 19px; }
  .usage-history-row span, .usage-history-row strong { display: grid; gap: 3px; }
  .usage-history-row [data-label]::before { content: attr(data-label); color: #82908a; font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .progress-wrap, .context-card, .panel-heading, .success-banner, .panel-footer, .screen-only, .view:not(#workflowView), .step-panel:not([data-panel="3"]) { display: none !important; }
  .app-shell, .workflow-grid { display: block; }
  .view { display: block !important; padding: 0; }
  .step-panel[data-panel="3"] { display: block; border: 0; box-shadow: none; }
  .quote-paper { margin: 0; padding: 12mm; border: 0; box-shadow: none; }
  .editable-copy:hover, [contenteditable="true"]:focus { border-color: transparent; background: transparent; }
}
.outlook-inbox-card{margin-top:24px}.outlook-request-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px}.outlook-request-row span{display:grid;gap:4px}.outlook-request-row small{color:var(--muted)}.outlook-request-row button{border:0;border-radius:10px;background:var(--green,#155b43);color:#fff;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer}@media(max-width:700px){.outlook-request-row{grid-template-columns:1fr}.outlook-request-row button{width:100%}}

.billing-card{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 0 24px;padding:28px 30px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 16px 44px rgba(31,54,74,.08)}.billing-card h3{margin:6px 0 8px;font-size:22px}.billing-card p{margin:0;color:var(--muted);line-height:1.55}.billing-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.billing-actions button{white-space:nowrap}@media(max-width:760px){.billing-card{align-items:stretch;flex-direction:column}.billing-actions{justify-content:stretch}.billing-actions button{width:100%}}

/* Public product page */
.marketing-site { min-height: 100vh; background: #f4f7fa; }
.marketing-nav { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 clamp(24px, 6vw, 96px); border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; background: rgba(13,29,43,.72); backdrop-filter: blur(18px); }
.marketing-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.marketing-brand span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 11px; color: #17324d; background: #fff; font: 800 22px Georgia, serif; }
.marketing-brand strong { font-size: 23px; letter-spacing: -.8px; }
.marketing-links { display: flex; align-items: center; gap: 32px; }
.marketing-links a { color: #d9e5ee; text-decoration: none; font-size: 12px; font-weight: 650; }
.marketing-links a:hover { color: #fff; }
.marketing-actions { display: flex; align-items: center; gap: 10px; }
.marketing-login { padding: 10px 14px; border: 0; color: #fff; background: transparent; font-size: 11px; font-weight: 750; }
.marketing-cta { min-height: 48px; padding: 0 22px; border: 1px solid #6c9bbc; border-radius: 9px; color: #fff; background: #2e6d97; box-shadow: 0 12px 28px rgba(5,22,36,.22); font-size: 12px; font-weight: 800; transition: .2s ease; }
.marketing-cta:hover { transform: translateY(-2px); background: #377aa7; }
.marketing-cta.small { min-height: 39px; padding: 0 16px; font-size: 10px; }
.marketing-hero { position: relative; height: min(880px, 92vh); min-height: 680px; display: grid; align-items: center; overflow: hidden; background: #101f2c; }
.marketing-hero-media { position: absolute; inset: -3% 0 0; width: 100%; height: 106%; object-fit: cover; opacity: var(--hero-opacity, 1); transform: scale(var(--hero-scale, 1)); transform-origin: center top; will-change: opacity, transform; }
.marketing-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,23,34,.98) 0%, rgba(11,27,40,.84) 39%, rgba(11,27,40,.28) 70%, rgba(11,27,40,.16)), linear-gradient(0deg, rgba(9,21,31,.65), transparent 50%); }
.marketing-hero-content { position: relative; z-index: 2; width: min(1240px, calc(100% - 48px)); margin: 50px auto 0; color: #fff; }
.marketing-kicker, .marketing-heading > span, .solution-copy > span, .pricing-copy > span, .marketing-final > span { display: block; margin-bottom: 18px; color: #8ab4d1; font-size: 11px; font-weight: 850; letter-spacing: 2px; text-transform: uppercase; }
.marketing-hero h1 { max-width: 800px; font: 600 clamp(46px, 6.3vw, 86px)/.99 Georgia, serif; letter-spacing: -2.6px; }
.marketing-hero p { max-width: 650px; margin: 27px 0 31px; color: #d0dce5; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.hero-actions a { color: #fff; font-size: 12px; font-weight: 750; text-decoration: none; }
.hero-actions a span { margin-left: 8px; color: #8ab4d1; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px 30px; margin-top: 52px; color: #aebfcb; font-size: 11px; }
.marketing-main { overflow: hidden; }
.problem-section, .solution-section, .pricing-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0; }
.marketing-heading { max-width: 770px; }
.marketing-heading h2, .solution-copy h2, .pricing-copy h2, .marketing-final h2 { margin: 0; font: 600 clamp(35px, 4.4vw, 58px)/1.07 Georgia, serif; letter-spacing: -1.4px; }
.marketing-heading p, .solution-copy p, .pricing-copy p { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); box-shadow: 0 20px 60px rgba(30,50,70,.08); }
.problem-grid article { min-height: 245px; padding: 34px; background: #fff; }
.problem-grid b { color: #7195ae; font-size: 11px; letter-spacing: 1.3px; }
.problem-grid h3, .benefit-grid h3, .workflow-marketing-grid h3 { margin: 54px 0 12px; font-size: 18px; }
.problem-grid p, .benefit-grid p, .workflow-marketing-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.solution-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; padding-top: 35px; }
.benefit-grid { display: grid; gap: 14px; }
.benefit-grid article { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.benefit-grid article > span { width: 48px; height: 48px; display: grid; place-items: center; grid-row: 1 / 3; border-radius: 12px; color: #285f84; background: #e7f0f6; font-size: 19px; font-weight: 800; }
.benefit-grid h3 { margin: 0 0 6px; }
.workflow-section { padding: 110px max(24px, calc((100vw - 1240px) / 2)); color: #fff; background: #172d40; }
.marketing-heading.light > span { color: #8ab4d1; }
.workflow-marketing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 62px; }
.workflow-marketing-grid article { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.2); }
.workflow-marketing-grid b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #132b3f; background: #8fb7d2; }
.workflow-marketing-grid h3 { margin: 4px 0 9px; }
.workflow-marketing-grid p { color: #b7c8d4; }
.workflow-note { display: flex; align-items: center; gap: 15px; margin-top: 58px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: #c7d4dc; background: rgba(255,255,255,.05); font-size: 12px; }
.workflow-note strong { color: #fff; }
.pricing-section { display: grid; grid-template-columns: 1fr 480px; gap: 90px; align-items: center; }
.price-card { padding: 38px; border: 1px solid #cbd9e4; border-radius: 20px; background: #fff; box-shadow: 0 28px 70px rgba(29,54,76,.13); }
.price-card > div { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.price-card > div span, .price-card > div small { display: block; color: var(--muted); }
.price-card > div span { color: #285f84; font-size: 11px; font-weight: 850; letter-spacing: 1.5px; text-transform: uppercase; }
.price-card > div strong { display: block; margin: 13px 0 4px; font: 600 56px Georgia, serif; }
.price-card ul { display: grid; gap: 14px; margin: 28px 0; padding: 0; list-style: none; }
.price-card li { color: #465768; font-size: 13px; }
.price-card li::before { content: "✓"; margin-right: 10px; color: #39789f; font-weight: 800; }
.price-card .marketing-cta { width: 100%; }
.price-card > p { margin: 16px 0 0; color: #7b8996; font-size: 10px; line-height: 1.5; text-align: center; }
.marketing-final { padding: 100px 24px 120px; color: #fff; background: linear-gradient(135deg, #234966, #112a3d); text-align: center; }
.marketing-final h2 { max-width: 800px; margin: 0 auto 34px; }
.marketing-cta.light { color: #17324d; border-color: #fff; background: #fff; }
.marketing-site + .auth-gate { position: relative; z-index: 80; }

@media (max-width: 900px) {
  .marketing-links { display: none; }
  .solution-section, .pricing-section { grid-template-columns: 1fr; gap: 50px; }
  .problem-grid, .workflow-marketing-grid { grid-template-columns: 1fr; }
  .problem-grid article { min-height: 190px; }
  .pricing-section { width: min(680px, calc(100% - 48px)); }
}
@media (max-width: 600px) {
  .marketing-nav { height: 66px; padding: 0 16px; }
  .marketing-actions .marketing-cta { display: none; }
  .marketing-hero { min-height: 720px; height: 92vh; }
  .marketing-hero-content { width: calc(100% - 36px); }
  .marketing-hero h1 { font-size: 43px; letter-spacing: -1.5px; }
  .marketing-hero p { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-trust { gap: 12px; margin-top: 35px; }
  .problem-section, .solution-section, .pricing-section { width: calc(100% - 36px); padding: 78px 0; }
  .problem-grid { margin-top: 42px; }
  .problem-grid h3 { margin-top: 30px; }
  .benefit-grid article { grid-template-columns: 42px 1fr; padding: 20px; }
  .benefit-grid article > span { width: 42px; height: 42px; }
  .workflow-section { padding: 78px 18px; }
  .workflow-note { align-items: flex-start; flex-direction: column; }
  .price-card { padding: 28px 22px; }
  .auth-back { top: 13px; left: 22px; }
}
