/* =============================================================================
   Walter Pinem Tools — Global Stylesheet
   Style Guide v1.0 · Vanilla CSS · 2026
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Google Fonts
   --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
   Oswald
   --------------------------------------------------------------------------- */
/* oswald-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200;
  src: url("../fonts/oswald-v57-latin-200.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Oswald";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/oswald-v57-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/oswald-v57-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/oswald-v57-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/oswald-v57-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/oswald-v57-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ---------------------------------------------------------------------------
   DM Sans
   --------------------------------------------------------------------------- */
/* dm-sans-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100;
  src: url("../fonts/dm-sans-v17-latin-100.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100;
  src: url("../fonts/dm-sans-v17-latin-100italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 200;
  src: url("../fonts/dm-sans-v17-latin-200.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 200;
  src: url("../fonts/dm-sans-v17-latin-200italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/dm-sans-v17-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 300;
  src: url("../fonts/dm-sans-v17-latin-300italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/dm-sans-v17-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/dm-sans-v17-latin-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/dm-sans-v17-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 500;
  src: url("../fonts/dm-sans-v17-latin-500italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/dm-sans-v17-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 600;
  src: url("../fonts/dm-sans-v17-latin-600italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/dm-sans-v17-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/dm-sans-v17-latin-700italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 800;
  src: url("../fonts/dm-sans-v17-latin-800.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 800;
  src: url("../fonts/dm-sans-v17-latin-800italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 900;
  src: url("../fonts/dm-sans-v17-latin-900.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 900;
  src: url("../fonts/dm-sans-v17-latin-900italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ---------------------------------------------------------------------------
   Fira Mono
   --------------------------------------------------------------------------- */
/* fira-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Fira Mono";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/fira-mono-v16-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fira-mono-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Fira Mono";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/fira-mono-v16-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fira-mono-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Fira Mono";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/fira-mono-v16-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ---------------------------------------------------------------------------
   Lora
   --------------------------------------------------------------------------- */
/* lora-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/lora-v37-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/lora-v37-latin-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lora";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/lora-v37-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lora";
  font-style: italic;
  font-weight: 500;
  src: url("../fonts/lora-v37-latin-500italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lora";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/lora-v37-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lora";
  font-style: italic;
  font-weight: 600;
  src: url("../fonts/lora-v37-latin-600italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/lora-v37-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lora";
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/lora-v37-latin-700italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ---------------------------------------------------------------------------
   2. Design Tokens
   --------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg: #f8f3ec;
  --ink: #1a1714;
  --accent-warm: #c0522a;
  --ink-mid: #3d3530;
  --ink-muted: #7a6f66;
  --ink-ghost: #c4b8ae;
  --card-bg: #f2ece3;
  --tag-bg: #e8e0d5;
  --border: rgba(26, 23, 20, 0.12);
  --border-strong: rgba(26, 23, 20, 0.3);

  /* Typography */
  --font-display: "Oswald", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-prose: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Fira Mono", "Courier New", monospace;

  /* Spacing (base-8 rem system) */
  --space-xs: 0.5rem; /* 8px  */
  --space-sm: 1rem; /* 16px */
  --space-md: 1.5rem; /* 24px */
  --space-lg: 2.5rem; /* 40px */
  --space-xl: 4rem; /* 64px */
  --space-2xl: 6rem; /* 96px */

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Motion */
  --transition: 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --delay-1: 0.1s;
  --delay-2: 0.2s;
  --delay-3: 0.3s;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);

  /* Nav */
  --nav-height: 64px;
}

/* ---------------------------------------------------------------------------
   3. Reset & Base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

.w-100 {
  width: 100% !important;
}
.d-block {
  display: block !important;
}
.text-center {
  text-align: center !important;
}
.fw-bold {
  font-weight: bold !important;
}

/* ---------------------------------------------------------------------------
   4. Container
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--wide {
  max-width: 1000px;
}
.container--wider {
  max-width: 1280px;
}
.container--content {
  max-width: 720px;
}

/* ---------------------------------------------------------------------------
   5. Navigation
   --------------------------------------------------------------------------- */
.nav {
  position: relative;
  padding: 1.1rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo span {
  color: var(--accent-warm);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.nav__link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
  background: rgba(26, 23, 20, 0.06);
}
.nav__link[aria-current="page"] {
  font-weight: 700;
}

.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  flex-shrink: 0;
}
.nav__hamburger svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: 6rem var(--container-pad) var(--space-2xl);
  flex-direction: column;
  gap: var(--space-sm);
  overflow-y: auto;
}
.nav__mobile.is-open {
  display: flex;
}
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  color: var(--bg);
  letter-spacing: 0.04em;
  opacity: 0.85;
  transition:
    opacity var(--transition),
    color var(--transition);
}
.nav__mobile-link:hover {
  opacity: 1;
  color: var(--accent-warm);
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
}

/* ---------------------------------------------------------------------------
   6. Hero (Homepage)
   --------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(192, 82, 42, 0.1);
  border: 1px solid rgba(192, 82, 42, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  margin-bottom: var(--space-sm);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(58px, 7.5vw, 108px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.hero__desc {
  font-size: 1.1rem;
  color: var(--ink-mid);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: var(--space-lg);
}
.hero__stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent-warm);
  line-height: 1;
}
.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}
.hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: 480px;
}
.hero__actions .btn {
  justify-content: center;
}
.hero__search {
  position: relative;
  max-width: 480px;
  margin-bottom: var(--space-md);
}
.hero__search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
}
.hero__search-input::placeholder {
  color: var(--ink-muted);
}
.hero__search-input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(26, 23, 20, 0.06);
}
.hero__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}
.hero__search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(26, 23, 20, 0.14);
  z-index: 50;
  max-height: 340px;
  overflow-y: auto;
  display: none;
}
.hero__search-results.is-visible {
  display: block;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: var(--card-bg);
}
.search-result-item img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: contain;
}
.search-result-item__name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}
.search-result-item__cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__media {
    display: none;
  }
}
@media (max-width: 560px) {
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__stats {
    gap: var(--space-md);
  }
}

/* ---------------------------------------------------------------------------
   7. Category Filter Tabs
   --------------------------------------------------------------------------- */
.cat-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.cat-filter__btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-filter__btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}
.cat-filter__btn.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------------------------------------------------------------------------
   9. Tool Cards Grid
   --------------------------------------------------------------------------- */
.tools-section {
  padding: var(--space-2xl) 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 32px rgba(26, 23, 20, 0.1);
}
.tool-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.tool-card__top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1.1rem 1.2rem 0.9rem;
}
.tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(26, 23, 20, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tool-card__icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.tool-card__cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tool-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
  transition: color var(--transition);
}
.tool-card:hover .tool-card__name {
  color: var(--accent-warm);
}
.tool-card__body {
  padding: 0 1.2rem 1.1rem;
  flex: 1;
}
.tool-card__desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-card__footer {
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-card__arrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition:
    color var(--transition),
    transform var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.tool-card:hover .tool-card__arrow {
  color: var(--accent-warm);
  transform: translateX(3px);
}

/* Hidden cards for category filtering */
.tool-card[hidden] {
  display: none;
}
.tool-card.cat-hidden {
  display: none !important;
}

/* ---------------------------------------------------------------------------
   10. Section Headers
   --------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-lg);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-xs);
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--accent-warm);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.section-desc {
  margin-top: var(--space-xs);
  color: var(--ink-muted);
  max-width: 600px;
}

/* ---------------------------------------------------------------------------
   11. Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: var(--ink-mid);
  border-color: var(--ink-mid);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  padding: 0.7rem 0;
  font-size: 0.84rem;
  border-color: transparent;
}
.btn--ghost:hover {
  color: var(--ink);
}
.btn--accent {
  background: var(--accent-warm);
  color: #fff !important;
  border-color: var(--accent-warm);
  text-decoration: none !important;
}
.btn--accent:hover {
  background: #a84523;
  border-color: #a84523;
  transform: translateY(-1px);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------------------
   12. Tags & Pills
   --------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  color: var(--ink-muted);
  transition: all var(--transition);
}
.tag:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}
.tag--active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(192, 82, 42, 0.1);
  border: 1px solid rgba(192, 82, 42, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  display: inline-block;
}

/* ---------------------------------------------------------------------------
   13. Tool Page — Hero
   --------------------------------------------------------------------------- */
.tool-hero {
  padding-top: calc(var(--nav-height) + var(--space-xs));
  padding-bottom: var(--space-lg);
  text-align: center;
}
.tool-hero__eyebrow {
  margin-bottom: var(--space-sm);
}
.tool-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}
.tool-hero__desc {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   14. Breadcrumb
   --------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
  justify-content: center;
}
.breadcrumb a {
  color: var(--ink-muted);
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--accent-warm);
}
.breadcrumb__sep {
  color: var(--ink-ghost);
}
.breadcrumb__current {
  color: var(--ink);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
   15. Tool Widget Card
   --------------------------------------------------------------------------- */
.tool-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (max-width: 560px) {
  .tool-widget {
    padding: var(--space-md);
  }
}

/* Card component (used in tool widgets) */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.card-body {
  padding: var(--space-md);
}

/* Form Controls (replacing Bootstrap) */
.form-group {
  margin-bottom: var(--space-md);
}
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
  resize: vertical;
  line-height: 1.6;
}
.form-control::placeholder {
  color: var(--ink-ghost);
}
.form-control:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(26, 23, 20, 0.06);
}
.form-control--mono {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}
select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6f66' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
}
.form-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.form-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

/* Result area */
.result-area {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.result-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.result-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}
.result-meta.is-success {
  color: #2a7a4a;
}
.result-meta.is-error {
  color: #c0522a;
}

/* Alert boxes */
.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border-left: 3px solid;
  margin-bottom: var(--space-md);
}
.alert--success {
  background: rgba(42, 122, 74, 0.08);
  border-color: #2a7a4a;
  color: #1a5533;
}
.alert--error {
  background: rgba(192, 82, 42, 0.08);
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}
.alert--info {
  background: rgba(26, 23, 20, 0.04);
  border-color: var(--border-strong);
  color: var(--ink-mid);
}

/* Turnstile captcha area */
.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: var(--space-md) 0;
}

/* ---------------------------------------------------------------------------
   16. Prose (About section below tool widget)
   --------------------------------------------------------------------------- */
.prose {
  font-family: var(--font-prose);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: var(--space-2xl);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
  margin: var(--space-lg) 0 var(--space-sm);
  border-bottom: 2px solid var(--border);
  padding-bottom: 1.2rem;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  color: var(--ink);
  margin: var(--space-md) 0 var(--space-sm);
}
.prose p {
  margin-bottom: 1.2em;
}
.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2em;
  list-style: revert;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose a {
  color: var(--accent-warm);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration: none;
}
.prose strong {
  font-weight: 700;
  color: var(--ink);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15em 0.4em;
}
.prose pre {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  overflow-x: auto;
  margin-bottom: 1.2em;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}
.prose blockquote {
  border-left: 3px solid var(--accent-warm);
  padding-left: var(--space-md);
  color: var(--ink-mid);
  margin: var(--space-md) 0;
  font-style: italic;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 0.92em;
}
.prose th,
.prose td {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  text-align: left;
}
.prose th {
  background: var(--card-bg);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   17. FAQ Accordion
   --------------------------------------------------------------------------- */
.faq-section {
  margin-bottom: var(--space-2xl);
}
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-md);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.is-open {
  border-color: var(--border-strong);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  background: var(--card-bg);
  transition: background var(--transition);
  cursor: pointer;
}
.faq-question:hover {
  background: var(--tag-bg);
}
.faq-question__icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--ink-muted);
}
.faq-item.is-open .faq-question__icon {
  transform: rotate(45deg);
  color: var(--accent-warm);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer__inner {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------------------
   18. Related Tools
   --------------------------------------------------------------------------- */
.related-section {
  margin-bottom: var(--space-2xl);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* ---------------------------------------------------------------------------
   19. Social Share
   --------------------------------------------------------------------------- */
.share-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.share-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}
.share-desc {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-md);
}
.share-buttons {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: #fff !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform var(--transition),
    opacity var(--transition),
    box-shadow var(--transition);
}
.share-btn svg {
  flex-shrink: 0;
}
.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.share-btn--fb {
  background: #3b5998;
}
.share-btn--tw {
  background: #1a1714;
}
.share-btn--li {
  background: #0082ca;
}
.share-btn--tg {
  background: #229ed9;
}
.share-btn--wa {
  background: #25d366;
}
.share-coffee {
  margin-top: var(--space-md);
}
.share-coffee-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff813f;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.share-coffee-link:hover {
  background: #e6732d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------------------------------------------
   20. Footer
   --------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--bg);
  margin-bottom: var(--space-xs);
}
.footer__brand-name span {
  color: var(--accent-warm);
}
.footer__brand-desc {
  font-size: 0.88rem;
  color: rgba(248, 243, 236, 0.55);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}
.footer__socials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(248, 243, 236, 0.15);
  border-radius: var(--radius-sm);
  color: rgba(248, 243, 236, 0.65);
  transition: all var(--transition);
}
.footer__social-link:hover {
  border-color: rgba(248, 243, 236, 0.4);
  color: var(--bg);
  background: rgba(248, 243, 236, 0.08);
}
.footer__col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--bg);
  margin-bottom: var(--space-sm);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__link {
  font-size: 0.88rem;
  color: rgba(248, 243, 236, 0.55);
  transition: color var(--transition);
}
.footer__link:hover {
  color: var(--bg);
}
.footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(248, 243, 236, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.footer__copyright {
  font-size: 0.82rem;
  color: rgba(248, 243, 236, 0.4);
}
.footer__copyright a {
  color: rgba(248, 243, 236, 0.65);
  transition: color var(--transition);
}
.footer__copyright a:hover {
  color: var(--bg);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------------------------------------------------------------------------
   21. Cookie Banner
   --------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--ink);
  color: var(--bg);
  padding: 1rem var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.88rem;
  transform: translateY(0);
  transition: transform var(--transition);
}
.cookie-banner.is-hidden {
  transform: translateY(100%);
}
.cookie-banner a {
  color: var(--accent-warm);
  text-decoration: underline;
}
.cookie-banner .btn {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}

/* ---------------------------------------------------------------------------
   22. Scroll Reveal
   --------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 {
  transition-delay: var(--delay-1);
}
.reveal--delay-2 {
  transition-delay: var(--delay-2);
}
.reveal--delay-3 {
  transition-delay: var(--delay-3);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   23. Main Content Area
   --------------------------------------------------------------------------- */
main {
  padding-top: 0;
  min-height: 60vh;
}

/* Section padding */
.section {
  padding: var(--space-md) 0;
}

/* Utility */
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--ink-muted);
}
.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   24. HTML Button Generator Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .button-gen-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------------------------------------------------------------------------
   25. Animations for Messages
   --------------------------------------------------------------------------- */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------------------
   26. HTML to Markdown Converter Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .converter-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------------------------------------------------------------------------
   27. Spin Animation for Loading States
   --------------------------------------------------------------------------- */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------------------
   28. Image Color Picker Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .color-info-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------------------------------------------------------------------------
   Tool-Specific Container Overrides
   --------------------------------------------------------------------------- */

/* 
PNG Gradient Background, 
Responsive Google Maps Embed Generator, 
Responsive Youtube Embed Generator,
Reverse Text Generator,
Robots.txt Generator,
Bulk HTML Hyperlinks Generator,
Top Notification Bar Generator ,
Google Fonts Preview Tool,
cURL to Code Converter,
HTML to Markdown,
Diff Checker,
.htaccess Generator,
Crontab Expression Generator,
Markdown to HTML
- 
Wider container for two-column layout */
.container.container--wide.tool-container-png-gradient-background,
.container.container--wide.tool-container-responsive-google-maps,
.container.container--wide.tool-container-responsive-youtube-embed,
.container.container--wide.tool-container-reverse-text-generator,
.container.container--wide.tool-container-robots-txt-generator,
.container.container--wide.tool-container-bulk-hyperlink-generator,
.container.container--wide.tool-container-notification-bar-generator,
.container.container--wide.tool-container-google-fonts-preview,
.container.container--wide.tool-container-curl-to-code-converter,
.container.container--wide.tool-container-html-to-markdown-converter,
.container.container--wide.tool-container-diff-checker,
.container.container--wide.tool-container-htaccess-generator,
.container.container--wide.tool-container-crontab-generator,
.container.container--wide.tool-container-markdown-to-html-converter {
  max-width: 1400px !important;
}

/* ---------------------------------------------------------------------------
   Tool Container & Grid Layouts
   --------------------------------------------------------------------------- */
.tool-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-lg) var(--container-pad);
}

.tool-header {
  margin-bottom: var(--space-lg);
}

.tool-header-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.tool-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--accent-warm);
}

.tool-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.tool-subtitle {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

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

.tool-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.tool-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  gap: var(--space-sm);
}

.tool-section .section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.button-group-inline {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--accent-warm);
  color: #fff;
  border: 1.5px solid var(--accent-warm);
}

.btn-primary:hover {
  background: #a84523;
  border-color: #a84523;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-mid);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--border-strong);
}

.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
}

.form-textarea::placeholder {
  color: var(--ink-ghost);
}

.form-textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(26, 23, 20, 0.06);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  margin-bottom: var(--space-md);
}

.stats-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

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

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.6;
  border-left: 3px solid;
  margin-top: var(--space-md);
}

.info-box svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-box-success {
  background: rgba(42, 122, 74, 0.08);
  border-color: #2a7a4a;
  color: #1a5533;
}

.info-box-tip {
  background: rgba(26, 23, 20, 0.04);
  border-color: var(--border-strong);
  color: var(--ink-mid);
}

.info-box kbd {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-success {
  background: #2a7a4a;
}

.toast-error {
  background: var(--accent-warm);
}

@media (max-width: 560px) {
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

/* Checkbox Group Styles */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  font-size: 0.88rem;
  color: var(--ink-mid);
}

.checkbox-item:hover {
  background: var(--card-bg);
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-warm);
}

.checkbox-item span {
  user-select: none;
}

.label-hint {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-ghost);
  text-transform: none;
  letter-spacing: normal;
  margin-left: 0.35rem;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group:last-child {
  margin-bottom: 0;
}

/* SEO Content Analysis Styles */
.tool-container-wide {
  max-width: 1400px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon-primary {
  background: rgba(192, 82, 42, 0.1);
  color: var(--accent-warm);
}

.stat-icon-success {
  background: rgba(42, 122, 74, 0.1);
  color: #2a7a4a;
}

.stat-icon-warning {
  background: rgba(255, 169, 0, 0.1);
  color: #ffa900;
}

.stat-icon-info {
  background: rgba(18, 102, 241, 0.1);
  color: #1266f1;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  font-weight: 600;
}

/* Readability Meter */
.readability-meter {
  margin-bottom: var(--space-md);
}

.readability-bar {
  position: relative;
  height: 48px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.readability-fill {
  height: 100%;
  transition:
    width 0.6s ease,
    background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
}

.readability-success {
  background: linear-gradient(90deg, #2a7a4a, #3a9a5a);
}

.readability-info {
  background: linear-gradient(90deg, #1266f1, #2276ff);
}

.readability-warning {
  background: linear-gradient(90deg, #ffa900, #ffb920);
}

.readability-error {
  background: linear-gradient(90deg, #f93154, #ff4164);
}

.readability-score {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  z-index: 1;
}

.readability-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.readability-label-success {
  color: #2a7a4a;
}

.readability-label-info {
  color: #1266f1;
}

.readability-label-warning {
  color: #ffa900;
}

.readability-label-error {
  color: #f93154;
}

.readability-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Keyword Badge */
.keyword-badge {
  display: inline-block;
  background: var(--accent-warm);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Analysis Grid */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.analysis-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  text-align: center;
}

.analysis-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.analysis-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
}

.text-success {
  color: #2a7a4a !important;
}

.text-error {
  color: #f93154 !important;
}

/* Heading Analysis */
.heading-group {
  margin-bottom: var(--space-md);
}

.heading-group:last-child {
  margin-bottom: 0;
}

.heading-group-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.heading-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.heading-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.heading-item-keyword {
  border-color: var(--accent-warm);
  background: rgba(192, 82, 42, 0.05);
}

.keyword-indicator {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--accent-warm);
  background: rgba(192, 82, 42, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* Keyword List */
.keyword-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.keyword-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.keyword-word {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}

.keyword-stats {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* Recommendations List */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 3px solid;
}

.recommendation-item svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.recommendation-success {
  background: rgba(42, 122, 74, 0.08);
  border-color: #2a7a4a;
  color: #1a5533;
}

.recommendation-success svg {
  color: #2a7a4a;
}

.recommendation-error {
  background: rgba(249, 49, 84, 0.08);
  border-color: #f93154;
  color: #c02040;
}

.recommendation-error svg {
  color: #f93154;
}

.recommendation-warning {
  background: rgba(255, 169, 0, 0.08);
  border-color: #ffa900;
  color: #cc8700;
}

.recommendation-warning svg {
  color: #ffa900;
}

.recommendation-info {
  background: rgba(18, 102, 241, 0.08);
  border-color: #1266f1;
  color: #0d4db3;
}

.recommendation-info svg {
  color: #1266f1;
}

.text-muted {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

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

  .stat-value {
    font-size: 1.6rem;
  }

  .keyword-list {
    grid-template-columns: 1fr;
  }
}

/* Tab Styles */
.tab-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  bottom: -1px;
}

.tab-btn:hover {
  color: var(--ink);
  background: rgba(26, 23, 20, 0.03);
}

.tab-btn-active {
  color: var(--accent-warm);
  border-bottom-color: var(--accent-warm);
  background: transparent;
}

.tab-btn svg {
  width: 16px;
  height: 16px;
}

.tab-content {
  display: none;
}

.tab-content-active {
  display: block;
}

/* File Upload Area */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}

.file-upload-area:hover {
  border-color: var(--border-strong);
  background: var(--card-bg);
}

.file-upload-dragover {
  border-color: var(--accent-warm);
  background: rgba(192, 82, 42, 0.05);
}

.file-upload-area svg {
  color: var(--ink-muted);
  margin-bottom: var(--space-sm);
}

.file-upload-area p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* File Info */
.file-info {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.file-info-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.file-info-content svg {
  color: var(--accent-warm);
  flex-shrink: 0;
}

.file-info-content > div {
  flex: 1;
}

.file-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
  word-break: break-all;
}

.file-size {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.file-remove {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  cursor: pointer;
  color: var(--ink-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-remove:hover {
  background: var(--bg);
  border-color: var(--border-strong);
  color: var(--accent-warm);
}

/* Hash Results */
.hash-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.hash-result-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.hash-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.hash-algorithm {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-weight: 600;
  background: rgba(192, 82, 42, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.hash-result-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.6;
  padding: var(--space-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  user-select: all;
}

/* Spinning animation for loading */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinning {
  animation: spin 1s linear infinite;
}

/* Form row for comparison */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

/* ---------------------------------------------------------------------------
   Tool Widget - List Items in Info Cards
   --------------------------------------------------------------------------- */
.tool-widget .card ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.tool-widget .card ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.tool-widget .card li {
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------------------
   Responsive Fixes for Tool Widgets
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Reduce tool widget padding on mobile */
  .tool-widget {
    padding: var(--space-md) var(--space-sm) !important;
    border-radius: var(--radius-md);
  }

  /* Reduce card padding on mobile */
  .tool-widget .card-body {
    padding: var(--space-md) var(--space-sm) !important;
  }

  .card {
    margin-bottom: var(--space-md);
  }

  /* Stack form actions vertically */
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* Make form rows single column on mobile */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* Adjust container padding */
  .container {
    padding-inline: var(--space-sm) !important;
  }

  /* Reduce spacing in tool widget containers */
  .tool-widget > div[style*="max-width"] {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Form groups spacing */
  .form-group {
    margin-bottom: var(--space-sm);
  }

  /* Adjust form controls */
  .form-control,
  .form-textarea {
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
  }

  /* Button adjustments */
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Stats grid responsive */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-sm);
  }

  /* Stat cards */
  .stat-card {
    padding: var(--space-sm);
  }

  /* Tool grid single column */
  .tool-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md);
  }

  /* Related tools grid */
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm);
  }

  /* Checkbox group */
  .checkbox-group {
    grid-template-columns: 1fr !important;
    gap: 0.4rem;
    padding: 0.6rem;
  }

  /* Analysis grid */
  .analysis-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm);
  }
}

@media (max-width: 560px) {
  /* Further reduce padding on very small screens */
  .tool-widget {
    padding: var(--space-sm) !important;
    border-radius: var(--radius-sm);
  }

  .card {
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-sm);
  }

  .card-body {
    padding: var(--space-sm) !important;
  }

  /* Reduce font sizes slightly */
  .form-label {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
  }

  .form-control,
  .form-textarea {
    font-size: 0.88rem;
    padding: 0.6rem 0.8rem;
  }

  /* Buttons */
  .btn {
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
  }

  /* Stack button grids */
  .button-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }

  /* Form groups */
  .form-group {
    margin-bottom: var(--space-sm);
  }

  /* Related tools single column */
  .related-grid {
    grid-template-columns: 1fr !important;
  }

  /* Analysis grid single column */
  .analysis-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stat cards */
  .stat-card {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  .stat-value {
    font-size: 1.5rem;
  }

  /* Section headers */
  .tool-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .tool-section .section-title {
    font-size: 1.2rem;
  }

  /* Button group inline */
  .button-group-inline {
    flex-direction: column;
    width: 100%;
  }

  .button-group-inline .btn {
    width: 100%;
  }

  /* Tool hero adjustments */
  .tool-hero__title {
    font-size: 2rem;
  }

  .tool-hero__desc {
    font-size: 0.95rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.68rem;
  }

  /* Adjust spacing variables for mobile */
  :root {
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
  }

  /* Container padding */
  .container {
    padding-inline: 1rem !important;
  }

  /* Toast positioning */
  .toast {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

/* Override inline styles on mobile */
@media (max-width: 768px) {
  /* Override max-width containers */
  .tool-widget [style*="max-width"],
  .tool-widget > div[style*="max-width"] {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Override grid layouts to single column */
  .tool-widget [style*="grid-template-columns: 1fr 1fr"],
  .tool-widget [style*="grid-template-columns:1fr 1fr"],
  .tool-widget [style*="grid-template-columns: repeat(2"],
  .tool-widget [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* Override display grid with multiple columns */
  .tool-widget [style*="grid-template-columns: repeat"] {
    grid-template-columns: 1fr !important;
  }

  /* Override flex layouts */
  .tool-widget [style*="display:flex"][style*="gap"],
  .tool-widget [style*="display: flex"][style*="gap"] {
    flex-wrap: wrap !important;
  }

  /* Override padding on inner containers */
  .tool-widget .card [style*="padding"],
  .tool-widget .card-body [style*="padding"] {
    padding: var(--space-sm) !important;
  }
}

@media (max-width: 560px) {
  /* Force all grids to single column on very small screens */
  .tool-widget [style*="display:grid"],
  .tool-widget [style*="display: grid"],
  .tool-widget div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce gaps */
  .tool-widget [style*="gap:var(--space-lg)"],
  .tool-widget [style*="gap: var(--space-lg)"] {
    gap: var(--space-sm) !important;
  }

  .tool-widget [style*="gap:var(--space-md)"],
  .tool-widget [style*="gap: var(--space-md)"] {
    gap: var(--space-xs) !important;
  }

  /* Override any fixed widths */
  .tool-widget [style*="width:"],
  .tool-widget [style*="min-width:"] {
    width: 100% !important;
    min-width: 100% !important;
  }

  /* Ensure buttons don't overflow */
  .tool-widget button,
  .tool-widget .btn {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Fix for Schema Generator result header on mobile */
@media (max-width: 768px) {
  /* Allow flex items to wrap on small screens */
  .tool-widget
    .card-body
    > div[style*="display:flex"][style*="justify-content:space-between"],
  .tool-widget
    .card-body
    > div[style*="display: flex"][style*="justify-content: space-between"] {
    flex-wrap: wrap !important;
    gap: var(--space-sm) !important;
  }

  /* Section headers with buttons */
  .tool-section .section-header {
    flex-wrap: wrap !important;
  }

  /* Make buttons in flex containers responsive */
  .tool-widget .card-body > div[style*="display:flex"] > button,
  .tool-widget .card-body > div[style*="display: flex"] > button {
    flex-shrink: 1;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  /* Allow flex items to wrap on small screens */
  .tool-widget
    .card-body
    > div[style*="display:flex"][style*="justify-content:space-between"],
  .tool-widget
    .card-body
    > div[style*="display: flex"][style*="justify-content: space-between"] {
    flex-wrap: wrap !important;
    gap: var(--space-sm) !important;
  }

  /* Make buttons full width when wrapped */
  .tool-widget .card-body > div[style*="display:flex"] > button,
  .tool-widget .card-body > div[style*="display: flex"] > button {
    flex: 1 1 100%;
    min-width: 100%;
  }

  /* Keep heading from breaking awkwardly */
  .tool-widget .card-body > div[style*="display:flex"] > h4,
  .tool-widget .card-body > div[style*="display: flex"] > h4,
  .tool-widget .card-body > div[style*="display:flex"] > h3,
  .tool-widget .card-body > div[style*="display: flex"] > h3 {
    flex: 1 1 100%;
    margin-bottom: var(--space-xs);
  }

  /* Button groups should stack */
  .tool-widget
    .card-body
    > div[style*="display:flex"]
    > div[style*="display:flex"],
  .tool-widget
    .card-body
    > div[style*="display: flex"]
    > div[style*="display: flex"] {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Additional responsive fixes for specific tool patterns */
@media (max-width: 768px) {
  /* Word counter stats cards */
  .tool-widget [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Ensure proper spacing in cards */
  .tool-widget .card + .card {
    margin-top: var(--space-md);
  }

  /* Info boxes */
  .info-box {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  /* Result areas */
  .result-area {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
  }
}

@media (max-width: 560px) {
  /* Word counter stats cards - single column on very small screens */
  .tool-widget [style*="grid-template-columns: repeat(5"],
  .tool-widget [style*="grid-template-columns: repeat(4"],
  .tool-widget [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Ensure all stat cards are full width */
  .stat-card {
    width: 100%;
  }

  /* Info boxes */
  .info-box {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Alert boxes */
  .alert {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }
}

/* ---------------------------------------------------------------------------
   Toast Notifications
   --------------------------------------------------------------------------- */
.tool-toast-container {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.tool-toast {
  background: var(--ink);
  color: var(--bg);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(26, 23, 20, 0.25);
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 240px;
  max-width: 360px;
  border-left: 3px solid var(--bg);
}

.tool-toast--success {
  background: #2a7a4a;
  border-left-color: #4caf50;
}

.tool-toast--error {
  background: #b03020;
  border-left-color: #f44336;
}

.tool-toast--warning {
  background: #c0522a;
  border-left-color: #ff9800;
}

.tool-toast--info {
  background: var(--ink-mid);
  border-left-color: #2196f3;
}

.tool-toast--removing {
  animation: toastSlideOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .tool-toast-container {
    bottom: var(--space-sm);
    right: var(--space-sm);
    left: var(--space-sm);
  }

  .tool-toast {
    min-width: auto;
    max-width: 100%;
  }
}
/* ---------------------------------------------------------------------------
   Others
   --------------------------------------------------------------------------- */
.separator {
  border: none !important;
  border-top: 3px solid var(--accent-warm) !important;
  margin: 2rem 0 !important;
}
.adsense-container {
  display: block !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}
