/* ==========================================================
   Quick Tools Hub: stylesheet
   White paper, dotted grid, serif headings, solid ink accents
   ========================================================== */

:root {
  --bg: #ffffff;
  --dot: rgba(28, 25, 23, 0.14);
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --text: #1c1917;
  --muted: #6b655e;
  --border: #e7e5e0;
  --border-strong: #cfcac2;
  --accent: #b4441f;
  --accent-hover: #963614;
  --accent-text: #ffffff;
  --accent-soft: #fbeee8;
  --focus: rgba(180, 68, 31, 0.25);
  --danger: #b42318;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412;
    --dot: rgba(255, 245, 235, 0.09);
    --surface: #1d1b19;
    --surface-2: #211f1c;
    --text: #f2eee9;
    --muted: #a39c93;
    --border: #2e2b27;
    --border-strong: #46413b;
    --accent: #e9825a;
    --accent-hover: #f09a78;
    --accent-text: #161412;
    --accent-soft: rgba(233, 130, 90, 0.14);
    --focus: rgba(233, 130, 90, 0.35);
    --danger: #ff8a80;
  }
}

:root[data-theme="dark"] {
  --bg: #161412;
  --dot: rgba(255, 245, 235, 0.09);
  --surface: #1d1b19;
  --surface-2: #211f1c;
  --text: #f2eee9;
  --muted: #a39c93;
  --border: #2e2b27;
  --border-strong: #46413b;
  --accent: #e9825a;
  --accent-hover: #f09a78;
  --accent-text: #161412;
  --accent-soft: rgba(233, 130, 90, 0.14);
  --focus: rgba(233, 130, 90, 0.35);
  --danger: #ff8a80;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 0 0;
  color: var(--text);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--text); }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 4.2vw, 2.7rem); margin: 0 0 12px; font-weight: 500; }
h2 { font-size: 1.4rem; margin: 32px 0 10px; font-weight: 500; }
h3 { font-size: 1.12rem; font-weight: 500; margin: 0; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin: 0 0 28px; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent-text);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
}

nav.site {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  padding: 6px 11px;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

nav.site a:hover { color: var(--text); background: var(--surface-2); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.icon-btn:hover { border-color: var(--border-strong); }

.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.search-trigger:hover { border-color: var(--border-strong); color: var(--text); }
.search-trigger kbd { font: inherit; font-size: 0.75rem; opacity: 0.7; }

/* ---------- Main + hero ---------- */
main { padding: 48px 0 64px; }

.hero { padding: 16px 0 32px; }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-left: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.search-field {
  position: relative;
  max-width: 560px;
}

.search-field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 46px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.92rem; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}

.card:hover { border-color: var(--border-strong); }

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
}

.card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.card[hidden], [data-searchable][hidden], [data-filter-group][hidden] { display: none !important; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Tool / article pages ---------- */
.crumbs { font-size: 0.88rem; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.tool-head { margin-bottom: 22px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 8px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 18px 0 8px;
  color: var(--text);
}

label:first-child { margin-top: 0; }

input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: -3px; }
input[type="range"] { accent-color: var(--accent); }

textarea, input[type="number"], input[type="text"], input[type="date"], select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

textarea:focus, input[type="number"]:focus, input[type="text"]:focus, input[type="date"]:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus);
}

textarea {
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
}

input[type="file"] {
  font: inherit;
  color: var(--muted);
  padding: 14px;
  width: 100%;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}

button:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

button.secondary,
.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

button.secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--text); }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 22px; }

.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stat span { color: var(--muted); font-size: 0.82rem; }

.preview img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 16px;
}

.note { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }
.error {
  color: var(--danger);
  font-weight: 500;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  background: color-mix(in srgb, var(--danger) 6%, transparent);
}

#output, #password { background: var(--surface-2); }

/* ---------- Article ---------- */
.article { max-width: 680px; }
.article p, .article li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); font-size: 1.02rem; }
.article ul { padding-left: 20px; margin: 0 0 16px; }
.article li { margin-bottom: 6px; }
.article h2 { margin-top: 40px; }

/* ---------- Ads ---------- */
.ad-slot {
  margin: 36px 0 8px;
  min-height: 110px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
}

/* An ad slot with no ad inside takes no space, so visitors never see an empty box. */
.ad-slot:empty { display: none; }
.ad-rail:has(.ad-slot:empty) { visibility: hidden; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 30px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 24px;
}

footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site p { margin: 0 0 0 auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 100;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Command palette ---------- */
.palette {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 25, 23, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}

.palette.open { opacity: 1; }

/* The hidden attribute must win over display: flex, or a closed palette blocks every click. */
.palette[hidden] { display: none; }

.palette-box {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateY(-6px);
  transition: transform 0.2s var(--ease);
}

.palette.open .palette-box { transform: none; }

.palette-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.02rem;
  padding: 16px 18px;
}

.palette-input:focus { outline: none; }

.palette-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 56vh;
  overflow-y: auto;
}

.palette-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
}

.palette-item em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 999px;
}

.palette-item.active a { background: var(--surface-2); }
.palette-empty { padding: 18px; color: var(--muted); text-align: center; }

.palette-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Side rail ads (wide screens only) ---------- */
.ad-rail { display: none; }

.ad-slot-rail {
  min-height: 600px;
  margin: 48px 0 0;
  position: sticky;
  top: 90px;
}

@media (min-width: 1360px) {
  main {
    display: grid;
    grid-template-columns: 160px minmax(0, 1000px) 160px;
    justify-content: center;
    column-gap: 20px;
    align-items: start;
  }
  .ad-rail { display: block; }
  /* Inside the grid, the content block must fill its column instead of shrinking to fit. */
  main > .wrap { margin: 0; width: 100%; }
  main > .wrap.article { width: 680px; justify-self: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  header.site .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  nav.site { width: 100%; justify-content: space-between; }
  nav.site a { padding: 6px 8px; font-size: 0.88rem; }
  .nav-tools { margin-left: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 36px; justify-content: center; padding: 0; }
  main { padding: 32px 0 48px; }
  .panel { padding: 20px; }
  .section-head { margin-top: 36px; }
  footer.site p { margin: 0; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
}

/* ---------- Home page: chips, stats and section rhythm ---------- */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}

.chips a {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chips a:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
}

.hero-stats div {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.hero-stats dt {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
}

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

/* ---------- Home page layout (wireframe sections) ---------- */
.pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--surface);
  margin-bottom: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 8px 0 24px;
}

.hero-grid h1 { max-width: 16ch; }
.hero-grid .lead { margin-bottom: 22px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}

.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--text); }

.hero-grid .search-field { margin-bottom: 4px; }

/* Preview panel: an illustration of the Merge tool, not real data */
.preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.preview-head span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.preview-head b { margin-left: auto; font-size: 0.85rem; font-weight: 600; }

.preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--surface-2);
  font-size: 0.9rem;
}

.preview-row i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-row span { flex: 1; }
.preview-row em { font-style: normal; color: var(--muted); font-size: 0.82rem; }

.preview-btn {
  margin-top: 12px;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.formats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.formats p { margin: 0; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.formats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.formats li { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); }

.block { padding: 56px 0 8px; }

.block-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 22px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}

.feature:hover { border-color: var(--border-strong); }
.feature h3 { font-size: 1.15rem; margin: 0; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.feature .link { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.feature-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

.feature-copy { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.feature-art { display: flex; flex-direction: column; gap: 8px; width: 42%; max-width: 220px; }
.feature-art i {
  display: block;
  height: 26px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.feature-art i:nth-child(2) { margin-left: 18px; }
.feature-art i:nth-child(3) { margin-left: 36px; background: var(--accent-soft); border-color: transparent; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}

.why-grid h3 { font-size: 1.02rem; margin: 10px 0 6px; }
.why-grid p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.why-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 1.1rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.steps h3 { font-size: 1.05rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cat-head h3 { font-size: 1.2rem; margin: 0; }

.faq-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: start;
}

.faq-block .block-title { text-align: left; margin-bottom: 10px; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
  padding: 14px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 0.93rem; }

.cta-band {
  margin: 48px 0 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.cta-band h2 { font-size: 1.5rem; margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band .cta-row { margin: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .feature-art { width: 100%; max-width: none; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .faq-block { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
}
