:root {
  color-scheme: light;
  --ink: #102a2e;
  --muted: #587075;
  --soft: #edf7f5;
  --paper: #fffdf9;
  --line: #d8e5e2;
  --brand: #0f766e;
  --brand-dark: #0a5752;
  --accent: #f97355;
  --accent-soft: #fff0eb;
  --warning: #b45309;
  --shadow: 0 18px 50px rgba(21, 64, 61, .10);
  --shadow-sm: 0 8px 24px rgba(21, 64, 61, .08);
  --radius: 22px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 118, 110, .09), transparent 30rem),
    radial-gradient(circle at 90% 9%, rgba(249, 115, 85, .08), transparent 25rem),
    #f8fbfa;
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
textarea { line-height: 1.55; }
::selection { background: #bfe8e3; color: #073d39; }

.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: fixed;
  left: 1rem;
  top: .6rem;
  z-index: 100;
  transform: translateY(-180%);
  opacity: 0;
  pointer-events: none;
  padding: .7rem 1rem;
  border-radius: 10px;
  color: white;
  background: var(--brand-dark);
}
.skip-link:focus { transform: translateY(0); opacity: 1; pointer-events: auto; }

.section-shell, .header-inner, .footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 229, 226, .88);
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 7px;
  border-radius: 10px;
  background: var(--brand);
  box-shadow: 0 7px 16px rgba(15, 118, 110, .22);
}
.brand-mark i { height: 2px; border-radius: 2px; background: white; }
.brand-mark i:nth-child(2) { width: 70%; }
.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav > a, .nav-tools-menu > summary {
  padding: .55rem .8rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
}
.main-nav > a:hover, .nav-tools-menu > summary:hover, .nav-tools-menu[open] > summary { color: var(--brand-dark); background: var(--soft); }
.nav-tools-menu { position: relative; }
.nav-tools-menu > summary { display: flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none; }
.nav-tools-menu > summary::-webkit-details-marker { display: none; }
.nav-chevron { margin-top: -.18rem; color: var(--brand); font-size: 1.05rem; transition: transform .18s ease; }
.nav-tools-menu[open] .nav-chevron { transform: rotate(180deg); }
.nav-tools-panel {
  position: fixed;
  z-index: 45;
  top: 62px;
  left: 50%;
  width: min(1080px, calc(100vw - 2rem));
  max-height: min(72vh, 680px);
  overflow-y: auto;
  transform: translateX(-50%);
  padding: 1.15rem;
  border: 1px solid rgba(197, 218, 214, .96);
  border-radius: 18px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 24px 70px rgba(16, 52, 51, .18);
}
.nav-tools-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .15rem .2rem 1rem; border-bottom: 1px solid var(--line); }
.nav-tools-panel-head > div { display: grid; gap: .18rem; }
.nav-tools-panel-head strong { font-size: .98rem; letter-spacing: -.015em; }
.nav-tools-panel-head span { max-width: 680px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.nav-tools-panel-head > a { flex: 0 0 auto; color: var(--brand); font-size: .82rem; font-weight: 800; }
.nav-tools-panel-head > a:hover { color: var(--brand-dark); text-decoration: underline; }
.nav-tools-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; padding-top: 1rem; }
.nav-toolkit-group { min-width: 0; padding: .8rem; border: 1px solid #e2ecea; border-radius: 14px; background: #fbfdfc; }
.nav-toolkit-title { display: flex; align-items: center; gap: .55rem; padding-bottom: .65rem; color: var(--ink); }
.nav-toolkit-title > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: var(--brand-dark); background: var(--soft); font-family: var(--mono); font-size: .72rem; font-weight: 850; }
.nav-toolkit-title strong { font-size: .83rem; line-height: 1.25; }
.nav-toolkit-title:hover strong { color: var(--brand); }
.nav-toolkit-links { display: grid; gap: .08rem; }
.nav-tool-link { display: block; padding: .31rem .38rem; border-radius: 7px; color: var(--muted); font-size: .76rem; line-height: 1.28; }
.nav-tool-link:hover { color: var(--brand-dark); background: #eaf6f3; }
.language-menu { margin-inline-start: auto; }
.language-menu select {
  max-width: 170px;
  padding: .55rem 2rem .55rem .72rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: white;
}

.hero { padding-top: 5.5rem; padding-bottom: 2.5rem; text-align: center; }
.home-hero { padding-top: 6.4rem; }
.compact-hero { padding-top: 3.8rem; }
.hero h1 {
  max-width: 900px;
  margin: .5rem auto 1.2rem;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}
.compact-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.hero-copy {
  max-width: 770px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.23rem);
}
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--brand);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.privacy-badge {
  width: fit-content;
  max-width: 100%;
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .45rem .7rem;
  padding: .6rem .9rem;
  border: 1px solid #b9ded9;
  border-radius: 999px;
  color: #195e58;
  background: rgba(237, 247, 245, .9);
  font-size: .82rem;
}
.privacy-badge > span:first-child {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--brand);
}
.privacy-badge > span:last-child { color: var(--muted); }
.hero-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border: 1px solid #b9ded9;
  border-radius: 20px;
  color: var(--brand-dark);
  background: linear-gradient(145deg, white, var(--soft));
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 800;
}

.breadcrumbs {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
  font-size: .82rem;
}
.breadcrumbs a:hover { color: var(--brand); }

.tool-workspace {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(186, 214, 210, .88);
  border-radius: 28px;
  background: rgba(255, 253, 249, .96);
  box-shadow: var(--shadow);
}
.workspace-heading, .section-heading, .output-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.workspace-heading { margin-bottom: 1.15rem; }
.workspace-heading h2 { margin: .2rem 0 0; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.3; }
.text-button, .text-link {
  border: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 750;
  white-space: nowrap;
}
.text-button:hover, .text-link:hover { color: var(--brand-dark); text-decoration: underline; }
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.compare-grid .third-input { grid-column: 1 / -1; }
.single-grid { display: grid; }
.input-panel {
  min-width: 0;
  display: block;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfdfc;
}
.input-panel > span, .output-heading {
  min-height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .55rem;
}
.input-panel small, .output-heading span { color: var(--muted); font-size: .78rem; }
.input-panel textarea, .output-panel textarea {
  width: 100%;
  min-height: 225px;
  display: block;
  resize: vertical;
  padding: .9rem 1rem;
  border: 1px solid #cddbd8;
  border-radius: 12px;
  outline: none;
  color: #18383b;
  background: white;
  font-family: var(--mono);
  font-size: .88rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.single-grid .input-panel textarea { min-height: 260px; }
.input-panel textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.input-panel textarea::placeholder, .output-panel textarea::placeholder { color: #91a5a8; }

.workspace-options {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6faf9;
}
.compact-options { padding: .7rem .85rem; }
.options-title { padding-inline-end: .4rem; }
.field {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .35rem .25rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: white;
  font-size: .82rem;
}
.field.grow { flex: 1 1 250px; }
.field input, .field select {
  min-width: 0;
  padding: .35rem .45rem;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}
.field.grow input { flex: 1; }
.check { display: inline-flex; align-items: center; gap: .42rem; color: #425e62; font-size: .84rem; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.workspace-run {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.validation-message { color: #b42318; font-size: .84rem; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .64rem 1rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .87rem;
  font-weight: 800;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button:active { transform: translateY(1px); }
.button.primary { color: white; background: var(--brand); box-shadow: 0 8px 18px rgba(15, 118, 110, .16); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { border-color: var(--line); color: #38575b; background: white; }
.button.secondary:hover { border-color: #a9cbc6; background: var(--soft); }
.output-panel {
  padding: .9rem;
  border: 1px solid #c8dfdb;
  border-radius: 17px;
  background: #f1f8f6;
}
.output-panel textarea { min-height: 210px; resize: vertical; background: #fbfefd; }
.output-actions { margin-top: .75rem; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; }
.result-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.result-tabs button {
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: .83rem;
  font-weight: 750;
}
.result-tabs button.active { border-color: var(--brand); color: white; background: var(--brand); }

.diff-output {
  min-height: 210px;
  max-height: 500px;
  overflow: auto;
  border: 1px solid #cddbd8;
  border-radius: 12px;
  background: white;
  font-family: var(--mono);
  font-size: .83rem;
}
.diff-line { display: grid; grid-template-columns: 32px 1fr; padding: .28rem .65rem; border-bottom: 1px solid #edf2f1; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-line:last-child { border-bottom: 0; }
.diff-line.add { color: #166534; background: #effcf2; }
.diff-line.remove { color: #9f2d20; background: #fff1ee; }
.diff-line.same { color: #5a7074; }
.diff-line b { user-select: none; }
.visual-output { padding: .65rem; display: grid; gap: .45rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
.statistics-output { max-height: none; overflow: visible; }
.visual-line { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) 48px; align-items: center; gap: .65rem; padding: .5rem .65rem; border: 1px solid #e1ebe9; border-radius: 9px; color: var(--muted); background: #fbfdfc; }
.visual-line.duplicate { border-color: #f6b5a6; color: #8d3023; background: var(--accent-soft); }
.visual-line-number { color: #8aa0a3; font-size: .75rem; text-align: right; }
.visual-line-text { min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); }
.visual-badge { color: var(--accent); text-align: right; }
.statistic-card { min-height: 105px; display: flex; flex-direction: column; justify-content: center; gap: .25rem; padding: 1rem; border: 1px solid #cfe2df; border-radius: 12px; background: #f6fbfa; text-align: center; }
.statistic-card strong { color: var(--brand-dark); font-size: 1.7rem; line-height: 1; }
.statistic-card span { color: var(--muted); font-size: .78rem; }

.section-block { padding-top: 5rem; }
.section-heading { margin-bottom: 1.4rem; align-items: flex-end; }
.section-heading h2, .prose-card h2, .faq-section h2 { margin: .25rem 0 .35rem; font-size: clamp(1.65rem, 3.5vw, 2.55rem); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p { max-width: 690px; margin: .25rem 0 0; color: var(--muted); }
.toolkit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.toolkit-card {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(237,247,245,.82));
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.toolkit-card:hover { transform: translateY(-3px); border-color: #9dc9c3; box-shadow: var(--shadow); }
.toolkit-card > span:last-child { display: grid; gap: .45rem; }
.toolkit-card strong { font-size: 1.1rem; line-height: 1.25; }
.toolkit-card span span { color: var(--muted); font-size: .89rem; }
.toolkit-card small { width: fit-content; margin-top: .25rem; padding: .25rem .5rem; border-radius: 999px; color: var(--brand-dark); background: white; font-weight: 750; }
.toolkit-icon, .card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--brand-dark);
  background: white;
  font-family: var(--mono);
  font-weight: 850;
}
.toolkit-icon { width: 48px; height: 48px; border: 1px solid #b9d9d5; border-radius: 15px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }

.guides-hero { padding-top: 3.25rem; padding-bottom: 1.8rem; text-align: left; }
.guides-hero h1 { max-width: 760px; margin: .42rem 0 .85rem; font-size: clamp(2.15rem, 4.8vw, 3.55rem); line-height: 1.06; letter-spacing: -.045em; }
.guides-hero .hero-copy { max-width: 760px; margin: 0; font-size: clamp(.98rem, 1.6vw, 1.1rem); line-height: 1.65; }
.guides-directory { padding-top: 2.25rem; }
.guides-directory .section-heading { margin-bottom: 1.05rem; align-items: flex-start; }
.guides-directory .section-heading h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); letter-spacing: -.025em; }
.guides-directory .section-heading p { max-width: 760px; font-size: .92rem; line-height: 1.6; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; }
.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 7px 22px rgba(15, 72, 70, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.guide-card:hover { transform: translateY(-2px); border-color: #b1d3ce; box-shadow: 0 13px 32px rgba(15, 72, 70, .075); }
.guide-card-meta { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin: 0 0 .72rem; color: var(--brand); font-size: .67rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.guide-card-meta span:first-child { padding: .25rem .48rem; border-radius: 999px; background: var(--soft); }
.guide-card-meta span:last-child { color: #718488; letter-spacing: 0; text-transform: none; }
.guide-card h3 { margin: 0 0 .55rem; font-size: clamp(1.08rem, 1.9vw, 1.3rem); line-height: 1.24; letter-spacing: -.018em; }
.guide-card h3 a:hover { color: var(--brand); }
.guide-card > p:not(.guide-card-meta) { flex: 1; margin: 0 0 .9rem; color: var(--muted); font-size: .9rem; line-height: 1.58; }
.guide-card > .text-link { font-size: .82rem; }

.guide-page .breadcrumbs { padding-top: 1.05rem; }
.guide-article { padding-top: .5rem; }
.guide-header { max-width: 860px; margin: 0 auto; padding: 3.15rem 0 2.25rem; text-align: center; }
.guide-header h1 { max-width: 840px; margin: .4rem auto .85rem; font-size: clamp(2.05rem, 5vw, 3.55rem); line-height: 1.07; letter-spacing: -.045em; }
.guide-header .hero-copy { max-width: 740px; font-size: clamp(.98rem, 1.7vw, 1.1rem); line-height: 1.65; }
.guide-byline { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 1.05rem 0 0; color: var(--muted); font-size: .8rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 270px); gap: 1.4rem; align-items: start; }
.guide-content { min-width: 0; padding: clamp(1.35rem, 3.4vw, 2.35rem); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(21, 64, 61, .08); }
.guide-intro { padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.guide-intro p:first-child { margin-top: 0; font-size: 1.05rem; color: var(--ink); }
.guide-content p, .guide-content li { color: #344f51; font-size: .97rem; line-height: 1.74; }
.guide-content ol, .guide-content ul { padding-left: 1.45rem; }
.guide-content li + li { margin-top: .45rem; }
.guide-section { padding-top: 1.7rem; scroll-margin-top: 90px; }
.guide-section h2 { margin: 0 0 .8rem; font-size: clamp(1.38rem, 2.8vw, 1.95rem); line-height: 1.2; letter-spacing: -.027em; }
.guide-conclusion { margin-top: 1.7rem; padding: 1.55rem; border-radius: 16px; background: #eef8f5; }
.guide-code { margin: 1.35rem 0; overflow: hidden; border: 1px solid #274e50; border-radius: 14px; background: #102f31; }
.guide-code figcaption { padding: .7rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); color: #a8e1d4; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.guide-code pre { max-width: 100%; margin: 0; padding: 1rem; overflow-x: auto; color: #eefcf8; font: .88rem/1.65 var(--mono); white-space: pre; tab-size: 2; }
.guide-code code { font: inherit; }
.guide-toc { position: sticky; top: 82px; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(244,251,249,.96); }
.guide-toc > strong { display: block; margin-bottom: .6rem; font-size: .9rem; }
.guide-toc nav { display: grid; gap: .25rem; }
.guide-toc a { padding: .38rem .48rem; border-radius: 7px; color: var(--muted); font-size: .77rem; line-height: 1.35; }
.guide-toc a:hover { color: var(--brand); background: #e3f3ee; }
.guide-page .faq-section { padding-top: 3.8rem; }
.guide-page .section-block { padding-top: 3.8rem; }
.tool-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.tool-card:hover { transform: translateX(3px); border-color: #9dc9c3; background: white; }
.card-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); }
.card-copy { min-width: 0; display: grid; gap: .18rem; }
.card-copy strong { line-height: 1.25; }
.card-copy span { color: var(--muted); font-size: .83rem; }
.card-arrow { margin-inline-start: auto; color: var(--accent); font-size: 1.2rem; font-weight: 900; }

.content-grid { padding-top: 5rem; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 1rem; }
.prose-card, .steps-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
}
.prose-card { margin-top: 5rem; }
.content-grid .prose-card { margin-top: 0; }
.prose-card p { color: var(--muted); }
.prose-card p:last-child { margin-bottom: 0; }
.steps-card { background: #123f42; color: white; }
.steps-card .eyebrow { color: #8ce0d7; }
.steps-card ol { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; counter-reset: workflow-step; }
.steps-card li { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: flex-start; counter-increment: workflow-step; }
.steps-card li span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.steps-card li span::before { content: counter(workflow-step); font-size: .75rem; font-weight: 850; }
.steps-card li p { margin: 0; color: #d5e9e7; }
.steps-list { margin: 1.5rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.steps-list li { margin-bottom: .55rem; }

.faq-section { padding-top: 5rem; padding-bottom: 1rem; }
.faq-list { max-width: 900px; display: grid; gap: .65rem; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.9); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--brand); font-size: 1.3rem; transition: transform .18s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: 0; padding: 0 1.1rem 1.05rem; color: var(--muted); }

.site-footer { margin-top: 6rem; border-top: 1px solid var(--line); background: #f1f7f5; }
.footer-inner { padding: 2.5rem 0; display: flex; justify-content: space-between; gap: 2rem; }
.footer-brand { margin-bottom: .7rem; }
.footer-inner p { max-width: 520px; margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: .45rem; color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--brand); }
.copyright { padding: 1rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .78rem; }
.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 50;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: .7rem 1rem;
  border-radius: 10px;
  color: white;
  background: #163f42;
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

.not-found { min-height: 65vh; padding-top: 7rem; text-align: center; }
.not-found h1 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); }
.not-found p { color: var(--muted); }
.not-found .button { margin-top: 1rem; }
.error-code { margin: 0; color: var(--accent) !important; font-family: var(--mono); font-size: 1.2rem; font-weight: 900; }

html[dir="rtl"] .tool-card:hover { transform: translateX(-3px); }
html[dir="rtl"] .steps-list { padding-left: 0; padding-right: 1.25rem; }

@media (max-width: 960px) {
  .nav-tools-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolkit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; grid-row: 1; }
}

@media (max-width: 720px) {
  .header-inner { gap: .8rem; }
  .main-nav { display: flex; margin-inline-start: auto; }
  .nav-home-link, .nav-guides-link { display: none; }
  .nav-tools-menu > summary { padding: .48rem .62rem; font-size: .82rem; }
  .nav-tools-panel { top: 61px; width: calc(100vw - 1rem); max-height: calc(100vh - 76px); padding: .85rem; border-radius: 15px; }
  .nav-tools-panel-head { align-items: flex-start; flex-direction: column; padding-bottom: .8rem; }
  .nav-tools-groups { grid-template-columns: 1fr; gap: .65rem; padding-top: .8rem; }
  .nav-toolkit-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .06rem .35rem; }
  .nav-tool-link { font-size: .74rem; }
  .language-menu select { max-width: 130px; }
  .hero, .home-hero { padding-top: 3.6rem; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-grid .third-input { grid-column: auto; }
  .tool-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .guides-hero { padding-top: 2.6rem; padding-bottom: 1.2rem; }
  .guides-directory { padding-top: 1.7rem; }
  .guide-card { min-height: 0; }
  .guide-header { padding: 2.35rem 0 1.7rem; }
  .guide-content { padding: 1.15rem; border-radius: 18px; }
  .guide-conclusion { padding: 1.2rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .input-panel textarea, .single-grid .input-panel textarea { min-height: 190px; }
  .workspace-options { align-items: stretch; }
  .options-title { flex-basis: 100%; }
  .field { flex: 1 1 190px; }
  .output-actions .button { flex: 1 1 130px; }
  .visual-output { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .section-shell, .header-inner, .footer-inner { width: min(100% - 1.1rem, 1180px); }
  .brand > span:last-child { display: none; }
  .nav-tools-panel-head span { display: none; }
  .nav-toolkit-group { padding: .7rem; }
  .nav-toolkit-links { grid-template-columns: 1fr 1fr; }
  .guide-header h1 { font-size: clamp(1.85rem, 9vw, 2.55rem); }
  .guide-content p, .guide-content li { font-size: .94rem; line-height: 1.7; }
  .toolkit-grid { grid-template-columns: 1fr; }
  .toolkit-card { min-height: 190px; }
  .tool-workspace { border-radius: 20px; }
  .workspace-heading { flex-direction: column; }
  .privacy-badge > span:last-child { display: none; }
  .visual-output { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
