/* /shared/sf.css — StackFreeks Tools shell (guides/design-guide.md §1–§5)
   Load in <head>, after the Pretendard <link>:
     <link rel="stylesheet" href="/shared/sf.css">
   Icons: <svg class="ico" aria-hidden="true"><use href="/shared/icons.svg#i-NAME"/></svg>
   Tool pages keep only tool-specific CSS inline. */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  /* ground + ink (slate) */
  --bg: #ffffff;
  --surface: #ffffff;       /* cards, inputs */
  --surface-2: #f8fafc;     /* the one quiet neutral: wells, code, footer */
  --border: #e2e8f0;        /* hairlines */
  --border-2: #cbd5e1;      /* input edges, hover */
  --text-1: #0f172a;        /* 17.9:1 on --bg */
  --text-2: #475569;        /* 7.6:1 */
  --text-3: #64748b;        /* 4.76:1 on --bg, 4.55:1 on --surface-2 */

  /* one accent: deep teal — buttons, links, focus, icon strokes. Never large fills. */
  --accent: #0f766e;
  --accent-text: #0f766e;   /* 5.23:1 on --surface-2 */
  --accent-strong: #0f766e; /* button fill; white text 5.47:1 */
  --accent-hover: #115e59;  /* white text 7.58:1 */
  --accent-fg: #ffffff;
  --accent-soft: #f0fdfa;   /* icon tile */
  --accent-soft-2: #ccfbf1; /* tile edge, selection */

  /* status — small areas only */
  --success: #dcfce7;       /* success well */
  --success-fg: #14532d;    /* 8.3:1 on --success */
  --danger: #b91c1c;        /* 6.5:1 on white */
  --danger-bg: #fef2f2;
  --warning: #b45309;       /* 5.0:1 on white */
  --warning-bg: #fffbeb;

  /* type scale */
  --fs-xs: 13px;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-l: 20px;
  --fs-xl: 30px;
  --fs-2xl: 44px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 150ms var(--ease);
  --wrap: 1200px;
  --wrap-tool: 960px;
  --radius-s: 8px;
  --radius: 12px;
  --shadow-lift: 0 8px 20px -10px rgb(15 23 42 / 0.18), 0 2px 4px -2px rgb(15 23 42 / 0.06);
  --light-only: block;      /* display for elements shown only in light (moon icon, light badge) */
  --dark-only: none;
  color-scheme: light;
}

/* Dark: calm slate, same single teal. Follows the system unless the visitor picked a theme
   (html[data-theme], set by the <head> one-liner + i18n.js sfTheme). Both blocks hold the same values.
   Light values above stay FIRST in the file: qa_check reads the first --bg / --text-3 / --accent-text match. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --surface: #111a2b;
    --surface-2: #172133;
    --border: #1f2a3c;
    --border-2: #334155;
    --text-1: #e8edf4;        /* 16.0:1 on --bg */
    --text-2: #aab6c6;        /* 9.2:1 */
    --text-3: #8693a6;        /* 6.0:1 on --bg, 5.2:1 on --surface-2 */
    --accent: #3fb8a8;        /* focus ring, bars: 7.7:1 on --bg */
    --accent-text: #4cc2b2;   /* 7.4:1 on --surface-2 */
    --accent-strong: #0f766e; /* white text 5.47:1 */
    --accent-hover: #0b8075;  /* white text 4.8:1 */
    --accent-fg: #ffffff;
    --accent-soft: rgb(45 212 191 / 0.08);
    --accent-soft-2: rgb(45 212 191 / 0.22);
    --success: #0f2a1e;
    --success-fg: #86efac;    /* 10.9:1 on --success */
    --danger: #f08080;        /* 7.3:1 on --bg */
    --danger-bg: #2a1418;
    --warning: #e8b04a;       /* 9.6:1 on --bg */
    --warning-bg: #2a2112;
    --shadow-lift: 0 8px 20px -10px rgb(0 0 0 / 0.6), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --light-only: none;
    --dark-only: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111a2b;
  --surface-2: #172133;
  --border: #1f2a3c;
  --border-2: #334155;
  --text-1: #e8edf4;
  --text-2: #aab6c6;
  --text-3: #8693a6;
  --accent: #3fb8a8;
  --accent-text: #4cc2b2;
  --accent-strong: #0f766e;
  --accent-hover: #0b8075;
  --accent-fg: #ffffff;
  --accent-soft: rgb(45 212 191 / 0.08);
  --accent-soft-2: rgb(45 212 191 / 0.22);
  --success: #0f2a1e;
  --success-fg: #86efac;
  --danger: #f08080;
  --danger-bg: #2a1418;
  --warning: #e8b04a;
  --warning-bg: #2a2112;
  --shadow-lift: 0 8px 20px -10px rgb(0 0 0 / 0.6), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --light-only: none;
  --dark-only: block;
  color-scheme: dark;
}

/* ── 2. Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--border-2) transparent; accent-color: var(--accent); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  font-size: var(--fs-m);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang="ko"] body { word-break: keep-all; line-height: 1.7; }
a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-soft-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { color: var(--text-1); text-wrap: balance; letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.92em; }
::selection { background: var(--accent-soft-2); color: var(--text-1); }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
html[lang="en"] .lang-ko, html[lang="ko"] .lang-en { display: none; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-tool { max-width: var(--wrap-tool); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* icons (Lucide sprite) */
.ico { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.75; }
/* sprite icon sitting inline in a line of text (replaces the old emoji / ✓ ✕ ⚠ marks) */
.ico-inline { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; }
.tile {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-2); color: var(--accent-text);
}
.tile-lg { width: 52px; height: 52px; border-radius: 12px; }
.tile-lg .ico { width: 26px; height: 26px; }

/* ── 3. Nav ────────────────────────────────────────────────── */
nav.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; gap: 8px; }
.nav a { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: 16px; color: var(--text-1); font-size: var(--fs-m); font-weight: 700; letter-spacing: -0.015em; flex-shrink: 0; }
/* nav mark: inline SVG, so it carries no background of its own and reads in both themes
   (the opaque stackfreeks_icon.png stays the favicon / apple-touch-icon) */
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; color: var(--accent-text); }
.logo-mark text { font: 700 11px/1 var(--font); letter-spacing: -0.02em; fill: var(--text-1); }
.nav-cats { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav-link, .nav-back, .nav-blog {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: var(--radius-s);
  color: var(--text-2); font-size: var(--fs-s); font-weight: 500; white-space: nowrap;
  transition: background-color var(--t), color var(--t);
}
.nav-link .ico, .nav-blog .ico { width: 16px; height: 16px; }
.nav-link .ico { color: var(--accent-text); }
.nav .nav-link:hover, .nav .nav-back:hover, .nav .nav-blog:hover { background: var(--surface-2); color: var(--text-1); }
.nav-push { margin-left: auto; }
.lang-toggle {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; margin-left: 4px;
  font-family: var(--font); font-size: var(--fs-s); font-weight: 600; color: var(--text-1);
  background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-s);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: border-color var(--t), background-color var(--t);
}
.lang-toggle:hover { border-color: var(--text-3); background: var(--surface-2); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0;
  color: var(--text-2); background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-s); cursor: pointer;
  transition: border-color var(--t), background-color var(--t), color var(--t);
}
.theme-toggle:hover { border-color: var(--text-3); background: var(--surface-2); color: var(--text-1); }
.theme-toggle .ico { width: 16px; height: 16px; }
.theme-toggle .i-moon, .light-only { display: var(--light-only); }
.theme-toggle .i-sun, .dark-only { display: var(--dark-only); }

/* ── 4. Cards (home, related, same-category) ───────────────── */
.grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-1); text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover { border-color: var(--border-2); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
/* the home search walks these with the arrow keys, so the ring must show on programmatic focus too */
.card:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.card-text { display: block; min-width: 0; padding-top: 1px; }
.card-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: var(--fs-xs); line-height: 1.5; color: var(--text-2); }
.card-go { margin-left: auto; align-self: center; width: 16px; height: 16px; color: var(--text-3); transition: color var(--t), transform var(--t); }
.card:hover .card-go { color: var(--accent-text); }
.card.prev:hover .card-go { transform: translateX(-2px); }
.card.next:hover .card-go { transform: translateX(2px); }
.card-sm { align-items: center; padding: 12px 14px; }
.card-sm .tile { width: 32px; height: 32px; border-radius: 8px; }
.card-sm .tile .ico { width: 18px; height: 18px; }

/* section heads */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 16px; }
.sec-head h2, .section-title { font-size: var(--fs-l); font-weight: 650; letter-spacing: -0.02em; }
.sec-head:has(p) { flex-direction: column; align-items: flex-start; }
.sec-head p { max-width: 62ch; color: var(--text-2); font-size: var(--fs-s); }
.sec-link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-s); font-weight: 500; text-decoration: none; white-space: nowrap; }
.sec-link .ico { width: 16px; height: 16px; }
.sec-link:hover { text-decoration: underline; }

/* ── 5. Tool page header ───────────────────────────────────── */
.tool-head { padding-top: 32px; padding-bottom: 24px; display: flex; align-items: flex-start; gap: 18px; }
.tool-head-text { min-width: 0; }
.tool-head h1 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.tool-head .lang-en p, .tool-head .lang-ko p { margin-top: 6px; max-width: 64ch; color: var(--text-2); font-size: var(--fs-m); line-height: 1.5; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badges li {
  display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 4px 10px; line-height: 1.3;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
  color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap;
}
.badges .ico { width: 14px; height: 14px; color: var(--accent-text); }

/* ── 6. Home ───────────────────────────────────────────────── */
/* Centred from 769px up: left-aligned, the 720px hero column sat in a 1200px wrap and left
   ~40% of the first viewport empty on the right with nothing resolving it (finish review #6). */
.home-hero { padding: 64px 0 0; text-align: center; }
.home-hero h1 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.home-hero .lead { margin: 14px auto 0; max-width: 58ch; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.home-hero .badges { margin-top: 18px; justify-content: center; }

.search { position: relative; display: flex; align-items: center; max-width: 720px; margin: 28px auto 0; }
.search > .ico { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
#toolSearch {
  width: 100%; height: 56px; padding: 0 56px 0 50px;
  font-family: var(--font); font-size: 17px; color: var(--text-1);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  -webkit-appearance: none; appearance: none; transition: border-color var(--t), box-shadow var(--t);
}
#toolSearch::placeholder { color: var(--text-3); opacity: 1; }
#toolSearch:hover { border-color: var(--text-3); }
#toolSearch:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); }
#toolSearch::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-kbd {
  position: absolute; right: 14px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 6px; pointer-events: none;
  font-family: var(--font); font-size: var(--fs-xs); font-weight: 500; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2);
}
.tool-search-empty { margin-top: 20px; color: var(--text-2); }
.tool-search-query { color: var(--text-1); font-weight: 600; }

.section { padding: 56px 0 0; }

/* categories */
.directory { padding-top: 16px; }
.tools-cat { padding-top: 40px; scroll-margin-top: 76px; }
.cat-details > summary { list-style: none; cursor: default; }
.cat-details > summary::-webkit-details-marker { display: none; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cat-head h2 { font-size: var(--fs-l); font-weight: 650; letter-spacing: -0.02em; }
.cat-head > .ico { width: 22px; height: 22px; color: var(--accent-text); }
.cat-count { color: var(--text-3); font-size: var(--fs-s); font-weight: 500; white-space: nowrap; }
.cat-chev { display: none; margin-left: auto; width: 18px; height: 18px; color: var(--text-3); transition: transform var(--t); }

/* trust strip — plain facts, no numbers */
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.trust li { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: var(--text-1); font-size: 15px; font-weight: 500; }
.trust li + li { border-left: 1px solid var(--border); }
.trust .ico { color: var(--accent-text); }

/* server tools + sponsor */
.showcase { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* ── 7. Components: buttons, inputs, results ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-s);
  font-family: var(--font); font-size: var(--fs-s); font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-strong); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost, .btn-secondary { background: var(--surface); color: var(--text-1); border-color: var(--border-2); }
.btn-ghost:hover, .btn-secondary:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; }

input, select, textarea {
  font-family: var(--font); font-size: 15px; color: var(--text-1);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-s); padding: 9px 12px;
  transition: border-color var(--t), box-shadow var(--t);
}
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); }
input[type="checkbox"], input[type="radio"], input[type="range"] { box-shadow: none; }
[aria-invalid="true"], .is-error { border-color: var(--danger) !important; }
.error-text { color: var(--danger); font-size: var(--fs-xs); font-weight: 500; }
label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-1); }
.card-box, .result-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 14px 16px; overflow-x: auto; line-height: 1.55; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }

/* AdSense slot — directly below the tool body. Collapses until an <ins> is placed inside. */
.ad-slot { max-width: var(--wrap-tool); margin: 0 auto 8px; padding: 0 32px; }
.ad-slot:empty { display: none; }

/* ── 8. Below the tool: more tools, guide, FAQ, related ────── */
.more-tools, .guide, .faq, .sf-related, .related { max-width: var(--wrap-tool); margin: 0 auto; padding: 56px 32px 0; }
.more-tools { padding-top: 40px; }
.guide-title, .faq-title, .sf-related-title { font-size: var(--fs-l); font-weight: 650; letter-spacing: -0.02em; margin-bottom: 16px; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.guide-card { padding: 18px 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.guide-card h3 { font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.guide-card p { color: var(--text-2); font-size: var(--fs-s); line-height: 1.6; }

.faq-item { border-bottom: 1px solid var(--border); }
/* top hairline on the first item (some pages wrap the items in .faq-list) — never on the
   wrapper itself, or its first question's text sits flush on the line */
.faq-title + .faq-item, .faq-list > .faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font); font-size: var(--fs-m); font-weight: 550; color: var(--text-1); line-height: 1.45;
}
.faq-q:hover { color: var(--accent-text); }
.faq-icon { position: relative; flex-shrink: 0; width: 16px; height: 16px; font-size: 0; color: var(--text-3); transition: transform var(--t); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.75px; margin-top: -0.875px; border-radius: 1px; background: currentColor; }
.faq-icon::after { transform: rotate(90deg); transition: transform var(--t); }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }
.faq-a { display: none; padding: 0 32px 20px 0; color: var(--text-2); font-size: 15px; line-height: 1.7; max-width: 72ch; }
.faq-item.open .faq-a { display: block; }

.related { padding-top: 32px; }
.related a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
/* leftover pre-redesign scaffolding inside .related (design-guide §7-4): plain links are the
   target shape, but ~23 pages still ship the card/grid markup, so give it the shell card look. */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.related .related-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-weight: 400; transition: border-color var(--t);
}
.related .related-card:hover { border-color: var(--border-2); }
.related .related-tag, .related .related-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-3); text-transform: uppercase;
}
.related .related-title { margin: 0; font-size: 15px; font-weight: 500; color: var(--text-1); line-height: 1.5; }
.related .related-card .related-title { color: var(--accent-text); }
.related .related-arrow { color: var(--accent-text); }
.related .related-note { margin: 0 0 6px; font-size: 14px; color: var(--text-2); }
.related-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* Vultr banner (i18n.js clones it as .cw-banner for Cloudways and injects its own blue — overridden below) */
.vultr-banner { max-width: var(--wrap-tool); margin: 40px auto 0; padding: 0 32px; }
.vultr-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-1); text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.vultr-inner:hover { border-color: var(--border-2); box-shadow: var(--shadow-lift); }
.vultr-label { color: var(--text-3); font-size: var(--fs-xs); font-weight: 500; margin-bottom: 2px; }
.vultr-title { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.vultr-sub { color: var(--text-2); font-size: var(--fs-s); margin-top: 2px; }
.vultr-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; flex-shrink: 0; white-space: nowrap; border-radius: var(--radius-s);
  background: var(--accent-strong); color: var(--accent-fg); font-size: var(--fs-s); font-weight: 600;
  transition: background-color var(--t);
}
.vultr-inner:hover .vultr-cta { background: var(--accent-hover); }
.vultr-banner + .vultr-banner { margin-top: 12px; }
.vultr-banner.cw-banner .vultr-inner { background: var(--surface); border-color: var(--border); }
.vultr-banner.cw-banner .vultr-label { color: var(--text-3); }
.vultr-banner.cw-banner .vultr-cta, .vultr-banner.cw-banner .vultr-cta:hover { background: var(--surface); color: var(--text-1); border: 1px solid var(--border-2); opacity: 1; }
.vultr-banner.cw-banner .vultr-inner:hover .vultr-cta { background: var(--surface-2); }

/* ── 9. Footer ─────────────────────────────────────────────── */
.site-footer { margin-top: 80px; padding: 48px 0 40px; background: var(--surface-2); border-top: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-s); }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--border-2); }
.footer-map { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; padding-bottom: 32px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.footer-map h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; }
.footer-map h3 a { color: var(--text-1); }
.footer-map h3 .ico { width: 16px; height: 16px; color: var(--accent-text); }
.footer-map ul { list-style: none; }
.footer-map li { padding: 3px 0; font-size: var(--fs-xs); line-height: 1.45; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 20px 0 8px; }
.footer-links a { font-weight: 500; }
.footer-copy { color: var(--text-3); font-size: var(--fs-xs); }

/* ── 10. Motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}

/* ── 11. Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-cats .nav-label { display: none; }
  .nav-cats .nav-link { padding: 0 9px; }
  .footer-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .wrap, .wrap-tool, .nav-inner, .more-tools, .guide, .faq, .sf-related, .related, .vultr-banner, .ad-slot { padding-left: 16px; padding-right: 16px; }
  .nav-inner { height: 56px; gap: 4px; }
  .nav-cats, .nav-blog, .nav-cat { display: none; }
  .logo { margin-right: auto; }
  .tool-head { padding-top: 20px; padding-bottom: 16px; gap: 14px; }
  .tool-head .tile-lg { width: 44px; height: 44px; border-radius: 10px; }
  .tool-head .tile-lg .ico { width: 22px; height: 22px; }
  .tool-head h1 { font-size: 24px; }
  .tool-head .lang-en p, .tool-head .lang-ko p { font-size: 15px; margin-top: 4px; }
  .badges { margin-top: 10px; }
  .home-hero { padding-top: 32px; text-align: left; }   /* phones read a left edge better */
  .home-hero h1 { font-size: 34px; }
  .home-hero .lead { font-size: var(--fs-m); margin: 10px 0 0; }
  .home-hero .badges { justify-content: flex-start; }
  .search { margin-top: 20px; }
  #toolSearch { height: 52px; padding-right: 16px; }
  .search-kbd { display: none; }
  .section { padding-top: 40px; }
  .grid, .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .card { padding: 14px; gap: 12px; }
  .popular .card-desc, .showcase .card-desc { display: none; }
  .popular .card, .showcase .card { align-items: center; }
  .showcase .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase .card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .directory { padding-top: 24px; }
  .tools-cat { padding: 4px 0; border-bottom: 1px solid var(--border); }
  .tools-cat:first-child { border-top: 1px solid var(--border); }
  .cat-details > summary { cursor: pointer; }
  .cat-head { margin-bottom: 0; padding: 10px 0; min-height: 52px; }
  .cat-head h2 { font-size: 17px; }
  .cat-details[open] .grid { padding-bottom: 12px; }
  .cat-chev { display: block; }
  .cat-details[open] .cat-chev { transform: rotate(180deg); }
  .trust li { padding: 14px; font-size: var(--fs-s); }
  .showcase { gap: 16px; }
  .vultr-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .more-tools, .guide, .faq, .sf-related { padding-top: 40px; }
  .more-tools { padding-top: 32px; }
  .site-footer { margin-top: 56px; }
}
/* sf-mobile-input-16: iOS zooms on focus below 16px (design-guide 5-4) */
@media (max-width: 768px) {
  input, select, textarea { font-size: max(16px, var(--input-fs, 0px)) !important; }
}
/* sf-touch-40: invisible 40px hit area (design-guide 5-5) */
@media (max-width: 768px), (pointer: coarse) {
  :where(button, [role="button"], .lang-toggle, nav a, header a, a[class*="btn"], a[class*="cta"], .nav-back, .back-link) { position: relative; }
  :where(button, [role="button"], .lang-toggle, nav a, header a, a[class*="btn"], a[class*="cta"], .nav-back, .back-link)::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 40px); height: max(100%, 40px); transform: translate(-50%, -50%); }
}
/* sf-nav-compact: nav stays one row at 375/320 (design-guide 5-1) */
@media (max-width: 480px) {
  body > nav:not(.navbar), nav.nav, nav.navbar > .container { padding-left: 12px !important; padding-right: 12px !important; gap: 8px !important; }
  nav :is(.nav-inner, .nav-left, .nav-right, .nav-actions), nav > div { gap: 10px !important; flex-wrap: nowrap !important; min-width: 0; }
  nav :is(a, button) { white-space: nowrap !important; flex-shrink: 0; }
  nav .nav-sep { display: none !important; }
}
@media (max-width: 360px) {
  nav a[href^="https://stackfreeks.com"]:not(.logo):not(.nav-logo) { display: none !important; }
}
@media (max-width: 480px) {
  .nav-inner { padding-left: 0; padding-right: 0; } /* nav itself gets 12px from sf-nav-compact */
  .logo-text { display: none; }
  .nav-back { padding: 0 8px; }
  .lang-toggle { padding: 0 10px; }
}

/* home: sponsor column beside the server tools */
.sponsor .vultr-banner { margin: 0; padding: 0; max-width: none; }
.sponsor .vultr-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
.sponsor .vultr-banner + .vultr-banner { margin-top: 12px; }
