/* ═════════════════════════════════════════════════════════════════════
   Bytebench — site styles
   Themes ("skins") are chosen in Admin → Settings and set on <html data-skin="…">:
     porcelain  light, crisp and corporate
     ink        dark, editorial, brass accents
     emerald    deep green with antique gold
   Every colour comes from the variables below; the rest of the file never
   hard-codes a theme colour.
   ═════════════════════════════════════════════════════════════════════ */

/* ───────── Base tokens (Porcelain, also used by the admin panel) ───────── */
:root {
  --paper: #f6f7f9;          /* page background */
  --surface: #ffffff;        /* cards */
  --board: #eef1f5;          /* soft fills: pills, chips, code */
  --ink: #0f1b2d;            /* main text */
  --steel: #5a6577;          /* secondary text */
  --rule: #e3e7ee;           /* borders */
  --blue: #2448c4;           /* accent: links, focus */
  --blue-ink: #ffffff;
  --yellow: #e7b53c;         /* brand gold: tags, paid, highlights */
  --yellow-ink: #241a00;
  --green: #1d7a4e;
  --danger: #b42318;
  --icon-bg: #0f1b2d;
  --icon-ink: #e7b53c;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 26px -14px rgba(15, 27, 45, .20);
  --shadow-lg: 0 2px 4px rgba(15, 27, 45, .04), 0 30px 60px -28px rgba(15, 27, 45, .30);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --serif: "Source Serif 4", Georgia, serif;
  --display-weight: 750;
  --display-tracking: -0.025em;
  --wrap: 1180px;

  /* header */
  --head-bg: rgba(255, 255, 255, .84);
  --head-solid: #ffffff;
  --head-ink: #0f1b2d;
  --head-muted: #4c576a;
  --head-line: #e6e9ef;
  /* hero bands (home + page titles) */
  --hero-bg: #ffffff;
  --hero-ink: #0f1b2d;
  --hero-muted: #586377;
  --hero-line: #e6e9ef;
  --glow-1: rgba(231, 181, 60, .16);
  --glow-2: rgba(36, 72, 196, .10);
  --grid-line: rgba(15, 27, 45, .045);
  --hero-btn: #0f1b2d;
  --hero-btn-ink: #ffffff;
  --hero-ghost: rgba(15, 27, 45, .2);
  /* feature band (call to action) + footer */
  --band-bg: #0f1b2d;
  --band-ink: #f2f4f8;
  --band-muted: #a6b0c0;
  --band-line: rgba(255, 255, 255, .1);
  --foot-bg: #0b1422;
  /* pegboard + tags */
  --board-bg: #f2f4f8;
  --board-dot: #d4dae3;
  --board-line: #e3e7ee;
  --tag-bg: #ffffff;
  --tag-ink: #0f1b2d;
  --tag-muted: #5a6577;
  --tag-icon-bg: #0f1b2d;
  --tag-icon-ink: #e7b53c;
  --tag-link: #2448c4;
  --tag-shadow: rgba(15, 27, 45, .16);
  --tag-shadow-hover: rgba(15, 27, 45, .28);
  --pin: radial-gradient(circle at 35% 30%, #ffffff 0 16%, #c9d0da 42%, #7d8796 100%);

  color-scheme: light;
}

/* ───────── Skin: Porcelain ───────── */
[data-skin="porcelain"] {
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --display-weight: 750;
  --display-tracking: -0.03em;
}

/* ───────── Skin: Ink & Brass ───────── */
[data-skin="ink"] {
  --paper: #0b0f16; --surface: #121823; --board: #1a2130;
  --ink: #eceef2; --steel: #9ba4b4; --rule: #232c3b;
  --blue: #d4b46e; --blue-ink: #17120a;
  --yellow: #c9a55c; --yellow-ink: #17120a;
  --green: #5cc49a; --danger: #ff8f80;
  --icon-bg: #1b2331; --icon-ink: #d4b46e;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 30px -18px rgba(0, 0, 0, .9);
  --shadow-lg: 0 34px 70px -34px rgba(0, 0, 0, .95);

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Newsreader", Georgia, serif;
  --serif: "Newsreader", Georgia, serif;
  --display-weight: 500;
  --display-tracking: -0.02em;

  --head-bg: rgba(11, 15, 22, .82); --head-solid: #0b0f16;
  --head-ink: #eceef2; --head-muted: #9ba4b4; --head-line: #1b2330;
  --hero-bg: #0b0f16; --hero-ink: #f1f2f5; --hero-muted: #a0a9b8; --hero-line: #1f2836;
  --glow-1: rgba(201, 165, 92, .15); --glow-2: rgba(92, 116, 170, .17); --grid-line: rgba(255, 255, 255, .035);
  --hero-btn: #c9a55c; --hero-btn-ink: #17120a; --hero-ghost: rgba(255, 255, 255, .24);
  --band-bg: #10161f; --band-ink: #f1f2f5; --band-muted: #a0a9b8; --band-line: #222b39;
  --foot-bg: #07090e;
  --board-bg: #111723; --board-dot: #263042; --board-line: #212a39;
  --tag-bg: #f4f0e6; --tag-ink: #141a24; --tag-muted: #5d6573;
  --tag-icon-bg: #141a24; --tag-icon-ink: #c9a55c; --tag-link: #7d5f22;
  --tag-shadow: rgba(0, 0, 0, .6); --tag-shadow-hover: rgba(201, 165, 92, .28);
  --pin: radial-gradient(circle at 35% 30%, #fff6dc 0 14%, #d9b977 40%, #7a5d22 100%);
  color-scheme: dark;
}

/* ───────── Skin: Emerald ───────── */
[data-skin="emerald"] {
  --paper: #f3f5f3; --surface: #ffffff; --board: #e8eeea;
  --ink: #102620; --steel: #586a63; --rule: #dce4df;
  --blue: #0d6b51; --blue-ink: #ffffff;
  --yellow: #c99a3d; --yellow-ink: #1f1600;
  --green: #17805a;
  --icon-bg: #0b2a22; --icon-ink: #d4a64a;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --display-weight: 800;
  --display-tracking: -0.032em;

  --head-bg: rgba(9, 36, 29, .9); --head-solid: #09241d;
  --head-ink: #f1f5f2; --head-muted: #a9c1b7; --head-line: rgba(255, 255, 255, .08);
  --hero-bg: #0b2a22; --hero-ink: #f3f7f4; --hero-muted: #a7c0b6; --hero-line: rgba(255, 255, 255, .1);
  --glow-1: rgba(212, 166, 74, .20); --glow-2: rgba(52, 180, 140, .15); --grid-line: rgba(255, 255, 255, .04);
  --hero-btn: #d4a64a; --hero-btn-ink: #1b1300; --hero-ghost: rgba(255, 255, 255, .28);
  --band-bg: #0b2a22; --band-ink: #f3f7f4; --band-muted: #a7c0b6; --band-line: rgba(255, 255, 255, .1);
  --foot-bg: #071d17;
  --board-bg: #0f3329; --board-dot: #1f4b3e; --board-line: rgba(255, 255, 255, .08);
  --tag-bg: #ffffff; --tag-ink: #102620; --tag-muted: #586a63;
  --tag-icon-bg: #0b2a22; --tag-icon-ink: #d4a64a; --tag-link: #0d6b51;
  --tag-shadow: rgba(0, 0, 0, .38); --tag-shadow-hover: rgba(0, 0, 0, .5);
  --pin: radial-gradient(circle at 35% 30%, #fff6dc 0 14%, #dcb767 40%, #7d5a17 100%);
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--yellow-ink); }
main { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--steel); }
.lead { font-size: 1.15rem; color: var(--steel); max-width: 58ch; line-height: 1.6; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; }

/* ───────── Header ───────── */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--head-bg); border-bottom: 1px solid var(--head-line);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--head-ink); text-decoration: none; font: 800 1.18rem/1 var(--sans); letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; color: var(--head-muted); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 10px 13px; transition: color .25s; }
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left center; transition: transform .4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--head-ink); text-decoration: none; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-cta { margin-left: 12px; padding: 10px 18px; border-radius: 999px; background: var(--hero-btn); color: var(--hero-btn-ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { color: var(--hero-btn-ink); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55); }
.menu-btn { display: none; background: none; border: 1px solid var(--head-line); border-radius: 10px; padding: 8px 14px; font: 600 .95rem var(--sans); color: var(--head-ink); cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--head-solid); border-bottom: 1px solid var(--head-line); padding: 8px 16px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; }
  .nav a::after { left: 4px; right: auto; width: 24px; }
  .nav a.nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 650 .98rem/1.2 var(--sans); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .55); }
.btn:active { transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.btn.small { padding: 8px 14px; font-size: .9rem; border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── Sections ───────── */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ───────── Bands: hero (home + page titles) and feature (call to action) ───────── */
.band-hero, .band-feature { position: relative; overflow: hidden; isolation: isolate; }
.band-hero { background: var(--hero-bg); color: var(--hero-ink); border-bottom: 1px solid var(--hero-line); }
.band-hero h1, .band-hero h2 { color: var(--hero-ink); }
.band-hero .lead, .band-hero .muted { color: var(--hero-muted); }
.band-hero a:not(.btn):not(.tag) { color: var(--hero-ink); }
.band-hero .btn { background: var(--hero-btn); border-color: var(--hero-btn); color: var(--hero-btn-ink); }
.band-hero .btn.ghost { background: transparent; color: var(--hero-ink); border-color: var(--hero-ghost); }
.band-hero .btn.ghost:hover { border-color: var(--hero-ink); background: color-mix(in srgb, var(--hero-ink) 6%, transparent); }

.band-feature { background: var(--band-bg); color: var(--band-ink); }
.band-feature h2 { color: var(--band-ink); }
.band-feature .lead { color: var(--band-muted); }
.band-feature .btn { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.band-feature .btn.ghost { background: transparent; color: var(--band-ink); border-color: rgba(255, 255, 255, .28); }
.band-feature .btn.ghost:hover { border-color: var(--band-ink); background: rgba(255, 255, 255, .06); }

/* fine grid, fading out from the top */
.band-hero::before, .band-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, #000 25%, transparent 75%);
}
.band-feature::before { --grid-line: rgba(255, 255, 255, .035); }
/* soft light, drifting very slowly */
.glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.glow.y { width: 560px; height: 440px; background: var(--glow-1); right: -80px; top: -40px; animation: drift-a 26s ease-in-out infinite alternate; }
.glow.b { width: 620px; height: 560px; background: var(--glow-2); left: -260px; bottom: -280px; animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-90px, 60px) scale(1.08); } }
@keyframes drift-b { to { transform: translate(110px, -50px) scale(.94); } }

/* page title band */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.page-hero .lead { margin: 0; }
.page-hero .glow.y { width: 420px; height: 320px; top: -80px; right: 6%; }
.page-hero .glow.b { width: 460px; height: 420px; bottom: -320px; left: -160px; }
.js .page-hero h1, .js .page-hero .lead { animation: rise .9s var(--ease) backwards; }
.js .page-hero .lead { animation-delay: .1s; }
.page-hero + .section { padding-top: clamp(40px, 5vw, 64px); }
.page-hero + .section .filters:first-child, .page-hero + .section form[role="search"]:first-child { margin-top: 0 !important; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ───────── Home hero ───────── */
.home-hero { padding: clamp(56px, 8vw, 104px) 0 0; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.home-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); max-width: 13ch; margin-bottom: 0; }
.home-hero .lead { font-size: 1.17rem; max-width: 50ch; margin: 22px 0 34px; }
.hero-hello {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--hero-line);
  background: color-mix(in srgb, var(--hero-ink) 4%, transparent); color: var(--hero-ink); font-size: .88rem; font-weight: 600;
}
.hero-hello .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; }
.hero-hello .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2fbf71; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.js .hero-copy > * { animation: rise .9s var(--ease) backwards; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }

/* ───────── Pegboard ───────── */
.board {
  --behind: var(--board-bg);
  position: relative; border-radius: var(--radius-lg); padding: 26px 22px 30px;
  background-color: var(--board-bg);
  background-image: radial-gradient(circle at center, var(--board-dot) 2.4px, transparent 3.4px);
  background-size: 26px 26px; background-position: 13px 13px;
  border: 1px solid var(--board-line);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .05);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 26px 16px;
}
.board .peg { flex: 0 0 calc((100% - 32px) / 3); }
.board .tag { height: 100%; }
.board-empty { grid-column: 1 / -1; background: var(--tag-bg); color: var(--tag-ink); padding: 20px; border-radius: var(--radius); }
.board-empty a { color: var(--tag-link) !important; }
.js .board { animation: board-in 1s var(--ease) .1s backwards; }
@keyframes board-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* ───────── Tags ─────────
   .peg   = the wrapper: carries the shadow and the entrance (fade + drop)
   .tag   = the card itself: hangs on the pin, tilts, and swings
   Keeping them separate means hover never restarts the entrance. */
.peg { position: relative; --tilt: 0deg; --i: 0; }
.tag {
  --face: var(--tag-bg);
  position: relative; display: block; text-decoration: none; color: var(--tag-ink);
  background: var(--face); border-radius: 6px 6px 12px 12px;
  padding: 34px 16px 16px;
  clip-path: polygon(16% 0, 84% 0, 100% 13%, 100% 100%, 0 100%, 0 13%);
}
.tag:hover { text-decoration: none; }
.tag.paid { --face: var(--yellow); color: var(--yellow-ink); }
.tag::before { /* the punched hole */
  content: ""; position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--behind, var(--paper)); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.tag-name { font: 700 1.02rem/1.25 var(--sans); letter-spacing: -0.01em; margin-bottom: 6px; }
.tag-line { font-size: .9rem; color: var(--tag-muted); margin-bottom: 14px; line-height: 1.5; }
.tag.paid .tag-line { color: inherit; opacity: .8; }
.tag-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; font-weight: 650; }
.price { font-weight: 800; }
.tag:not(.paid) .price { color: var(--green); }
.tag .svc-icon { background: var(--tag-icon-bg); color: var(--tag-icon-ink); }
.service-tag .svc-icon { margin-bottom: 14px; }
.service-tag .tag-foot { justify-content: flex-start; color: var(--tag-link); }
.service-tag .tag-foot span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size .45s var(--ease);
}

/* On the pegboard: pinned, tilted, swinging */
.board .peg { padding-top: 0; filter: drop-shadow(0 12px 14px var(--tag-shadow)); transition: filter .5s var(--ease); }
.board .peg:nth-child(5n+1) { --tilt: -2.2deg; }
.board .peg:nth-child(5n+2) { --tilt: 1.6deg; }
.board .peg:nth-child(5n+3) { --tilt: -1deg; }
.board .peg:nth-child(5n+4) { --tilt: 2deg; }
.board .peg:nth-child(5n+5) { --tilt: -1.5deg; }
.board .peg::after { /* the pin, sitting in the hole */
  content: ""; position: absolute; z-index: 2; top: 10.5px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
  border-radius: 50%; background: var(--pin); box-shadow: 0 1px 2px rgba(0, 0, 0, .45); pointer-events: none;
}
.board .tag {
  transform: rotate(var(--tilt)); transform-origin: 50% 16px;
  transition: transform .8s cubic-bezier(.34, 1.4, .64, 1);
}
.board .service-tag { padding: 34px 14px 15px; }
.board .service-tag .tag-line { display: none; }
.board .service-tag .svc-icon { width: 36px; height: 36px; border-radius: 9px; font-size: .95rem; margin-bottom: 12px; }
.board .service-tag .tag-name { font-size: .98rem; }
.board .service-tag .tag-foot { font-size: .82rem; }

/* entrance: each tag fades in, drops onto its pin, then swings to rest */
@keyframes peg-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes tag-settle {
  0%   { transform: rotate(calc(var(--tilt) + 11deg)); }
  38%  { transform: rotate(calc(var(--tilt) - 5deg)); }
  62%  { transform: rotate(calc(var(--tilt) + 2.4deg)); }
  82%  { transform: rotate(calc(var(--tilt) - .9deg)); }
  100% { transform: rotate(var(--tilt)); }
}
.js .board .peg { animation: peg-in .7s var(--ease) backwards; animation-delay: calc(.45s + var(--i) * .12s); }
.js .board .tag { animation: tag-settle 1.6s ease-in-out backwards; animation-delay: calc(.45s + var(--i) * .12s); }

/* hover / keyboard focus: the tag straightens with a gentle spring, the shadow deepens */
.board .peg:focus-within { filter: drop-shadow(0 18px 22px var(--tag-shadow-hover)); }
.board .peg:focus-within .tag { transform: rotate(0deg); }
.board .peg:focus-within .service-tag .tag-foot span { background-size: 100% 1.5px; }
@media (hover: hover) {
  .board .peg:hover { filter: drop-shadow(0 18px 22px var(--tag-shadow-hover)); }
  .board .peg:hover .tag { transform: rotate(0deg); }
  .board .peg:hover .service-tag .tag-foot span { background-size: 100% 1.5px; }
}

/* In listings: tags sit in a grid and lift on hover */
.tag-grid { --behind: var(--paper); display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tag-grid .peg { filter: drop-shadow(0 10px 14px var(--tag-shadow)); transition: transform .45s var(--ease), filter .45s var(--ease); }
.tag-grid .tag { padding-top: 36px; height: 100%; }
.tag-grid .peg, .tag-grid .reveal { height: 100%; }
@media (hover: hover) {
  .tag-grid .peg:hover { transform: translateY(-5px); filter: drop-shadow(0 18px 22px var(--tag-shadow-hover)); }
  .tag-grid .peg:hover .service-tag .tag-foot span { background-size: 100% 1.5px; }
}

/* ───────── Filters ───────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-block; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; background: var(--surface); transition: border-color .25s, background-color .25s, color .25s; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters .sep { width: 1px; background: var(--rule); margin: 0 6px; }

/* ───────── Post list ───────── */
.post-list { display: grid; }
.post-row { display: grid; gap: 6px 32px; padding: 26px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.post-row:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .post-row { grid-template-columns: 160px 1fr; } }
.post-row h3 { font: var(--display-weight) 1.35rem/1.25 var(--display); letter-spacing: var(--display-tracking); margin: 0 0 8px; transition: color .25s; }
.post-row:hover { text-decoration: none; }
.post-row:hover h3 { color: var(--blue); }
.post-meta { color: var(--steel); font-size: .9rem; }
.post-row p { margin: 0; color: var(--steel); }
.cat { display: inline-block; font-size: .8rem; font-weight: 650; color: var(--ink); background: var(--board); padding: 3px 10px; border-radius: 999px; }

/* ───────── Article ───────── */
.article { max-width: 720px; margin: 0 auto; padding: 56px 0 24px; }
.article h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--steel); margin-bottom: 36px; font-size: .95rem; }
.article .cover { border-radius: var(--radius-lg); margin-bottom: 36px; }
.prose { font: 400 1.14rem/1.8 var(--serif); }
.prose h2, .prose h3 { font-family: var(--display); margin-top: 1.8em; }
.prose h2 { font-size: 1.6rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--yellow); color: var(--steel); font-style: italic; }
.prose code { font-size: .86em; background: var(--board); padding: .12em .38em; border-radius: 5px; }
.prose pre { background: #0d1420; color: #e7ebf0; padding: 20px; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose a { word-break: break-word; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 9px 12px; text-align: left; }

/* ───────── Tool + service detail ───────── */
.tool-head { display: grid; gap: 36px; padding: 52px 0 8px; }
@media (min-width: 900px) { .tool-head { grid-template-columns: 1fr 360px; align-items: start; } }
.buybox { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.buybox .price { font-size: 1.8rem; display: block; margin-bottom: 4px; font-family: var(--display); }
.buybox.paid { border-top: 3px solid var(--yellow); }
.buybox.free { border-top: 3px solid var(--green); }
.facts { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; font-size: .95rem; }
.facts li { display: flex; justify-content: space-between; gap: 12px; }
.facts span:first-child { color: var(--steel); }
.features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.features li { padding-left: 30px; position: relative; }
.features li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 13px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.tool-head .prose { font-family: var(--sans); font-size: 1.05rem; line-height: 1.7; }
.app-frame { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }

/* ───────── Forms ───────── */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 7px; }
.hint { font-weight: 400; color: var(--steel); font-size: .87rem; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=password], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 10px; padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
textarea { min-height: 130px; resize: vertical; }
.error { color: var(--danger); font-size: .9rem; margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.radio-set { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-set label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; border: 1px solid var(--rule); border-radius: 10px; padding: 9px 13px; margin: 0; cursor: pointer; background: var(--surface); }
.radio-set input { accent-color: var(--blue); }
.radio-set label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }

.notice { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; background: color-mix(in srgb, var(--green) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); }
.notice.warn { background: color-mix(in srgb, var(--yellow) 18%, var(--surface)); border-color: var(--yellow); }

/* ───────── About ───────── */
.about-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 320px; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.timeline > li { position: relative; padding: 0 0 32px 28px; }
.timeline > li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--paper); }
.timeline h3 { margin: 0 0 2px; }
.timeline .org { font-weight: 600; }
.timeline ul { margin: 10px 0 0; padding-left: 18px; color: var(--steel); }
.timeline ul li { padding: 0 0 4px; }
.side-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.pills li { background: var(--board); border-radius: 999px; padding: 4px 11px; font-size: .85rem; }

.project-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.project { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-body p { color: var(--steel); }
.project-body .pills { margin-top: auto; }

/* ───────── Newsletter ───────── */
.subscribe {
  display: grid; gap: 22px; align-items: center; padding: clamp(26px, 4vw, 44px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
@media (min-width: 860px) { .subscribe { grid-template-columns: 1.2fr 1fr; } }
.subscribe h2 { margin-bottom: 6px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.subscribe p { margin: 0; color: var(--steel); }
.subscribe form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 200px; }

/* ───────── Footer ───────── */
.site-foot { background: var(--foot-bg); color: var(--band-muted); font-size: .95rem; padding: clamp(56px, 7vw, 80px) 0 0; }
.site-foot a { color: var(--band-muted); text-decoration: none; transition: color .2s; }
.site-foot a:hover { color: var(--band-ink); }
.foot-grid { display: grid; gap: 40px 32px; padding-bottom: 48px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; } }
.foot-brand .brand { color: var(--band-ink); margin-bottom: 16px; }
.foot-brand p { max-width: 34ch; margin: 0 0 22px; }
.foot-col h2 { font: 650 .95rem/1.3 var(--sans); letter-spacing: 0; color: var(--band-ink); margin: 0 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col i { width: 18px; margin-right: 6px; text-align: center; }
.foot-base { border-top: 1px solid var(--band-line); padding: 22px 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: .88rem; }
.site-foot .social-icons a { width: 38px; height: 38px; font-size: .95rem; background: rgba(255, 255, 255, .06); color: var(--band-ink); border: 1px solid var(--band-line); }
.site-foot .social-icons a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.pagination a, .pagination span { padding: 7px 13px; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .disabled { opacity: .4; }

.empty { padding: 44px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--rule); border-radius: var(--radius-lg); color: var(--steel); }

/* ───────── Ads ───────── */
.ad-unit { margin: 44px 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-height: 100px; }
.ad-label { display: block; font: 500 .75rem var(--sans); color: var(--steel); margin-bottom: 6px; }
.prose .ad-unit { font-family: var(--sans); }

/* ───────── Author box ───────── */
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 44px; padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.author-box p { margin: 6px 0 0; color: var(--steel); font-size: .98rem; }
.author-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--icon-bg); color: var(--icon-ink); display: grid; place-items: center; font: 800 1.35rem var(--display); }

/* ───────── Legal ───────── */
.legal .prose { font-family: var(--sans); font-size: 1.02rem; line-height: 1.75; }
.legal .prose h2 { font-size: 1.35rem; }
.legal .prose h3 { font-size: 1.05rem; margin-top: 1.2em; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); }
.legal-nav a[aria-current] { color: var(--ink); font-weight: 650; text-decoration: none; }

/* ───────── Cookie bar ───────── */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 40; max-width: 560px; margin: 0 auto; display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: .92rem; }
@media (min-width: 900px) { .cookie-bar { bottom: 20px; } }
.cookie-bar p { margin: 0; }
.cookie-bar[hidden] { display: none; }

/* ───────── Error pages ───────── */
.error-page { padding: 96px 0; max-width: 620px; }
.error-code { font: var(--display-weight) clamp(4rem, 14vw, 8rem)/1 var(--display); letter-spacing: var(--display-tracking); color: var(--yellow); margin-bottom: 12px; }

/* ───────── WhatsApp ───────── */
.wa-btn { background: #1f8f57; border-color: #1f8f57; color: #fff; }
.wa-btn:hover { background: #197548; border-color: #197548; color: #fff; }
.wa-btn i { font-size: 1.15rem; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px;
  background: #1f8f57; color: #fff; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .95rem;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s;
}
.wa-float:hover { background: #197548; color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55); }
.wa-float i { font-size: 1.35rem; }
.js .wa-float { animation: rise .8s var(--ease) 1.4s backwards; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }
.wa-float.compact { padding: 13px; }
.wa-float.compact span { display: none; }

/* ───────── Social icons ───────── */
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-icons a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--board); color: var(--ink); text-decoration: none; font-size: 1.05rem;
  transition: background-color .25s, color .25s, transform .3s var(--ease);
}
.social-icons a:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ───────── Services ───────── */
.svc-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--icon-bg); color: var(--icon-ink); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.svc-icon.big { width: 58px; height: 58px; border-radius: 14px; font-size: 1.45rem; }
.service-list { display: grid; margin-top: 8px; }
.service-row { display: grid; gap: 16px 28px; padding: 32px 0; border-top: 1px solid var(--rule); align-items: start; }
.service-row:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 820px) { .service-row { grid-template-columns: 58px 1fr 190px; } }
.service-row h2 { font-size: 1.5rem; margin: 0 0 8px; }
.service-row h2 a { color: var(--ink); text-decoration: none; transition: color .25s; }
.service-row h2 a:hover { color: var(--blue); }
.service-row p { color: var(--steel); margin: 0 0 14px; max-width: 62ch; }
.service-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media (min-width: 820px) { .service-cta { align-items: flex-end; text-align: right; } }
.small-link { font-size: .92rem; }
.about-services { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; }
.about-services a { color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: center; font-weight: 550; transition: color .2s; }
.about-services a:hover { color: var(--blue); }
.about-services i { width: 18px; text-align: center; color: var(--steel); }
@media (max-width: 520px) {
  .board { padding: 24px 14px 26px; gap: 22px 12px; }
  .board .peg { flex-basis: calc((100% - 12px) / 2); }
  .board .service-tag .tag-name { font-size: .94rem; }
}

/* ───────── Numbers strip ───────── */
.stats-strip { margin: clamp(56px, 7vw, 92px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--hero-line); }
.stat-item { display: flex; flex-direction: column-reverse; gap: 8px; padding: 28px 20px 36px 0; }
@media (min-width: 860px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .stat-item + .stat-item { border-left: 1px solid var(--hero-line); padding-left: 28px; }
}
.stat-item dd { margin: 0; font: var(--display-weight) clamp(2.2rem, 4.2vw, 3.1rem)/1 var(--display); letter-spacing: var(--display-tracking); color: var(--hero-ink); font-variant-numeric: tabular-nums; }
.stat-item dd .sfx { color: var(--yellow); }
.stat-item dt { color: var(--hero-muted); font-size: .93rem; }

/* ───────── How I work ───────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px 24px 26px; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
@media (hover: hover) { .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--yellow) 60%, var(--rule)); } }
.step-num { position: absolute; top: 22px; right: 24px; font: var(--display-weight) 2.4rem/1 var(--display); letter-spacing: var(--display-tracking); color: color-mix(in srgb, var(--ink) 9%, transparent); }
.step-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--icon-bg); color: var(--icon-ink); font-size: 1.1rem; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--steel); font-size: .97rem; }

/* ───────── Call-to-action band ───────── */
.cta-band { padding: clamp(64px, 8vw, 100px) 0; }
.cta-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.cta-band .lead { margin: 0; }
.cta-band .glow.y { top: auto; bottom: -260px; right: -120px; }

/* ───────── Scroll reveal (only when JavaScript runs) ───────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ───────── Reduced motion: everything still, everything visible ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ═════════════════════════════════════════════════════════════════════
   FREE TOOLS
   ═════════════════════════════════════════════════════════════════════ */

/* Index */
.ft-search { position: relative; max-width: 560px; margin-top: 28px; }
.ft-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.ft-search input { padding: 15px 18px 15px 48px; border-radius: 999px; font-size: 1.02rem; box-shadow: var(--shadow); }
.ft-cats button { font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.ft-group { margin-bottom: 44px; }
.ft-group h2 { font-size: 1.4rem; margin-bottom: 18px; }
.ft-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ft-grid.one { grid-template-columns: 1fr; }
.ft-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.ft-card[hidden] { display: none; }
.ft-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--yellow) 55%, var(--rule)); }
.ft-card .svc-icon { width: 42px; height: 42px; font-size: 1.05rem; }
.ft-card-text { display: grid; gap: 4px; min-width: 0; }
.ft-card-text strong { font-weight: 700; letter-spacing: -0.01em; }
.ft-card-text span { color: var(--steel); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-grid.one .ft-card { padding: 14px; }
.ft-grid.one .ft-card-text span { -webkit-line-clamp: 2; font-size: .86rem; }

/* Tool page header */
.ft-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.ft-crumb { font-size: .92rem; margin: 0 0 18px; color: var(--hero-muted); }
.ft-crumb a { color: var(--hero-muted) !important; text-decoration: none; }
.ft-crumb a:hover { color: var(--hero-ink) !important; text-decoration: underline; }
.ft-title { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.ft-title h1 { margin: 0; }
.ft-title .svc-icon.big { background: var(--hero-btn); color: var(--hero-btn-ink); }
.ft-private { margin: 18px 0 0; font-size: .9rem; color: var(--hero-muted); }
.ft-private i { color: var(--yellow); margin-right: 6px; }
.ft-section { padding-top: clamp(32px, 4vw, 48px) !important; }

/* The tool panel */
.ft-app { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.ft { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.ft-row { display: grid; gap: 16px; }
@media (min-width: 680px) {
  .ft-row.c2 { grid-template-columns: 1fr 1fr; }
  .ft-row.c3 { grid-template-columns: repeat(3, 1fr); }
  .ft-row.c4 { grid-template-columns: repeat(4, 1fr); }
  .ft-row.side { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
.ft label { font-size: .9rem; }
.ft textarea { min-height: 200px; line-height: 1.6; }
.ft textarea.short { min-height: 110px; }
.ft input[type=range] { width: 100%; accent-color: var(--yellow); }
.ft input[type=color] { width: 48px; height: 40px; padding: 2px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); cursor: pointer; }
.ft input[type=date], .ft input[type=time] { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 10px; padding: 10px 12px; color-scheme: inherit; }
.ft input[type=date]:focus, .ft input[type=time]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.ft .check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; }
.ft .check input { width: 17px; height: 17px; accent-color: var(--yellow); }
.ft-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ft-suffix { position: relative; }
.ft-suffix input { padding-right: 46px; }
.ft-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--steel); font-size: .9rem; pointer-events: none; }
.ft-inline { display: flex; gap: 10px; align-items: center; }
.ft-inline > * { flex: 1; }
.ft-inline > .shrink { flex: 0 0 auto; }

/* Segmented control */
.ft-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--board); border: 1px solid var(--rule); }
.ft-seg button { font: 600 .9rem var(--sans); color: var(--steel); background: transparent; border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.ft-seg button:hover { color: var(--ink); }
.ft-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 4px 10px -6px rgba(0, 0, 0, .35); }

/* Results */
.ft-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.ft-stat { background: var(--board); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.ft-stat small { display: block; color: var(--steel); font-size: .82rem; }
.ft-stat b { display: block; font: var(--display-weight) 1.7rem/1.15 var(--display); letter-spacing: var(--display-tracking); margin-top: 4px; word-break: break-word; }
.ft-stats.wide { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ft-stats.wide .ft-stat b { font-size: 1.5rem; }
.ft-stat.hl { background: color-mix(in srgb, var(--yellow) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--yellow) 45%, transparent); }
.ft-big { padding: 22px 24px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--yellow) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--yellow) 40%, transparent); }
.ft-big small { display: block; color: var(--steel); font-size: .9rem; }
.ft-big b { display: block; font: var(--display-weight) clamp(2rem, 5vw, 2.8rem)/1.1 var(--display); letter-spacing: var(--display-tracking); margin: 4px 0; }
.ft-big p { margin: 6px 0 0; color: var(--steel); font-size: .95rem; }
.ft-formula { font-size: .9rem; color: var(--steel); background: var(--board); border-radius: 8px; padding: 10px 12px; }
.ft-note { font-size: .88rem; color: var(--steel); margin: 0; }
.ft-error { color: var(--danger); font-size: .92rem; margin: 0; }
.ft-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ft-out { width: 100%; }
.ft .btn.is-done { background: var(--green); border-color: var(--green); color: #fff; }

/* Meter (length / strength bars) */
.ft-meter { display: grid; gap: 6px; }
.ft-meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.ft-meter-top span:last-child { color: var(--steel); font-variant-numeric: tabular-nums; }
.ft-bar { height: 8px; border-radius: 99px; background: var(--board); overflow: hidden; }
.ft-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--green); transition: width .35s var(--ease), background-color .3s; }
.ft-bar i.warn { background: var(--yellow); }
.ft-bar i.bad { background: var(--danger); }

/* Lists of generated results */
.ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 14px; background: var(--board); border-radius: var(--radius); animation: rise .5s var(--ease) backwards; }
.ft-list li:nth-child(2) { animation-delay: .03s; } .ft-list li:nth-child(3) { animation-delay: .06s; } .ft-list li:nth-child(4) { animation-delay: .09s; } .ft-list li:nth-child(n+5) { animation-delay: .12s; }
.ft-list li > span { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-word; }
.ft-list li small { display: block; color: var(--steel); font-size: .8rem; margin-top: 2px; }
.ft-list .btn { flex: none; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-chips button { font: 600 .9rem var(--sans); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, opacity .2s; }
.ft-chips button.off { opacity: .45; text-decoration: line-through; }
.ft-chips button:hover { border-color: var(--yellow); }

/* Tables */
.ft-table-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--rule); border-radius: var(--radius); }
.ft-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.ft-table th, .ft-table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ft-table th:first-child, .ft-table td:first-child { text-align: left; }
.ft-table thead th { position: sticky; top: 0; background: var(--board); font-weight: 650; }
.ft-table tbody tr:last-child td { border-bottom: 0; }

/* File drop zone + file list */
.ft-drop {
  display: grid; place-items: center; gap: 8px; text-align: center; padding: clamp(28px, 5vw, 48px) 20px; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent); border-radius: var(--radius-lg); background: var(--board);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.ft-drop:hover, .ft-drop:focus-visible { border-color: var(--yellow); }
.ft-drop.is-over { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 10%, var(--board)); transform: scale(1.01); }
.ft-drop i { font-size: 2rem; color: var(--yellow); }
.ft-drop strong { font-size: 1.05rem; }
.ft-drop span { color: var(--steel); font-size: .9rem; }
.ft-drop input { display: none; }
.ft-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-files li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); animation: rise .45s var(--ease) backwards; }
.ft-files img, .ft-files canvas { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--board); }
.ft-files .meta { min-width: 0; }
.ft-files .meta > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.ft-files .meta .info strong { color: var(--ink); }
.ft-files .meta span { color: var(--steel); font-size: .85rem; }
.ft-save { display: inline-block; font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); margin-left: 6px; }
.ft-save.up { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.ft-thumbs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ft-thumbs figure { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--surface); animation: rise .45s var(--ease) backwards; }
.ft-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
.ft-thumbs figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; font-size: .85rem; }
.ft-progress { height: 6px; border-radius: 99px; background: var(--board); overflow: hidden; }
.ft-progress i { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .2s; }

/* QR + previews */
.ft-preview { display: grid; place-items: center; padding: 24px; border-radius: var(--radius-lg); background: var(--board); min-height: 260px; }
.ft-preview canvas, .ft-preview img, .ft-preview svg { max-width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); }
.ft-serp { padding: 16px 18px; border-radius: var(--radius); background: #fff; color: #202124; font-family: Arial, sans-serif; border: 1px solid #dadce0; }
.ft-serp .u { font-size: 14px; color: #4d5156; }
.ft-serp .t { font-size: 20px; color: #1a0dab; line-height: 1.3; margin: 4px 0; }
.ft-serp .d { font-size: 14px; color: #4d5156; line-height: 1.58; }

/* Guide, FAQ and related tools */
.ft-content { display: grid; gap: 48px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 960px) { .ft-content { grid-template-columns: minmax(0, 1fr) 320px; } }
.ft-guide { max-width: 720px; }
.ft-guide h2 { font-size: 1.5rem; margin-top: 0; }
.ft-guide h2 + * { margin-top: 0; }
.ft-guide > * + h2 { margin-top: 44px; }
.ft-guide p { color: var(--steel); font-size: 1.04rem; line-height: 1.75; }
.ft-howto { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ft-howto li { counter-increment: s; position: relative; padding: 4px 0 4px 48px; min-height: 34px; }
.ft-howto li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-ink); font-weight: 700; font-size: .92rem; }
.ft-faq { display: grid; gap: 10px; }
.ft-faq details { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); transition: border-color .25s; }
.ft-faq details[open] { border-color: color-mix(in srgb, var(--yellow) 50%, var(--rule)); }
.ft-faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 650; position: relative; }
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg); transition: transform .35s var(--ease), margin-top .35s var(--ease); }
.ft-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ft-faq details p { margin: 0; padding: 0 18px 18px; }
.ft-related h2 { font-size: 1.2rem; margin-bottom: 14px; }
.ft-related .btn { margin-top: 14px; }
@media (min-width: 960px) { .ft-related { position: sticky; top: 96px; align-self: start; } }

@media (max-width: 560px) {
  .ft-files li { grid-template-columns: 48px 1fr; }
  .ft-files li .ft-actions { grid-column: 1 / -1; }
  .ft-files img, .ft-files canvas { width: 48px; height: 48px; }
  .ft-title { gap: 12px; }
  .ft-title .svc-icon.big { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ───────── Avatar (photo or initial) ───────── */
.avatar {
  --s: 64px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%; overflow: hidden;
  display: inline-grid; place-items: center; background: var(--icon-bg); color: var(--icon-ink);
  font: var(--display-weight) calc(var(--s) * .44)/1 var(--display); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--yellow);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.big { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--yellow), var(--shadow); }
.about-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.band-hero .avatar { box-shadow: 0 0 0 4px var(--hero-bg), 0 0 0 6px var(--yellow); }

/* ───────── Home: "Hi, I'm …" ───────── */
.hi-intro { display: flex; gap: 26px; align-items: flex-start; }
.hi-intro h2 { margin: 4px 0 10px; }
.hi-note {
  display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 22px; padding: 14px 16px; max-width: 62ch;
  background: var(--board); border-left: 3px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}
.hi-note i { color: var(--yellow); margin-top: 4px; }
@media (max-width: 640px) { .hi-intro { flex-direction: column; gap: 18px; } }
.cs-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); align-self: start; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cs-card h3 { margin: 6px 0 4px; }
.cs-card p { margin: 0 0 10px; }
.cs-label { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); }
.cs-more { font-weight: 600; color: var(--blue); }
.cs-more::after { content: " →"; transition: margin .2s; }
.cs-card:hover .cs-more::after { margin-left: 4px; }

/* ───────── Case study page ───────── */
.cs-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 28px 0 0; }
.cs-facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--hero-muted); margin-bottom: 4px; }
.cs-facts dd { margin: 0; color: var(--hero-ink); font-weight: 600; max-width: 42ch; }
.cs-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .cs-grid { grid-template-columns: minmax(0, 1fr) 320px; } .cs-side { position: sticky; top: 96px; align-self: start; } }
.cs-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 32px; box-shadow: var(--shadow); }
.cs-part + .cs-part { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--rule); }
.cs-part h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.cs-num { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--icon-bg); color: var(--icon-ink); font-size: 1rem; }
.cs-side .avatar { margin-bottom: 4px; }

/* ───────── Booking ───────── */
.bk-form { display: grid; gap: 36px; }
.bk-step { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin: 0 0 6px; }
.bk-step span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); font-size: .95rem; }
.bk-tznote { margin: 0 0 16px; font-size: .95rem; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.bk-days button, .bk-times button {
  font: inherit; cursor: pointer; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: var(--radius);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.bk-days button { flex: 0 0 auto; min-width: 74px; padding: 10px 12px; display: grid; gap: 2px; text-align: center; }
.bk-days button b { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); }
.bk-days button span { font-weight: 700; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 12px; }
.bk-times button { padding: 11px 10px; font-weight: 600; display: grid; gap: 2px; }
.bk-times button small { font-weight: 400; font-size: .76rem; color: var(--steel); }
.bk-days button:hover, .bk-times button:hover { border-color: var(--yellow); transform: translateY(-1px); }
.bk-days button.on, .bk-times button.on { background: var(--icon-bg); border-color: var(--icon-bg); color: var(--icon-ink); }
.bk-days button.on b, .bk-times button.on small { color: inherit; opacity: .8; }
.bk-chosen { margin: 16px 0 0; padding: 12px 14px; background: var(--board); border-radius: var(--radius); }
.bk-chosen i { color: var(--green); }
.bk-chosen .error { color: var(--danger); }
.bk-done { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.bk-done h2 { margin: 16px 0 10px; }
.bk-tick { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.4rem; animation: bk-pop .5s var(--ease); }
@keyframes bk-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bk-tick { animation: none; } }


/* ───────── Tool → service pitch ───────── */
.ft-pitch {
  display: grid; gap: 16px 22px; align-items: center; margin-top: 28px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--yellow); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
@media (min-width: 820px) { .ft-pitch { grid-template-columns: auto 1fr auto; } }
.ft-pitch h2 { font-size: 1.2rem; margin: 0 0 4px; }
.ft-pitch p { margin: 0; color: var(--steel); }
.ft-pitch .btn-row { margin: 0; }

/* ───────── Blog post extras ───────── */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; }
.toc { margin: 0 0 36px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.toc summary { cursor: pointer; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.toc ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.toc li { padding-left: 14px; border-left: 2px solid var(--yellow); }
.toc li.lvl-3 { margin-left: 16px; border-left-color: var(--rule); font-size: .95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 90px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); }
.share-label { font-weight: 700; margin-right: 6px; }
.share a, .share button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: .92rem; cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
}
.share a:hover, .share button:hover { border-color: var(--yellow); transform: translateY(-2px); }
.post-nav { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.post-nav a:hover { border-color: var(--yellow); box-shadow: var(--shadow); }
.post-nav a span { font-size: .85rem; color: var(--steel); }
.post-nav .next { text-align: right; }
.post-tools { max-width: 960px; margin: 40px auto 0; }
.post-tools h2 { font-size: 1.4rem; }

/* ───────── Site-wide search ───────── */
.site-head .wrap { justify-content: flex-start; }
.site-head .brand { margin-right: auto; }
.site-head .nav { order: 2; }
.search-btn {
  order: 3; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--head-line); color: var(--head-muted); text-decoration: none; font-size: .9rem; transition: color .2s, border-color .2s;
}
.search-btn:hover { color: var(--head-ink); border-color: var(--yellow); text-decoration: none; }
.search-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-btn kbd, .search-foot kbd { font: 600 .72rem var(--sans); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--head-line); color: var(--head-muted); }
.menu-btn { order: 4; }
@media (max-width: 1080px) { .search-btn kbd { display: none; } }
@media (max-width: 820px) { .search-btn { order: 1; width: 40px; padding: 0; justify-content: center; } .menu-btn { order: 2; } }
.search-dlg {
  width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 80px)); margin: 10vh auto auto; padding: 0;
  border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-dlg[open] { display: flex; flex-direction: column; animation: search-in .22s var(--ease); }
.search-dlg::backdrop { background: rgba(5, 10, 20, .55); backdrop-filter: blur(3px); }
@keyframes search-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .search-dlg[open] { animation: none; } }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.search-box > i { color: var(--steel); }
.search-box input { flex: 1; border: 0; background: transparent; font: 500 1.08rem var(--sans); color: var(--ink); padding: 6px 0; outline: none; box-shadow: none; min-width: 0; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-close { border: 1px solid var(--rule); background: var(--board); color: var(--steel); border-radius: 6px; font: 600 .75rem var(--sans); padding: 4px 8px; cursor: pointer; }
.search-results { overflow-y: auto; padding: 8px; flex: 1; }
.search-group { margin: 8px 10px 6px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.search-empty { padding: 22px 12px; margin: 0; text-align: center; color: var(--steel); }
.search-row, .search-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.search-row.on, .search-row:hover, .search-list a:hover { background: var(--board); text-decoration: none; }
.search-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; background: var(--icon-bg); color: var(--icon-ink); font-size: .9rem; }
.search-txt { display: grid; min-width: 0; flex: 1; }
.search-txt strong { font-weight: 650; }
.search-txt small { color: var(--steel); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-kind { font-size: .72rem; font-weight: 600; color: var(--steel); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.search-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: .78rem; color: var(--steel); }
@media (max-width: 640px) { .search-foot { display: none; } .search-dlg { margin-top: 12px; } .search-kind { display: none; } }
.search-on body { overflow: hidden; }
.search-page-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 620px; margin-top: 8px; }
.search-page-form input { flex: 1 1 260px; }
.search-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.search-list a { border: 1px solid var(--rule); background: var(--surface); }

/* ───────── Recently used tools ───────── */
.ft-recent { margin: 0 0 28px; }
.ft-recent h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin: 0 0 10px; }
.ft-recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-recent-list a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .2s, transform .2s var(--ease); }
.ft-recent-list a:hover { border-color: var(--yellow); transform: translateY(-1px); }
.ft-recent-list i { color: var(--yellow); }
.bk-grid > *, .bk-form, .bk-form > div { min-width: 0; }
