/* SafeResize — built for everyone: big text, big buttons, one thing at a time, high contrast. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/vendor/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/vendor/fonts/caveat-latin-600-normal.woff2) format("woff2"); }
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #edf1f7;
  --ink: #0b1220;
  --ink-2: #283347;
  --muted: #535f76;
  --line: #d3d9e3;
  --line-2: #aeb8c8;
  --field-line: #7a8599; /* borders of text boxes and menus: 3:1 or more against the page */
  --brand: #1a47c4;
  --brand-2: #1f5bd8;
  --brand-soft: #e7eeff;
  --ok: #0d7437;
  --ok-soft: #e4f5ea;
  --ok-line: #a9dcbb;
  --bad: #b3261e;
  --bad-soft: #fdecea;
  --bad-line: #f1b5b0;
  --pro: #92400e;
  --pro-soft: #fef3c7;
  --radius: 20px;
  --radius-md: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 12px 32px rgba(11, 18, 32, .08);
  --checker: repeating-conic-gradient(#e7ebf2 0 25%, #fff 0 50%) 0 0 / 20px 20px;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
html[data-text="lg"] { font-size: 125%; }
html[data-text="xl"] { font-size: 140%; }
/* Keep focused elements below the sticky header (main.js sets --topbar-h to its real height). */
html { scroll-padding-top: calc(var(--topbar-h, 100px) + 12px); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
img, canvas { display: block; max-width: 100%; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
/* Headings and messages that get the focus from code (not from Tab) need no ring.
   Plain :focus (not :focus-visible) so older Safari, which lacks :focus-visible, keeps this rule. */
[tabindex="-1"]:not(a):not(button):focus { outline: none; box-shadow: none; }
.wrap { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; padding: 10px 16px; background: #fff; border-radius: 10px; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.only-touch { display: none !important; }
@media (pointer: coarse) {
  .only-touch { display: inline-flex !important; }
  .only-mouse { display: none; }
}

/* ---------- top ---------- */
.proto-banner { padding: 6px 16px; background: #fef9c3; color: #713f12; font-size: .78rem; text-align: center; }
.shot .proto-banner { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
/* Phones on their side: a sticky header would cover too much of the short screen. */
@media (max-height: 500px) { .topbar { position: static; } html { scroll-padding-top: 0; } }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 1.35rem; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.lw-a { color: var(--ink); }
.lw-b { color: var(--brand-2); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: .95rem; text-decoration: none; }
.nav a:hover, .nav a.on { background: var(--brand-soft); color: var(--brand); }
.topbar-in > .top-btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .topbar-in > .top-btn { margin-left: 8px; } .nav-short { display: none; } }
/* Phones and tablets: the three main links sit in a second row under the logo, always visible. */
@media (max-width: 899px) {
  .topbar-in { flex-wrap: wrap; row-gap: 0; min-height: 58px; }
  .nav { display: flex; order: 3; width: 100%; margin: 0 0 8px; gap: 6px; }
  .nav a { flex: 1; padding: 8px 4px; border: 1px solid var(--line); background: #fff; font-size: .88rem; text-align: center; }
  .nav-long { display: none; }
}
.top-actions { display: flex; gap: 8px; margin-left: auto; }
.top-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; }
.top-btn[data-level="1"] { font-size: 1.1rem; }
.top-btn[data-level="2"] { font-size: 1.25rem; }
.top-pro { border-color: #f3d27a; background: var(--pro-soft); color: var(--pro); }

/* ---------- home ---------- */
.hero { padding: 32px 0 8px; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); letter-spacing: -.02em; }
.hero.small h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
.lede { max-width: 38rem; margin-top: 12px; color: var(--ink-2); font-size: 1.1rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.trust li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .9rem; }
.section-q { margin: 30px 0 14px; font-size: 1.3rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 18px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile:hover, .tile:focus-visible { border-color: var(--brand-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile-icon { font-size: 2.2rem; line-height: 1; }
.tile-title { margin-top: 6px; font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.tile-sub { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.paste-card { margin-top: 28px; }
.paste-card textarea, .paste-box textarea { margin-top: 12px; }
.paste-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.how, .why { margin-top: 40px; }
.how h2, .why h2 { margin-bottom: 14px; font-size: 1.4rem; }
.how-list { display: grid; gap: 10px; margin: 0; padding-left: 1.4rem; font-size: 1.02rem; }
.why-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.why-icon { font-size: 1.8rem; }
.why-card h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.why-card p { color: var(--ink-2); font-size: .95rem; }

/* ---------- tool page ---------- */
.tool-head { padding: 18px 0 6px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.tool-title { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: clamp(1.6rem, 5vw, 2.1rem); }
.tool-icon { font-size: 2.1rem; }
.progress { display: flex; gap: 6px; margin-top: 16px; }
.progress span { flex: 1; height: 8px; border-radius: 999px; background: var(--line); }
.progress span.on { background: var(--brand-2); }
.step-label { margin-top: 8px; color: var(--muted); font-size: .95rem; font-weight: 700; }
.tool-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px 0 8px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h2 { flex: 1; font-size: 1.4rem; }
.help { color: var(--ink-2); font-size: 1.02rem; }
.speak { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.15rem; cursor: pointer; }
.speak:hover { border-color: var(--brand-2); }
.file-chip { justify-self: start; max-width: 100%; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: .92rem; }
.hint { color: var(--muted); font-size: .92rem; }
.step-actions { margin-top: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 22px; border: 2px solid transparent; border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-xl { min-height: 64px; font-size: 1.15rem; }
.btn-sm { min-height: 46px; padding: 0 16px; font-size: .98rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { background: var(--brand); }
.btn-secondary { border-color: var(--line-2); background: #fff; color: var(--ink); }
.btn-secondary:hover { border-color: var(--brand-2); color: var(--brand); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink-2); }
.btn-warn { background: #b45309; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* "Choose a photo" is a label around a hidden file input: show the focus ring on the label. */
.btn:has(> input.sr:focus-visible), .add-label:has(> input.sr:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
@supports not selector(:has(a)) { label.btn:focus-within, .add-label:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; } }
.link { padding: 8px 0; border: 0; background: none; color: var(--brand); font-size: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pill { min-height: 44px; padding: 0 16px; border: 2px solid var(--line-2); border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 1.1rem; cursor: pointer; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- choices ---------- */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 12px; min-height: 76px; padding: 12px 44px 12px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; }
.choice:hover { border-color: var(--line-2); }
.choice-icon { grid-row: span 2; align-self: center; font-size: 1.8rem; line-height: 1; }
.choice-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.choice-sub { color: var(--muted); font-size: .88rem; line-height: 1.3; }
.choice:not(:has(.choice-icon)) .choice-title, .choice:not(:has(.choice-icon)) .choice-sub { grid-column: 1 / -1; }
.choice.on { border-color: var(--brand-2); background: var(--brand-soft); }
.choice.on::after { content: "✓"; position: absolute; top: 50%; right: 14px; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--brand-2); color: #fff; font-size: .85rem; font-weight: 700; }
.choices.small { display: flex; flex-wrap: wrap; }
.choices.small .choice { flex: 1 1 150px; min-height: 60px; }
.list-box .choices { grid-template-columns: 1fr; }
@media (min-width: 700px) { .list-box .choices { grid-template-columns: 1fr 1fr; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.label { color: var(--ink-2); font-size: .95rem; font-weight: 700; }
input[type="text"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 54px; padding: 10px 14px; border: 2px solid var(--field-line); border-radius: 12px; background: #fff; font-size: 1.05rem;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brand-2); outline: 3px solid var(--brand); outline-offset: 1px; }
/* Boxes on one line (width × height, size + unit). On narrow screens with big text the last ones wrap. */
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline input { flex: 1 1 4.5em; min-width: 0; }
.inline select { flex: none; width: auto; }
.sep { color: var(--muted); }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check-row, .toggle-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 1rem; text-align: left; cursor: pointer; }
.check-row input { flex: none; width: 26px; height: 26px; accent-color: var(--brand-2); }
.toggle-row .badge { margin-left: auto; }
.badge { padding: 4px 10px; border-radius: 999px; background: var(--pro-soft); color: var(--pro); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.more { border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.more summary { min-height: 54px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
.more-body { display: grid; gap: 14px; padding: 0 16px 16px; }
.custom-row { display: grid; gap: 10px; }
.slider-row { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
input[type="range"] { flex: 1; height: 44px; accent-color: var(--brand-2); cursor: pointer; }
.tips { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tips li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* ---------- file picker ---------- */
.drop { display: grid; justify-items: center; gap: 12px; padding: 30px 18px; border: 3px dashed var(--line-2); border-radius: var(--radius); background: #fff; text-align: center; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--brand-2); background: var(--brand-soft); }
.drop-icon { font-size: 2.6rem; line-height: 1; }
.drop-title { color: var(--ink-2); font-weight: 700; }
.drop-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.drop-btns .btn { flex: 1 1 220px; max-width: 320px; }
.safe { color: var(--ok); font-size: .92rem; font-weight: 700; }

/* ---------- crop stage ---------- */
.stage-box { display: grid; gap: 10px; }
.stage-wrap { display: flex; justify-content: center; padding: 12px; border-radius: 16px; background: var(--checker); }
.stage { border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 8px 22px rgba(11, 18, 32, .16); }
.stage.pannable { cursor: grab; touch-action: none; }
.stage.dragging { cursor: grabbing; }
.stage-controls { display: flex; align-items: center; gap: 10px; }
.stage-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.nudge-label { color: var(--muted); font-size: .92rem; font-weight: 700; }
.zoom-ic { font-size: .9rem; white-space: nowrap; }

/* ---------- signatures ---------- */
.sig-area { display: grid; gap: 12px; }
.sig-stage { display: flex; align-items: center; justify-content: center; min-height: 170px; padding: 18px; border-radius: 16px; background: var(--checker); }
.sig-preview { max-height: 170px; width: auto; }
.pad-wrap { position: relative; height: 230px; border: 2px solid var(--line-2); border-radius: 16px; background: #fff; overflow: hidden; }
.pad { width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.pad-line { position: absolute; left: 8%; right: 8%; bottom: 30%; border-bottom: 2px dashed var(--line-2); pointer-events: none; }
.pad-hint { position: absolute; left: 8%; bottom: 14%; color: var(--muted); font-size: .9rem; pointer-events: none; }
.pad-wrap.inked .pad-hint { display: none; }
.pad-tools { display: flex; justify-content: flex-end; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pager-label { font-weight: 700; }
.page-box { position: relative; width: 100%; margin: 0 auto; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 10px 26px rgba(11, 18, 32, .14); cursor: copy; }
.sig-box { position: absolute; border-radius: 4px; outline: 2px dashed var(--brand-2); outline-offset: 3px; background: rgba(36, 88, 230, .06); cursor: grab; touch-action: none; }
.sig-box.dragging { cursor: grabbing; }
.sig-box:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.sig-box img { width: 100%; pointer-events: none; }
.sig-date { position: absolute; top: 100%; left: 0; margin-top: .15em; color: #141414; font-family: Helvetica, Arial, sans-serif; line-height: 1; white-space: nowrap; }

/* ---------- photos to pdf ---------- */
.pages { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.page-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.page-item img { width: 64px; height: 84px; border: 1px solid var(--line); border-radius: 6px; object-fit: cover; }
.page-num { font-weight: 700; }
.page-btns { display: flex; gap: 6px; }
.page-item.add { display: block; padding: 0; border-style: dashed; }
.add-label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; color: var(--brand); font-weight: 700; cursor: pointer; }
/* Small phones: the move/remove buttons go on their own line under the picture. */
@media (max-width: 380px) {
  .page-item { grid-template-columns: 56px minmax(0, 1fr); }
  .page-item img { width: 56px; height: 74px; }
  .page-item .page-btns { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---------- working ---------- */
.working { display: grid; justify-items: center; gap: 16px; padding: 56px 16px; color: var(--ink-2); font-size: 1.1rem; font-weight: 700; }
.spinner { width: 60px; height: 60px; border: 7px solid var(--brand-soft); border-top-color: var(--brand-2); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .tile { transition: none; } }

/* ---------- result ---------- */
.result { display: grid; gap: 18px; }
.result-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 2px solid var(--ok-line); border-radius: var(--radius); background: var(--ok-soft); }
.result-hero.bad { border-color: var(--bad-line); background: var(--bad-soft); }
.result-hero h2 { font-size: 1.4rem; }
.result-hero p { margin-top: 2px; color: var(--ink-2); }
.result-ic { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 1.6rem; font-weight: 700; }
.result-hero.bad .result-ic { background: var(--bad); }
.result-body { display: grid; gap: 18px; }
@media (min-width: 820px) { .result-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.result-preview { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 18px; border-radius: var(--radius); background: var(--checker); }
.result-preview img { width: auto; min-width: min(220px, 100%); max-height: 340px; object-fit: contain; background: transparent; box-shadow: 0 0 0 1px var(--line-2), 0 8px 22px rgba(11, 18, 32, .16); }
.result-preview.is-doc img { max-height: 460px; background: #fff; }
.result-side { display: grid; gap: 16px; }
.actions { display: grid; gap: 10px; }
.actions.row { display: flex; flex-wrap: wrap; }
.actions.row .btn { flex: 1 1 240px; }
.file-name { margin-top: -4px; color: var(--muted); font-size: .85rem; text-align: center; overflow-wrap: anywhere; }
.ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.ba-box { min-width: 0; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.ba-box.after { border-color: var(--ok-line); background: var(--ok-soft); }
.ba-label { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ba-size { font-size: 1.25rem; font-weight: 700; }
.ba-detail { color: var(--muted); font-size: .85rem; }
.ba-arrow { color: var(--muted); font-size: 1.3rem; font-weight: 700; }
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 12px; }
.checks.big li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ck { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: .95rem; font-weight: 700; }
li.ok .ck { background: var(--ok-soft); color: var(--ok); }
li.bad .ck { background: var(--bad-soft); color: var(--bad); }
li.info .ck { background: var(--brand-soft); color: var(--brand); font-family: Georgia, serif; font-style: italic; }
.ck-text { font-weight: 700; }
li.bad .ck-text { color: var(--bad); }
.ck-detail { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.result-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-2); }
.fb-btns { display: flex; gap: 8px; }

/* ---------- ads ---------- */
.ad { position: relative; display: grid; place-items: center; gap: 4px; min-height: 120px; margin: 30px 0 6px; padding: 30px 16px 16px; border: 2px dashed var(--line-2); border-radius: 14px; background: repeating-linear-gradient(45deg, #f8fafc 0 12px, #f1f4f8 12px 24px); color: var(--muted); font-size: .9rem; text-align: center; }
.ad-tag { position: absolute; top: 8px; left: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ad-remove { position: absolute; top: 6px; right: 12px; font-size: .82rem; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan.featured { border: 3px solid var(--brand-2); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -14px; left: 20px; padding: 4px 12px; border-radius: 999px; background: var(--brand-2); color: #fff; font-size: .8rem; font-weight: 700; }
.plan h2 { font-size: 1.3rem; }
.price { font-size: 2.3rem; font-weight: 700; }
.price span { display: block; color: var(--muted); font-size: .95rem; font-weight: 400; }
.plan ul { display: grid; flex: 1; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan li::before { content: "✓  "; color: var(--ok); font-weight: 700; }
.demo-toggle { max-width: 520px; margin: 20px auto 0; }

/* ---------- footer + toast ---------- */
.footer { margin-top: 56px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer p + p { margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 50; width: max-content; max-width: min(560px, calc(100% - 32px)); padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .98rem; box-shadow: 0 12px 32px rgba(11, 18, 32, .3); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* With a mouse, resting on the message keeps it open (ui.js) and a click closes it. */
@media (hover: hover) { .toast.show { pointer-events: auto; } }
