/* idinvent.com — PDFq website. No inline styles (the Content-Security-Policy forbids them). */
:root {
  --ink: #101318;
  --ink-2: #3A4250;
  --muted: #5B6472;
  --line: #E3E6EB;
  --soft: #F6F7F9;
  --blue: #1F6FEB;
  --blue-dark: #174EA6;
  --blue-soft: #E8F0FE;
  --night: #0F1115;
  --night-ink: #E6E9EF;
  --night-muted: #9AA3B2;
  --green: #2E8B57;
  --red: #C62828;
  --amber: #B7791F;
  --radius: 10px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Space Grotesk", Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: #fff; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand b { font-family: var(--display); font-size: 21px; }
.brand b span { color: var(--blue); }
.brand small { color: var(--muted); font-size: 13px; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.top .actions { display: flex; gap: 10px; align-items: center; }
.btn.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .btn.menu-toggle { display: inline-flex; }
  .top .actions .hide-sm { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: 600 15px var(--font); text-decoration: none; cursor: pointer; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #D5D9E0; }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn { white-space: nowrap; }
@media (max-width: 480px) { .brand small { display: none; } }
.btn.danger { background: #fff; color: var(--red); border-color: #F0C8C8; }
.btn.small { height: 34px; padding: 0 12px; font-size: 14px; }
.btn.wide { width: 100%; height: 46px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* hero */
.hero { background: var(--night); color: var(--night-ink); padding: 88px 0 96px; }
.hero h1 { max-width: 780px; }
.hero p.lead { font-size: 19px; color: #B8C0CC; max-width: 680px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn.ghost { background: transparent; color: var(--night-ink); border-color: #3A4250; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: #A9C7FF; border: 1px solid #2A3B5C; border-radius: 99px; padding: 3px 12px; margin-bottom: 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 56px; max-width: 860px; }
.facts div { border-top: 1px solid #2A303C; padding-top: 14px; }
.facts b { display: block; font-size: 15px; }
.facts span { font-size: 14px; color: var(--night-muted); }

/* sections */
section.band { padding: 72px 0; }
section.band.soft { background: var(--soft); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card.link { text-decoration: none; color: inherit; display: block; }
.card.link:hover { border-color: #B9D0FA; background: #FAFCFF; }
.icon { width: 40px; height: 40px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.green { background: #E7F6EE; color: var(--green); }
.icon.amber { background: #FFF4E0; color: var(--amber); }
.icon.violet { background: #F0EBFF; color: #6E56CF; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.page-head { padding: 56px 0 24px; }
.page-head p { font-size: 18px; color: var(--muted); max-width: 720px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 26px; position: relative; margin: 6px 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.plan .price { font-family: var(--display); font-size: 34px; font-weight: 700; }
.plan .price small { font: 500 14px var(--font); color: var(--muted); }
.plan .tbd { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--muted); }
.plan .checks { flex: 1; font-size: 15px; }
.note { border: 1px solid #F3D9A4; background: #FFF9EC; border-radius: var(--radius); padding: 14px 18px; font-size: 15px; }
.note.info { border-color: #B9D0FA; background: #F3F7FF; }

/* forms */
.auth { display: flex; flex-wrap: wrap; min-height: calc(100vh - 64px); }
.auth .side { flex: 1 1 460px; background: var(--night); color: var(--night-ink); padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.auth .side h1 { font-size: clamp(30px, 4vw, 44px); }
.auth .side p { color: #B8C0CC; font-size: 17px; max-width: 480px; }
.auth .main { flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth .box { width: 100%; max-width: 420px; }
@media (max-width: 760px) { .auth .side { display: none; } }
form.stack, .stack { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
label .hint { font-weight: 400; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  font: 16px var(--font); color: var(--ink); border: 1px solid #C9CED6; border-radius: 8px; padding: 10px 12px; background: #fff; width: 100%;
}
textarea { min-height: 150px; resize: vertical; }
input.code { font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: .25em; text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 200px; }
.row > .btn { flex: 0 0 auto; }
.page-head + section.band { padding-top: 8px; }
.page-head + section.band .narrow, .page-head:has(+ section .narrow) { max-width: 760px; }
.msg { border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.msg.error { background: #FDECEC; color: #8E1C1C; border: 1px solid #F4C7C7; }
.msg.ok { background: #E7F6EE; color: #1E5E3A; border: 1px solid #BFE3CF; }
.msg.info { background: #F3F7FF; color: #1D3F7A; border: 1px solid #B9D0FA; }
[hidden] { display: none !important; }
.qr { display: flex; justify-content: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.qr img { width: 200px; height: 200px; }
.secret { font-family: ui-monospace, Consolas, monospace; word-break: break-all; background: var(--soft); padding: 8px 10px; border-radius: 6px; font-size: 14px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 16px; background: var(--soft); border-radius: var(--radius); padding: 16px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; margin: 0 0 12px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13px; display: grid; place-items: center; }

/* account */
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 22px; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 8px 10px; }
table.list td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 10px; background: var(--soft); color: var(--ink-2); }
.tag.green { background: #E7F6EE; color: var(--green); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.amber { background: #FFF4E0; color: var(--amber); }
.scroll { overflow-x: auto; }

/* contact */
.topics { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.topic { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.topic:hover { border-color: #B9D0FA; background: #FAFCFF; }
.topic b { font-size: 17px; }
.topic span { color: var(--muted); font-size: 15px; }
.topic em { font-style: normal; font-size: 13px; color: var(--green); font-weight: 600; }
.search-box { display: flex; gap: 10px; max-width: 640px; }
.search-box input { height: 48px; }
.search-box .btn { height: 48px; }

/* legal and site map */
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose li { margin: 4px 0; }
.mapcols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mapcols ul { list-style: none; padding: 0; margin: 0; }
.mapcols li { margin: 6px 0; }
.mapcols li.sub { padding-left: 18px; }

/* footer */
footer.site { background: var(--night); color: var(--night-muted); padding: 56px 0 32px; margin-top: 0; font-size: 14px; }
footer.site .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
footer.site b { color: var(--night-ink); display: block; margin-bottom: 10px; }
footer.site a { color: var(--night-muted); text-decoration: none; display: block; margin: 6px 0; }
footer.site a:hover { color: #fff; }
footer.site .base { border-top: 1px solid #2A303C; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
