/* ==========================================================================
   Cropodile — Shared Stylesheet (Vanilla CSS3, Mobile-First, BEM-like)
   Theme tokens via CSS custom properties, WCAG AA contrast in Light & Dark,
   zero layout shift, reduced-motion compliant.
   ========================================================================== */

:root {
  /* Core Palette — Light Theme (60% Neutral / 30% Structural / 10% Brand Accent) */
  --bg-canvas: #f6faf7;
  --bg-surface: #ffffff;
  --bg-subtle: #ecf3ee;
  --bg-elevated: #ffffff;
  --bg-hero-glow-1: rgba(14, 107, 78, 0.12);
  --bg-hero-glow-2: rgba(163, 230, 53, 0.16);

  --text-primary: #0f241b;
  --text-secondary: #3f554b;
  --text-muted: #566d62;

  --border-hairline: #d6e2db;
  --border-strong: #b4c9bd;

  --brand-primary: #0e6b4e;
  --brand-primary-hover: #0a523b;
  --brand-primary-ink: #ffffff;
  --brand-teal: #0d5c63;
  --brand-accent: #b45309;
  --brand-accent-bright: #a3e635;
  --brand-tint: #e3f3ec;

  --status-success: #0f766e;
  --status-success-bg: #e6f6f3;
  --status-warning: #9a3412;
  --status-warning-bg: #fff4ed;
  --status-error: #b91c1c;
  --status-error-bg: #fef2f2;

  --shadow-sm: 0 1px 3px rgba(15, 36, 27, 0.06), 0 1px 2px rgba(15, 36, 27, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(15, 36, 27, 0.09), 0 2px 6px rgba(15, 36, 27, 0.04);
  --shadow-lg: 0 18px 42px -12px rgba(15, 36, 27, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-max: 1180px;
  --header-height: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='dark'] {
  --bg-canvas: #0b1411;
  --bg-surface: #12201b;
  --bg-subtle: #182a24;
  --bg-elevated: #162721;
  --bg-hero-glow-1: rgba(34, 181, 131, 0.16);
  --bg-hero-glow-2: rgba(163, 230, 53, 0.1);

  --text-primary: #eef6f2;
  --text-secondary: #b7cbc1;
  --text-muted: #93aba0;

  --border-hairline: #233931;
  --border-strong: #325146;

  --brand-primary: #22b583;
  --brand-primary-hover: #2fd199;
  --brand-primary-ink: #041d14;
  --brand-teal: #2dd4bf;
  --brand-accent: #fbbf24;
  --brand-accent-bright: #bef264;
  --brand-tint: rgba(34, 181, 131, 0.15);

  --status-success: #34d399;
  --status-success-bg: rgba(16, 185, 129, 0.14);
  --status-warning: #fbbf24;
  --status-warning-bg: rgba(245, 158, 11, 0.14);
  --status-error: #f87171;
  --status-error-bg: rgba(239, 68, 68, 0.14);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 10px 28px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 48px -12px rgba(0, 0, 0, 0.6);
}

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

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

[data-theme='dark'] body {
  letter-spacing: 0.01em;
}

main {
  flex: 1 0 auto;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.16s var(--ease-out);
}

a:hover {
  color: var(--brand-primary-hover);
}

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

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 1000;
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 3.5rem;
}

.section--subtle {
  background-color: var(--bg-subtle);
  border-block: 1px solid var(--border-hairline);
}

@media (min-width: 1024px) {
  .section {
    padding-block: 4.75rem;
  }
}

.section__header {
  max-width: 680px;
  margin-bottom: 2.25rem;
}

.section__kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.4rem;
}

.section__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.btn--primary {
  background-color: var(--brand-primary);
  color: var(--brand-primary-ink);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover:not(:disabled) {
  background-color: var(--brand-primary-hover);
  color: var(--brand-primary-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover:not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-hairline);
}

.btn--ghost:hover:not(:disabled) {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.btn--sm {
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text-primary);
}

.brand__accent {
  color: var(--brand-primary);
}

.site-nav {
  display: none;
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--brand-primary);
}

.site-nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background-color: var(--brand-primary);
}

.site-nav__dropdown-wrap {
  position: relative;
}

.site-nav__chevron {
  transition: transform 0.18s var(--ease-out);
}

.site-nav__trigger[aria-expanded='true'] .site-nav__chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 310px;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 120;
}

.nav-dropdown__item {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.nav-dropdown__item:hover,
.nav-dropdown__item[aria-current='page'] {
  background-color: var(--bg-subtle);
  color: var(--brand-primary);
}

.nav-dropdown__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-dropdown__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-dropdown__footer {
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-hairline);
}

.nav-dropdown__all {
  display: block;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.nav-dropdown__all:hover {
  background-color: var(--brand-tint);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Animated Sun / Moon Theme Toggle */
.theme-toggle,
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.16s var(--ease-out), background-color 0.16s var(--ease-out);
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.theme-toggle__icon {
  position: absolute;
  transition: transform 0.3s var(--ease-out), opacity 0.25s var(--ease-out);
}

.theme-toggle__sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme='dark'] .theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme='dark'] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.mobile-menu-btn__close {
  display: none;
}

.mobile-menu-btn[aria-expanded='true'] .mobile-menu-btn__open {
  display: none;
}

.mobile-menu-btn[aria-expanded='true'] .mobile-menu-btn__close {
  display: block;
}

@media (min-width: 900px) {
  .mobile-menu-btn,
  .mobile-nav {
    display: none;
  }
}

.mobile-nav {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding-block: 1rem 1.5rem;
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav__link {
  display: block;
  padding: 0.65rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.mobile-nav__group {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  margin-bottom: 0.25rem;
  border-left: 1px solid var(--border-hairline);
}

.mobile-nav__sublink {
  padding: 0.5rem 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.noscript-nav {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Hero Section (Home Page) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 3.25rem 4rem;
  background:
    radial-gradient(620px 360px at 8% 12%, var(--bg-hero-glow-1), transparent 70%),
    radial-gradient(540px 340px at 92% 84%, var(--bg-hero-glow-2), transparent 70%);
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 4.5rem 5.25rem;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.5rem;
  }
}

.hero__eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.hero__title {
  margin-bottom: 1.1rem;
  max-width: 18ch;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 54ch;
  margin-bottom: 1.85rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.65rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__trust li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  flex-shrink: 0;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-hairline);
}

.hero__stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Visual Stage & Pure CSS/SVG Animation */
.hero__stage {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
  opacity: 0.55;
  will-change: transform;
}

.hero__blob--a {
  width: 220px;
  height: 220px;
  background: var(--brand-primary);
  top: -12px;
  right: 12px;
  animation: floatBlobA 9s ease-in-out infinite alternate;
}

.hero__blob--b {
  width: 170px;
  height: 170px;
  background: var(--brand-accent-bright);
  bottom: 0;
  left: 16px;
  opacity: 0.32;
  animation: floatBlobB 11s ease-in-out infinite alternate;
}

.hero-scene {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  will-change: transform;
  transition: transform 0.2s var(--ease-out);
}

.hero-scene__svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.hero-crop-frame {
  transform-origin: center;
  animation: cropSlide 6.5s ease-in-out infinite;
}

.hero-croc-peek {
  animation: crocPeek 4.6s ease-in-out infinite;
  transform-origin: center bottom;
}

.hero-float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  pointer-events: none;
}

.hero-float-badge svg {
  color: var(--brand-primary);
}

.hero-float-badge--crop {
  top: -14px;
  left: 14px;
  animation: floatChip 5s ease-in-out infinite alternate;
}

.hero-float-badge--compress {
  top: 46%;
  right: -12px;
  animation: floatChip 6s ease-in-out infinite alternate-reverse;
}

.hero-float-badge--shield {
  bottom: -14px;
  left: 24px;
  animation: floatChip 5.5s ease-in-out infinite alternate;
}

@keyframes cropSlide {
  0%, 100% { transform: translate(0px, 0px) scale(1); }
  35% { transform: translate(22px, -10px) scale(0.92); }
  70% { transform: translate(-12px, 12px) scale(0.97); }
}

@keyframes crocPeek {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes floatBlobA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 14px) scale(1.08); }
}

@keyframes floatBlobB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(16px, -14px) scale(1.1); }
}

@keyframes floatChip {
  from { transform: translateY(0px); }
  to { transform: translateY(-7px); }
}

/* ---------- Cards & Grids ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.tool-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  color: var(--brand-primary);
  margin-bottom: 1.15rem;
}

.tool-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.tool-card__desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  flex: 1 0 auto;
}

.tool-card__cta {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* Quick Size Links Grid */
.size-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.size-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color 0.16s var(--ease-out), transform 0.16s var(--ease-out);
}

.size-link:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  color: var(--brand-primary);
}

.size-link__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.size-link__dim {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Steps & Feature Grids */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  padding: 1.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
}

.step-card__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.feature-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card__desc {
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* ---------- Prose / SEO Article Content ---------- */
.prose {
  max-width: 78ch;
}

.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--text-primary);
}

.callout-note {
  padding: 1.15rem 1.35rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  padding-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb__list li + li::before {
  content: '/';
  margin-right: 0.45rem;
  color: var(--border-strong);
}

.breadcrumb__list a {
  color: var(--text-muted);
}

.breadcrumb__list a:hover {
  color: var(--brand-primary);
}

/* ---------- FAQ Accordion ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 820px;
}

#faq .section__header {
  margin-inline: auto;
  text-align: center;
}

#faq .faq {
  margin-inline: auto;
}

.faq__item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  text-align: left;
  background: transparent;
  border: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.faq__question:hover {
  color: var(--brand-primary);
}

.faq__icon {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
  color: var(--text-muted);
}

.faq__question[aria-expanded='true'] .faq__icon {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq__answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Final CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-teal));
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    padding: 3rem 3.25rem;
  }
}

.cta-banner h2,
.cta-banner p {
  color: #ffffff;
}

.cta-banner p {
  opacity: 0.92;
  margin-bottom: 0;
  max-width: 52ch;
}

.cta-banner .btn--cta-light {
  background: #ffffff;
  color: #093d2c;
}

.cta-banner .btn--cta-light:hover {
  background: #ecfdf5;
  color: #062c20;
}

/* ---------- Tool Workspace UI ---------- */
.page-hero {
  padding-block: 1.5rem 2rem;
}

.page-hero__intro {
  font-size: 1.05rem;
  max-width: 66ch;
  margin-bottom: 0;
}

.tool-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .tool-shell {
    padding: 2rem;
  }
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  padding: 2.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}

.dropzone:hover,
.dropzone--active {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
}

.dropzone__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--brand-primary);
  border: 1px solid var(--border-hairline);
}

.dropzone__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.dropzone__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}

.alert--error {
  background: var(--status-error-bg);
  color: var(--status-error);
  border-color: color-mix(in srgb, var(--status-error) 30%, transparent);
}

.alert--success {
  background: var(--status-success-bg);
  color: var(--status-success);
  border-color: color-mix(in srgb, var(--status-success) 30%, transparent);
}

.alert--warning {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border-color: color-mix(in srgb, var(--status-warning) 30%, transparent);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .workspace-grid {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

.stage-box {
  position: relative;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}

.stage-box--checker {
  background-image:
    linear-gradient(45deg, var(--border-hairline) 25%, transparent 25%),
    linear-gradient(-45deg, var(--border-hairline) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--border-hairline) 75%),
    linear-gradient(-45deg, transparent 75%, var(--border-hairline) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.cropper-canvas {
  max-width: 100%;
  max-height: 520px;
  touch-action: none;
  cursor: move;
  border-radius: var(--radius-sm);
  user-select: none;
}

.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.field-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text-primary);
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.field-textarea {
  min-height: 130px;
  resize: vertical;
}

.field-range {
  width: 100%;
  accent-color: var(--brand-primary);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.seg-btn {
  padding: 0.45rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.seg-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.seg-btn.is-active {
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
  border-color: var(--brand-primary);
}

.toolbar-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.metric__label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.metric__value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.output-card {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.output-preview-img {
  max-height: 220px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
}

/* Bulk File List & EXIF Table */
.file-queue {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.file-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.file-row__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
}

.file-row__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-primary);
  word-break: break-word;
}

.file-row__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  height: 6px;
  width: 100%;
  background: var(--bg-subtle);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.45rem;
}

.progress-bar__fill {
  height: 100%;
  background: var(--brand-primary);
  transition: width 0.2s var(--ease-out);
}

/* Spec & Metadata Tables */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-surface);
}

.data-table th,
.data-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.data-table td {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Favicon Pack Grid & Code Snippet */
.favicon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.favicon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  text-align: center;
}

.favicon-tile__box {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
}

.code-block {
  position: relative;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ---------- Blog Cards & Articles ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

.toc-box {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.toc-box__title {
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.toc-box ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
}

.toc-box li {
  margin-bottom: 0.35rem;
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin-top: 2.5rem;
}

.author-box__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* ---------- AdSense Ready Containers (No Fake Ads, CLS-Safe) ---------- */
.ad-slot {
  width: 100%;
  margin-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot:empty {
  display: none;
}

/* Reserved min-heights prevent Cumulative Layout Shift (CLS) once AdSense units render */
.ad-slot--banner {
  min-height: 90px;
}

.ad-slot--incontent {
  min-height: 100px;
}

.ad-slot--sidebar {
  min-height: 250px;
}

/* ---------- Footer & 10 Brand-Color Social Icons ---------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  padding-block: 3.5rem 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1.1fr 1fr;
  }
}

.site-footer__tagline {
  font-size: 0.92rem;
  margin-top: 0.85rem;
  margin-bottom: 1.25rem;
  max-width: 34ch;
}

.site-footer__heading {
  font-size: 0.96rem;
  margin-bottom: 0.9rem;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__list a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.site-footer__list a:hover {
  color: var(--brand-primary);
}

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.site-footer__bottom p {
  margin: 0;
  color: var(--text-muted);
}

.site-footer__privacy-note {
  font-weight: 600;
  color: var(--brand-primary);
}

/* Social Buttons */
.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-3px) scale(1.07);
  color: #ffffff;
  border-color: transparent;
}

.social-btn--facebook:hover,
.social-btn--facebook:focus-visible {
  background: #1877f2;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}

.social-btn--x:hover,
.social-btn--x:focus-visible {
  background: #000000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

[data-theme='dark'] .social-btn--x:hover,
[data-theme='dark'] .social-btn--x:focus-visible {
  background: #ffffff;
  color: #0b1411;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.28);
}

.social-btn--instagram:hover,
.social-btn--instagram:focus-visible {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  box-shadow: 0 6px 16px rgba(221, 42, 123, 0.35);
}

.social-btn--youtube:hover,
.social-btn--youtube:focus-visible {
  background: #ff0000;
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.32);
}

.social-btn--linkedin:hover,
.social-btn--linkedin:focus-visible {
  background: #0a66c2;
  box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35);
}

.social-btn--pinterest:hover,
.social-btn--pinterest:focus-visible {
  background: #e60023;
  box-shadow: 0 6px 16px rgba(230, 0, 35, 0.32);
}

.social-btn--whatsapp:hover,
.social-btn--whatsapp:focus-visible {
  background: #25d366;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.social-btn--telegram:hover,
.social-btn--telegram:focus-visible {
  background: #26a5e4;
  box-shadow: 0 6px 16px rgba(38, 165, 228, 0.35);
}

.social-btn--reddit:hover,
.social-btn--reddit:focus-visible {
  background: #ff4500;
  box-shadow: 0 6px 16px rgba(255, 69, 0, 0.35);
}

.social-btn--github:hover,
.social-btn--github:focus-visible {
  background: #181717;
  box-shadow: 0 6px 16px rgba(24, 23, 23, 0.32);
}

[data-theme='dark'] .social-btn--github:hover,
[data-theme='dark'] .social-btn--github:focus-visible {
  background: #ffffff;
  color: #0b1411;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.28);
}

.social-btn__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: var(--bg-surface);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out);
  z-index: 30;
}

.social-btn:hover .social-btn__tooltip,
.social-btn:focus-visible .social-btn__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Cookie Consent Banner & Back to Top ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0.55rem;
  left: 0.55rem;
  right: 0.55rem;
  z-index: 95;
  max-width: 920px;
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.cookie-banner__actions .btn--sm {
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

@media (min-width: 720px) {
  .cookie-banner {
    bottom: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.8rem 1.1rem;
  }

  .cookie-banner__text {
    font-size: 0.85rem;
    line-height: 1.45;
  }
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), background-color 0.16s var(--ease-out);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
  border-color: var(--brand-primary);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

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