/* =====================================================================
   LovelyPDF -- site stylesheet
   One typeface (system UI), flat colours (no gradients).
   Brand: rose #E31C4B ("Lovely"), teal #14B8A6 ("PDF"), dark teal #0E766E.
   ===================================================================== */

:root {
  --rose: #E31C4B;
  --rose-dark: #BE123C;
  --rose-soft: #FDE8EE;
  --teal: #0F9B8E;
  --teal-bright: #14B8A6;
  --teal-dark: #0E766E;
  --teal-soft: #E3F4F1;
  --bg: #EEF6F5;
  --paper: #FFFFFF;
  --ink: #2B2421;
  --ink-soft: #5E5752;
  --ink-faint: #8A969E;
  --line: #DCE7E5;
  --danger: #B91C1C;
  --danger-soft: #FEF2F2;
  --warn: #92400E;
  --warn-soft: #FFFBEB;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 40, 38, 0.06), 0 4px 14px rgba(15, 40, 38, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 40, 38, 0.08), 0 10px 24px rgba(15, 40, 38, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

main { flex: 1 0 auto; width: 100%; }

/* Tool pages add their help text after the footer in the HTML;
   show it above the footer. */
.seo-content { order: 2; }
.site-footer { order: 3; }

a { color: var(--teal-dark); }
a:hover { color: var(--rose); }

button { font: inherit; color: inherit; }

.hidden { display: none !important; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding: 20px max(clamp(16px, 3vw, 48px), calc((100% - 1320px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: none;
}

.brand-rose { font-size: 27px; line-height: 1; }

.wordmark { font-size: 27px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.wordmark .lovely { color: var(--rose); }
.wordmark .accent { color: var(--teal-bright); }

.badges { display: flex; gap: 12px 40px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 15px;
  white-space: nowrap;
}
.badge svg { width: 15px; height: 15px; }
.badge strong { font-weight: 700; }

/* ---------------------------------------------------------------------
   Home: heading, category tabs, layout
   --------------------------------------------------------------------- */
#home-view { padding: 38px clamp(16px, 3vw, 48px) 48px; }

.home-head { max-width: 1320px; margin: 0 auto 28px; text-align: center; }

.page-title {
  margin: 0 0 22px;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
}
.section-label::before,
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.category-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.category-tab {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.category-tab:hover { border-color: var(--teal); color: var(--teal-dark); }
.category-tab.active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; font-weight: 600; }

.home-layout {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.home-main { min-width: 0; }

/* ---------------------------------------------------------------------
   Tool grid and cards
   --------------------------------------------------------------------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #F9FCFB;
  box-shadow: 0 1px 3px rgba(15, 40, 38, 0.05);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--teal); background: var(--paper); }
/* Thin green border while the card is pressed, or selected with the keyboard */
.tool-card:active,
.tool-card:focus-visible { border-color: var(--teal); outline: none; box-shadow: 0 0 0 1px var(--teal); background: var(--paper); }

/* Soft tinted square with the icon drawn in the tool's colour */
.tool-card-icon {
  --tool-color: var(--teal);
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tool-color) 15%, #fff);
  color: var(--tool-color);
}
.tool-card-icon svg { width: 19px; height: 19px; }

/* Two small overlapping format badges, e.g. PDF -> W */
.tool-card-icon.dual { position: relative; background: none; }
.format-badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 25px;
  height: 23px;
  border-radius: 6px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.format-badge.back { left: 0; top: 0; }
.format-badge.front { left: 18px; top: 19px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }

.tool-card-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }

/* ---------------------------------------------------------------------
   "Why LovelyPDF" side panel (collapsible)
   --------------------------------------------------------------------- */
.why-panel {
  position: sticky;
  top: 16px;
  padding: 22px 20px 18px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(15, 40, 38, 0.05);
}

.why-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.why-mark { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--rose-soft); }
.why-rose { font-size: 24px; line-height: 1; }
.why-heading { flex: 1; margin: 0; font-size: 18px; white-space: nowrap; font-weight: 700; color: var(--ink); }
.why-lovely { color: var(--rose); }
.why-pdf { color: var(--teal-bright); }

.why-toggle {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.why-toggle svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }

.why-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 0; }

.why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  font-size: 15px;
  color: var(--ink);
}
.why-item svg,
.why-foot svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card {
  position: relative;
  padding: 14px 76px 14px 14px;
  border-radius: 12px;
  background: var(--teal-soft);
  overflow: hidden;
}
.why-card p { margin: 0; font-size: 13px; color: var(--teal-dark); line-height: 1.4; }
.why-go {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--teal-dark);
}
.why-go svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.why-art { position: absolute; right: -4px; bottom: -8px; width: 74px; height: 74px; }

.why-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 6px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

/* Collapsed: a narrow strip of icons only */
.why-panel.closed { padding: 12px 8px; }
.why-panel.closed .why-heading,
.why-panel.closed .why-mark,
.why-panel.closed .why-label,
.why-panel.closed .why-card { display: none; }
.why-panel.closed .why-head { justify-content: center; }
.why-panel.closed .why-toggle svg { transform: rotate(180deg); }
.why-panel.closed .why-item,
.why-panel.closed .why-foot { justify-content: center; padding: 8px 0; }
.home-layout:has(.why-panel.closed) { grid-template-columns: 64px minmax(0, 1fr); }

/* ---------------------------------------------------------------------
   Tool workspace
   --------------------------------------------------------------------- */
#tool-view { padding: 24px clamp(16px, 4vw, 40px) 40px; }

.tool-view-inner { max-width: 760px; margin: 0 auto; }

.back-circle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.back-circle:hover { border-color: var(--teal); color: var(--teal-dark); }
.back-circle-sm { padding: 6px 12px 6px 8px; font-size: 13px; }

#tool-title {
  margin: 18px 0 6px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tool-note { margin: 0 0 8px; color: var(--ink-soft); }

.device-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
}

.card {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

/* Drop zone */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 16px;
  border: 2px dashed #B9D6D2;
  border-radius: var(--radius);
  background: #F7FBFA;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.dropzone.dragover { border-color: var(--teal); background: var(--teal-soft); }
.dropzone-cloud { color: var(--teal); }
.dropzone p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.dropzone-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--rose);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.dropzone-select-btn:hover { background: var(--rose-dark); }

.dropzone-formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.format-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
}

/* Selected files */
.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FAFCFC;
  font-size: 14px;
}
.file-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.file-name svg { flex: 0 0 16px; color: var(--teal); }
.file-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li button {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
}
.file-list li button:hover { border-color: var(--danger); color: var(--danger); }

/* Options */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.fields:empty { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #C9DAD7;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 155, 142, 0.15); }

.field-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.field .field-check input { width: auto; }

/* Signature pad */
.signature-pad-wrap { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.signature-pad {
  width: 100%;
  max-width: 400px;
  height: 130px;
  border: 1px dashed #B9D6D2;
  border-radius: var(--radius-sm);
  background: #FAFCFC;
  touch-action: none;
  cursor: crosshair;
}
.signature-pad-clear {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  font-size: 13px;
  cursor: pointer;
}

/* Run button with loading spinner */
.run-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 13px 20px;
  border: 0;
  border-radius: 11px;
  background: var(--teal-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.run-btn:hover:not(:disabled) { background: #0B5F59; }
.run-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lp-spin 0.8s linear infinite;
}
.loading .spinner { display: inline-block; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* Status line */
.status { margin-top: 12px; font-size: 14px; color: var(--teal-dark); min-height: 0; }
.status:empty { display: none; }
.status.error {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
}

/* Result */
.result {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #B7E2DB;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.result > svg { flex: 0 0 22px; margin-top: 2px; }
.result-body { flex: 1; min-width: 0; }
.result-body p { margin: 0 0 12px; font-weight: 600; word-break: break-word; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.download-btn:hover { background: var(--rose-dark); color: #fff; }

/* "Report a problem" row and dialog */
.report-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}
.report-row.attention { color: var(--danger); }
.report-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.report-link svg { width: 14px; height: 14px; }

.report-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.report-dialog::backdrop { background: rgba(15, 30, 30, 0.45); }
.report-dialog h2 { margin: 0 0 8px; font-size: 20px; }
.report-dialog .field { margin-top: 12px; }
.report-privacy { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--teal-soft); color: var(--teal-dark); font-size: 13px; }
.report-details { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.report-details summary { cursor: pointer; font-weight: 600; }
.report-details ul { margin: 8px 0 0; padding-left: 18px; }
.report-message { margin: 12px 0 0; font-size: 14px; }
.report-message:empty { display: none; }
.report-message.error { color: var(--danger); }
.report-message.success, .report-message.ok { color: var(--teal-dark); }
.report-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.report-actions .run-btn { width: auto; margin-top: 0; padding: 10px 18px; font-size: 15px; }
.report-cancel {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font-weight: 600;
  cursor: pointer;
}

/* ---------------------------------------------------------------------
   SEO text under tool pages, and information pages
   --------------------------------------------------------------------- */
.seo-content { padding: 8px clamp(16px, 4vw, 40px) 40px; }
.seo-content-inner,
.info-page-inner {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
}
.seo-content-inner h2 { margin: 28px 0 10px; font-size: 20px; color: var(--ink); }
.seo-faq-item { margin-bottom: 14px; }
.seo-faq-item h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.seo-faq-item p { margin: 0; }
.seo-related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-related-links a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.seo-related-links a:hover { border-color: var(--teal); }

.info-page { padding: 32px clamp(16px, 4vw, 40px) 48px; }
.info-page-inner {
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.info-page-inner h1 { margin: 0 0 16px; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.info-page-inner h2 { margin: 28px 0 8px; font-size: 20px; color: var(--ink); }
.info-page-inner ul { padding-left: 22px; }
.info-page-inner li { margin-bottom: 6px; }
.info-updated { font-size: 13px; color: var(--ink-faint); }

/* ---------------------------------------------------------------------
   Owner statistics (home page, owner only -- added by app.js)
   --------------------------------------------------------------------- */
.owner-stats {
  max-width: 1320px;
  margin: 36px auto 8px;
  padding: 18px clamp(16px, 4vw, 40px) 4px;
  border-top: 1px dashed var(--line);
}
.owner-stats-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.owner-stats-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.kpi-card {
  min-width: 200px;
  padding: 14px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.kpi-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft); }
.kpi-value { margin-top: 4px; font-size: 28px; font-weight: 700; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.owner-stats-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-faint); }
.owner-stats-note a { color: var(--ink-faint); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { margin-top: 24px; background: var(--paper); border-top: 1px solid var(--line); }
.site-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 40px) 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.site-footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.site-footer-brand .brand-rose { font-size: 20px; }
.site-footer-brand .wordmark { font-size: 20px; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.site-footer-links a { color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.site-footer-links a:hover { color: var(--rose); }
.site-footer-copy { margin: 0; font-size: 13px; color: var(--ink-faint); }

/* ---------------------------------------------------------------------
   Smaller screens
   --------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .home-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
  .why-panel { padding: 18px 14px 14px; }
  .why-head { gap: 8px; }
  .why-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .why-rose { font-size: 20px; }
  .why-heading { font-size: 16px; }
  .why-item { font-size: 14px; }
  .tool-card { padding: 12px 14px; gap: 12px; }
  .tool-card-title { font-size: 15px; }
}

@media (max-width: 1000px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .home-layout,
  .home-layout:has(.why-panel.closed) { grid-template-columns: minmax(0, 1fr); }
  .why-panel { position: static; order: 2; }
  .home-main { order: 1; }
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-panel.closed .why-list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .topbar { justify-content: center; }
  .badges { justify-content: center; }
  .badge { font-size: 14px; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tool-card { min-height: 64px; padding: 12px 16px; }
  .tool-card-title { font-size: 15px; }
  .wordmark { font-size: 24px; }
  .brand-rose { font-size: 24px; }
  .section-label { font-size: 13px; letter-spacing: 0.12em; gap: 12px; }
  .card { padding: 16px; }
  .why-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}
