:root {
  --paper: #f7f5ef;
  --paper-2: #efece2;
  --card: #ffffff;
  --ink: #14213d;
  --ink-2: #3b4a66;
  --muted: #6b7690;
  --rule: #dcd7c9;
  --green: #0f8a5f;
  --green-bg: #e3f4ec;
  --amber: #a86400;
  --amber-bg: #fff1d6;
  --red: #b3261e;
  --accent: #1d4ed8;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font: inherit; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px clamp(16px, 4vw, 48px); }
.top nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand svg { width: 30px; height: 30px; }
.brand.small { font-size: 1.05rem; }
@media (max-width: 720px) { .top nav a { display: none; } }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(16px, 4vw, 48px); padding-top: 28px; align-items: start; max-width: 1240px; margin: 0 auto; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--green); font-weight: 700; margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.trust { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: .55em; }
.trust li { padding-left: 30px; position: relative; color: var(--ink-2); }
.trust li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7.5' stroke='%230f8a5f' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.trust b { color: var(--ink); }

.tool { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 18px; box-shadow: 0 1px 0 #fff inset, 0 20px 50px -28px rgba(20,33,61,.35); }
.drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 38px 18px; border: 2px dashed #c9c3b2; border-radius: 14px; cursor: pointer; background: repeating-linear-gradient(0deg, #fff, #fff 27px, #f3f0e6 28px); transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.over { border-color: var(--green); background: #f5fbf8; }
.drop:focus-within { outline: 3px solid #9cd8bf; outline-offset: 2px; }
.drop-icon svg { width: 54px; height: 54px; }
.drop-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.drop-sub { color: var(--ink-2); }
.drop-note { margin-top: 8px; font-size: .86rem; color: var(--green); font-weight: 600; }

.files { display: grid; gap: 10px; margin-top: 14px; }
.file { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: #fffdf8; cursor: pointer; }
.file.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.file .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .meta { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); }
.file .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 2px 6px; border-radius: 6px; }
.file .x:hover { background: var(--paper-2); color: var(--ink); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--green-bg); color: var(--green); }
.pill.warn { background: var(--amber-bg); color: var(--amber); }
.pill.err { background: #fde7e6; color: var(--red); }
.pill.info { background: #e8edf8; color: var(--ink-2); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #cfd6e4; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.results { max-width: 1240px; margin: 8px auto 0; padding: 0 clamp(16px, 4vw, 48px) 120px; }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.view-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.view-switch button { border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: .86rem; }
.view-switch button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lock-note { background: var(--amber-bg); border: 1px solid #f0d49a; color: #6b4300; padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.table-wrap { overflow: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); max-height: 70vh; }
table.tx { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.tx th { font-family: var(--sans); position: sticky; top: 0; background: #faf8f2; text-align: left; font-weight: 600; color: var(--ink-2); padding: 9px 10px; border-bottom: 1px solid var(--rule); z-index: 1; white-space: nowrap; }
table.tx td { padding: 7px 10px; border-bottom: 1px solid #eeeae0; vertical-align: top; }
table.tx tr:nth-child(even) td { background: #fdfcf8; }
table.tx .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--mono); font-size: .86rem; }
table.tx .c-n { color: var(--muted); width: 1%; font-variant-numeric: tabular-nums; }
table.tx .c-date { white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
table.tx .c-ok, table.tx .c-del { width: 1%; text-align: center; }
table.tx td[contenteditable] { cursor: text; }
table.tx td[contenteditable]:hover { background: #f4f7ff; }
table.tx td[contenteditable]:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: #fff; }
table.tx tr.bad td { background: #fff8e8 !important; }
table.tx tr.locked td:not(.c-ok):not(.c-n) { filter: blur(4px); user-select: none; pointer-events: none; }
table.tx .in { color: var(--green); }
table.tx .del { border: 0; background: none; color: #a0a8b8; cursor: pointer; border-radius: 6px; padding: 0 6px; font-size: 1rem; }
table.tx .del:hover { color: var(--red); background: #fde7e6; }
.tick { color: var(--green); font-weight: 700; }
.cross { color: var(--amber); font-weight: 700; }
.dash { color: #b3b9c6; }

.exportbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(20,33,61,.97); color: #fff; backdrop-filter: blur(6px); }
.exportbar-inner { max-width: 1240px; margin: 0 auto; padding: 12px clamp(16px, 4vw, 48px); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.exportbar label { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: #c9d2e6; }
.exportbar select { font: inherit; font-size: .92rem; padding: 6px 30px 6px 10px; border-radius: 8px; border: 1px solid #c9d2e6; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314213d' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") right 10px center/10px no-repeat; color: var(--ink); max-width: 280px; -webkit-appearance: none; appearance: none; }
.exportbar .check { cursor: pointer; }
.plan { margin-left: auto; font-size: .85rem; color: #c9d2e6; }
.plan b { color: #3ddc97; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: #0f8a5f; border-color: #0f8a5f; color: #fff; }
.btn.primary:hover { background: #0c7550; }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.band { max-width: 1240px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 48px); }
.band.alt { background: var(--paper-2); max-width: none; }
.band.alt > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.band > h2 { margin-bottom: 1em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.steps span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid4 > div { border-top: 3px solid var(--ink); padding-top: 14px; }
@media (max-width: 900px) { .steps, .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps, .grid4 { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 22px; justify-content: center; align-items: start; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan-card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 26px; }
.plan-card.pro { border: 2px solid var(--ink); box-shadow: 0 24px 50px -30px rgba(20,33,61,.5); }
.plan-card .price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; margin: 0 0 .3em; }
.plan-card .price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan-card ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.plan-card li { margin-bottom: .45em; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .7em 0 0; color: var(--ink-2); }

.prose { max-width: 760px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 80px; }
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }

.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 40px clamp(16px, 4vw, 48px) 120px; border-top: 1px solid var(--rule); max-width: 1240px; margin: 0 auto; }
.foot nav { display: grid; gap: 6px; align-content: start; font-size: .92rem; }
.foot nav a { color: var(--ink-2); }
.foot .link { text-align: left; color: var(--ink-2); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

.dlg { border: 0; border-radius: 18px; padding: 0; max-width: min(520px, 92vw); width: 100%; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); color: var(--ink); }
.dlg::backdrop { background: rgba(20,33,61,.45); }
.dlg form > div { padding: 26px; }
.dlg h2 { font-size: 1.45rem; }
.dlg input[type=text], .dlg input[type=password], .dlg input[type=email], .dlg textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #c9c3b2; border-radius: 10px; margin: 4px 0 12px; background: #fff; }
.dlg textarea { min-height: 90px; resize: vertical; }
.dlg .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.dlg .err { color: var(--red); font-size: .9rem; min-height: 1.2em; }
.dlg .ok { color: var(--green); font-size: .9rem; }
.noscript { padding: 16px; background: var(--amber-bg); text-align: center; }

.seo-copy { max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 0; }
.seo-copy > div { max-width: 780px; color: var(--ink-2); }
.seo-copy h2 { color: var(--ink); }

#pricing > h2 { text-align: center; }
.results { scroll-margin-top: 12px; }
table.tx th.num { font-family: var(--sans); font-size: .92rem; }

.nav-cta { padding: 7px 14px; font-size: .92rem; }
.plan-card h3 small { font-family: var(--sans); font-size: .8rem; font-weight: 400; }


.redeem { display: grid; gap: 8px; max-width: 460px; margin: 18px 0 28px; }
.redeem input { font: inherit; font-family: var(--mono); letter-spacing: .04em; padding: 11px 12px; border: 1px solid #c9c3b2; border-radius: 10px; background: #fff; }
.redeem .err { color: var(--red); min-height: 1.3em; margin: 0; }
