/* Navy theme. Midnight bands carry the headline and the drop zone, pale paper
   carries the reading, and one signal yellow marks the thing to press. */

@font-face { font-family: "Plex Cond"; src: url("/vendor/fonts/plex-cond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("/vendor/fonts/plex-cond-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/vendor/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/vendor/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --midnight: #071329;
  --navy: #0d2147;
  --harbor: #1b3a7a;
  --sky: #8db8ff;
  --mist: #c3d2ec;
  --paper: #f4f7fc;
  --white: #fff;
  --ink: #0b1b3b;
  --ink-soft: #4a5b7a;
  --rule: #d5def0;
  --link: #1d46b8;
  --signal: #ffc83d;
  --signal-hover: #ffd566;
  --ok: #0f7a55;
  --err: #b3261e;
  --radius: 10px;
  --font-head: "Plex Cond", "IBM Plex Sans Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plex Sans", "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: .5rem .75rem; background: var(--signal); color: var(--midnight); z-index: 20; }
.skip:focus { top: .5rem; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.paper :focus-visible, .tool-card :focus-visible, .section :focus-visible { outline-color: var(--link); }
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -.005em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; max-width: 38rem; }
.fine { font-size: .9rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.top { background: var(--midnight); color: var(--white); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); font: 700 1.55rem/1 var(--font-head); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem; }
.top nav a:not(.btn) { color: var(--mist); font: 600 1.05rem/1.2 var(--font-head); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.top nav a:not(.btn):hover, .top nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--signal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .45rem 1.2rem;
  font: 700 1.05rem/1.1 var(--font-head); letter-spacing: .01em;
  color: var(--white); background: var(--navy);
  border: 2px solid var(--navy); border-radius: 8px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--harbor); border-color: var(--harbor); }
.btn.cta { background: var(--signal); border-color: var(--signal); color: var(--midnight); }
.btn.cta:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.btn.small { min-height: 2.25rem; padding: .25rem .85rem; font-size: .95rem; }
.btn.big { min-height: 3.2rem; padding-inline: 1.6rem; font-size: 1.2rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.top .btn { min-height: 2.3rem; padding: .2rem .9rem; font-size: 1rem; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; background-color: var(--midnight); color: var(--white);
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero::before, .band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(141, 184, 255, .13) 1px, transparent 1px) 0 0 / 240px 240px,
    linear-gradient(90deg, rgba(141, 184, 255, .13) 1px, transparent 1px) 0 0 / 240px 240px,
    linear-gradient(rgba(141, 184, 255, .06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(141, 184, 255, .06) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero > .wrap, .band > .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: 1.1rem; }
.hero .lede { color: var(--mist); }
.hero-points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .55rem; color: var(--white); }
.hero-points li { display: flex; gap: .65rem; align-items: baseline; }
.hero-points li::before { content: ""; width: .6rem; height: .6rem; flex: none; background: var(--signal); transform: translateY(-.05rem); }

.hero-card { background: var(--white); color: var(--ink); border-radius: 14px; padding: 1.1rem; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .75); }
.pick { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.pick a, .pick button {
  display: inline-block; padding: .3rem .75rem; font: 600 .98rem/1.3 var(--font-head);
  color: var(--navy); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 999px; text-decoration: none; cursor: pointer;
}
.pick a:hover, .pick button:hover { border-color: var(--navy); }
.pick [aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- tool page band and card ---------- */
.band { position: relative; overflow: hidden; background: var(--midnight); color: var(--white); padding-block: clamp(1.75rem, 5vw, 3.25rem) clamp(4.5rem, 8vw, 6rem); }
.band h1 { max-width: 18ch; margin-bottom: .9rem; }
.band .lede { color: var(--mist); margin-bottom: 1.25rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.toolbar a { display: inline-block; padding: .25rem .7rem; font: 600 .95rem/1.3 var(--font-head); color: var(--mist); border: 1.5px solid rgba(141, 184, 255, .3); border-radius: 999px; text-decoration: none; }
.toolbar a:hover { color: var(--white); border-color: var(--sky); }
.toolbar a[aria-current="page"] { background: var(--signal); border-color: var(--signal); color: var(--midnight); }

.tool-layout { position: relative; margin-top: -3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.tool-card { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1rem, 3vw, 1.75rem); box-shadow: 0 24px 60px -30px rgba(7, 19, 41, .55); }
.loading { color: var(--ink-soft); margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--rule); }
.facts div { display: flex; gap: .4rem; align-items: baseline; }
.facts dt { font-size: .88rem; color: var(--ink-soft); }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; font: 700 1rem/1.3 var(--font-head); }
.side { display: none; }

/* ---------- drop zone ---------- */
.drop {
  display: grid; place-content: center; gap: .35rem; min-height: 14rem; padding: 2rem 1.5rem; text-align: center;
  background: var(--paper); color: var(--ink);
  border: 2px dashed #9fb3d8; border-radius: 12px; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.drop:hover, .drop.is-over { background: #e8effc; border-color: var(--navy); border-style: solid; }
.drop:focus-within { outline: 3px solid var(--link); outline-offset: 3px; }
.drop-title { font: 700 clamp(1.6rem, 4vw, 2.1rem)/1.1 var(--font-head); color: var(--navy); }
.drop-hint { color: var(--ink-soft); }
.hero-card .drop { min-height: 12rem; }

/* ---------- form controls ---------- */
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 1.5rem; margin-top: 1.25rem; align-items: start; }
.field { display: grid; gap: .3rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-label { font: 600 1rem/1.2 var(--font-head); }
.field-hint { font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }
.choice { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
select, input[type="number"], input[type="text"], input[type="email"], input[type="color"], textarea {
  width: 100%; min-height: 2.6rem; padding: .4rem .65rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #9fb3d8; border-radius: 8px;
}
textarea { min-height: 9rem; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 3px solid rgba(29, 70, 184, .35); border-color: var(--link); }
input[type="color"] { padding: .15rem; }
input[type="range"] { width: 100%; accent-color: var(--navy); }
.range { display: flex; align-items: center; gap: .75rem; }
.range-value { min-width: 3.2ch; font-weight: 600; font-variant-numeric: tabular-nums; }
.opts + .btn, .opts + .fine { margin-top: 1rem; }

/* ---------- results ---------- */
.results-status { min-height: 1.5rem; margin: 1rem 0 .25rem; color: var(--ink-soft); font-size: .95rem; }
.results { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: .9rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--rule); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.thumb { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; font: 700 .95rem var(--font-head); color: var(--harbor); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb canvas { max-width: 100%; max-height: 100%; }
.row-body { min-width: 0; }
.row-name { font-weight: 600; overflow-wrap: anywhere; }
.row-meta { font-size: .9rem; color: var(--ink-soft); }
.row.is-error .row-meta, .row.is-error .thumb { color: var(--err); }
.row.is-error .thumb { border-color: var(--err); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1rem; }
.bar-note { color: var(--ink-soft); font-size: .9rem; }
.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 0; }
.previews.single { grid-template-columns: 1fr; max-width: 28rem; }
.previews figure { margin: 0; }
.previews figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.preview-img, .preview-canvas { display: block; width: 100%; max-height: 24rem; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: 6px; }
.preview-canvas { background: #000; }

/* ---------- limit notice ---------- */
.limit { margin: 0 0 1rem; padding: 1rem 1.2rem; background: #fff7df; border: 1.5px solid var(--signal); border-radius: 10px; }
.limit p { margin: .2rem 0 .8rem; }

/* ---------- PDF tools ---------- */
.pdf-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.pdf-item { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .9rem; align-items: center; padding: .6rem .8rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.thumb.big { width: 4.5rem; height: 5.5rem; background: var(--white); }
.row-tools { display: flex; gap: .3rem; }
.icon-btn { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .4rem; font: 700 1.15rem/1 var(--font-body); color: var(--navy); background: var(--white); border: 1.5px solid #9fb3d8; border-radius: 8px; cursor: pointer; }
.icon-btn:hover:not([disabled]) { background: var(--navy); border-color: var(--navy); color: var(--white); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .8rem; margin-top: 1rem; max-height: 34rem; overflow: auto; padding: .25rem; }
.pg { position: relative; display: grid; grid-template-rows: 1fr auto; gap: .35rem; justify-items: center; padding: .55rem .5rem .45rem; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--rule); border-radius: 10px; }
button.pg { cursor: pointer; }
button.pg:hover:not([disabled]) { border-color: var(--harbor); }
button.pg[aria-pressed="true"] { border-color: var(--navy); background: #dfe9fc; }
button.pg[aria-pressed="true"] .pg-num { background: var(--navy); color: var(--white); }
button.pg[disabled] { cursor: default; }
.pg-img { display: grid; place-items: center; width: 100%; height: 9.5rem; }
.pg-img canvas { max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 1px 4px rgba(7, 19, 41, .25); }
.pg-num { min-width: 1.6rem; padding: 0 .45rem; font: 700 .9rem/1.5 var(--font-head); text-align: center; border-radius: 999px; }
.pg-tools { display: flex; gap: .3rem; }
.pg.is-turned { border-color: var(--signal); background: #fff9e8; }

/* ---------- add text to PDF ---------- */
.tbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; padding: .75rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.tfield { display: grid; gap: .2rem; font: 600 .85rem/1.2 var(--font-head); }
.tfield select, .tfield input[type="number"] { min-height: 2.3rem; width: auto; min-width: 5rem; }
.tfield input[type="color"] { width: 3rem; min-height: 2.3rem; }
.tfield.check { display: flex; align-items: center; gap: .4rem; padding-bottom: .5rem; }
.tfield.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.pager { justify-content: center; margin-top: .75rem; }
.stage { margin-top: .75rem; padding: .75rem; background: #dfe6f3; border-radius: 10px; overflow: auto; max-height: 80vh; }
.page-view { position: relative; margin-inline: auto; background: #fff; box-shadow: 0 6px 24px -8px rgba(7, 19, 41, .5); }
.page-view canvas { display: block; }
.layer { position: absolute; inset: 0; cursor: text; }
.tbox { position: absolute; }
.tt { display: block; margin: 0; padding: 0; border: 0; background: transparent; resize: none; overflow: hidden; white-space: pre; min-width: 24px; outline: 1px dashed rgba(29, 70, 184, .55); outline-offset: 1px; }
.tt:focus { outline: 2px solid var(--link); }
.tbox.is-selected .tt { outline: 2px solid var(--link); }
.grip { position: absolute; right: 100%; top: 0; margin-right: 4px; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; padding: 0; font: 700 1rem/1 var(--font-body); color: var(--white); background: var(--link); border: 0; border-radius: 5px; cursor: grab; touch-action: none; opacity: .85; }
.grip:active { cursor: grabbing; }
.tbox:not(.is-selected) .grip { opacity: .45; }
.formbox { margin-top: 1rem; padding: .75rem 1rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.formbox summary { font: 700 1.1rem/1.3 var(--font-head); cursor: pointer; color: var(--navy); }
.formbox .opts { margin-top: .9rem; }
.field input[type="checkbox"] { width: 1.3rem; height: 1.3rem; justify-self: start; accent-color: var(--navy); }

/* ---------- landing sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.dark { background: var(--midnight); color: var(--white); }
.section.dark .lede { color: var(--mist); }
.section.white { background: var(--white); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: .7rem 0 0; }
.section.dark .section-head p { color: var(--mist); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.tool-grid a { display: grid; gap: .6rem; align-content: start; height: 100%; padding: 1.2rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--rule); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tool-grid a:hover { border-color: var(--navy); box-shadow: 0 10px 30px -18px rgba(7, 19, 41, .6); }
.tool-grid h3 { color: var(--navy); }
.tool-grid p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.formats { display: flex; align-items: center; gap: .4rem; font: 700 .95rem/1 var(--font-head); }
.formats span { padding: .28rem .5rem; color: var(--navy); background: var(--paper); border: 1.5px solid var(--navy); border-radius: 5px; }
.formats i { font-style: normal; font-weight: 400; font-family: var(--font-body); font-size: .8rem; color: var(--ink-soft); }
.group-title { margin: 2rem 0 .8rem; font-size: 1.35rem; color: var(--navy); }
.group-title:first-of-type { margin-top: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 1rem; border-top: 3px solid var(--navy); }
.steps li::before { content: counter(s); display: block; margin-bottom: .4rem; font: 700 2.6rem/1 var(--font-head); color: var(--harbor); }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--ink-soft); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split h2 { margin-bottom: 1rem; }
.tool-card > #tool > .fine { margin: .75rem 0 0; }
.diagram { width: 100%; height: auto; color: var(--sky); }
.diagram text { font: 600 15px var(--font-head); fill: currentColor; }
.diagram .dim { opacity: .55; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 24rem)); gap: 1.25rem; justify-content: center; }
.plan { display: flex; flex-direction: column; padding: 1.6rem; background: var(--white); border: 1.5px solid var(--rule); border-radius: 14px; }
.plan h3 { font-size: 1.5rem; }
.plan .price { margin: .6rem 0 1rem; font: 700 3rem/1 var(--font-head); }
.plan .price small { font: 400 1rem var(--font-body); color: var(--ink-soft); }
.plan ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .55rem; flex: 1; }
.plan li { display: flex; gap: .6rem; align-items: baseline; }
.plan li::before { content: ""; width: .55rem; height: .55rem; flex: none; background: var(--harbor); }
.plan.pro { color: var(--white); background: var(--navy); border-color: var(--navy); }
.plan.pro .price small { color: var(--mist); }
.plan.pro li::before { background: var(--signal); }
.plan .fine { margin: .8rem 0 0; }
.plan.pro .fine { color: var(--mist); }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin: 0 auto 1rem; }
.cta-band .lede { margin: 0 auto 1.5rem; }

/* ---------- guide, faq, ads ---------- */
.guide { margin-top: 2.5rem; padding: clamp(1.25rem, 3.5vw, 2.5rem); background: var(--white); border: 1px solid var(--rule); border-radius: 14px; }
.guide > * { max-width: 42rem; }
.guide h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 2rem 0 .6rem; }
.guide h2:first-child { margin-top: 0; }
.guide ol, .guide ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.guide li { margin-bottom: .45rem; }
.faq details { border-top: 1px solid var(--rule); padding: .75rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { font: 600 1.15rem/1.35 var(--font-head); cursor: pointer; color: var(--navy); }
.faq details p { margin: .6rem 0 0; color: var(--ink-soft); }
.ad { margin: 2rem 0; text-align: center; min-height: 6rem; }
.ad small { display: block; margin-bottom: .25rem; font-size: .75rem; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: .3rem .8rem; color: var(--navy); background: var(--white); border: 1.5px solid var(--rule); border-radius: 999px; font: 600 1rem/1.3 var(--font-head); text-decoration: none; }
.chips a:hover { border-color: var(--navy); }
.section-title { margin: 2.5rem 0 .9rem; font-size: 1.5rem; }

.prose { max-width: 44rem; padding-bottom: 3rem; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 .5rem; }
.prose ul { padding-left: 1.3rem; }
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.page-head h1 { color: var(--navy); font-size: clamp(2.1rem, 5vw, 3.2rem); }

.form { display: grid; gap: 1rem; max-width: 34rem; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: .8rem 1rem; border-radius: 8px; background: #e8effc; border: 1px solid #9fb3d8; }
.notice:empty { display: none; }
.notice.bad { background: #fdeceb; border-color: var(--err); }
.keybox { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem 1.2rem; background: var(--paper); border: 1.5px dashed var(--navy); border-radius: 10px; }
.keybox code { font: 700 1.35rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--navy); overflow-wrap: anywhere; }
.account-grid { display: grid; gap: 1.25rem; max-width: 34rem; }
.account-grid section { padding: 1.25rem; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.account-grid h2 { font-size: 1.35rem; margin-bottom: .5rem; }

/* ---------- footer ---------- */
.foot { margin-top: 0; background: var(--midnight); color: var(--mist); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem; }
.foot h2 { font-size: 1.1rem; color: var(--white); margin: 0 0 .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot a { color: var(--mist); }
.foot a:hover { color: var(--white); }
.foot .fine { color: var(--mist); }
.foot-note { border-top: 1px solid rgba(141, 184, 255, .2); padding-block: 1rem; font-size: .9rem; }
.foot-note summary { cursor: pointer; }
.foot .chips a { color: var(--mist); background: transparent; border-color: rgba(141, 184, 255, .3); font-size: .9rem; }
.foot .chips a:hover { color: var(--white); border-color: var(--sky); }

@media (min-width: 1200px) {
  .tool-layout.has-side { grid-template-columns: minmax(0, 1fr) 180px; }
  .tool-layout.has-side .side { display: block; position: sticky; top: 1rem; }
  .tool-layout.has-side .side .ad { margin: 0; min-height: 600px; }
}
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .previews { grid-template-columns: 1fr; }
  .row { grid-template-columns: 3rem 1fr; }
  .row-action { grid-column: 2; }
  .thumb { width: 3rem; height: 3rem; }
  .pdf-item { grid-template-columns: 3.5rem 1fr; }
  .pdf-item .row-tools { grid-column: 1 / -1; }
  .thumb.big { width: 3.5rem; height: 4.5rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .top nav { gap: .25rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
