
:root {
  --ink: #14231f;
  --ink-soft: #53635d;
  --line: #dce5e1;
  --surface: #ffffff;
  --surface-soft: #f3f7f5;
  --canvas: #eef4f1;
  --brand: #0b6b4f;
  --brand-dark: #084b39;
  --brand-light: #ddf4eb;
  --accent: #f2b84b;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --warning: #9a6700;
  --warning-soft: #fff8e7;
  --info: #175cd3;
  --info-soft: #eff8ff;
  --success: #067647;
  --success-soft: #ecfdf3;
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, .06);
  --shadow-md: 0 14px 35px rgba(16, 44, 34, .09);
  --radius: 14px;
  --radius-lg: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface); color: var(--ink); line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 3rem); }
h3 { font-size: 1.08rem; }
.muted { color: var(--ink-soft); }
.eyebrow { margin-bottom: .65rem; color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-light { color: #8de1c2; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 1000; transform: translateY(-150%); padding: .65rem 1rem; border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #4a9fff; outline-offset: 2px; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .5rem; padding: .66rem 1rem; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 750; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { background: var(--brand); color: white; }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { border-color: #bac9c3; background: white; color: var(--ink); }
.button-secondary:hover, .button-ghost:hover { border-color: var(--brand); color: var(--brand); }
.button-ghost { border-color: transparent; background: transparent; }
.button-inverse { background: white; color: var(--brand-dark); }
.button-large { min-height: 50px; padding: .85rem 1.25rem; }
.button-small { min-height: 34px; padding: .4rem .68rem; font-size: .82rem; }
.button-full { width: 100%; }
.button-danger { border-color: #fecdca; background: var(--danger-soft); color: var(--danger); }
.icon-button { display: inline-grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }

.brand-lockup { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1rem; font-weight: 850; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--brand); color: white; font-weight: 900; }
.brand-lockup-light { color: white; }
.marketing-header { display: flex; max-width: 1240px; min-height: 78px; margin: 0 auto; padding: 0 24px; align-items: center; justify-content: space-between; gap: 2rem; }
.marketing-header nav, .header-actions { display: flex; align-items: center; gap: 1.5rem; }
.marketing-header nav a { color: var(--ink-soft); font-size: .92rem; font-weight: 650; text-decoration: none; }
.marketing-header nav a:hover { color: var(--brand); }

.hero { display: grid; max-width: 1240px; min-height: 650px; margin: 0 auto; padding: 90px 24px 110px; align-items: center; grid-template-columns: 1.07fr .93fr; gap: clamp(3rem, 7vw, 7rem); }
.hero-copy h1 { max-width: 780px; margin-bottom: 1.4rem; }
.hero-lede { max-width: 680px; color: var(--ink-soft); font-size: 1.18rem; }
.hero-actions { display: flex; margin: 2rem 0 1.2rem; gap: .75rem; flex-wrap: wrap; }
.trust-note { color: var(--ink-soft); font-size: .88rem; }
.hero-product { position: relative; padding: 1.2rem; overflow: hidden; border: 1px solid #cee0d8; border-radius: var(--radius-lg); background: linear-gradient(145deg, white, #f5fbf8); box-shadow: var(--shadow-md); }
.hero-product::before { position: absolute; width: 240px; height: 240px; top: -140px; right: -80px; border-radius: 50%; background: #c9f1e2; content: ""; filter: blur(3px); }
.preview-top, .preview-query, .preview-metrics, .preview-list { position: relative; display: flex; align-items: center; }
.preview-top { gap: .55rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: .83rem; font-weight: 700; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(242,184,75,.18); }
.preview-status { margin-left: auto; padding: .28rem .55rem; border-radius: 999px; background: var(--warning-soft); color: var(--warning); }
.preview-query { justify-content: space-between; margin: 1.35rem 0; font-size: 1.1rem; }
.preview-query strong { padding: .3rem .55rem; border-radius: 7px; background: var(--surface-soft); font-size: .75rem; }
.preview-progress { height: 9px; overflow: hidden; border-radius: 999px; background: #dce9e3; }
.preview-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.preview-metrics { display: grid; margin: 1.5rem 0; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.preview-metrics div { padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.preview-metrics small { display: block; min-height: 2.5em; color: var(--ink-soft); font-size: .7rem; }
.preview-metrics strong { font-size: 1.35rem; }
.preview-list { display: grid; padding: 1rem; border-radius: 12px; background: var(--ink); color: white; grid-template-columns: 1fr auto; gap: .75rem; font-size: .78rem; }
.preview-list strong { color: #8de1c2; font-weight: 650; }
.marketing-section { max-width: 1240px; margin: 0 auto; padding: 110px 24px; }
.section-heading { max-width: 680px; margin-bottom: 3rem; }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-grid article { padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.feature-grid article p { margin-bottom: 0; color: var(--ink-soft); font-size: .92rem; }
.feature-number { display: inline-block; margin-bottom: 2rem; color: var(--brand); font-size: .75rem; font-weight: 800; }
.pricing-section { max-width: none; background: var(--surface-soft); }
.pricing-section > * { max-width: 1192px; margin-right: auto; margin-left: auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pricing-card { position: relative; display: flex; min-height: 410px; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; flex-direction: column; }
.pricing-card-featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.pricing-label { position: absolute; top: -13px; right: 1rem; padding: .3rem .7rem; border-radius: 999px; background: var(--brand); color: white; font-size: .72rem; font-weight: 800; }
.pricing-card h3 { min-height: 2.5em; font-size: 1.4rem; }
.pricing-card .button { margin-top: auto; }
.check-list { padding: 0; list-style: none; color: var(--ink-soft); font-size: .88rem; }
.check-list li { margin: .7rem 0; }
.check-list li::before { margin-right: .55rem; color: var(--success); content: "✓"; font-weight: 900; }
.cta-panel { display: flex; max-width: 1192px; margin: 90px auto; padding: 3rem; align-items: center; justify-content: space-between; gap: 2rem; border-radius: var(--radius-lg); background: var(--brand-dark); color: white; }
.cta-panel h2 { margin-bottom: 0; }
.marketing-footer { display: grid; max-width: 1240px; margin: 0 auto; padding: 55px 24px; border-top: 1px solid var(--line); grid-template-columns: 1fr auto; gap: 1rem 3rem; color: var(--ink-soft); font-size: .84rem; }
.marketing-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.marketing-footer > p { grid-column: 1 / -1; }

/* Public landing page */
.marketing-header { position: relative; z-index: 20; background: rgba(255,255,255,.96); }
.landing-hero { position: relative; min-height: 690px; }
.landing-hero::after { position: absolute; z-index: -1; width: 430px; height: 430px; right: -180px; bottom: 40px; border: 1px solid #dbe9e3; border-radius: 50%; content: ""; opacity: .7; }
.hero-kicker { display: inline-flex; margin-bottom: 1.2rem; align-items: center; gap: .6rem; color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero-kicker span { width: 25px; height: 2px; border-radius: 2px; background: var(--brand); }
.landing-hero .hero-product { background: #f7fbf9; }
.landing-hero .preview-query { margin-bottom: .85rem; gap: 1rem; }
.preview-query div { display: grid; gap: .15rem; }
.preview-query small { color: var(--ink-soft); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.preview-criteria { position: relative; display: flex; margin-bottom: 1.2rem; gap: .5rem; flex-wrap: wrap; }
.preview-criteria span { padding: .28rem .52rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink-soft); font-size: .7rem; font-weight: 700; }
.landing-hero .preview-metrics strong { font-size: .92rem; }
.preview-caption { position: relative; margin: .9rem 0 -.2rem; color: var(--ink-soft); font-size: .68rem; text-align: center; }
.value-strip { padding: 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); color: white; }
.value-strip ul { display: grid; max-width: 1240px; margin: 0 auto; padding: 1.1rem 0; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; }
.value-strip li { display: flex; min-height: 42px; padding: .45rem .8rem; align-items: center; gap: .55rem; border-right: 1px solid rgba(255,255,255,.13); color: #dceae5; font-size: .73rem; font-weight: 700; }
.value-strip li:last-child { border-right: 0; }
.value-strip li span { color: #78d5b4; font-size: .64rem; font-weight: 850; }
.problem-solution-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.problem-solution-section .section-heading { margin-bottom: 0; }
.problem-solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.problem-solution-grid article { padding: clamp(1.4rem, 3vw, 2.1rem); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.problem-card { background: var(--surface-soft); }
.solution-card { background: var(--brand-dark); color: white; box-shadow: var(--shadow-md); }
.problem-solution-grid h3 { font-size: 1.35rem; }
.problem-solution-grid ul { margin: 1.5rem 0 0; padding-left: 1.15rem; color: var(--ink-soft); font-size: .88rem; }
.problem-solution-grid li { margin: .7rem 0; }
.card-label { color: var(--brand); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.solution-card .card-label { color: #8de1c2; }
.solution-card > p:not(.card-label) { color: #c9e0d8; }
.solution-flow { display: flex; margin-top: 2rem; align-items: center; justify-content: space-between; gap: .35rem; color: #91dfc3; font-size: .72rem; font-weight: 800; }
.solution-flow span:nth-child(even) { color: rgba(255,255,255,.45); }
.how-section { max-width: none; background: var(--surface-soft); }
.how-section > * { max-width: 1192px; margin-right: auto; margin-left: auto; }
.steps-grid { display: grid; margin: 0 auto; padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; list-style: none; }
.steps-grid li { position: relative; min-height: 230px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.steps-grid li > span { display: grid; width: 34px; height: 34px; margin-bottom: 3.4rem; place-items: center; border-radius: 10px; background: var(--brand-light); color: var(--brand); font-size: .8rem; font-weight: 900; }
.steps-grid li:not(:last-child)::after { position: absolute; z-index: 2; width: 1rem; height: 1px; top: 2.55rem; right: -1rem; background: #a9beb5; content: ""; }
.steps-grid p { margin: 0; color: var(--ink-soft); font-size: .84rem; }
.features-section .section-heading { max-width: 760px; }
.landing-feature-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.landing-feature-grid article { min-height: 230px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.landing-feature-grid article:hover { transform: translateY(-3px); border-color: #b2cec2; box-shadow: var(--shadow-sm); }
.feature-icon { display: grid; width: 38px; height: 38px; margin-bottom: 2.8rem; place-items: center; border-radius: 11px; background: var(--brand-light); color: var(--brand-dark); font-size: .68rem; font-weight: 900; letter-spacing: .03em; }
.product-preview-section { max-width: none; padding: 110px max(24px, calc((100vw - 1192px) / 2)); background: var(--ink); color: white; }
.product-preview-section .section-heading > p:last-child { color: #b8cbc4; }
.dashboard-preview { display: grid; min-height: 520px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); background: var(--canvas); color: var(--ink); grid-template-columns: 210px minmax(0, 1fr); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.dashboard-preview > aside { display: flex; padding: 1.3rem; background: #0c2f25; color: white; flex-direction: column; }
.preview-brand { display: flex; align-items: center; gap: .65rem; font-weight: 850; }
.preview-brand span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: #1d8869; }
.dashboard-preview aside ul { display: grid; margin: 3rem 0; padding: 0; gap: .45rem; list-style: none; color: #bcd4cb; font-size: .78rem; }
.dashboard-preview aside li { padding: .65rem .75rem; border-radius: 8px; }
.dashboard-preview aside li.active { background: rgba(255,255,255,.1); color: white; }
.dashboard-preview aside small { margin-top: auto; color: #8de1c2; font-weight: 800; }
.preview-workspace { min-width: 0; padding: clamp(1.25rem, 4vw, 2.5rem); }
.preview-workspace-head { display: flex; margin-bottom: 1.5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.preview-workspace-head div { display: grid; }
.preview-workspace-head small, .preview-stat-grid small { color: var(--ink-soft); font-size: .7rem; font-weight: 700; }
.preview-workspace-head strong { font-size: 1.45rem; }
.status-badge { display: inline-flex; padding: .35rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status-success { background: var(--success-soft); color: var(--success); }
.preview-stat-grid { display: grid; margin-bottom: 1.2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.preview-stat-grid div { display: grid; padding: 1rem; border: 1px solid var(--line); border-radius: 11px; background: white; gap: .3rem; }
.preview-stat-grid strong { font-size: .9rem; }
.preview-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.preview-table { width: 100%; min-width: 690px; border-collapse: collapse; font-size: .78rem; }
.preview-table th, .preview-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.preview-table th { background: #f7faf8; color: var(--ink-soft); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.preview-table td:first-child { display: grid; gap: .12rem; }
.preview-table td small { color: var(--ink-soft); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; }
.status-dot.success { background: var(--success); }
.status-dot.warning { background: var(--warning); }
.pricing-card { min-height: 610px; }
.pricing-card h3 { min-height: 2em; margin-bottom: .7rem; font-size: 1.55rem; }
.plan-allowances { display: grid; margin: 1rem 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; gap: .55rem; }
.plan-allowances li { display: grid; padding: .7rem; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf9; gap: .1rem; }
.plan-allowances strong { font-size: 1rem; }
.plan-allowances span { color: var(--ink-soft); font-size: .66rem; }
.plan-feature-list { margin-bottom: 1.4rem; }
.pricing-footnote { margin-top: 1.5rem; color: var(--ink-soft); font-size: .78rem; text-align: center; }
.faq-section { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 7vw, 7rem); }
.faq-section .section-heading { position: sticky; top: 2rem; align-self: start; margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 1.35rem 2.3rem 1.35rem 0; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 1.2rem; right: .2rem; color: var(--brand); content: "+"; font-size: 1.5rem; font-weight: 500; transition: transform .18s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 780px; padding: 0 2.2rem 1.4rem 0; color: var(--ink-soft); font-size: .92rem; }
.final-cta h2 { max-width: 760px; }
.final-cta p:last-child { margin: .8rem 0 0; color: #bcd6cc; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.button-dark-outline { border-color: rgba(255,255,255,.35); background: transparent; color: white; }
.button-dark-outline:hover { border-color: white; }

.auth-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .85fr) 1.15fr; }
.auth-brand-panel { display: flex; padding: clamp(2rem, 6vw, 5rem); justify-content: space-between; background: linear-gradient(160deg, #073c2e, #0b6b4f); color: white; flex-direction: column; }
.auth-brand-panel h1 { max-width: 640px; font-size: clamp(2.4rem, 4vw, 4.2rem); }
.auth-brand-panel p { max-width: 600px; color: #c8e6dc; }
.auth-security-note { margin-bottom: 0; font-size: .83rem; }
.auth-form-panel { display: grid; padding: 2rem; place-items: center; background: var(--surface-soft); }
.auth-card { width: min(100%, 440px); padding: 2.3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.auth-card h2 { margin-bottom: .7rem; font-size: 2rem; }
.auth-card form { margin-top: 1.7rem; }
.auth-card label, .form-field label { display: block; margin: 1rem 0 .42rem; font-size: .84rem; font-weight: 750; }
input, select { width: 100%; min-height: 44px; padding: .66rem .75rem; border: 1px solid #b9c7c1; border-radius: 9px; background: white; color: var(--ink); }
input:hover, select:hover { border-color: #8fa59b; }
.password-field { position: relative; }
.password-field input { padding-right: 4.5rem; }
.input-action { position: absolute; top: 6px; right: 6px; min-height: 32px; padding: 0 .65rem; border: 0; border-radius: 6px; background: var(--surface-soft); color: var(--brand); cursor: pointer; font-size: .78rem; font-weight: 750; }
.field-help, .field-error { min-height: 1.2em; margin: .35rem 0 0; font-size: .77rem; }
.field-help { color: var(--ink-soft); }
.field-error { color: var(--danger); }
.auth-switch, .legal-consent { margin: 1.3rem 0 0; text-align: center; font-size: .84rem; }
.legal-consent { color: var(--ink-soft); font-size: .75rem; }
.mobile-brand { display: none; margin-bottom: 2rem; color: var(--brand); font-weight: 900; text-decoration: none; }

.alert { margin: 1rem 0; padding: .78rem .9rem; border: 1px solid; border-radius: 9px; font-size: .86rem; }
.alert-danger { border-color: #fecdca; background: var(--danger-soft); color: var(--danger); }
.alert-warning { border-color: #fedf89; background: var(--warning-soft); color: var(--warning); }
.alert-info { border-color: #b2ddff; background: var(--info-soft); color: var(--info); }
.alert-success { border-color: #abefc6; background: var(--success-soft); color: var(--success); }

.app-body { overflow-x: hidden; background: var(--canvas); }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; padding: 1.2rem; border-right: 1px solid #183d32; background: #0b3027; color: white; flex-direction: column; }
.sidebar-brand { margin: .25rem .4rem 2rem; color: white; }
.sidebar-nav { display: flex; gap: .35rem; flex-direction: column; }
.sidebar-nav a { display: flex; min-height: 43px; padding: .65rem .75rem; align-items: center; gap: .7rem; border-radius: 9px; color: #c2d9d1; text-decoration: none; font-size: .88rem; font-weight: 650; }
.sidebar-nav a:hover, .sidebar-nav a[aria-current="page"] { background: #17483b; color: white; }
.sidebar-nav a span { width: 20px; text-align: center; }
.sidebar-foot { display: flex; margin-top: auto; padding-top: 1rem; border-top: 1px solid #31584d; align-items: center; justify-content: space-between; gap: .5rem; }
.plan-pill { padding: .3rem .55rem; border-radius: 999px; background: #245a4b; color: #bdf0df; font-size: .7rem; font-weight: 850; }
.sidebar-logout { border: 0; background: transparent; color: #c2d9d1; cursor: pointer; font-size: .78rem; }
.app-workspace { min-width: 0; }
.app-header { display: flex; min-height: 88px; padding: 1.1rem clamp(1rem, 4vw, 2.4rem); align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.app-header .eyebrow { margin: 0 0 .15rem; font-size: .66rem; }
.app-header h1 { margin: 0; font-size: 1.45rem; }
.user-menu { display: flex; align-items: center; gap: .65rem; color: var(--ink-soft); font-size: .82rem; }
.avatar { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-weight: 900; }
.mobile-menu { display: none; }
.app-main { max-width: 1540px; margin: 0 auto; padding: clamp(1rem, 3vw, 2.4rem); }
.page-head { display: flex; margin-bottom: 1.6rem; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.page-head h2 { margin-bottom: .3rem; font-size: 1.65rem; }
.page-head p { margin-bottom: 0; color: var(--ink-soft); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.card-header { display: flex; padding: 1.15rem 1.25rem; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 1.25rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.metric-card { min-height: 132px; padding: 1.2rem; }
.metric-label { display: block; margin-bottom: 1.2rem; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.metric-value { display: block; font-size: 1.65rem; line-height: 1; letter-spacing: -.03em; }
.metric-detail { display: block; margin-top: .65rem; color: var(--ink-soft); font-size: .72rem; }
.dashboard-grid { display: grid; margin-top: 1rem; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 1rem; }
.quick-start { display: flex; min-height: 190px; padding: 1.5rem; justify-content: space-between; gap: 2rem; background: linear-gradient(130deg, #0b6b4f, #084b39); color: white; }
.quick-start p { color: #c8e6dc; }
.usage-list { display: grid; gap: 1rem; }
.usage-row { display: grid; gap: .4rem; }
.usage-row-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .77rem; }
.usage-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #e2ebe7; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.usage-warning .usage-bar span { background: var(--accent); }
.usage-critical .usage-bar span, .usage-limit .usage-bar span { background: var(--danger); }
.usage-message, .usage-policy { margin: 0; color: var(--ink-soft); font-size: .7rem; }
.usage-warning .usage-message { color: var(--warning); }
.usage-critical .usage-message, .usage-limit .usage-message { color: var(--danger); font-weight: 700; }
.usage-policy { padding-top: .85rem; border-top: 1px solid var(--line); }

.onboarding { margin-bottom: 1rem; overflow: hidden; }
.onboarding-welcome, .getting-started-head { display: flex; padding: 1.35rem; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.onboarding-welcome { background: linear-gradient(125deg, #f4fbf8, #e4f6ef); }
.onboarding-welcome h2 { margin-bottom: .45rem; font-size: 1.35rem; }
.onboarding-welcome p:last-child { max-width: 760px; margin-bottom: 0; color: var(--ink-soft); }
.workflow-steps { display: grid; margin: 0; padding: 1rem 1.35rem 1.3rem; counter-reset: workflow; grid-template-columns: repeat(5, 1fr); gap: .7rem; list-style: none; }
.workflow-steps li { position: relative; padding: .78rem .7rem .78rem 2.2rem; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: .74rem; font-weight: 750; }
.workflow-steps li::before { position: absolute; left: .65rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--brand-light); color: var(--brand); content: counter(workflow); counter-increment: workflow; font-size: .65rem; line-height: 1.05rem; text-align: center; }
.getting-started { border-top: 1px solid var(--line); }
.getting-started-head { padding-bottom: .7rem; }
.getting-started-head h3 { margin-bottom: .25rem; }
.getting-started-head p { margin: 0; font-size: .78rem; }
.checklist-items { display: grid; padding: 0 1.35rem 1.35rem; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.checklist-item { display: grid; min-width: 0; padding: .85rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; grid-template-columns: auto 1fr; gap: .3rem .65rem; font-size: .78rem; }
.checklist-item input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--brand); }
.checklist-item a { grid-column: 2; color: var(--brand); font-size: .72rem; font-weight: 750; }

.status-chip { display: inline-flex; padding: .28rem .52rem; align-items: center; gap: .35rem; border-radius: 999px; font-size: .69rem; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.tone-success { background: var(--success-soft); color: var(--success); }
.tone-warning { background: var(--warning-soft); color: var(--warning); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-neutral { background: #f2f4f3; color: #56615d; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.data-table th { padding: .75rem .85rem; border-bottom: 1px solid var(--line); background: #f8faf9; color: var(--ink-soft); text-align: left; font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: .86rem; border-bottom: 1px solid #edf1ef; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfc; }
.data-table a { color: var(--brand); font-weight: 700; }
.table-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cell-title { display: block; max-width: 340px; font-weight: 700; }
.cell-sub { display: block; margin-top: .2rem; color: var(--ink-soft); font-size: .7rem; }
.empty-state, .error-state, .loading-state { display: grid; min-height: 280px; padding: 2rem; place-items: center; align-content: center; text-align: center; }
.empty-state h2, .error-state h2, .loading-state h2 { margin: .8rem 0 .35rem; font-size: 1.25rem; }
.empty-state p, .error-state p, .loading-state p { max-width: 520px; color: var(--ink-soft); }
.spinner { width: 31px; height: 31px; border: 3px solid #cfe0d9; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-card { max-width: 800px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-field-full { grid-column: 1 / -1; }
.restriction-panel { display: grid; margin: 1.3rem 0; padding: 1rem; border-radius: 10px; background: var(--surface-soft); grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.restriction-panel span { display: block; color: var(--ink-soft); font-size: .68rem; }
.restriction-panel strong { font-size: .88rem; }
.form-actions { display: flex; align-items: center; gap: .7rem; }
.workload-estimate { margin-top: 1rem; padding: .8rem .9rem; border: 1px solid #b2ddff; border-radius: 9px; background: var(--info-soft); color: var(--info); font-size: .82rem; }
.workload-large { border-color: #fedf89; background: var(--warning-soft); color: var(--warning); font-weight: 700; }

.progress-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 1rem; }
.progress-card { padding: 1.5rem; }
.progress-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.progress-heading h2 { margin-bottom: .3rem; font-size: 1.5rem; }
.big-progress { height: 12px; margin: 1.6rem 0 .7rem; overflow: hidden; border-radius: 999px; background: #e0e9e5; }
.big-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #26a77c); transition: width .4s ease; }
.progress-caption { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: .75rem; }
.progress-metrics { display: grid; margin-top: 1.4rem; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.progress-metrics div { padding: .9rem; border: 1px solid var(--line); border-radius: 10px; }
.progress-metrics span { display: block; color: var(--ink-soft); font-size: .68rem; }
.progress-metrics strong { font-size: 1.2rem; }
.stage-list { display: grid; padding: 0; list-style: none; gap: .25rem; }
.stage-list li { display: flex; padding: .55rem .7rem; align-items: center; gap: .6rem; border-radius: 8px; color: var(--ink-soft); font-size: .78rem; }
.stage-list li::before { width: 8px; height: 8px; border-radius: 50%; background: #c8d4cf; content: ""; }
.stage-list li.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 750; }
.stage-list li.active::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(11,107,79,.12); }
.stage-list li.done::before { background: var(--success); }
.resume-panel { display: grid; margin-top: 1.25rem; padding: 1rem; align-items: center; border: 1px solid #b2ddff; border-radius: 10px; background: var(--info-soft); grid-template-columns: 1fr auto; gap: .25rem 1rem; }
.resume-panel strong, .resume-panel p { grid-column: 1; }
.resume-panel p { margin: 0; color: var(--ink-soft); font-size: .77rem; }
.resume-panel .button { grid-column: 2; grid-row: 1 / span 2; }

.filter-bar { display: grid; padding: 1rem; border-bottom: 1px solid var(--line); grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(140px, .7fr)); gap: .65rem; }
.filter-bar.wide { grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(125px, .65fr)); }
.filter-bar input, .filter-bar select { min-height: 38px; font-size: .78rem; }
.result-tabs { display: flex; gap: .4rem; }
.result-tab { padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.result-tab[aria-selected="true"] { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.pagination { display: flex; padding: 1rem; align-items: center; justify-content: flex-end; gap: .7rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .76rem; }
.copy-button { padding: .2rem .35rem; border: 0; border-radius: 5px; background: var(--surface-soft); color: var(--brand); cursor: pointer; font-size: .68rem; }
.help-tip { display: inline-grid; width: 20px; height: 20px; margin-left: .35rem; padding: 0; place-items: center; border: 1px solid #9fb4ab; border-radius: 50%; background: white; color: var(--brand); cursor: help; font-size: .68rem; font-weight: 900; vertical-align: middle; }
.result-summary { display: flex; margin-bottom: 1rem; align-items: center; gap: .7rem; flex-wrap: wrap; }
.result-summary > span { padding: .45rem .7rem; border-radius: 8px; background: white; color: var(--ink-soft); font-size: .76rem; }

.entitlement-grid, .billing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.entitlement-card { padding: 1rem; }
.entitlement-card span { display: block; color: var(--ink-soft); font-size: .7rem; }
.entitlement-card strong { font-size: .98rem; }
.billing-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.billing-plan { display: flex; padding: 1rem; border: 1px solid var(--line); border-radius: 11px; align-items: center; justify-content: space-between; gap: .7rem; }
.billing-plans-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.billing-plan-card { position: relative; min-width: 0; min-height: 510px; padding: 1.15rem; align-items: stretch; justify-content: flex-start; flex-direction: column; }
.billing-plan-card h3 { min-height: 2.5em; margin-bottom: .75rem; font-size: 1.2rem; }
.billing-plan-card .button { width: 100%; margin-top: auto; }
.billing-plan-popular { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.billing-plan-top { display: flex; min-height: 42px; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.billing-plan-badges { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; flex-wrap: wrap; }
.billing-plan-badges .pricing-label { position: static; }
.billing-cycle-toggle { display: inline-flex; padding: .2rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); gap: .2rem; }
.plan-feature-list { font-size: .76rem; }
.plan-feature-list li { margin: .48rem 0; }
.prose-compact { max-width: 920px; }
.prose-compact h2 { font-size: 1.2rem; }
.prose-compact p { color: var(--ink-soft); }

.legal-layout, .info-layout { max-width: 940px; min-height: 65vh; margin: 0 auto; padding: 90px 24px; }
.legal-heading { max-width: 760px; margin-bottom: 3rem; }
.legal-heading h1, .info-layout h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.legal-heading > p, .info-layout > section > p { color: var(--ink-soft); font-size: 1.08rem; }
.manual-review { padding: 1rem; border: 1px solid #fedf89; border-radius: 10px; background: var(--warning-soft); color: var(--warning); font-size: .83rem; font-weight: 700; }
.legal-document { padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.legal-document section { margin-bottom: 2rem; }
.legal-document h2 { font-size: 1.18rem; }
.legal-document p { color: var(--ink-soft); }
.legal-updated { margin-bottom: 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .78rem; }
.info-layout .manual-review { margin: 2rem 0; }
.feature-grid.compact { margin-top: 2rem; grid-template-columns: repeat(2, 1fr); }

.toast-region { position: fixed; z-index: 1200; right: 1rem; bottom: 1rem; display: grid; width: min(380px, calc(100vw - 2rem)); gap: .5rem; }
.toast { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-md); font-size: .82rem; }
.toast-danger { border-color: #fecdca; background: var(--danger-soft); color: var(--danger); }
.toast-success { border-color: #abefc6; background: var(--success-soft); color: var(--success); }

@media (max-width: 1050px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-product { max-width: 660px; }
  .feature-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .value-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value-strip li:nth-child(3) { border-right: 0; }
  .value-strip li:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .problem-solution-section { grid-template-columns: 1fr; }
  .problem-solution-section .section-heading { max-width: 760px; }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-grid li:nth-child(3)::after { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .billing-plans-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar.wide { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
}

@media (max-width: 820px) {
  .marketing-header nav { display: none; }
  .faq-section { grid-template-columns: 1fr; }
  .faq-section .section-heading { position: static; }
  .dashboard-preview { grid-template-columns: 1fr; }
  .dashboard-preview > aside { min-height: auto; padding: 1rem; flex-direction: row; align-items: center; gap: 1rem; }
  .dashboard-preview aside ul { display: none; }
  .dashboard-preview aside small { margin: 0 0 0 auto; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .mobile-brand { display: inline-block; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 100; width: 244px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow-md); }
  .sidebar.open { transform: none; }
  .mobile-menu { display: inline-grid; }
  .app-header { justify-content: flex-start; }
  .user-menu { margin-left: auto; }
  .dashboard-grid, .progress-layout { grid-template-columns: 1fr; }
  .entitlement-grid, .billing-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar, .filter-bar.wide { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .workflow-steps { grid-template-columns: repeat(3, 1fr); }
  .checklist-items { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.55rem; }
  .marketing-header { min-height: 68px; padding: 0 16px; }
  .brand-lockup { font-size: .9rem; }
  .marketing-header .brand-mark { width: 30px; height: 30px; }
  .header-actions { gap: .35rem; }
  .header-actions .button { min-height: 36px; padding: .45rem .62rem; font-size: .78rem; }
  .hero, .marketing-section { padding: 62px 16px; }
  .landing-hero::after { display: none; }
  .hero-actions .button { width: 100%; }
  .value-strip { padding: 0 16px; }
  .value-strip ul { grid-template-columns: 1fr; }
  .value-strip li, .value-strip li:nth-child(3), .value-strip li:last-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .value-strip li:last-child { border-bottom: 0; }
  .problem-solution-grid { grid-template-columns: 1fr; }
  .solution-flow { align-items: flex-start; flex-direction: column; }
  .solution-flow span:nth-child(even) { transform: rotate(90deg); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid li { min-height: auto; }
  .steps-grid li > span { margin-bottom: 1.8rem; }
  .steps-grid li::after { display: none; }
  .product-preview-section { padding: 62px 16px; }
  .dashboard-preview { min-height: 0; }
  .dashboard-preview > aside { align-items: flex-start; flex-direction: column; }
  .dashboard-preview aside small { margin: .4rem 0 0; }
  .preview-workspace-head { align-items: flex-start; flex-direction: column; }
  .preview-stat-grid { grid-template-columns: 1fr; }
  .plan-allowances { grid-template-columns: 1fr; }
  .faq-list summary { padding-right: 2rem; }
  .preview-metrics { grid-template-columns: 1fr; }
  .preview-metrics small { min-height: auto; }
  .feature-grid, .pricing-grid, .feature-grid.compact { grid-template-columns: 1fr; }
  .cta-panel { margin: 55px 16px; padding: 1.5rem; align-items: flex-start; flex-direction: column; }
  .cta-actions, .cta-actions .button { width: 100%; }
  .marketing-footer { padding: 40px 16px; grid-template-columns: 1fr; }
  .marketing-footer nav { grid-row: auto; }
  .auth-form-panel { padding: 0; background: white; }
  .auth-card { padding: 2rem 1.2rem; border: 0; border-radius: 0; box-shadow: none; }
  .app-header { min-height: 72px; padding: .75rem 1rem; }
  .app-header .eyebrow { display: none; }
  .app-header h1 { font-size: 1.15rem; }
  #header-user { display: none; }
  .app-main { padding: 1rem; }
  .page-head { align-items: stretch; flex-direction: column; }
  .card-header { align-items: flex-start; flex-direction: column; }
  .billing-cycle-toggle { width: 100%; }
  .billing-cycle-toggle .button { flex: 1; }
  .page-head .button { width: 100%; }
  .metric-grid, .entitlement-grid, .billing-grid, .form-grid, .restriction-panel, .progress-metrics, .billing-plans { grid-template-columns: 1fr; }
  .quick-start { flex-direction: column; }
  .filter-bar, .filter-bar.wide { grid-template-columns: 1fr; }
  .onboarding-welcome, .getting-started-head { flex-direction: column; }
  .workflow-steps { grid-template-columns: 1fr; }
  .resume-panel { grid-template-columns: 1fr; }
  .resume-panel .button { width: 100%; grid-column: 1; grid-row: auto; }
  .result-tabs { width: 100%; }
  .result-tab { flex: 1; }
  .table-wrap { overflow: visible; }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .responsive-table tbody { display: grid; padding: .75rem; gap: .75rem; }
  .responsive-table tbody tr { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
  .responsive-table tbody tr:hover { background: white; }
  .responsive-table td { display: grid; padding: .72rem .8rem; border-bottom: 1px solid #edf1ef; grid-template-columns: minmax(92px, .45fr) minmax(0, 1fr); gap: .8rem; }
  .responsive-table td::before { color: var(--ink-soft); content: attr(data-label); font-size: .65rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
  .responsive-table td > * { grid-column: 2; }
  .responsive-table td:last-child { border-bottom: 0; }
  .pagination { justify-content: center; flex-wrap: wrap; }
  .user-menu { gap: .3rem; }
  .legal-layout, .info-layout { padding: 55px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
