/* ==========================================================================
   SumoMorph — the whole design system.

   Ported from SumoSquash's css/sumosquash.css and inverted to light mode.
   The one non-obvious part of that inversion: in the dark sheet --panel
   (#14181f) is LIGHTER than --bg (#0c0e13), because panels are lifted out of
   a dark ground by adding light. Inverting those values literally would put a
   panel darker than its ground, which reads as a hole punched in the page.
   In light mode the relationship flips instead — tinted grey ground, pure
   white panels — which is what makes this look native rather than like a
   filter applied to a dark theme.

   Layout note: SumoSquash serves flat .html files from the site root, so its
   asset URLs are relative (../img/sumo.svg). SumoMorph tool pages live one
   directory deep at /merge-pdf/, so EVERY url() here must be root-absolute.
   ========================================================================== */

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/fredoka-500.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-600.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-700.woff2) format("woff2"); }

/* Light ground. An accent palette (.pal-*) is layered on per page load by a
   blocking inline script in <head>, exactly as SumoSquash does it. */
:root {
  color-scheme: light;
  --bg: #f4f6fa; --panel: #ffffff; --ink: #12161d; --muted: #5c6672;
  --line: #dfe4ec; --brand: #4b52c9; --brand-ink: #ffffff; --brand2: #c2551a;
  --ok: #12874f; --bad: #c2352b; --drop: #eef0fc;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.08);
}

/* ===================================================================
   Brand accent palettes — the light counterparts of SumoSquash's six.

   --brand does double duty: it is a FILL under --brand-ink text (.go,
   .task.on, .bb-cta, .steps li::before) and it is TEXT on --panel
   (.crosslinks a, .bb-price, .badge, .drop-ic). Contrast is symmetric, so
   one hex has to satisfy both roles — it must sit at 4.5:1–7:1 against
   white. Lighter fails as text; darker over-weights every button. The
   ratios below are measured, not eyeballed.

   --brand-ink is white in every palette. SumoSquash's is near-black,
   because a dark theme's accents are light; ours are dark.
   =================================================================== */
.pal-indigo   { --brand: #4b52c9; --brand-ink: #fff; --brand2: #c2551a; --drop: #eef0fc; } /* 6.27:1 */
.pal-compress { --brand: #5b4fd6; --brand-ink: #fff; --brand2: #c2276e; --drop: #f0eefd; } /* 5.93:1 */
.pal-dohyo    { --brand: #a4552b; --brand-ink: #fff; --brand2: #8a6b12; --drop: #faf0e9; } /* 5.37:1 */
.pal-bubble   { --brand: #7a45c4; --brand-ink: #fff; --brand2: #b5348a; --drop: #f3ecfc; } /* 6.04:1 */
.pal-kabocha  { --brand: #1f7a52; --brand-ink: #fff; --brand2: #b06a06; --drop: #e9f5ef; } /* 5.30:1 */
.pal-heavy    { --brand: #c0362f; --brand-ink: #fff; --brand2: #8a6b12; --drop: #fceeed; } /* 5.51:1 */

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }

/* ===================================================================
   Logo — a solid --brand block masked by the sumo silhouette, so the
   mark recolours with the palette and the SVG needs no fill of its own.
   =================================================================== */
.logo { display: inline-flex; align-items: center; gap: 16px; font-size: 40px; letter-spacing: -.01em; text-decoration: none; color: inherit; }
.logo .wordmark { font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; font-weight: 600; }
.logo .wordmark span { color: var(--brand2); }
.logo-mark {
  width: 88px; height: 88px; flex: none; display: inline-block;
  background-color: var(--brand);
  -webkit-mask: url(/img/sumo.svg) center / contain no-repeat;
          mask: url(/img/sumo.svg) center / contain no-repeat;
}
@media (max-width: 480px) { .logo { font-size: 32px; gap: 12px; } .logo-mark { width: 64px; height: 64px; } }
/* NOTE: the deck's own logo sizing is overridden near the bottom of this file,
   not here. Both breakpoints match on a phone, so the deck overrides have to
   come LAST or the 760px rule wins at 375px. */

/* ===================================================================
   App shell. The home page (body.app) is one non-scrolling screen.
   Tool pages (body.app.doc) keep that screen but let the page scroll
   past it — see the .longform note further down.
   =================================================================== */
body.app { height: 100dvh; overflow: hidden; overscroll-behavior: none;
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.deck { display: grid; grid-template-columns: minmax(0, 440px) 300px; gap: 16px; align-items: stretch;
  width: 100%; max-width: 760px; max-height: calc(100dvh - 32px); }
.deck-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.apphead { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 4px 8px 6px; flex: none; text-align: center; }
.apphead .logo { font-size: 34px; gap: 15px; }
.apphead .logo-mark { width: 82px; height: 82px; }
.apphead .chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.apphead .chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.deck-main .stage { flex: 1; min-height: 0; padding-top: 14px; }
.deck-main .stage #sumomorph-app { width: 100%; max-width: 440px; margin: 0 auto; }
.taskside { position: relative; min-height: 0; }
/* top:20px drops the panel to the wordmark's line (below the taller mark);
   bottom:0 keeps it flush with the tool's bottom edge */
.taskside #taskbar { position: absolute; top: 20px; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; min-height: 0; }
@media (max-width: 480px) { .apphead .logo { font-size: 28px; } .apphead .logo-mark { width: 64px; height: 64px; } }
@media (max-width: 760px) {
  body.app { overflow: auto; height: auto; min-height: 100dvh; align-items: flex-start; }
  .deck { grid-template-columns: 1fr; max-height: none; }
  .taskside { position: static; min-height: 0; }
  .taskside #taskbar { position: static; max-height: 44vh; }
}

/* ===================================================================
   The tool component.
   =================================================================== */
.tabs { display: flex; gap: 4px; width: max-content; margin: 0 auto 14px; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 7px 20px; border-radius: 9px;
  font: inherit; font-weight: 600; cursor: pointer; transition: .12s; }
.tab.active { background: var(--brand); color: var(--brand-ink); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); margin: 0; }
.hidden { display: none !important; }

.dropzone, .drop {
  border: 2px dashed var(--line); border-radius: 14px; padding: 32px 18px; text-align: center;
  cursor: pointer; transition: .15s; color: var(--muted); font-size: 14px;
}
.dropzone strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 15px; }
.dropzone:hover, .dropzone.drag, .drop:hover, .drop.over { border-color: var(--brand); background: var(--drop); }
.drop-ic { font-size: 34px; line-height: 1; color: var(--brand); font-weight: 300; }
.drop-t { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.drop-f { margin-top: 4px; color: var(--muted); font-size: 11.5px; letter-spacing: .03em; }

/* form controls — the tool cards carry a lot of these */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
input[type=text], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 14px;
}
textarea { min-height: 130px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.field { margin-top: 12px; }
.row, .btn-row, .minirow { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

.btn, .go {
  padding: 11px 20px; border: 0; border-radius: 12px; background: var(--brand);
  color: var(--brand-ink); font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: .12s;
}
.go { width: 100%; margin-top: 14px; padding: 12px; }
.btn:hover, .go:hover { filter: brightness(1.06); }
.btn:disabled, .go:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.secondary { background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.btn.secondary:hover { border-color: var(--brand); filter: none; }

.muted { color: var(--muted); font-size: 13px; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line);
  border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-left: 8px; }

.file-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font-size: 13px; cursor: grab; }
.file-list li button { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; }
.file-list li button:hover { color: var(--bad); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.tool-grid img, .tool-grid canvas { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow: auto; font-size: 12.5px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; }
table.data th { background: var(--bg); font-weight: 600; }

.dl { display: inline-block; padding: 11px 26px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none; }
.warn { color: var(--bad); font-size: 12.5px; margin-top: 10px; }

/* ===================================================================
   Task rail. SumoSquash lists 19 links flat; SumoMorph has 111, so the
   rail scopes to the current tool's category, with chips to switch
   scope and a filter that widens to all 111 once you type. Groups are
   display-only sub-headings — they are not categories and change no URL.
   =================================================================== */
.taskbar { display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  box-shadow: var(--shadow); min-height: 0; }
.taskbar > .task-home { flex: none; }
.task-chips { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.task-chip { padding: 6px 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg);
  color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-chip:hover { border-color: var(--brand); color: var(--ink); }
.task-chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.task-filter { flex: none; }
.task-filter input { padding: 7px 10px; font-size: 12.5px; border-radius: 9px; }
.task-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
  display: flex; flex-direction: column; gap: 6px; }
.task-scroll::-webkit-scrollbar { width: 6px; }
.task-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.task { display: block; width: 100%; text-align: left; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: .12s; }
.task:hover { border-color: var(--brand); color: var(--ink); }
/* the current page stays highlighted, including while hovered or focused */
.task.on, .task.on:hover, .task.on:focus { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.task-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: start; }
.task-cols .task { padding: 7px 8px; font-size: 12.5px; }
.task-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.task-group { font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); opacity: .65; padding: 4px 4px 3px; }
.task-empty { color: var(--muted); font-size: 12.5px; padding: 10px 4px; text-align: center; }

/* ===================================================================
   Tool pages (body.app.doc).

   SumoSquash's landing pages are `overflow:hidden` because they carry a
   few hundred words. SumoMorph tool pages carry 600–1200 words of
   generated prose that is the entire ranking asset — that content cannot
   live in a 500px internally-scrolling panel, and it must not be
   deleted. So the deck keeps its explicit one-screen height and the
   PAGE scrolls past it: identical first impression, article below.
   =================================================================== */
body.app.doc { height: auto; min-height: 100dvh; overflow: auto; align-items: flex-start; padding: 12px; display: block; }
body.app.doc .deck-lp { margin: 0 auto; }
.deck-lp { display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(440px, 32vw, 640px) minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 26px);
  max-width: min(1960px, 97vw); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px);
  align-items: stretch; }
.deck-lp .deck-docs { order: 1; }
.deck-lp .deck-main { order: 2; }
.deck-lp .taskside  { order: 3; }

.deck-lp .apphead { padding: 2px 8px 4px; gap: 8px; }
.deck-lp .apphead .logo { font-size: 36px; gap: 15px; }
.deck-lp .apphead .logo-mark { width: 84px; height: 84px; }
.lp-hero { flex: none; text-align: center; padding: 0 4px; }
.deck-lp .lp-hero h1 { font-size: 25px; line-height: 1.2; margin: 6px 0 5px; letter-spacing: -.02em; }
.deck-lp .lp-hero .sub { font-size: 15px; line-height: 1.45; margin: 0; color: var(--muted); }
.deck-lp .deck-main .stage { flex: 1; min-height: 0; display: flex; padding-top: 12px; }
/* overrides the 440px cap from the home deck — same specificity, later rule wins */
.deck-lp .stage #sumomorph-app { display: flex; flex-direction: column; width: 100%; max-width: none;
  min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.deck-lp #sumomorph-app .card { margin-top: 0; }

/* docs column — identical geometry to the rail so the two panels line up.
   Style .docs-panel, never a bare .panel: tool cards already use .card and a
   generic rule would box the whole tool. */
.deck-docs { position: relative; min-width: 0; }
.docs-panel { position: absolute; top: 20px; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; min-height: 0;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); }
.docs-tabs { flex: none; display: flex; gap: 4px; padding: 8px 8px 2px; }
.docs-tab { flex: 1; border: 0; background: transparent; color: var(--muted);
  padding: 7px 10px; border-radius: 9px; font: inherit; font-weight: 600;
  font-size: 13px; cursor: pointer; transition: .12s; }
.docs-tab:hover { color: var(--ink); }
.docs-tab.active { background: var(--bg); color: var(--ink); }
.docs-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 2px 16px 10px; scrollbar-width: thin; }
.docs-body::-webkit-scrollbar { width: 6px; }
.docs-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.docs-pane > h2:first-child { margin-top: 6px; }
.docs-pane h2 { font-size: 15.5px; margin: 14px 0 6px; }
.docs-pane p, .docs-pane li { font-size: 13px; line-height: 1.45; }
.docs-pane ol, .docs-pane ul { padding-left: 20px; margin: 8px 0; }
.docs-pane li { margin: 6px 0; }
.docs-more { display: block; margin-top: 12px; font-size: 12.5px; font-weight: 600; }

.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; margin: 9px 0; background: var(--bg); }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: 13.5px; }
.faq details p { color: var(--muted); margin: 8px 0 2px; }
.crosslinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.crosslinks a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--brand); font-weight: 600; font-size: 12.5px; background: var(--bg); }
.crosslinks a:hover { border-color: var(--brand); }

/* ---- desktop sales card, pinned to the bottom of the docs panel ----
   Deliberately compact: every pixel here comes out of the panes above,
   which must not need to scroll on a normal viewport. */
.buybox { flex: none; margin: 6px; padding: 10px 12px 11px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); }
.buybox .bb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.buybox .bb-title { font-weight: 700; font-size: 13.5px; }
.buybox .bb-price { font-weight: 700; font-size: 13.5px; color: var(--brand); white-space: nowrap; }
.buybox .bb-sub { color: var(--muted); font-size: 11px; margin: 1px 0 6px; }
.buybox ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 1px; }
.buybox li { font-size: 11.5px; line-height: 1.45; color: var(--muted); padding-left: 14px; position: relative; }
.buybox li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.buybox .bb-cta { display: block; text-align: center; padding: 8px 12px; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 13px;
  text-decoration: none; transition: .12s; }
.buybox .bb-cta:hover { filter: brightness(1.08); }
.buybox .bb-fine { text-align: center; color: var(--muted); font-size: 10.5px; margin: 5px 0 0; }

/* ---- longform: the SEO article, below the one-screen deck ---- */
.longform { max-width: min(880px, 94vw); margin: 48px auto 0; padding: 0 4px; }
.longform h2 { font-size: 21px; margin: 30px 0 10px; letter-spacing: -.01em; }
.longform h2:first-child { margin-top: 0; }
.longform p, .longform li { font-size: 15.5px; line-height: 1.65; color: #36404f; }
.longform ul, .longform ol { padding-left: 22px; }
.longform li { margin: 7px 0; }
.longform .cmp-table, .longform table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0;
  background: var(--panel); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.longform th, .longform td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.longform th { background: var(--bg); font-weight: 600; }
.longform .faq { margin-top: 10px; }
.site-foot { max-width: min(880px, 94vw); margin: 40px auto 0; padding: 22px 4px 34px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--brand); }

/* Large monitors: step the type up once. Widening alone is not enough — the
   same 13px prose in a 600px column reads as a small layout that has been
   stretched. HEIGHT is gated too, so a short wide window (a 1920x800
   half-screen) does not get bigger type and break the one-screen deck. */
@media (min-width: 1600px) and (min-height: 900px) {
  .deck-lp .apphead .logo { font-size: 42px; }
  .deck-lp .apphead .logo-mark { width: 96px; height: 96px; }
  .deck-lp .lp-hero h1 { font-size: 29px; }
  .deck-lp .lp-hero .sub { font-size: 16px; }
  .docs-body { padding: 4px 22px 14px; }
  .docs-tab { font-size: 14px; }
  .docs-pane h2 { font-size: 17.5px; }
  .docs-pane p, .docs-pane li { font-size: 14.5px; line-height: 1.5; }
  .task { font-size: 14px; padding: 10px 13px; }
  .task-cols .task { font-size: 13.5px; padding: 9px 10px; }
  .task-chip { font-size: 12.5px; }
  .buybox { margin: 8px; padding: 13px 15px 14px; }
  .buybox .bb-title, .buybox .bb-price { font-size: 15px; }
  .buybox li { font-size: 13px; }
  .buybox .bb-cta { padding: 10px 12px; font-size: 15px; }
}

@media (max-width: 1180px) {
  /* three columns no longer fit — fall back to a scrolling two-column page */
  .deck-lp { grid-template-columns: minmax(0, 440px) 300px; max-width: 760px;
    height: auto; max-height: none; align-items: start; }
  /* the tool leads again; docs drop below the rail */
  .deck-lp .deck-main { order: 1; }
  .deck-lp .taskside { order: 2; }
  .deck-lp .deck-docs { order: 3; grid-column: 1 / -1; position: static; margin-top: 16px; }
  .deck-lp .docs-panel { position: static; }
  .deck-lp .docs-body { overflow: visible; }
  .deck-lp .taskside #taskbar { position: static; max-height: 60vh; }
  .deck-lp .deck-main .stage { display: block; }
  .deck-lp .stage #sumomorph-app { overflow: visible; }
}
@media (max-width: 760px) {
  .deck-lp { grid-template-columns: 1fr; max-width: 520px; }
  .deck-lp .taskside #taskbar { max-height: 44vh; }
  /* The .deck-lp rules above out-specify the plain .logo-mark breakpoint, so
     the mark has to be shrunk at matching specificity or it stays desktop-size. */
  .deck-lp .apphead .logo { font-size: 30px; gap: 12px; }
  .deck-lp .apphead .logo-mark { width: 68px; height: 68px; }
  .longform p, .longform li { font-size: 15px; }
  /* tables are the one thing that must scroll rather than widen the page */
  .longform table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 480px) {
  .deck-lp .apphead .logo { font-size: 26px; gap: 10px; }
  .deck-lp .apphead .logo-mark { width: 58px; height: 58px; }
}

/* ===================================================================
   Hub, all-tools and homepage grids.
   =================================================================== */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tool-card { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); text-decoration: none; color: inherit; transition: .12s; box-shadow: var(--shadow); }
.tool-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.tool-card b { display: block; font-size: 14px; margin-bottom: 2px; }
.tool-card span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.tool-card .ic { font-size: 17px; margin-right: 6px; }

/* ===================================================================
   Plain prose pages — about, privacy, terms, contact, guide articles.
   These deliberately do NOT get the deck: a policy page should be a
   calm, single-purpose document.
   =================================================================== */
body.page { min-height: 100dvh; }
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
.wrap .apphead { align-items: flex-start; text-align: left; padding-left: 0; }
.wrap h1 { font-size: 30px; letter-spacing: -.02em; margin: 22px 0 10px; }
.wrap h2 { font-size: 20px; margin: 28px 0 8px; }
.wrap p, .wrap li { font-size: 15.5px; line-height: 1.65; }
.wrap .site-foot { max-width: none; }

.privacy-note { display: inline-flex; gap: 8px; align-items: center; margin: 14px 0 0;
  background: color-mix(in srgb, var(--ok) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--ok) 26%, var(--line));
  border-radius: 999px; padding: 7px 14px; font-size: 13px; color: color-mix(in srgb, var(--ok) 80%, var(--ink)); }
