*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #081528;
  --navy-mid: #122a4a;
  --navy-soft: #1a3358;
  --gold: #C9A84C;
  --gold-light: #e4c76a;
  --gold-dark: #a8873a;
  --gold-gradient: linear-gradient(135deg, #d4b45a 0%, #c9a84c 45%, #b8943f 100%);
  --white: #FFFFFF;
  --off-white: #F7F6F2;
  --bg-warm-start: #E8E4DA;
  --bg-warm-mid: #F0EDE6;
  --bg-warm-end: #EBE8E0;
  --site-bg: linear-gradient(
    168deg,
    var(--bg-warm-start) 0%,
    var(--bg-warm-mid) 38%,
    var(--off-white) 62%,
    var(--bg-warm-end) 100%
  );
  --site-bg-overlay:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(201, 168, 76, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(11, 28, 53, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 80%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
  --text-primary: #081528;
  --text-secondary: #3D4A5C;
  --text-muted: #64748B;
  --border: #DDD9D0;
  --border-subtle: rgba(11, 28, 53, 0.08);
  --card-bg: #FFFFFF;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --scroll-offset: 80px;
  --shadow-sm: 0 2px 8px rgba(8, 21, 40, 0.05);
  --shadow-md: 0 8px 28px rgba(8, 21, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(8, 21, 40, 0.12);
  --shadow-gold: 0 8px 24px rgba(201, 168, 76, 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-med: 0.35s var(--ease-out);
}

html {
  scroll-behavior: auto;
  scroll-padding-top: var(--scroll-offset);
  min-height: 100%;
  background-color: var(--off-white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#categories,
#about,
#faq {
  scroll-margin-top: var(--scroll-offset);
}

section[id],
[id].hero,
.tool-category-block {
  scroll-margin-top: var(--scroll-offset);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--site-bg);
  background-color: var(--off-white);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-y;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--site-bg-overlay);
  pointer-events: none;
  z-index: -1;
}

/* NAV — only .site-nav (do not style bare <nav> — breaks breadcrumbs) */
.site-nav {
  width: 100%;
  background: #081528;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
  box-shadow: 0 2px 12px rgba(8, 21, 40, 0.12);
  overflow: visible;
  contain: layout style;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.4px;
  transition: opacity var(--transition-fast);
}

.logo:hover { opacity: 0.92; }

.logo span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-links a.is-active:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gold-gradient) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 9px 22px !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-gold) !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast) !important;
}

.nav-cta:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.32) !important;
  color: var(--navy) !important;
}

/* UTILITIES */
.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HERO */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 48%, var(--navy-soft) 100%);
  padding: 88px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(201, 168, 76, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(201, 168, 76, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 100% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.12);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.6px;
  max-width: 720px;
  margin: 0 auto 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.hero h1 em {
  font-style: normal;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 28px;
}

.hero-lead strong {
  color: var(--gold-light);
  font-weight: 600;
}

.search-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.btn-ghost {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.btn-ghost:hover {
  border-color: rgba(201, 168, 76, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-trust li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  color: var(--gold);
  font-weight: 600;
}

/* SEARCH */
.search-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
}

.search-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-lg);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.search-wrap input::placeholder { color: rgba(255, 255, 255, 0.38); }
.search-wrap input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.search-wrap button {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 26px;
  background: var(--gold-gradient);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.search-wrap button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.32);
}

/* HOW IT WORKS */
.section--steps {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(11, 28, 53, 0.08);
  border-bottom: 1px solid rgba(11, 28, 53, 0.08);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.link-arrow:hover { color: var(--navy); }

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: none;
}

.step-card {
  background: linear-gradient(155deg, #FFFFFF 0%, #F8F6F1 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(8, 21, 40, 0.2);
}

.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CATEGORIES */
.section { padding: 64px 5%; }
.section-header { margin-bottom: 36px; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #8A6F2E;
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.28);
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
  max-width: 500px;
}

/* CATEGORY GRID */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 8px rgba(11, 28, 53, 0.04);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.cat-card:hover { border-color: #c9a84c55; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,28,53,0.08); }
.cat-card:hover::after { transform: scaleX(1); }

.cat-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.cat-icon--text { background: #EEF2FF; }
.cat-icon--image { background: #FFF7ED; }
.cat-icon--calc { background: #F0FDF4; }
.cat-icon--dev { background: #FDF4FF; }

.cat-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cat-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.cat-count {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* FEATURED TOOLS */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-med), transform var(--transition-med);
}

.tool-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tool-icon-sm {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.tool-card h4 { font-size: 14px; font-weight: 500; margin-bottom: 3px; color: var(--text-primary); }
.tool-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.45; }

/* BENEFITS */
.section--benefits {
  padding-bottom: 48px;
}

/* FEATURED SECTION (homepage) */
.featured-section {
  padding: 0 5% 72px;
}

.featured-panel {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-soft) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 40px 48px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.28);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(201, 168, 76, 0.08);
}

.featured-panel__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 90% 0%, rgba(201, 168, 76, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.featured-panel .container {
  position: relative;
  z-index: 1;
}

.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.featured-header__text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--white);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.featured-header__text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 520px;
  line-height: 1.6;
}

.btn-outline-light {
  display: inline-block;
  padding: 14px 28px;
  border: 1.5px solid rgba(201, 168, 76, 0.6);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline-light:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px 24px 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.featured-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.featured-card__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.featured-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.featured-card__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 16px;
}

.featured-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
  transition: color 0.2s;
}

.featured-card:hover .featured-card__cta {
  color: var(--gold-light);
}

.featured-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.featured-empty a {
  color: var(--gold-light);
  font-weight: 500;
}


.section--featured {
  background: transparent;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.benefit-card {
  background: linear-gradient(155deg, #FFFFFF 0%, #FAF8F4 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-fast);
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 168, 76, 0.28);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* WHY US STRIP (legacy / other pages) */
.why-strip {
  background: var(--navy);
  padding: 56px 5%;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.why-label { font-size: 14px; color: rgba(255,255,255,0.6); }

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  margin: 0 5% 64px;
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.btn-gold {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.35);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: var(--shadow-gold);
}

/* FOOTER */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--white);
  text-decoration: none;
}

.footer-logo span { color: var(--gold); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeUp 0.5s forwards; }
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.19s; }
.fade-in:nth-child(4) { animation-delay: 0.26s; }
.fade-in:nth-child(5) { animation-delay: 0.33s; }
.fade-in:nth-child(6) { animation-delay: 0.40s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* PAGE HERO (inner pages — left-aligned, e.g. all-tools) */
.hero--page:not(.hero--category) {
  padding: 48px 5% 56px;
  text-align: left;
  overflow-x: clip;
  box-sizing: border-box;
}

.hero--page:not(.hero--category) h1 {
  margin: 0 0 16px;
  max-width: 640px;
}

.hero--page:not(.hero--category) p {
  margin: 0 0 28px;
  max-width: 520px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  background: none;
  border: none;
  height: auto;
  width: auto;
  min-height: 0;
}

.breadcrumb li {
  display: inline;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--gold-light); }

.breadcrumb span:last-child { color: rgba(255, 255, 255, 0.85); }

.nav-links a.is-active { color: var(--gold-light); }

/* ALL TOOLS PAGE */
.section--tools-page { padding-top: 40px; }

.tools-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.filter-pill:hover {
  border-color: #c9a84c55;
  color: var(--text-primary);
}

.filter-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.tools-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.tools-container { display: flex; flex-direction: column; gap: 56px; }


.category-block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.category-block-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.category-block-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.category-block-title p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 480px;
}

.category-view-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.category-view-all:hover { color: var(--navy); }

.tools-grid--flat { margin-top: 0; }

.search-empty,
.search-empty-state {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 48px 20px;
}

.search-empty a,
.search-empty-state a { color: var(--gold); }

.search-empty-state .btn-gold--sm {
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.section--tight { padding-top: 0; }

/* CATEGORY PAGE (image-tools, etc.) */
.hero--category {
  text-align: center;
  padding: 56px 5% 64px;
  overflow-x: clip;
  box-sizing: border-box;
}

.hero-inner--category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.hero--category .breadcrumb {
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 20px;
}

.hero--category .hero-eyebrow {
  margin-bottom: 16px;
}

.hero--category h1 {
  margin: 0 auto 16px;
  max-width: 640px;
  width: 100%;
}

.hero--category .hero-lead {
  margin: 0 auto 28px;
  max-width: 560px;
  width: 100%;
}

.category-hero-badge {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.hero--category .category-hero-badge.cat-icon--image {
  background: rgba(255, 247, 237, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.hero--category .hero-search {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.hero--category .hero-search .search-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
}

.hero-lead--page {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero--page:not(.hero--category) .search-wrap {
  max-width: min(560px, 100%);
}

.section--category-page {
  padding-top: 48px;
  padding-bottom: 64px;
  background: transparent;
}

.category-page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tools-grid--category {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.tools-grid--category .tool-card {
  padding: 24px 22px;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tools-grid--category .tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11, 28, 53, 0.1);
}

.tools-grid--category .tool-icon-sm {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.tools-grid--category .tool-card h4 {
  font-size: 16px;
  font-weight: 600;
}

.tools-grid--category .tool-card p {
  font-size: 13px;
}

.section--category-cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(247, 246, 242, 0.95) 100%);
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  padding: 64px 5%;
}

.category-cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.category-cta-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.category-cta-inner p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.category-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost--dark {
  border-color: rgba(11, 28, 53, 0.14);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.btn-ghost--dark:hover {
  border-color: var(--navy);
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* STATS STRIP */
.stats-strip {
  background: transparent;
  padding: 0 5% 56px;
  margin-top: -44px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 244, 0.98) 100%);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.stat-block {
  position: relative;
  padding: 8px 16px;
}

.stat-block:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.35), transparent);
}

.stat-block__num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-block__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
}

/* CATEGORIES SHOWCASE (homepage) */
.section--categories {
  position: relative;
  padding: 80px 5% 88px;
  background: transparent;
  border-top: 1px solid rgba(11, 28, 53, 0.08);
  border-bottom: 1px solid rgba(11, 28, 53, 0.06);
}

.section--categories .container {
  position: relative;
}

.section--categories .section-header h2 {
  color: #081528;
}

.section--categories .section-header p {
  color: #3D4A5C;
}

.section--categories .section-eyebrow {
  background: rgba(11, 28, 53, 0.06);
  border-color: rgba(201, 168, 76, 0.45);
  color: #8A6F2E;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.category-showcase__card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, #FFFFFF 0%, #F5F3EE 48%, #F0EDE6 100%);
  border: 1px solid rgba(11, 28, 53, 0.12);
  border-radius: 14px;
  padding: 36px 32px 28px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 16px rgba(11, 28, 53, 0.06),
    0 12px 32px rgba(11, 28, 53, 0.04);
  transition: border-color 0.2s ease;
}

.category-showcase__card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.category-showcase__card::after {
  display: none;
}

.category-showcase__card:hover {
  border-color: rgba(201, 168, 76, 0.45);
}

.category-showcase__card:hover::before {
  transform: scaleX(1);
}

.category-showcase__card:hover::after {
  opacity: 1;
}

.category-showcase__card:nth-child(1):hover { border-color: rgba(99, 102, 241, 0.4); }
.category-showcase__card:nth-child(2):hover { border-color: rgba(234, 88, 12, 0.4); }
.category-showcase__card:nth-child(3):hover { border-color: rgba(22, 163, 74, 0.4); }
.category-showcase__card:nth-child(4):hover { border-color: rgba(147, 51, 234, 0.4); }

.category-showcase__icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(11, 28, 53, 0.08);
  transition: none;
}

.category-showcase__card:hover .category-showcase__icon {
  box-shadow: 0 4px 12px rgba(11, 28, 53, 0.1);
}

.section--categories .cat-icon--text {
  background: linear-gradient(145deg, #E8EDFF 0%, #D4DCFC 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.section--categories .cat-icon--image {
  background: linear-gradient(145deg, #FFF4E8 0%, #FFE4C4 100%);
  border: 1px solid rgba(234, 88, 12, 0.12);
}

.section--categories .cat-icon--calc {
  background: linear-gradient(145deg, #E8FAF0 0%, #C6F0D8 100%);
  border: 1px solid rgba(22, 163, 74, 0.12);
}

.section--categories .cat-icon--dev {
  background: linear-gradient(145deg, #F6EDFF 0%, #E9D4FF 100%);
  border: 1px solid rgba(147, 51, 234, 0.12);
}

.category-showcase__card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #081528;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.category-showcase__card:hover h3 {
  color: var(--navy-mid);
}

.category-showcase__card p {
  font-size: 15px;
  color: #3D4A5C;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.category-showcase__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8A6F2E;
  margin-bottom: 12px;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.category-showcase__card:hover .category-showcase__meta {
  color: var(--gold);
  letter-spacing: 0.65px;
}

.category-showcase__cta {
  font-size: 14px;
  font-weight: 600;
  color: #0B1C35;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.category-showcase__card:hover .category-showcase__cta {
  color: var(--gold);
  transform: translateX(4px);
}

.categories-footer-note {
  text-align: center;
  margin-top: 40px;
  padding: 18px 24px;
  font-size: 15px;
  color: #3D4A5C;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 28, 53, 0.08);
  border-radius: 100px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.categories-footer-note a {
  color: #8A6F2E;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.categories-footer-note a:hover {
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .category-showcase__card,
  .category-showcase__card::before,
  .category-showcase__card::after,
  .category-showcase__icon,
  .category-showcase__cta,
  .category-showcase__meta {
    transition: none;
  }

  .category-showcase__card:hover {
    transform: none;
  }

  .category-showcase__card:hover .category-showcase__icon {
    transform: none;
  }

  .category-showcase__card:hover .category-showcase__cta {
    transform: none;
  }
}

/* TOOL DIRECTORY (legacy) */
.section--directory {
  background: transparent;
  padding-bottom: 72px;
}

.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: sticky;
  top: 72px;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(11, 28, 53, 0.06);
}

.category-jump__link {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-jump__link:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.home-categories {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.home-category-block {
  scroll-margin-top: var(--scroll-offset);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 4px 24px rgba(11, 28, 53, 0.05);
}

.home-category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.home-category-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.home-category-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.home-category-title p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 480px;
}

.tools-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.tools-grid--home .tool-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tools-grid--home .tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 28, 53, 0.1);
}

.tools-grid--home .tool-icon-sm {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.tools-grid--home .tool-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

.tools-grid--home .tool-card p {
  font-size: 13px;
}

.cat-icon--calculators { background: #F0FDF4; }

.home-search-empty,
.home-search-results-label {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 24px;
}

.home-search-empty {
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.home-search-results-label {
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.btn-gold--sm {
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ABOUT */
.section--about {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(11, 28, 53, 0.08);
  border-bottom: 1px solid rgba(11, 28, 53, 0.08);
}

.about-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-content .btn-gold {
  margin-top: 12px;
}

.about-panel {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 12px;
  padding: 40px 36px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.about-list {
  list-style: none;
}

.about-list li {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-list li:last-child { border-bottom: none; }

.about-list strong {
  color: var(--gold);
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  margin-right: 8px;
}

/* FAQ */
.section--faq {
  padding-bottom: 72px;
}

.container--narrow {
  max-width: 720px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--gold);
  font-weight: 400;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* FOOTER PRO */
.site-footer {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  padding: 56px 5% 0;
  border-top: 1px solid rgba(201, 168, 76, 0.22);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.55;
}

.site-footer .footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0 28px;
  margin-top: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile menu — hamburger (no horizontal nav scroll) */
@media (max-width: 1200px) {
  .site-nav .nav-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .site-nav .logo {
    flex-shrink: 0;
    margin-right: auto;
  }

  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    padding: 12px 5% 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    max-height: min(70vh, calc(100dvh - 64px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 199;
  }

  .site-nav.is-open .nav-links {
    display: flex;
  }

  .site-nav .nav-links li {
    width: 100%;
  }

  .site-nav .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: normal;
  }

  .site-nav .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    border: none;
    border-bottom: none !important;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .hero--category .hero-search,
  .hero-search,
  .hero .search-wrap {
    padding: 0;
  }

  .search-wrap {
    flex-direction: column;
    gap: 10px;
  }

  .search-wrap input {
    width: 100%;
    flex: 1 1 auto;
    font-size: 16px;
  }

  .search-wrap button {
    width: 100%;
    height: 48px;
  }

  .section-header--row { flex-direction: column; align-items: flex-start; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .featured-panel { padding: 40px 24px 32px; }
  .featured-header { flex-direction: column; align-items: flex-start; }
  .featured-card { min-height: 200px; padding: 22px 20px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn-gold,
  .hero-actions .btn-ghost { width: 100%; text-align: center; }
}

@media (max-width: 900px) {
  .tool-controls {
    grid-template-columns: 1fr 1fr;
  }

  .tool-control--actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cta-banner { padding: 36px 24px; margin: 0 4% 48px; }
  .tool-panel { padding: 20px 16px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero--page:not(.hero--category),
  .hero--category { padding: 40px 20px 48px; }
  .tools-page-toolbar { flex-direction: column; align-items: flex-start; }
  .category-block-header { flex-direction: column; align-items: flex-start; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-section { padding: 0 4% 48px; }
  .stats-strip { margin-top: -28px; padding: 0 4% 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 28px 20px; }
  .stat-block::after { display: none; }
  .stat-block__num { font-size: 32px; }
  .about-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-tagline { margin-left: auto; margin-right: auto; }
  .category-jump { top: 64px; position: relative; }
  .home-category-block { padding: 24px 20px; }
  .category-showcase { grid-template-columns: 1fr; gap: 18px; }
  .category-showcase__card { min-height: auto; padding: 28px 24px; }
  .section--categories { padding: 56px 4% 64px; }
  .tools-grid--category { grid-template-columns: 1fr; }
  .category-page-intro { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero--page:not(.hero--category),
  .hero--category {
    padding: 36px 16px 40px;
  }

  .hero--category h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero--category .hero-lead {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero--category .category-hero-badge {
    width: 64px;
    height: 64px;
    font-size: 30px;
    margin-bottom: 16px;
  }

  .search-wrap button {
    padding: 0 16px;
    font-size: 13px;
  }

  .tool-controls {
    grid-template-columns: 1fr;
  }

  .tool-control--actions {
    flex-direction: column;
  }

  .tool-control--actions .btn-gold,
  .tool-control--actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .tool-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-previews {
    grid-template-columns: 1fr;
  }
}

/* TOOL PAGES (shared) */
.hero--tool {
  padding: 40px 5% 36px;
  text-align: center;
  overflow-x: clip;
}

.hero-inner--tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  text-align: center;
}

.hero--tool .breadcrumb {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero--tool h1 {
  margin: 0 auto 12px;
  max-width: 520px;
}

.hero--tool .hero-lead {
  margin: 0 auto;
  max-width: 480px;
  font-size: 16px;
}

.tool-page {
  padding-top: 0;
  padding-bottom: 56px;
}

.tool-page__container {
  max-width: 960px;
}

.tool-panel {
  background: linear-gradient(155deg, #FFFFFF 0%, #F9F7F2 100%);
  border: 1px solid rgba(11, 28, 53, 0.1);
  border-radius: 14px;
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 32px rgba(11, 28, 53, 0.08);
}

.tool-dropzone {
  border: 2px dashed rgba(201, 168, 76, 0.45);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  background: rgba(255, 255, 255, 0.5);
}

.tool-dropzone:hover,
.tool-dropzone:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.tool-dropzone--drag {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.tool-dropzone--active {
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
}

.tool-dropzone--active:hover {
  box-shadow: none;
}

.tool-dropzone--error {
  border-color: #c53030;
  background: rgba(197, 48, 48, 0.04);
}

.tool-dropzone__icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.tool-dropzone__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tool-dropzone__hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tool-dropzone__error {
  color: #c53030;
  font-size: 14px;
  margin-top: 12px;
}

.btn-gold--sm {
  padding: 10px 22px;
  font-size: 13px;
}

.tool-workspace {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.tool-control label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tool-control__value {
  color: var(--gold);
  font-weight: 600;
}

.tool-control input[type="range"] {
  width: 100%;
  height: 6px;
  accent-color: var(--gold);
  cursor: pointer;
}

.tool-control--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.tool-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
}

.tool-control--actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-format-note {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.25);
  margin: 0;
}

.tool-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tool-stat {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 28, 53, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  text-align: center;
}

.tool-stat--highlight {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.3);
}

.tool-stat__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tool-stat__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-stat--highlight .tool-stat__value {
  color: #8A6F2E;
}

.tool-stat__value--warn {
  color: #c05621;
}

.tool-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tool-preview figcaption {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tool-preview__frame {
  position: relative;
  background: rgba(11, 28, 53, 0.04);
  border: 1px solid rgba(11, 28, 53, 0.1);
  border-radius: var(--radius-lg);
  min-height: 200px;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-preview__frame img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.tool-preview__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(247, 246, 242, 0.85);
  font-size: 14px;
  color: var(--text-secondary);
}

.tool-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(201, 168, 76, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: toolSpin 0.7s linear infinite;
}

@keyframes toolSpin {
  to { transform: rotate(360deg); }
}

.tool-privacy-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* IMAGE COMPRESSOR */
.hero--tool-compact {
  padding: 40px 5% 36px;
}

.hero--tool-compact h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 10px;
}

.hero--tool-compact .hero-lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.ic-page {
  padding-top: 0;
  padding-bottom: 48px;
}

.ic-page__inner {
  max-width: 920px;
}

.ic-page__inner--wide {
  max-width: 1000px;
}

.ic-app {
  background: linear-gradient(160deg, #FFFFFF 0%, #FAF8F4 55%, #F5F2EB 100%);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
}

/* Upload — CloudConvert-style drop zone */
.ic-upload {
  padding: 28px;
}

.ic-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  padding: 48px 32px;
  border: 2px dashed rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FDFCFA 0%, #F8F6F2 100%);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-med), transform var(--transition-med);
}

.ic-drop:hover {
  border-color: rgba(201, 168, 76, 0.55);
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F2EB 100%);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.ic-drop:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.22);
}

.ic-drop--drag {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18), var(--shadow-md);
  transform: scale(1.01);
}

.ic-drop--error {
  border-color: #e53e3e;
  background: rgba(229, 62, 62, 0.04);
}

.ic-drop__icon {
  color: #8b9ab0;
  margin-bottom: 20px;
  font-size: 52px;
  line-height: 1;
}

.ic-controls--single {
  grid-template-columns: 1fr;
  max-width: 100%;
}

/* Image resizer */
.ir-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ir-size-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ir-field {
  flex: 1;
  min-width: 120px;
}

.ir-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ir-field input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-primary);
  box-sizing: border-box;
}

.ir-field input[type="number"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.ir-lock {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ir-lock.is-locked {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.5);
  color: #8A6F2E;
}

.ir-lock:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.ir-lock__open {
  display: none;
}

.ir-lock:not(.is-locked) .ir-lock__open {
  display: block;
}

.ir-presets__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ir-presets__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ir-presets__btns .ir-preset {
  flex: 1;
  min-width: 64px;
}

.ir-controls__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}

/* Image cropper */
.crop-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.crop-editor__hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.crop-stage {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 28, 53, 0.04);
  border: 1px solid rgba(11, 28, 53, 0.1);
  border-radius: 12px;
  overflow: auto;
  max-height: 460px;
}

.crop-stage__frame {
  position: relative;
  display: inline-block;
  user-select: none;
  touch-action: none;
}

.crop-stage__frame img {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

.crop-box {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--gold);
  cursor: move;
  box-shadow: 0 0 0 9999px rgba(11, 28, 53, 0.55);
}

.crop-box__size {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: rgba(11, 28, 53, 0.75);
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 2px;
  box-sizing: border-box;
}

.crop-handle--nw { left: -6px; top: -6px; cursor: nwse-resize; }
.crop-handle--ne { right: -6px; top: -6px; cursor: nesw-resize; }
.crop-handle--sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.crop-handle--se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.crop-handle--n { left: 50%; top: -6px; margin-left: -6px; cursor: ns-resize; }
.crop-handle--s { left: 50%; bottom: -6px; margin-left: -6px; cursor: ns-resize; }
.crop-handle--e { right: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
.crop-handle--w { left: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }

.crop-aspects {
  margin-top: 16px;
}

.crop-aspects__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.crop-aspects__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crop-aspects__btns .crop-aspect {
  flex: 1;
  min-width: 72px;
}

.crop-preview .ic-pane__frame {
  min-height: 200px;
}

.crop-export {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .crop-layout {
    grid-template-columns: 1fr;
  }

  .crop-preview .ic-pane__frame {
    max-height: 280px;
  }
}

@media (max-width: 768px) {
  .crop-export {
    grid-template-columns: 1fr;
  }

  .ir-controls__bottom {
    grid-template-columns: 1fr;
  }

  .ir-size-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ir-lock {
    align-self: center;
  }
}

.ic-drop:hover .ic-drop__icon,
.ic-drop--drag .ic-drop__icon {
  color: var(--navy-mid);
}

.ic-drop__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.ic-drop__hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 22px;
}

.ic-drop__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 13px 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(8, 21, 40, 0.22);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.ic-drop__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 21, 40, 0.28);
}

.ic-drop__meta {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.ic-drop__error {
  margin: 16px 0 0;
  padding: 10px 14px;
  font-size: 14px;
  color: #9b2c2c;
  background: rgba(197, 48, 48, 0.08);
  border: 1px solid rgba(197, 48, 48, 0.2);
  border-radius: 8px;
  max-width: 100%;
}

.ic-drop__error[hidden] {
  display: none;
}

.ic-drop__warn {
  margin: 12px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #8A6F2E;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 8px;
  max-width: 100%;
}

.ic-drop__warn[hidden] {
  display: none;
}

/* Workspace */
.ic-workspace {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ic-workspace__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(11, 28, 53, 0.08);
}

.ic-workspace__file {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.ic-workspace__replace {
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ic-workspace__replace:hover {
  background: rgba(201, 168, 76, 0.12);
  color: var(--navy);
}

.ic-workspace__error {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #9b2c2c;
  background: rgba(197, 48, 48, 0.08);
  border: 1px solid rgba(197, 48, 48, 0.2);
  border-radius: 8px;
}

.ic-workspace__error[hidden] {
  display: none;
}

/* Split preview */
.ic-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ic-pane {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ic-pane__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.ic-pane--output .ic-pane__label {
  color: #8A6F2E;
}

.ic-pane__frame {
  position: relative;
  background: rgba(11, 28, 53, 0.04);
  border: 1px solid rgba(11, 28, 53, 0.1);
  border-radius: 12px;
  min-height: 220px;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ic-pane--output .ic-pane__frame {
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.06);
}

.ic-pane__frame--alpha {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e8e6e1 25%, transparent 25%),
    linear-gradient(-45deg, #e8e6e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e6e1 75%),
    linear-gradient(-45deg, transparent 75%, #e8e6e1 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.ic-privacy--api {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ic-pane__frame img {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ic-pane__busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  z-index: 2;
}

.ic-pane__busy[hidden] {
  display: none !important;
}

/* Stats row */
.ic-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ic-stat {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 28, 53, 0.08);
  border-radius: 12px;
}

.ic-stat--highlight {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.3);
}

.ic-stat__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ic-stat__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.ic-stat--highlight .ic-stat__value {
  color: #8A6F2E;
}

.ic-stat__value--good {
  color: #15803d;
}

.ic-stat__value--warn {
  color: #c05621;
}

/* Controls */
.ic-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}

.ic-control__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ic-control__head label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.ic-control__head output {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.ic-control input[type="range"] {
  width: 100%;
  height: 6px;
  accent-color: var(--gold);
  cursor: pointer;
}

.ic-control input[type="range"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ic-formats {
  border: none;
  margin: 0;
  padding: 0;
}

.ic-formats legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding: 0;
}

.ic-formats__btns {
  display: flex;
  gap: 8px;
}

.ic-format {
  flex: 1;
  height: 42px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ic-format:hover {
  border-color: rgba(201, 168, 76, 0.5);
  color: var(--text-primary);
}

.ic-format.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.ic-tip {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  padding: 12px 14px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 8px;
  line-height: 1.45;
}

.ic-tip[hidden] {
  display: none;
}

.ic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ic-actions__download {
  flex: 1;
  min-width: 200px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.ic-actions__download:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ic-actions__reset {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 22px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.ic-actions__reset:hover {
  border-color: var(--navy);
  color: var(--text-primary);
}

.ic-privacy {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .ic-split {
    grid-template-columns: 1fr;
  }

  .ic-controls {
    grid-template-columns: 1fr;
  }

  .ic-stats {
    grid-template-columns: 1fr;
  }

  .ic-upload {
    padding: 16px;
  }

  .ic-drop {
    min-height: 260px;
    padding: 36px 20px;
  }

  .ic-workspace {
    padding: 16px;
  }

  .ic-actions {
    flex-direction: column;
  }

  .ic-actions__download,
  .ic-actions__reset {
    width: 100%;
  }
}

/* Image converter extras (shared ic-* layout) */
.ic-pane__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(11, 28, 53, 0.08);
  border-radius: 4px;
  vertical-align: middle;
}

.ic-pane__tag--out {
  color: #8A6F2E;
  background: rgba(201, 168, 76, 0.2);
}

.ic-controls--convert {
  grid-template-columns: 1fr 1fr;
}

.ic-formats--full {
  grid-column: 1;
}

.ic-formats--full .ic-formats__btns {
  width: 100%;
}

.ic-format:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#qualityWrap[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .ic-controls--convert {
    grid-template-columns: 1fr;
  }
}

/* QR CODE GENERATOR */
.qr-app {
  overflow: hidden;
}

.qr-workspace {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
}

.qr-editor {
  padding: 28px;
  border-right: 1px solid rgba(11, 28, 53, 0.08);
}

.qr-types {
  border: none;
  margin: 0 0 20px;
  padding: 0;
}

.qr-types__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.qr-fields label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.qr-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.qr-fields input[type="text"],
.qr-fields input[type="url"],
.qr-fields input[type="email"],
.qr-fields input[type="tel"],
.qr-fields textarea,
.qr-fields .tool-select {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
  resize: vertical;
}

.qr-fields input:focus,
.qr-fields textarea:focus,
.qr-fields .tool-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.qr-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 4px;
}

.qr-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.qr-char-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.qr-char-count--warn {
  color: #c05621;
}

.qr-error {
  font-size: 13px;
  color: #c53030;
  margin-bottom: 12px;
}

.qr-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 28, 53, 0.08);
}

.qr-options__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.qr-options__row--colors {
  grid-template-columns: 1fr 1fr minmax(120px, 140px);
}

.qr-control {
  margin: 0;
}

.qr-field--ecc .tool-select {
  height: 44px;
}

.qr-color label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.qr-color__input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-color__input input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--card-bg);
}

.qr-color__input input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  font-family: 'DM Sans', monospace;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
}

.qr-preview-panel {
  padding: 28px 24px;
  background: rgba(11, 28, 53, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.qr-preview-panel__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  align-self: flex-start;
}

.qr-preview-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 200px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(11, 28, 53, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(11, 28, 53, 0.06);
}

.qr-preview-frame--ready {
  padding: 12px;
}

.qr-preview-frame canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.qr-preview-frame canvas[hidden] {
  display: none;
}

.qr-preview-placeholder {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  max-width: 200px;
  line-height: 1.5;
}

.qr-preview-frame--ready .qr-preview-placeholder {
  display: none;
}

.qr-preview-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  text-align: center;
}

.qr-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 240px;
  margin-top: 20px;
}

.qr-actions__btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .qr-workspace {
    grid-template-columns: 1fr;
  }

  .qr-editor {
    border-right: none;
    border-bottom: 1px solid rgba(11, 28, 53, 0.08);
  }

  .qr-preview-panel {
    padding: 24px 28px 28px;
  }

  .qr-options__row--colors {
    grid-template-columns: 1fr 1fr;
  }

  .qr-control--margin {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .qr-options__row,
  .qr-options__row--colors {
    grid-template-columns: 1fr;
  }
}

/* GIF MAKER */
.gif-app .gif-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.gif-frame-list {
  max-height: 520px;
}

.gif-preview {
  margin-bottom: 20px;
}

.gif-preview__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.gif-preview__frame {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 28, 53, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.gif-preview__placeholder {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  padding: 24px 12px;
}

.gif-preview__frame img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.gif-preview__frame img[hidden] {
  display: none;
}

.gif-preview__placeholder[hidden] {
  display: none;
}

.gif-field-check {
  display: flex;
  align-items: flex-end;
}

.gif-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}

.gif-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-dark);
}

.gif-actions {
  flex-wrap: wrap;
}

.gif-busy {
  margin-top: 16px;
  position: relative;
}

@media (max-width: 900px) {
  .gif-app .gif-layout {
    grid-template-columns: 1fr;
  }

  .gif-frame-list {
    max-height: 360px;
  }
}

/* IMAGE TO PDF */
.itp-app {
  overflow: hidden;
}

.itp-upload {
  padding: 28px;
  border-bottom: 1px solid rgba(11, 28, 53, 0.08);
}

.itp-workspace {
  padding: 24px 28px 28px;
}

.itp-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.itp-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 28, 53, 0.1);
  border-radius: var(--radius-lg);
  cursor: grab;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.itp-item:hover {
  border-color: rgba(201, 168, 76, 0.4);
}

.itp-item--dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.itp-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(11, 28, 53, 0.06);
  border: 1px solid rgba(11, 28, 53, 0.08);
}

.itp-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.itp-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itp-item__meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.itp-item__actions {
  display: flex;
  gap: 6px;
}

.itp-item__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.itp-item__btn:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.itp-item__btn--remove:hover {
  border-color: #c53030;
  background: rgba(197, 48, 48, 0.08);
  color: #c53030;
}

.itp-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(11, 28, 53, 0.08);
}

.itp-options__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}

.itp-options__row:last-child {
  grid-template-columns: 1fr 1fr;
}

.itp-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.itp-field .tool-select {
  width: 100%;
  height: 44px;
}

.itp-text-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
}

.itp-text-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.itp-control {
  margin: 0;
}

.itp-stats {
  margin-bottom: 20px;
}

.itp-busy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(201, 168, 76, 0.08);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text-secondary);
}

.itp-busy[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .itp-options__row,
  .itp-options__row:last-child {
    grid-template-columns: 1fr;
  }

  .itp-item {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }

  .itp-item__thumb {
    width: 56px;
    height: 56px;
  }

  .itp-item__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* PDF TO IMAGE (shared itp-* layout) */
.pti-app .ic-upload {
  padding: 28px;
}

.pti-pages {
  min-height: 120px;
}

.itp-item--page {
  cursor: pointer;
}

.itp-item--page.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.06);
}

.itp-formats {
  border: none;
  margin: 0;
  padding: 0;
}

.itp-formats legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pti-app .itp-options__row {
  grid-template-columns: auto 1fr 1fr;
  align-items: end;
}

.pti-app .ic-actions__download {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 900px) {
  .pti-app .itp-options__row {
    grid-template-columns: 1fr 1fr;
  }

  .pti-app .itp-control {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .pti-app .itp-options__row {
    grid-template-columns: 1fr;
  }
}

/* ── Premium polish (global refinements) ── */
.footer-logo span,
.footer-col--brand .footer-logo span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-banner {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-soft) 100%);
}

.cat-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  box-shadow: var(--shadow-md);
}

.ic-stat {
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.ic-stat--highlight {
  background: rgba(201, 168, 76, 0.14);
  border-color: rgba(201, 168, 76, 0.35);
}

.section--steps {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(247, 246, 242, 0.5) 100%);
}

.tool-panel {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

@media (prefers-reduced-motion: reduce) {
  .step-card:hover,
  .tool-card:hover,
  .benefit-card:hover,
  .btn-gold:hover,
  .nav-cta:hover,
  .ic-drop:hover {
    transform: none;
  }
}

/* —— Professional footer (AdSense-friendly) —— */
.footer-grid--pro {
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 36px 28px;
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-legal-bar .footer-copy {
  border: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  max-width: 420px;
  line-height: 1.5;
  margin: 0;
}

.footer-disclaimer a {
  color: rgba(201, 168, 76, 0.85);
  text-decoration: none;
}

.footer-disclaimer a:hover {
  color: var(--gold-light);
}

.nav-links {
  gap: 20px;
}

@media (max-width: 900px) {
  .footer-grid--pro {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid--pro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col--brand .footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-legal-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* —— Legal & static pages —— */
.legal-page {
  padding: 48px 5% 72px;
  min-height: 50vh;
}

.legal-page__inner {
  max-width: 760px;
}

.legal-page__header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-page__header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--text-primary);
  margin-bottom: 10px;
}

.legal-page__header h1 em {
  font-style: italic;
  color: var(--gold-dark);
}

.legal-page__meta {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-prose h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.legal-prose p,
.legal-prose li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.legal-prose ul {
  margin: 0 0 16px 1.25rem;
}

.legal-prose a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: var(--navy);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  color: var(--text-secondary);
}

.legal-table th {
  background: var(--off-white);
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* —— Contact page —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contact-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-card a {
  color: var(--gold-dark);
  font-weight: 500;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--off-white);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-form__note a {
  color: var(--gold-dark);
}

.contact-form__intro {
  font-size: 14px;
  color: var(--text-muted);
  margin: -4px 0 20px;
}

.contact-page__inner {
  max-width: 1040px;
}

.contact-page__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 42rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 32px;
  align-items: start;
}

.contact-aside__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 14px 16px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-lg);
  margin: 0;
}

.contact-aside__note a {
  color: var(--gold-dark);
  font-weight: 500;
}

.contact-card--muted {
  background: rgba(255, 255, 255, 0.55);
}

.contact-card--muted ul {
  margin: 0 0 8px 1.1rem;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-card--form h2 {
  margin-bottom: 4px;
}

.contact-card--success {
  border-color: rgba(201, 168, 76, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(247, 246, 242, 0.9));
}

.contact-card--success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contact-card--success p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-field {
  margin-bottom: 4px;
}

.contact-field__error {
  font-size: 13px;
  color: #c53030;
  margin: -8px 0 12px;
}

.contact-select {
  width: 100%;
  margin-bottom: 0;
}

.contact-form__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-select[aria-invalid="true"] {
  border-color: #c53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.12);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form__row .contact-field {
  margin-bottom: 0;
}

.contact-char-count {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin: -6px 0 12px;
}

.contact-char-count.is-near-limit {
  color: var(--gold-dark);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-card--form {
  position: relative;
  overflow: hidden;
}

.contact-card--form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.contact-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--off-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-email-chip:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.contact-email-chip span {
  color: var(--gold-dark);
}

.contact-aside .contact-card + .contact-card {
  margin-top: 20px;
}

.contact-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* —— About page —— */
.about-page__inner {
  max-width: 820px;
}

.about-page__header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 40px;
}

.about-page__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 38rem;
}

.about-story-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-story-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.about-story-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-story-card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.about-story-card p:last-child {
  margin-bottom: 0;
}

.about-story-card--founder {
  border-color: rgba(201, 168, 76, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 246, 242, 0.92));
}

.about-founder-badge {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-founder-sign {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 500;
  margin-top: 20px !important;
}

.about-values,
.about-problems {
  margin: 0 0 16px 1.25rem;
  padding: 0;
}

.about-values li,
.about-problems li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.about-values strong {
  color: var(--text-primary);
}

.about-cta-panel {
  margin-top: 48px;
  padding: 36px 40px;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
}

.about-cta-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.about-cta-panel p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
  font-size: 16px;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.about-cta-panel .btn-ghost--dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.about-cta-panel .btn-ghost--dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}

.about-trust-note {
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.about-trust-note a {
  color: var(--gold-dark);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-story-card {
    padding: 24px 22px;
  }

  .about-cta-panel {
    padding: 28px 22px;
  }
}

/* —— Blog —— */
.blog-grid {
  display: grid;
  gap: 24px;
}

.blog-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: var(--shadow-md);
}

.blog-card__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  white-space: nowrap;
}

.blog-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.blog-card__tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }
}

/* —— Scroll & interaction performance —— */
.section--steps,
.section--categories,
.section--benefits,
.section--about,
.section--faq,
.section--category-page,
.section--tools-page,
.ic-page,
.legal-page {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

html.is-scrolling *,
html.is-scrolling *::before,
html.is-scrolling *::after {
  transition-duration: 0.001ms !important;
  animation-play-state: paused !important;
}

@media (hover: hover) and (pointer: fine) {
  .tool-card:hover,
  .cat-card:hover,
  .benefit-card:hover,
  .step-card:hover,
  .featured-card:hover,
  .blog-card:hover {
    transform: translateY(-2px);
  }

  .btn-gold:hover,
  .search-wrap button:hover {
    transform: translateY(-1px);
  }
}

@media (hover: none), (pointer: coarse) {
  .tool-card:hover,
  .cat-card:hover,
  .benefit-card:hover,
  .step-card:hover,
  .category-showcase__card:hover,
  .featured-card:hover,
  .blog-card:hover,
  .btn-gold:hover,
  .btn-ghost:hover,
  .btn-ghost--dark:hover,
  .search-wrap button:hover,
  .ic-drop:hover {
    transform: none !important;
    filter: none !important;
  }

  .category-showcase__card:hover .category-showcase__cta {
    transform: none !important;
  }
}

@supports (backdrop-filter: blur(1px)) {
  .site-nav,
  .btn-ghost,
  .section--steps,
  .section--about,
  .stats-grid,
  .section--category-cta,
  .categories-footer-note {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* —— Watermark tool —— */
.wm-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.wm-type,
.wm-format {
  margin: 0;
}

.wm-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.wm-row--sliders {
  align-items: stretch;
}

.wm-row--sliders .ic-control {
  flex: 1 1 180px;
  min-width: 0;
}

.wm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.wm-field--grow {
  flex: 1 1 220px;
  min-width: 180px;
}

.wm-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.wm-field input[type="text"] {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
}

.wm-field input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.wm-field input[type="color"] {
  width: 56px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--off-white);
}

.wm-file {
  font-size: 14px;
  max-width: 100%;
}

.wm-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: -6px 0 0;
}

.wm-position__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.wm-position__grid {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 8px;
  max-width: 160px;
}

.wm-pos {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.wm-pos::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(11, 28, 53, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wm-pos[data-pos="top-left"]::after { top: 10px; left: 10px; transform: none; }
.wm-pos[data-pos="top-center"]::after { top: 10px; left: 50%; transform: translateX(-50%); }
.wm-pos[data-pos="top-right"]::after { top: 10px; right: 10px; left: auto; transform: none; }
.wm-pos[data-pos="center-left"]::after { top: 50%; left: 10px; transform: translateY(-50%); }
.wm-pos[data-pos="center"]::after { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.wm-pos[data-pos="center-right"]::after { top: 50%; right: 10px; left: auto; transform: translateY(-50%); }
.wm-pos[data-pos="bottom-left"]::after { bottom: 10px; left: 10px; top: auto; transform: none; }
.wm-pos[data-pos="bottom-center"]::after { bottom: 10px; left: 50%; top: auto; transform: translateX(-50%); }
.wm-pos[data-pos="bottom-right"]::after { bottom: 10px; right: 10px; left: auto; top: auto; transform: none; }

.wm-pos:hover {
  border-color: rgba(201, 168, 76, 0.45);
}

.wm-pos.is-active {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
}

.wm-pos.is-active::after {
  background: var(--gold);
}

.wm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.wm-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-dark);
}

@media (max-width: 640px) {
  .wm-controls {
    padding: 18px;
  }

  .wm-row--sliders {
    flex-direction: column;
  }
}

/* ── SEO content blocks (tool pages) ── */
.section--seo-content {
  padding-top: 0;
  padding-bottom: 48px;
}

.seo-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.seo-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.seo-content__intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.seo-steps {
  margin: 0 0 8px 1.25rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.seo-steps li {
  margin-bottom: 8px;
}

.seo-steps strong {
  color: var(--text-primary);
}

.seo-faq {
  margin-top: 4px;
}

.seo-related {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.seo-related h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.seo-related__list {
  list-style: none;
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .seo-related__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seo-related__list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.seo-related__list a:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: var(--shadow-sm);
}

.seo-related__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.seo-related__list strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.seo-related__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.seo-popular-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.seo-popular-tools__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.seo-popular-tools ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
}

.seo-popular-tools a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.seo-popular-tools a:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

/* —— UI polish: accessibility, focus, touch, usability —— */
::selection {
  background: rgba(201, 168, 76, 0.35);
  color: var(--navy);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform: translateY(-140%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.38);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.filter-pill:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(201, 168, 76, 0.65);
  outline-offset: 2px;
}

.nav-links a:focus-visible {
  outline-offset: 4px;
}

.btn-gold,
.search-wrap button,
.contact-form__submit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-pill {
  min-height: 40px;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
}

.filter-pill.is-active {
  box-shadow: 0 4px 14px rgba(8, 21, 40, 0.18);
}

.filter-pill:focus-visible {
  border-color: var(--gold);
}

.tools-page-toolbar {
  position: sticky;
  top: calc(var(--scroll-offset) - 4px);
  z-index: 40;
  margin-bottom: 32px;
  padding: 14px 0 16px;
  background: linear-gradient(180deg, rgba(247, 246, 242, 0.98) 70%, rgba(247, 246, 242, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section--tools-page .container,
.section--tools-page {
  padding-left: 5%;
  padding-right: 5%;
}

.faq-item {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 18px 22px;
  gap: 16px;
  transition: background var(--transition-fast);
}

.faq-item summary:hover {
  background: rgba(201, 168, 76, 0.06);
}

.faq-item summary:focus-visible {
  background: rgba(201, 168, 76, 0.08);
}

.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
}

.category-showcase__card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.tool-card:focus-visible,
.cat-card:focus-visible,
.blog-card:focus-visible {
  outline: 3px solid rgba(201, 168, 76, 0.7);
  outline-offset: 2px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-col a {
  display: inline-block;
  padding: 2px 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-col a:hover {
  color: var(--gold-light);
  transform: translateX(2px);
}

.categories-footer-note {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-secondary);
}

.categories-footer-note a {
  font-weight: 600;
  color: var(--gold-dark);
}

@media (max-width: 1200px) {
  .site-nav .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 14px 0;
  }

  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
    padding: 28px 20px;
  }

  .stat-block::after {
    display: none;
  }

  .hero-trust {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
