/* DocWillow design system: calm, neutral, one accent colour */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --paper: #ffffff;
  --subtle: #f8fafc;
  --card: #ffffff;
  --accent: #2547d0;
  --accent-ink: #1c38a8;
  --accent-soft: #eef2ff;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --warn: #92400e;
  --warn-soft: #fffbeb;
  --err: #b91c1c;
  --err-soft: #fef2f2;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-lg: 0 1px 3px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .08);
  --font: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 15.5px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(740px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.08rem; text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 24px; margin-right: auto; }
.nav-links a, .nav-right a.link { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.nav-links a:hover, .nav-right a.link:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-right form { margin: 0; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; color: var(--ink); }
.dropdown { position: relative; }
.dropdown-panel { display: none; position: absolute; top: calc(100% + 12px); left: -20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px 24px; width: 760px; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; }
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { display: grid; }
.dropdown-panel h4 { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.dropdown-panel a { display: block; padding: 4px 0; font-size: .9rem; text-decoration: none; color: var(--ink-2); }
.dropdown-panel a:hover { color: var(--accent); }
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links, .nav-right { display: none; }
  .nav.open .container { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .nav.open .nav-links, .nav.open .nav-right { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: 12px; }
  .dropdown-panel { display: none !important; }
}

/* ---------- buttons */
.btn { --bg: var(--ink); --fg: #fff; --bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font: inherit; font-weight: 550; font-size: .93rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { --bg: #1e293b; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-accent { --bg: var(--accent); }
.btn-accent:hover { --bg: var(--accent-ink); }
.btn-ghost { --bg: #fff; --fg: var(--ink); --bd: var(--line-2); }
.btn-ghost:hover { --bg: var(--subtle); }
.btn-lg { padding: 12px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: .86rem; }
.btn-danger { --bg: var(--err); }
.btn-danger:hover { --bg: #991b1b; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); font-weight: 500; cursor: pointer; font-size: .92rem; }
.link-btn:hover { color: var(--ink); }

/* ---------- hero */
.hero { padding: 80px 0 48px; text-align: center; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 550; color: var(--muted); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { max-width: 760px; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-2); max-width: 600px; margin: 0 auto 30px; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.trust-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: .86rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; color: var(--ok); }

/* ---------- tool grid */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.section-head p { margin: 0; }
.tabs { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.tab { border: 0; background: none; padding: 7px 14px; border-radius: var(--radius-sm); font: inherit; font-weight: 500; font-size: .9rem; cursor: pointer; color: var(--muted); }
.tab:hover { color: var(--ink); background: var(--subtle); }
.tab.active { background: var(--subtle); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.tool-card h3 { margin: 6px 0 0; }
.tool-card p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.pro-tag { position: absolute; top: 16px; right: 16px; font-size: .66rem; font-weight: 600; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
/* Tool icon: a soft tile tinted with the tool's own colour */
.ticon { --c: #334155; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: color-mix(in srgb, var(--c) 10%, white); color: var(--c); font-size: .62rem; font-weight: 700; letter-spacing: .03em; flex: none; }
.ticon.lg { width: 52px; height: 52px; border-radius: 11px; font-size: .78rem; }

/* ---------- features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature .ic { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ic svg { width: 18px; height: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: .92rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; counter-reset: s; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; color: var(--accent); font-weight: 600; font-size: .85rem; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); margin: 0; font-size: .92rem; }
.band { background: var(--subtle); border: 1px solid var(--line); border-radius: 14px; padding: 52px 32px; text-align: center; }
.band p { color: var(--muted); margin-bottom: 24px; }

/* ---------- pricing */
.billing-toggle { display: inline-flex; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; margin: 0 auto 32px; }
.billing-toggle button { border: 0; background: none; font: inherit; font-weight: 550; font-size: .9rem; padding: 7px 16px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.billing-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.save { font-size: .7rem; background: var(--ok-soft); color: var(--ok); padding: 2px 6px; border-radius: 999px; margin-left: 4px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.price-card .badge { position: absolute; top: -11px; left: 28px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.price { font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 0; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: .86rem; min-height: 1.4em; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; flex: 1; }
.checks li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/15px no-repeat; }
.checks li.no { color: var(--muted); }
.checks li.no::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--subtle); font-weight: 600; }
.tick { color: var(--ok); font-weight: 700; }
.dash { color: #94a3b8; }

/* ---------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq summary { cursor: pointer; font-weight: 550; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- tool page */
.tool-hero { padding: 56px 0 8px; text-align: center; }
.tool-hero .ticon { margin: 0 auto 18px; }
.tool-hero p { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: 1.04rem; }
.workspace { max-width: 820px; margin: 32px auto 0; }
.dropzone { display: block; position: relative; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--subtle); padding: 56px 24px; text-align: center; transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .up { width: 48px; height: 48px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--shadow); }
.dropzone .up svg { width: 22px; height: 22px; }
.dropzone strong { font-size: 1.08rem; font-weight: 600; display: block; margin-bottom: 4px; }
.dz-hint { color: var(--muted); font-size: .86rem; margin-top: 10px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.file-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--subtle); }
.file-item .fi-ext { flex: none; font-size: .64rem; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--ink-2); padding: 4px 6px; border-radius: 5px; min-width: 40px; text-align: center; text-transform: uppercase; }
.file-item .fi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: .92rem; }
.file-item .fi-size { color: var(--muted); font-size: .82rem; }
.file-item.bad { border-color: #fecaca; background: var(--err-soft); }
.icon-btn { flex: none; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--muted); font-size: 14px; line-height: 1; }
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.add-more { display: inline-flex; align-items: center; gap: 6px; position: relative; font-weight: 550; color: var(--accent); cursor: pointer; font-size: .9rem; margin-bottom: 18px; }
.add-more input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.field label { display: block; font-weight: 550; font-size: .86rem; margin-bottom: 6px; }
.field .help { color: var(--muted); font-size: .79rem; margin-top: 4px; }
.field.locked { opacity: .6; }
.lock { display: inline-block; font-size: .62rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; letter-spacing: .04em; text-decoration: none; }
input[type=text], input[type=email], input[type=password], input[type=number], select { width: 100%; font: inherit; font-size: .93rem; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(37, 71, 208, .2); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .92rem; cursor: pointer; padding-top: 26px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 18px 0 8px; }
.progress div { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .2s; }
.progress.indeterminate div { width: 35%; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.status-text { color: var(--muted); font-size: .88rem; text-align: center; }
.result { text-align: center; padding: 34px 24px; }
.result .done { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.result .done svg { width: 26px; height: 26px; }
.result .meta { color: var(--muted); margin-bottom: 22px; }
.next-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 14px; border: 1px solid transparent; }
.alert-error { background: var(--err-soft); color: var(--err); border-color: #fecaca; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: #bbf7d0; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.alert a { font-weight: 600; }
.hidden { display: none !important; }
.privacy-note { display: flex; gap: 8px; justify-content: center; align-items: center; color: var(--muted); font-size: .84rem; margin-top: 16px; }
.privacy-note svg { width: 14px; height: 14px; }

/* ---------- auth / dashboard */
.auth-wrap { min-height: calc(100vh - 60px - 220px); display: grid; place-items: center; padding: 56px 20px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 550; font-size: .88rem; margin-bottom: 6px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .k { color: var(--muted); font-size: .82rem; font-weight: 500; }
.stat .v { font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; }
.meter { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.meter div { height: 100%; background: var(--accent); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 550; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.table td.trunc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--subtle); border: 1px solid var(--line); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); border-color: #bbf7d0; color: var(--ok); }
.pill.error { background: var(--err-soft); border-color: #fecaca; color: var(--err); }
.pill.limit { background: var(--warn-soft); border-color: #fde68a; color: var(--warn); }
.dash-section { margin-bottom: 28px; }
code, pre { font-family: var(--mono); font-size: .86rem; }
pre { background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: var(--radius); overflow-x: auto; line-height: 1.55; }
code.inline { background: var(--subtle); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.key-box { display: flex; gap: 8px; align-items: center; }
.key-box code { flex: 1; background: #0f172a; color: #a5f3c4; padding: 11px 12px; border-radius: var(--radius-sm); overflow-x: auto; white-space: nowrap; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- footer */
.footer { border-top: 1px solid var(--line); background: var(--subtle); margin-top: 72px; padding: 48px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 26px; }
.footer h4 { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.footer a { display: block; text-decoration: none; color: var(--ink-2); padding: 3px 0; }
.footer a:hover { color: var(--ink); }
.footer a.brand { display: inline-flex; padding: 0; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.demo-banner { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid #fde68a; text-align: center; font-size: .82rem; padding: 7px 12px; font-weight: 500; }

/* ---------- auth (split layout) */
.auth-split { display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; min-height: calc(100vh - 60px); }
.auth-side { background: var(--ink); color: #fff; position: relative; overflow: hidden; display: flex; align-items: center; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 100% 0%, rgba(37, 71, 208, .35), transparent 70%); }
.auth-side-inner { position: relative; z-index: 1; padding: 56px 52px; max-width: 520px; margin-left: auto; }
.brand-light { color: #fff; margin-bottom: 44px; }
.auth-side h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.2; margin-bottom: 28px; }
.auth-benefits { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; }
.auth-benefits li { display: flex; gap: 12px; align-items: flex-start; color: #cbd5e1; font-size: .95rem; }
.auth-benefits svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #a5b4fc; margin-top: 1px; }
.auth-benefits strong { color: #fff; font-weight: 600; }
.auth-quote { display: flex; gap: 12px; }
.auth-stat { flex: 1; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 16px 18px; }
.auth-stat strong { display: block; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
.auth-stat span { color: #94a3b8; font-size: .84rem; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-main .auth-card { width: min(400px, 100%); }
.auth-main h1 { font-size: 1.6rem; margin-bottom: 6px; text-align: left; }
.auth-sub { margin-bottom: 26px; }
.auth-foot { margin-top: 22px; }
.auth-foot .legal { display: block; margin-top: 10px; font-size: .8rem; }
.auth-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 18px; }
.auth-icon svg { width: 26px; height: 26px; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-weight: 550; font-size: .93rem; text-decoration: none; color: var(--ink); transition: background .15s; }
.btn-google:hover { background: var(--subtle); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .82rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { color: var(--accent); text-decoration: none; font-weight: 500; font-size: .86rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 550; color: var(--muted); cursor: pointer; padding: 6px 8px; }
.pw-toggle:hover { color: var(--ink); }
.pw-meter { height: 4px; background: var(--line); border-radius: 4px; margin: 8px 0 6px; overflow: hidden; }
.pw-meter div { height: 100%; width: 0; transition: width .2s, background .2s; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .86rem; text-decoration: none; }
.verify-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.verify-banner form { margin: 0; }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { order: 2; }
  .auth-side-inner { padding: 40px 24px; margin: 0; }
  .brand-light { display: none; }
}

/* ---------- pay per download */
.pay-card { text-align: center; padding: 36px 32px; }
.pay-card h1 { font-size: 1.5rem; margin-bottom: 18px; }
.pay-card .done { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.pay-card .done svg { width: 26px; height: 26px; }
.pay-file { display: flex; gap: 12px; align-items: center; justify-content: space-between; text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--subtle); margin-bottom: 18px; }
.pay-file .fi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: .92rem; }
.pay-file .fi-size { color: var(--muted); font-size: .82rem; }
.pay-note { margin: 12px 0 0; }
.pay-price { font-size: .86rem; color: var(--muted); margin-top: 10px; }

/* ---------- Edit & Sign PDF editor */
.editor { margin-top: 28px; }
.ed-toolbar { position: sticky; top: 68px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; }
.ed-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ed-tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; border-radius: var(--radius-sm); padding: 7px 10px; font: inherit; font-size: .88rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.ed-tool svg { width: 16px; height: 16px; }
.ed-tool:hover:not(:disabled) { background: var(--subtle); color: var(--ink); }
.ed-tool.active { background: var(--accent-soft); color: var(--accent); border-color: #c7d2fe; }
.ed-tool:disabled { opacity: .4; cursor: default; }
.ed-select { width: auto; padding: 6px 8px; font-size: .86rem; }
.ed-colors { display: inline-flex; gap: 6px; padding: 0 6px; }
.ed-color { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.ed-color[data-color=black] { background: rgb(18, 23, 41); }
.ed-color[data-color=blue] { background: rgb(26, 64, 191); }
.ed-color[data-color=red] { background: rgb(191, 26, 26); }
.ed-color.active { box-shadow: 0 0 0 2px var(--accent); }
.ed-hint { text-align: center; color: var(--muted); font-size: .88rem; margin: 14px 0; min-height: 1.4em; }
.ed-hint-error { color: var(--err); font-weight: 500; }
.ed-pages { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ed-page { position: relative; width: 100%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 6px 20px rgba(15, 23, 42, .08); user-select: none; touch-action: pan-y; }
.ed-page > img { width: 100%; height: auto; display: block; pointer-events: none; }
.editor.placing .ed-page { cursor: crosshair; }
.ed-pagenum { color: var(--muted); font-size: .78rem; margin-bottom: 16px; }
.ed-item { position: absolute; touch-action: none; cursor: move; }
.ed-item.selected { outline: 1.5px dashed var(--accent); outline-offset: 2px; }
.ed-text { font-family: Arial, "Liberation Sans", Helvetica, sans-serif; line-height: 1.2; white-space: pre; }
.ed-textbody { min-width: 1ch; min-height: 1.2em; outline: none; cursor: text; padding: 0; margin: 0; user-select: text; }
.ed-text:not(.selected) .ed-textbody:empty { outline: 1px dashed var(--line-2); }
.ed-grip { position: absolute; left: -16px; top: 0; width: 12px; height: 100%; min-height: 14px; border-radius: 3px; background: var(--accent-soft) radial-gradient(circle, var(--accent) 1px, transparent 1.5px) 0 0 / 6px 6px; cursor: move; display: none; }
.ed-item.selected .ed-grip { display: block; }
.ed-image img { width: 100%; height: 100%; display: block; pointer-events: none; }
.ed-tick svg { width: 100%; height: 100%; display: block; }
.ed-whiteout { background: #fff; box-shadow: 0 0 0 1px rgba(100, 116, 139, .35); }
.ed-resize { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 3px; background: #fff; border: 1.5px solid var(--accent); cursor: nwse-resize; display: none; }
.ed-item.selected .ed-resize { display: block; }
.ed-x { position: absolute; top: -12px; right: -12px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: 14px; line-height: 1; cursor: pointer; display: none; padding: 0; box-shadow: var(--shadow); }
.ed-item.selected .ed-x { display: grid; place-items: center; }
.ed-x:hover { color: var(--err); border-color: #fecaca; }
.ed-dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100% - 24px)); box-shadow: var(--shadow-lg); color: var(--ink); }
.ed-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.ed-dialog-inner { padding: 22px; }
.ed-dialog h3 { font-size: 1.1rem; margin-bottom: 14px; }
.ed-tabs { display: flex; gap: 4px; margin-bottom: 14px; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; width: fit-content; }
.ed-tab { border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 500; padding: 6px 14px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.ed-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.ed-dialog canvas { width: 100%; height: auto; aspect-ratio: 3 / 1; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff linear-gradient(transparent calc(75% - 1px), var(--line) calc(75% - 1px), var(--line) 75%, transparent 75%); display: block; touch-action: none; }
#sigCanvas { cursor: crosshair; }
#sigText { margin-bottom: 10px; }
.ed-under { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ed-sig-upload { padding: 28px 16px; margin-bottom: 10px; }
.ed-sig-upload strong { font-size: .95rem; }
.ed-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ed-dialog-error { margin: 12px 0 0; }
@media (max-width: 640px) {
  .ed-toolbar { position: static; gap: 6px; padding: 6px; }
  .ed-group { gap: 2px; }
  .ed-tool span { display: none; }
  .ed-tool { padding: 8px; }
  #edFinish { width: 100%; padding: 9px 14px; }
}

/* ---------- Edit & Sign promotion */
.nav-feature { display: inline-flex; align-items: center; gap: 6px; }
.nav-new, .eyebrow-badge { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 999px; line-height: 1.4; }
.eyebrow-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); padding: 4px 12px 4px 5px; transition: border-color .15s, background .15s; }
.eyebrow-link:hover { border-color: #c7d2fe; background: var(--accent-soft); color: var(--accent); }
.new-tag { background: var(--accent); color: #fff; }
.tool-card.is-new { border-color: #c7d2fe; background: linear-gradient(180deg, var(--accent-soft), #fff 60%); }
.tool-card.is-new:hover { border-color: var(--accent); }
.spotlight-wrap { padding: 8px 0 24px; }
.spotlight { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, #f8faff 0%, var(--accent-soft) 100%); border: 1px solid #dfe5fb; border-radius: 18px; padding: 48px; overflow: hidden; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.spotlight h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
.spotlight-copy > p { font-size: 1.02rem; max-width: 480px; }
.spotlight-list { margin: 22px 0 28px; flex: none; }
.spotlight-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spotlight-visual { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.sv-doc { width: min(340px, 100%); aspect-ratio: 1 / 1.25; background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 48px rgba(37, 71, 208, .14); padding: 30px 28px; transform: rotate(-2deg); display: flex; flex-direction: column; gap: 11px; }
.sv-title { height: 12px; width: 55%; background: var(--ink); border-radius: 3px; margin-bottom: 8px; }
.sv-line { height: 6px; background: #e2e8f0; border-radius: 3px; }
.w90 { width: 90%; } .w85 { width: 85%; } .w75 { width: 75%; } .w60 { width: 60%; }
.sv-field { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; border-bottom: 1.5px solid #cbd5e1; padding-bottom: 3px; }
.sv-label { height: 6px; width: 54px; background: #cbd5e1; border-radius: 3px; margin-bottom: 4px; flex: none; }
.sv-label.short { width: 34px; }
.sv-typed { font-family: Arial, "Liberation Sans", sans-serif; font-size: .88rem; color: rgb(26, 64, 191); }
.sv-check { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sv-box { width: 16px; height: 16px; border: 1.5px solid #94a3b8; border-radius: 3px; color: rgb(26, 64, 191); display: grid; place-items: center; flex: none; }
.sv-box svg { width: 13px; height: 13px; }
.sv-sign { margin-top: auto; color: rgb(26, 64, 191); position: relative; }
.sv-sign svg { width: 72%; height: auto; display: block; margin-left: 8%; }
.sv-rule { display: block; height: 1.5px; background: #cbd5e1; margin-top: -8px; }
.sv-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: .8rem; font-weight: 550; box-shadow: var(--shadow-lg); color: var(--ink); }
.sv-chip svg { width: 14px; height: 14px; color: var(--accent); }
.sv-chip-1 { top: 18%; right: 0; }
.sv-chip-2 { bottom: 12%; left: 0; }
.sv-chip-2 svg { color: var(--ok); }
@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .sv-chip-1 { right: 4%; } .sv-chip-2 { left: 4%; }
}
