:root {
  --ink: #0d1835;
  --ink-2: #182544;
  --muted: #68738a;
  --line: #dde2e8;
  --paper: #ffffff;
  --cream: #f6f7f2;
  --lime: #c8f169;
  --lime-deep: #a7dc37;
  --blue: #4468f2;
  --teal: #39d0b0;
  --shadow: 0 24px 70px rgba(12, 24, 53, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.ambient { position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; opacity: .6; }
.ambient-one { width: 420px; height: 420px; background: radial-gradient(circle, rgba(200,241,105,.28), transparent 70%); right: 0; top: 60px; }
.ambient-two { width: 340px; height: 340px; background: radial-gradient(circle, rgba(68,104,242,.12), transparent 70%); left: -100px; top: 430px; }

.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  width: min(1160px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 "Manrope", sans-serif; letter-spacing: -.6px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.brand-mark span { font: 800 18px/1 "Manrope", sans-serif; transform: translateY(-1px); }
.nav-links { display: flex; gap: 34px; color: #4d5870; font-size: 14px; font-weight: 600; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }

.button { border: 0; border-radius: 12px; min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 19px; height: 19px; }
.button-small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.button-dark { background: var(--ink); color: #fff; }
.button-primary { background: var(--lime); color: var(--ink); box-shadow: 0 10px 25px rgba(167,220,55,.22); }
.button-primary:hover { background: #d4f886; box-shadow: 0 14px 30px rgba(167,220,55,.3); }
.button-outline { background: transparent; color: var(--ink); border: 1px solid #cbd2dc; }
.button-outline:hover { border-color: var(--ink); }
.button-light { background: #fff; color: var(--ink); }
.full { width: 100%; }

.hero { min-height: 690px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 70px; padding-block: 56px 90px; position: relative; z-index: 1; }
.eyebrow { width: max-content; display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(13,24,53,.08); font-size: 12px; font-weight: 700; color: #4b5872; }
.pulse-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(57,208,176,.14); }
.hero h1 { margin: 22px 0 20px; font: 800 clamp(52px, 5.7vw, 76px)/.98 "Manrope", sans-serif; letter-spacing: -4.5px; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { max-width: 550px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 26px; }
.text-link { font-size: 14px; font-weight: 700; }
.text-link span { color: var(--blue); margin-left: 5px; }
.trust-line { margin-top: 38px; display: flex; align-items: center; gap: 13px; }
.trust-line p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.trust-line strong { color: var(--ink); }
.avatars { display: flex; }
.avatars span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--cream); margin-left: -7px; color: white; font-size: 8px; font-weight: 800; background: var(--blue); }
.avatars span:first-child { margin-left: 0; background: var(--ink); }
.avatars span:last-child { background: var(--teal); }

.hero-visual { min-height: 540px; position: relative; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 35px 5px 10px 50px; border-radius: 38% 62% 66% 34% / 36% 34% 66% 64%; background: linear-gradient(145deg, #dff59d, #bee2e2 55%, #cfdbff); transform: rotate(-3deg); }
.hero-visual::after { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(13,24,53,.09); border-radius: 50%; right: -15px; top: 25px; }
.document-mock { width: min(390px, 85%); min-height: 485px; padding: 34px 34px 24px; background: #fff; border-radius: 9px; box-shadow: 0 35px 80px rgba(20,41,69,.22); position: relative; z-index: 2; transform: rotate(2.4deg); }
.mock-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mock-top > div:last-child { display: flex; flex-direction: column; text-align: right; }
.mock-top small { letter-spacing: 2.2px; font-size: 7px; color: #8190a4; }
.mock-top strong { font: 800 19px "Manrope"; letter-spacing: -.5px; }
.mini-brand { width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--lime); border-radius: 8px; font: 800 15px "Manrope"; }
.mock-rule { height: 3px; margin: 19px 0 16px; border-radius: 3px; background: linear-gradient(90deg,var(--lime) 0 30%, var(--ink) 30%); }
.mock-meta, .mock-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock-meta { margin-bottom: 20px; }
.mock-meta div, .mock-addresses div { display: flex; flex-direction: column; gap: 3px; }
.mock-meta small, .mock-addresses small { font-size: 6px; letter-spacing: 1px; color: #8a94a4; }
.mock-meta strong { font-size: 8px; }
.mock-addresses { padding: 14px 0; border-block: 1px solid #edf0f2; }
.mock-addresses strong { font-size: 8px; }
.mock-addresses span { font-size: 7px; color: #8490a1; }
.mock-table { margin-top: 20px; }
.mock-row { display: grid; grid-template-columns: 1fr 40px 55px; gap: 8px; padding: 9px 7px; font-size: 7px; color: #48546a; border-bottom: 1px solid #edf0f2; }
.mock-row span:last-child { text-align: right; }
.mock-head { background: #f2f4f6; border-radius: 4px; color: var(--ink); font-weight: 800; font-size: 6px; }
.mock-total { width: 52%; margin: 18px 0 26px auto; display: flex; align-items: center; justify-content: space-between; font-size: 7px; }
.mock-total strong { font-size: 11px; }
.mock-footer { border-top: 1px solid #edf0f2; padding-top: 11px; display: flex; justify-content: space-between; color: #919ba9; font-size: 6px; }
.floating-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); padding: 11px 14px; border-radius: 12px; box-shadow: 0 14px 35px rgba(22,40,68,.14); font-size: 11px; font-weight: 700; }
.floating-chip span { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; background: var(--lime); font-size: 11px; }
.chip-top { right: 0; top: 115px; }
.chip-bottom { left: 18px; bottom: 85px; }

.logos-bar { min-height: 75px; padding: 20px; background: var(--ink); color: rgba(255,255,255,.72); display: flex; align-items: center; justify-content: center; gap: 46px; text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; font-weight: 700; }
.logos-bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); }
.section { padding-block: 110px; }
.section-heading { max-width: 520px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-kicker { color: var(--blue); text-transform: uppercase; letter-spacing: 1.6px; font-size: 11px; font-weight: 800; }
.section-kicker.light { color: var(--lime); }
.section-heading h2, .cta h2 { margin: 13px 0 16px; font: 800 clamp(36px, 4.2vw, 53px)/1.08 "Manrope"; letter-spacing: -2.6px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.tool-cards { margin-top: 52px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tool-card { min-height: 340px; padding: 28px; border: 1px solid rgba(13,24,53,.08); border-radius: var(--radius); background: rgba(255,255,255,.82); box-shadow: 0 10px 30px rgba(12,24,53,.04); position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tool-card-featured { background: var(--ink); color: #fff; }
.tool-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(200,241,105,.14); color: var(--lime); }
.tool-icon svg { width: 25px; height: 25px; }
.tool-icon-lime { background: #ecf8ce; color: #507011; }
.tool-icon-ghost { background: #eef0f4; color: #8994a6; }
.free-pill, .soon-pill { position: absolute; right: 24px; top: 24px; padding: 6px 9px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.soon-pill { background: #eef0f4; color: #7a8494; }
.tool-card h3 { margin: 52px 0 12px; font: 750 22px "Manrope"; letter-spacing: -.7px; }
.tool-card p { color: #7b879b; font-size: 14px; line-height: 1.65; }
.tool-card-featured p { color: #b6c0d1; }
.card-link { position: absolute; bottom: 26px; left: 28px; border: 0; background: transparent; padding: 0; color: inherit; font-weight: 700; font-size: 13px; }
.card-link span { margin-left: 5px; color: var(--lime-deep); }
.card-link.disabled { color: #99a2b1; cursor: default; }
.muted-card { background: rgba(243,244,241,.82); }

.workflow-section { background: #fff; }
.workflow-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.workflow-grid .button { margin-top: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; padding: 25px; border-radius: 18px; background: var(--cream); border: 1px solid #ecefe9; }
.steps li > span { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--blue); font: 800 12px "Manrope"; box-shadow: 0 8px 20px rgba(13,24,53,.06); }
.steps h3 { margin: 0 0 5px; font: 700 17px "Manrope"; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.pricing-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.price-card { padding: 32px; border: 1px solid #dfe3e8; border-radius: var(--radius); background: #fff; position: relative; }
.price-card.popular { border: 2px solid var(--ink); box-shadow: var(--shadow); transform: translateY(-8px); }
.popular-label { position: absolute; top: -14px; right: 24px; padding: 7px 11px; background: var(--lime); border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.plan-name { font: 700 14px "Manrope"; }
.price { margin: 20px 0 14px; display: flex; align-items: baseline; gap: 7px; }
.price strong { font: 800 41px "Manrope"; letter-spacing: -2px; }
.price span { color: var(--muted); font-size: 12px; }
.price-card > p { min-height: 48px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.price-card ul { list-style: none; margin: 25px 0 30px; padding: 0; display: grid; gap: 12px; font-size: 13px; }
.price-card li::before { content: "✓"; width: 18px; height: 18px; margin-right: 9px; display: inline-grid; place-items: center; background: #eff8d9; color: #5e8514; border-radius: 50%; font-size: 9px; font-weight: 800; }

.cta { min-height: 230px; margin-bottom: 70px; padding: 48px 54px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: radial-gradient(circle at 80% -20%, rgba(68,104,242,.7), transparent 42%), var(--ink); overflow: hidden; }
.cta h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 48px); }
.footer { min-height: 115px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #dfe3e5; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 22px; font-weight: 700; }
.footer-links a:hover { color: var(--ink); }

/* Search landing pages */
.resource-page { background: #f7f8f4; }
.resource-header { background: rgba(247,248,244,.94); border-bottom: 1px solid rgba(13,24,53,.07); }
.resource-hero { padding: 72px 0 86px; background: radial-gradient(circle at 88% 15%, rgba(200,241,105,.34), transparent 28%), radial-gradient(circle at 5% 80%, rgba(68,104,242,.1), transparent 28%); }
.breadcrumbs { margin-bottom: 30px; display: flex; align-items: center; gap: 8px; color: #7a8597; font-size: 12px; }
.breadcrumbs a { font-weight: 700; color: var(--blue); }
.resource-hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.72fr); gap: 70px; align-items: center; }
.resource-copy h1 { max-width: 760px; margin: 18px 0 22px; font: 800 clamp(44px,5.3vw,70px)/1.02 "Manrope",sans-serif; letter-spacing: -4px; }
.resource-copy > p { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.72; }
.resource-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.resource-note { margin-top: 18px; color: #697489; font-size: 12px; }
.resource-card { padding: 34px; border: 1px solid rgba(13,24,53,.08); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.resource-card-badge { width: max-content; padding: 7px 10px; border-radius: 999px; background: #eef8d8; color: #547513; text-transform: uppercase; letter-spacing: .8px; font-size: 9px; font-weight: 800; }
.resource-card h2 { margin: 24px 0 12px; font: 800 26px/1.15 "Manrope"; letter-spacing: -1px; }
.resource-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.mini-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-checks li { display: flex; align-items: flex-start; gap: 10px; color: #4f5b70; font-size: 13px; line-height: 1.45; }
.mini-checks li::before { content: "✓"; width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 900; }
.content-section { padding: 88px 0; }
.content-section.white { background: #fff; }
.content-narrow { max-width: 820px; }
.content-section h2 { margin: 0 0 18px; font: 800 clamp(30px,3.7vw,46px)/1.12 "Manrope"; letter-spacing: -2px; }
.content-section h3 { margin: 28px 0 10px; font: 750 21px/1.25 "Manrope"; letter-spacing: -.6px; }
.content-section p { color: #5f6b80; font-size: 16px; line-height: 1.78; }
.content-section a:not(.button) { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.feature-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature-box { padding: 24px; border: 1px solid #e0e4e7; border-radius: 18px; background: #fff; }
.white .feature-box { background: var(--cream); }
.feature-box span { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #eef1fe; color: var(--blue); font: 800 10px "Manrope"; }
.feature-box h3 { margin: 17px 0 8px; font-size: 17px; }
.feature-box p { margin: 0; font-size: 13px; line-height: 1.6; }
.field-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-list li { padding: 15px 16px; border: 1px solid #e0e4e7; border-radius: 13px; background: #fff; color: #4e5b71; font-size: 14px; }
.field-list strong { display: block; margin-bottom: 4px; color: var(--ink); }
.comparison { width: 100%; margin-top: 28px; border-collapse: collapse; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #e1e5e8; }
.comparison th, .comparison td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid #e8ebed; font-size: 14px; line-height: 1.5; }
.comparison th { background: var(--ink); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; }
.comparison td { color: #5c687d; }
.comparison tr:last-child td { border-bottom: 0; }
.faq-list { margin-top: 32px; display: grid; gap: 12px; }
.faq-list details { padding: 20px 22px; border: 1px solid #e0e4e7; border-radius: 15px; background: #fff; }
.faq-list summary { cursor: pointer; color: var(--ink); font: 700 16px "Manrope"; }
.faq-list p { margin: 12px 0 0; font-size: 14px; line-height: 1.65; }
.disclaimer { margin-top: 30px; padding: 18px 20px; border-left: 4px solid var(--lime-deep); border-radius: 0 12px 12px 0; background: #f0f5e5; color: #536070; font-size: 13px; line-height: 1.65; }
.resource-cta { margin: 0 auto 70px; min-height: 230px; padding: 46px 52px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: radial-gradient(circle at 85% 0,rgba(68,104,242,.75),transparent 42%),var(--ink); }
.resource-cta h2 { margin: 8px 0 0; color: #fff; }
.resource-cta p { margin: 8px 0 0; color: #b9c2d1; font-size: 14px; }
.state-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 70% 20%,rgba(200,241,105,.3),transparent 30%),var(--cream); }
.state-card { width: min(620px,100%); padding: 55px; text-align: center; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.state-code { color: var(--blue); font: 800 12px "Manrope"; letter-spacing: 2px; }
.state-card h1 { margin: 14px 0; font: 800 clamp(36px,6vw,58px)/1.05 "Manrope"; letter-spacing: -3px; }
.state-card p { margin: 0 auto 28px; max-width: 460px; color: var(--muted); line-height: 1.7; }

.app-overlay { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(7,14,31,.7); backdrop-filter: blur(8px); padding: 18px; }
.app-overlay.open { display: block; }
.app-shell { width: min(1500px, 100%); height: calc(100vh - 36px); margin: 0 auto; border-radius: 20px; background: #f5f6f3; overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,.32); }
.app-header { height: 65px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.app-header-actions { display: flex; align-items: center; gap: 12px; }
.access-badge { padding: 7px 10px; border-radius: 999px; background: #f1f3f5; color: #697489; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.access-badge.pro { background: #ecf8ce; color: #4d7110; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #f0f2f4; display: grid; place-items: center; color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }
.app-body { height: calc(100% - 65px); display: grid; grid-template-columns: 235px minmax(520px,1fr) 390px; }
.app-sidebar { padding: 28px 16px; background: var(--ink); color: #fff; overflow: auto; }
.sidebar-label { margin: 0 10px 12px; color: #8f9ab0; text-transform: uppercase; letter-spacing: 1.2px; font-size: 9px; font-weight: 800; }
.doc-tab { width: 100%; margin-bottom: 8px; padding: 13px; border: 0; border-radius: 12px; display: grid; grid-template-columns: 33px 1fr; gap: 10px; text-align: left; background: transparent; color: #9da7ba; }
.doc-tab.active { background: rgba(255,255,255,.09); color: #fff; }
.doc-tab svg { width: 23px; height: 23px; margin-top: 2px; }
.doc-tab span { display: flex; flex-direction: column; }
.doc-tab strong { font-size: 12px; }
.doc-tab small { margin-top: 3px; color: #78849a; font-size: 9px; }
.sidebar-tip { margin: 30px 7px 0; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: #8f9ab0; }
.sidebar-tip span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 800; }
.sidebar-tip p { margin: 0; font-size: 9px; line-height: 1.5; }
.form-panel { padding: 30px 34px 100px; overflow-y: auto; }
.form-heading { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; }
.form-kicker { color: var(--blue); text-transform: uppercase; letter-spacing: 1.2px; font-size: 9px; font-weight: 800; }
.form-heading h2 { margin: 4px 0 0; font: 800 27px "Manrope"; letter-spacing: -1px; }
.autosave { color: #788498; font-size: 9px; }
.autosave span { width: 7px; height: 7px; margin-right: 5px; display: inline-block; border-radius: 50%; background: var(--teal); }
.form-section { margin-bottom: 16px; padding: 22px; background: #fff; border: 1px solid #e3e6e8; border-radius: 16px; }
.form-section-head { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.form-section-head > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #eef1fe; color: var(--blue); font: 800 9px "Manrope"; }
.form-section-head h3 { margin: 0; font: 700 14px "Manrope"; }
.form-section-head p { margin: 3px 0 0; color: #8a94a6; font-size: 9px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #515d72; font-size: 10px; font-weight: 700; }
.field.span-2 { grid-column: span 2; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #dbe0e6; border-radius: 9px; outline: 0; background: #fbfcfa; color: var(--ink); font-size: 11px; font-weight: 500; padding: 10px 11px; transition: border-color .2s, box-shadow .2s; }
.field input, .field select { height: 39px; }
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(68,104,242,.09); }
.logo-field { position: relative; }
.logo-field input { padding: 7px; font-size: 9px; }
.logo-field > span { position: absolute; right: 10px; bottom: 12px; pointer-events: none; color: #9ba4b2; font-size: 8px; }
.items-wrap { overflow-x: auto; }
.items-header, .item-row { min-width: 660px; display: grid; gap: 8px; align-items: center; }
.invoice-columns { grid-template-columns: 2fr .75fr .55fr .6fr .75fr 29px; }
.packing-columns { grid-template-columns: 1.7fr .65fr .65fr .65fr 1fr 29px; }
.items-header { padding: 0 5px 7px; color: #8792a4; text-transform: uppercase; letter-spacing: .7px; font-size: 7px; font-weight: 800; }
.item-row { margin-bottom: 8px; }
.item-row input, .item-row select { width: 100%; height: 36px; border: 1px solid #dbe0e6; border-radius: 8px; outline: 0; padding: 0 8px; background: #fbfcfa; color: var(--ink); font-size: 10px; }
.remove-item { width: 29px; height: 29px; border: 0; border-radius: 8px; background: #fff0ef; color: #c84b40; display: grid; place-items: center; font-size: 16px; }
.add-item { margin-top: 6px; border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 800; }
.add-item span { width: 20px; height: 20px; margin-right: 6px; border-radius: 6px; display: inline-grid; place-items: center; background: #eef1fe; }
.invoice-extras { margin-top: 16px; display: flex; justify-content: flex-end; gap: 12px; }
.field.compact { width: 145px; }
.preview-panel { padding: 25px 25px 30px; background: #e8ebe7; overflow-y: auto; border-left: 1px solid #d7dcd8; }
.preview-toolbar { margin-bottom: 11px; display: flex; justify-content: space-between; color: #647086; text-transform: uppercase; letter-spacing: .7px; font-size: 8px; font-weight: 800; }
.preview-toolbar button { border: 0; background: transparent; color: var(--blue); font-size: 8px; font-weight: 800; }
.paper { width: 100%; min-height: 500px; padding: 28px 25px 22px; background: #fff; box-shadow: 0 14px 32px rgba(13,24,53,.1); font-size: 8px; }
.paper-brand-row { display: flex; align-items: flex-start; justify-content: space-between; }
.paper-brand-row > div:last-child { text-align: right; }
.paper-brand-row small { color: #8994a5; letter-spacing: 1.6px; font-size: 6px; }
.paper-brand-row h3 { margin: 2px 0 0; font: 800 17px "Manrope"; letter-spacing: -.5px; }
.paper-logo { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 800 15px "Manrope"; background-position: center; background-size: contain; background-repeat: no-repeat; }
.paper-logo.has-image { color: transparent; background-color: transparent; }
.paper-accent { height: 3px; margin: 16px 0; border-radius: 2px; background: linear-gradient(90deg,var(--lime) 0 32%,var(--ink) 32%); }
.paper-meta, .paper-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.paper-meta span, .paper-parties span { display: block; color: #8c96a6; letter-spacing: .7px; font-size: 5.5px; font-weight: 800; }
.paper-meta strong { display: block; margin-top: 3px; font-size: 7px; }
.paper-parties { margin-top: 14px; padding-block: 12px; border-block: 1px solid #edf0f2; }
.paper-parties strong { display: block; margin-top: 4px; font-size: 7.5px; }
.paper-parties p { margin: 3px 0 0; color: #7a8597; font-size: 6px; line-height: 1.4; white-space: pre-line; }
.paper-shipment { margin-top: 10px; padding: 8px; border-radius: 4px; background: #f7f8f5; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.paper-shipment span { display: block; color: #929baa; text-transform: uppercase; letter-spacing: .5px; font-size: 5px; font-weight: 800; }
.paper-shipment strong { display: block; margin-top: 3px; color: var(--ink); font-size: 6px; }
.paper-items { margin-top: 15px; }
.paper-item { display: grid; grid-template-columns: 1.7fr .55fr .75fr; gap: 7px; padding: 8px 5px; border-bottom: 1px solid #edf0f2; color: #536075; font-size: 6.5px; }
.paper-item.header { background: #f2f4f6; color: var(--ink); text-transform: uppercase; font-size: 5.5px; font-weight: 800; }
.paper-item span:last-child { text-align: right; }
.paper-summary { width: 52%; margin: 12px 0 15px auto; display: grid; gap: 5px; }
.summary-line { display: flex; justify-content: space-between; color: #6f7a8b; font-size: 6.5px; }
.summary-line.total { margin-top: 3px; padding-top: 6px; border-top: 1px solid #dde2e7; color: var(--ink); font-weight: 800; font-size: 8px; }
.paper-note { min-height: 32px; margin: 0 0 20px; padding-top: 8px; border-top: 1px solid #edf0f2; color: #818b9b; font-size: 6px; line-height: 1.45; white-space: pre-line; }
.paper-bottom { margin-top: auto; padding-top: 9px; border-top: 1px solid #edf0f2; display: flex; justify-content: space-between; color: #9aa3b1; font-size: 5.5px; }
.download-button { margin-top: 15px; min-height: 45px; font-size: 11px; }
.download-note { margin: 8px 0 0; color: #7c8696; text-align: center; font-size: 8px; }
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; max-width: 340px; padding: 13px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 14px 35px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .app-body { grid-template-columns: 200px minmax(500px,1fr) 330px; }
  .form-panel { padding-inline: 24px; }
  .preview-panel { padding-inline: 18px; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-top: 70px; text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .eyebrow { margin-inline: auto; }
  .hero-actions, .trust-line { justify-content: center; }
  .hero-visual { min-height: 520px; }
  .tool-cards, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .muted-card, .price-card:last-child { grid-column: span 2; }
  .workflow-grid { grid-template-columns: 1fr; gap: 55px; }
  .app-body { grid-template-columns: 180px 1fr; }
  .preview-panel { display: none; }
  .resource-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .shell, .site-header { width: min(100% - 28px,1160px); }
  .site-header { height: 70px; }
  .site-header .button-small { display: none; }
  .hero { min-height: auto; padding: 55px 0 65px; }
  .hero h1 { letter-spacing: -3px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .document-mock { padding: 26px 25px 20px; min-height: 440px; }
  .hero-visual { min-height: 475px; }
  .chip-top { right: -2px; }
  .chip-bottom { left: 1px; }
  .logos-bar { justify-content: flex-start; gap: 24px; overflow-x: auto; white-space: nowrap; }
  .section { padding-block: 78px; }
  .tool-cards, .pricing-grid { grid-template-columns: 1fr; }
  .muted-card, .price-card:last-child { grid-column: auto; }
  .price-card.popular { transform: none; }
  .cta { padding: 38px 28px; flex-direction: column; align-items: flex-start; }
  .footer { padding-block: 30px; flex-direction: column; align-items: flex-start; gap: 13px; }
  .footer-links { align-items: flex-start; flex-direction: column; gap: 10px; }
  .resource-hero { padding: 44px 0 62px; }
  .resource-copy h1 { letter-spacing: -2.8px; }
  .resource-copy > p { font-size: 16px; }
  .resource-card { padding: 26px; }
  .content-section { padding: 64px 0; }
  .feature-grid, .field-list { grid-template-columns: 1fr; }
  .comparison { display: block; overflow-x: auto; }
  .resource-cta { margin-bottom: 40px; padding: 36px 26px; flex-direction: column; align-items: flex-start; }
  .state-card { padding: 38px 24px; }
  .app-overlay { padding: 0; }
  .app-shell { height: 100vh; border-radius: 0; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; }
  .sidebar-label, .sidebar-tip { display: none; }
  .doc-tab { min-width: 170px; margin: 0; padding: 10px; }
  .app-body { height: calc(100% - 65px); grid-template-rows: 66px 1fr; }
  .form-panel { padding: 22px 14px 80px; }
  .form-heading { align-items: flex-start; }
  .autosave { margin-top: 8px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .form-section { padding: 18px 14px; }
  .invoice-extras { justify-content: stretch; }
  .field.compact { width: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
