:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --bg-elevated: #fbfaf6;
  --panel: #fffdf8;
  --panel-solid: #fffdf8;
  --panel-soft: rgba(38, 47, 42, .045);
  --text: #1c2923;
  --muted: #657269;
  --muted-strong: #4d5c54;
  --line: rgba(35, 50, 42, .13);
  --line-strong: rgba(35, 50, 42, .24);
  --indigo: #315e8c;
  --violet: #a4573c;
  --cyan: #4f8071;
  --amber: #c99432;
  --green: #4f755f;
  --red: #b74f46;
  --shadow: 0 18px 46px rgba(53, 61, 55, .10);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --content: min(1480px, calc(100vw - 48px));
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f1e8;
  --bg-elevated: #fbfaf6;
  --panel: #fffdf8;
  --panel-solid: #fffdf8;
  --panel-soft: rgba(38, 47, 42, .045);
  --text: #1c2923;
  --muted: #657269;
  --muted-strong: #4d5c54;
  --line: rgba(35, 50, 42, .13);
  --line-strong: rgba(35, 50, 42, .24);
  --shadow: 0 18px 46px rgba(53, 61, 55, .10);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a201c;
  --bg-elevated: #202721;
  --panel: #252d27;
  --panel-solid: #202721;
  --panel-soft: rgba(255, 248, 232, .05);
  --text: #f4f0e7;
  --muted: #9baa9f;
  --muted-strong: #c3ccc5;
  --line: rgba(245, 240, 227, .12);
  --line-strong: rgba(245, 240, 227, .23);
  --indigo: #86a8c6;
  --violet: #d28d70;
  --cyan: #82aa9c;
  --amber: #ddb45c;
  --green: #8aae96;
  --red: #dc877f;
  --shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(201, 148, 50, .10), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(79, 117, 95, .09), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Aptos, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, canvas { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 1rem; }

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image: radial-gradient(var(--line-strong) .7px, transparent .7px);
  background-size: 19px 19px;
  mask-image: linear-gradient(to bottom, black, transparent 64%);
}

.privacy-rail {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .38rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--green) 9%, var(--bg-elevated));
  color: var(--muted-strong);
  font-size: .82rem;
  letter-spacing: .015em;
  text-align: center;
}

.privacy-rail svg { color: var(--green); flex: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: var(--content);
  min-height: 72px;
  margin: auto;
  display: grid;
  grid-template-columns: auto minmax(240px, 520px) auto;
  align-items: center;
  gap: 1.25rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 780; letter-spacing: -.025em; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  background: var(--violet);
  box-shadow: 0 5px 12px color-mix(in srgb, var(--violet) 25%, transparent);
  color: white;
  font-size: .78rem;
  letter-spacing: -.04em;
}
.brand small { margin-left: .4rem; color: var(--muted); font-size: .67rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; }
:root[data-theme="dark"] .brand-mark { color: #17231d; }

.spotlight {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 0 .82rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.spotlight:focus-within { border-color: var(--indigo); background: var(--panel); box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 13%, transparent); }
.spotlight svg { width: 18px; color: var(--muted); flex: none; }
.spotlight input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.spotlight input::placeholder { color: var(--muted); }
.keycap { padding: .08rem .4rem; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: .72rem; }

.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.language-menu { position: relative; z-index: 40; }
.language-menu summary { min-width: 46px; min-height: 42px; display: grid; place-items: center; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--text); cursor: pointer; font-size: .78rem; font-weight: 800; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu-list { position: absolute; top: calc(100% + .5rem); right: 0; width: 170px; padding: .4rem; display: grid; gap: .15rem; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-elevated); box-shadow: var(--shadow); }
.language-menu-list a { padding: .55rem .65rem; border-radius: 8px; color: var(--text); font-size: .86rem; }
.language-menu-list a:hover, .language-menu-list a[aria-current="page"] { background: var(--panel); }
.icon-button, .text-button, .primary-button, .secondary-button, .download-button {
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}
.icon-button:hover, .text-button:hover, .primary-button:hover, .secondary-button:hover, .download-button:hover { transform: translateY(-1px); }
.icon-button:focus-visible, .text-button:focus-visible, .primary-button:focus-visible, .secondary-button:focus-visible, .download-button:focus-visible, .tool-card:focus-visible, .dropzone:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--indigo) 42%, transparent);
  outline-offset: 3px;
}
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); color: var(--muted-strong); }
.text-button { min-height: 42px; padding: 0 .95rem; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); color: var(--text); font-weight: 650; }
.text-button.pro { background: color-mix(in srgb, var(--amber) 13%, var(--panel)); border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }

.page-shell { width: var(--content); margin: 0 auto; padding: 3rem 0 6rem; }

.hero-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr);
  gap: 1.1rem;
  margin-bottom: 3.2rem;
}

.hero-copy, .privacy-panel, .tool-card, .workspace-card, .seo-panel, .faq-item, .modal-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-copy::before {
  content: "";
  position: absolute;
  right: 3.5rem;
  top: 2.4rem;
  width: 88px;
  height: 112px;
  border: 1px solid var(--line-strong);
  border-radius: 5px 13px 5px 5px;
  background: color-mix(in srgb, var(--amber) 11%, var(--panel));
  box-shadow: 12px 12px 0 color-mix(in srgb, var(--green) 10%, transparent);
  transform: rotate(5deg);
}
.eyebrow { margin: 0 0 1rem; color: var(--green); font-size: .76rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 1rem; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: clamp(2.7rem, 5.5vw, 5.4rem); line-height: .99; letter-spacing: -.048em; font-weight: 700; }
.gradient-text { color: var(--violet); background: none; }
.hero-lede { max-width: 720px; margin: 0; color: var(--muted-strong); font-size: clamp(1rem, 1.5vw, 1.2rem); }

.privacy-panel { min-height: 350px; padding: 1.7rem; border-radius: var(--radius-xl); display: flex; flex-direction: column; justify-content: space-between; background: color-mix(in srgb, var(--green) 9%, var(--panel)); }
.signal-orbit { position: relative; width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line)); border-radius: 16px 16px 16px 5px; background: color-mix(in srgb, var(--green) 12%, var(--panel)); color: var(--green); }
.signal-orbit::after { display: none; }
.signal-orbit svg { width: 29px; }
.privacy-panel h2 { margin: 1.4rem 0 .55rem; font-size: 1.55rem; letter-spacing: -.035em; }
.privacy-panel p { color: var(--muted); }
.local-proof { display: grid; gap: .65rem; }
.proof-row { display: flex; justify-content: space-between; gap: 1rem; padding-top: .7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.proof-row strong { color: var(--text); font-weight: 650; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin: 0 0 1.25rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3.1rem); letter-spacing: -.05em; line-height: 1.05; }
.section-heading p { max-width: 570px; margin: 0; color: var(--muted); }
.category-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 .8rem; }
.category-filter { min-height: 38px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted-strong); cursor: pointer; font-weight: 650; font-size: .82rem; }
.category-filter:hover { border-color: var(--line-strong); }
.category-filter[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg-elevated); }
.filter-status { min-height: 1.5em; margin-bottom: .4rem; color: var(--muted); font-size: .85rem; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1rem; }
.tool-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}
.tool-card::after { content: ""; position: absolute; inset: 0 0 auto; width: 100%; height: 4px; background: var(--card-accent, var(--indigo)); opacity: .82; z-index: -1; transition: height .2s ease, opacity .2s ease; }
.tool-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(49, 57, 52, .10); }
.tool-card:hover::after { height: 6px; opacity: 1; }
.tool-card.featured { grid-column: span 2; min-height: 280px; }
.tool-card.tall { grid-row: auto; min-height: 230px; }
.tool-card .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tool-icon { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--card-accent, var(--indigo)) 34%, var(--line)); border-radius: 13px 13px 13px 4px; background: color-mix(in srgb, var(--card-accent, var(--indigo)) 11%, var(--panel)); color: var(--card-accent, var(--indigo)); }
.tool-icon svg { width: 25px; height: 25px; }
.tool-meta { display: flex; align-items: center; gap: .42rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.pill { padding: .2rem .48rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-soft); }
.pill.lazy { color: #7a5015; }
:root[data-theme="dark"] .pill.lazy { color: var(--amber); }
.tool-card h3 { margin: 1.65rem 0 .55rem; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.1; letter-spacing: -.028em; }
.tool-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.tool-card .arrow { margin-top: 1.4rem; color: var(--muted-strong); }
.empty-search { grid-column: 1 / -1; min-height: 220px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }
/* Catalogue entries are links to each tool's own page, so they must not look like text links. */
a.tool-card, a.mega-tool { text-decoration: none; }
a.tool-card h3, a.mega-tool span { color: inherit; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .9rem; color: var(--muted); font-size: .79rem; }
.breadcrumb a { color: var(--muted-strong); text-decoration: none; }
.breadcrumb a:hover { color: var(--indigo); text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---- right-to-left languages ----
   The layout is almost entirely flexbox and grid, which mirror themselves once the
   document carries dir="rtl". Only the handful of rules pinned to a physical side need
   flipping, and they are flipped here so the left-to-right languages stay untouched. */
[dir="rtl"] .skip-link { left: auto; right: 1rem; }
[dir="rtl"] .brand small { margin-left: 0; margin-right: .4rem; }
[dir="rtl"] .language-menu-list { right: auto; left: 0; }
[dir="rtl"] .hero-copy::before { right: auto; left: 3.5rem; }
[dir="rtl"] .options-column { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .toggle span::after { left: auto; right: 3px; }
[dir="rtl"] .toggle input:checked + span::after { transform: translateX(-18px); }
[dir="rtl"] .seo-panel ul, [dir="rtl"] .seo-panel ol, [dir="rtl"] .legal-shell ul { padding-left: 0; padding-right: 1.3rem; }
[dir="rtl"] .legal-warning { border-left: 0; border-right: 4px solid var(--red); border-radius: 10px 0 0 10px; }
[dir="rtl"] .toast-stack { right: auto; left: 1rem; }
[dir="rtl"] .tool-card::after { inset: 0 0 0 auto; }
/* Arrows and chevrons point the other way when the text runs right to left. */
[dir="rtl"] .tool-go, [dir="rtl"] .mega-arrow, [dir="rtl"] .related-link span[aria-hidden],
[dir="rtl"] .nav-catalog-link span[aria-hidden] { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .spotlight svg, [dir="rtl"] .breadcrumb span[aria-hidden] { transform: scaleX(-1); }
/* Latin format labels and file extensions must keep their own direction inside RTL text. */
[dir="rtl"] .format-chip, [dir="rtl"] .format-label, [dir="rtl"] .pill { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 820px) { [dir="rtl"] .options-column { border-right: 0; border-top: 1px solid var(--line); } }

/* ---- expanded home page ---- */
.home-section { margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.home-section .section-heading { margin-bottom: 1rem; }
.home-popular { margin-top: .2rem; }

.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.home-step { display: flex; align-items: flex-start; gap: .8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.home-step-index { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--indigo) 12%, var(--panel-soft)); color: var(--indigo); font-size: .82rem; font-weight: 800; }
.home-step strong { display: block; margin-bottom: .28rem; font-size: .95rem; letter-spacing: -.02em; }
.home-step p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.format-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; }
.format-group { padding: 1.05rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.format-group h3 { margin: 0 0 .65rem; color: var(--muted-strong); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.format-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.format-chip { padding: .28rem .55rem; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-soft); color: var(--muted-strong); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: .75rem; }
.why-card { padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.why-card strong { display: block; margin-bottom: .32rem; font-size: .95rem; letter-spacing: -.02em; }
.why-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

@media (max-width: 820px) { .home-steps { grid-template-columns: 1fr; } }

.related-panel { margin-top: 1.5rem; }
.related-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; margin-top: .9rem; }
.related-link { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font-size: .85rem; font-weight: 620; text-decoration: none; }
.related-link:hover { border-color: var(--line-strong); background: var(--panel-soft); }
.related-link span { color: var(--muted); }

.workspace-section { scroll-margin-top: 116px; margin-top: 3.2rem; }
.workspace-card { overflow: hidden; border-radius: var(--radius-xl); }
.workspace-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; padding: clamp(1.5rem, 4vw, 2.6rem); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--amber) 6%, var(--panel)); }
.workspace-head h2 { margin: .3rem 0 .65rem; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.workspace-head p { max-width: 760px; margin: 0; color: var(--muted); }
.workspace-badge { display: flex; align-items: center; gap: .45rem; padding: .5rem .7rem; border: 1px solid color-mix(in srgb, var(--green) 38%, var(--line)); border-radius: 7px; color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--panel)); font-size: .78rem; font-weight: 700; white-space: nowrap; transform: rotate(-1deg); }
.workspace-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); min-height: 460px; }
.drop-column { padding: clamp(1.3rem, 4vw, 2.6rem); }
.options-column { padding: clamp(1.3rem, 3vw, 2rem); border-left: 1px solid var(--line); background: var(--panel-soft); }
.dropzone { min-height: 270px; padding: 2rem; border: 1.5px dashed color-mix(in srgb, var(--green) 55%, var(--line)); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--green) 4%, var(--panel)); display: grid; place-items: center; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--panel)); }
.dropzone.dragging { transform: scale(.995); }
.upload-glyph { width: 64px; height: 64px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 16px 16px 16px 5px; background: color-mix(in srgb, var(--green) 12%, var(--panel)); color: var(--green); }
.upload-glyph svg { width: 30px; }
.dropzone h3 { margin-bottom: .35rem; font-size: 1.25rem; }
.dropzone p { margin: 0; color: var(--muted); }
.dropzone strong { color: var(--text); }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.file-list { display: grid; gap: .6rem; margin-top: 1rem; }
.file-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-soft); }
.file-kind { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--indigo) 10%, var(--panel)); color: var(--indigo); font-size: .67rem; font-weight: 750; text-transform: uppercase; }
.file-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .88rem; }
.file-size { display: block; color: var(--muted); font-size: .75rem; }
.remove-file { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.remove-file:hover { background: color-mix(in srgb, var(--red) 10%, var(--panel)); color: var(--red); }

/* Composer: the typed or drawn input surface for tools that do not start from a file. */
.composer { margin-bottom: 1rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel-soft); }
.composer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.composer-head h3 { margin: 0; font-size: 1.02rem; }
.composer .option-group { margin-bottom: .9rem; }
.composer .option-group:last-of-type { margin-bottom: 0; }
.composer .option-hint { margin-top: .7rem; }
.composer textarea, .composer input[type=text], .composer input[type=tel], .composer input[type=email], .composer input[type=url], .composer select {
  width: 100%; padding: .62rem .75rem; border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel); color: var(--text); font: inherit; font-size: .92rem;
}
.composer textarea { resize: vertical; min-height: 4.5rem; line-height: 1.55; }
.composer-area { min-height: 15rem; font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: .86rem; }
.signature-pad {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; border: 1.5px dashed color-mix(in srgb, var(--green) 55%, var(--line));
  border-radius: var(--radius-lg); background: var(--panel); cursor: crosshair; touch-action: none;
}
.signature-pad:hover { border-color: var(--green); }
.ghost-button { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; }
.ghost-button:hover { border-color: var(--green); color: var(--text); }
.payload-fields[hidden] { display: none; }
/* Transparent results need a backdrop, or a cut-out PNG looks like an empty box. */
.result-thumb[data-alpha="true"], .signature-pad[data-alpha="true"] {
  background-image: linear-gradient(45deg, var(--line) 25%, transparent 25%), linear-gradient(-45deg, var(--line) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--line) 75%), linear-gradient(-45deg, transparent 75%, var(--line) 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.option-group { margin-bottom: 1.25rem; }
.option-group label, .option-title { display: block; margin-bottom: .48rem; color: var(--muted-strong); font-size: .82rem; font-weight: 650; }
.option-group input[type="text"], .option-group input[type="password"], .option-group select, .license-field {
  width: 100%;
  min-height: 44px;
  padding: .62rem .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--panel-solid);
  color: var(--text);
}
.option-group input:focus, .option-group select:focus, .license-field:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo) 13%, transparent); }
.range-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; }
.range-wrap input { accent-color: var(--indigo); }
.range-value { min-width: 42px; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.option-hint { margin: .35rem 0 0; color: var(--muted); font-size: .76rem; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.toggle { width: 44px; height: 24px; position: relative; flex: none; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: .2s; }
.toggle span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: .2s; }
.toggle input:checked + span { background: var(--indigo); }
.toggle input:checked + span::after { transform: translateX(20px); }

.action-stack { display: grid; gap: .65rem; margin-top: 1.5rem; }
.primary-button { min-height: 50px; padding: .7rem 1.05rem; border-radius: 12px; color: #fff; background: var(--indigo); box-shadow: 0 8px 18px color-mix(in srgb, var(--indigo) 22%, transparent); font-weight: 720; }
:root[data-theme="dark"] .primary-button { color: #17231d; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.secondary-button { min-height: 44px; padding: .62rem 1rem; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: transparent; font-weight: 620; }

.progress-wrap { margin-top: 1.25rem; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.status-line { min-height: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; margin-top: .55rem; color: var(--muted); font-size: .79rem; }
.status-line.error { color: var(--red); }
.status-line.success { color: var(--green); }
.results { display: grid; gap: .65rem; margin-top: 1rem; }
.result-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center; padding: .8rem; border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--green) 7%, var(--panel)); }
.result-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.result-row small { color: var(--muted); }
.download-button { padding: .55rem .72rem; border-radius: 10px; background: var(--green); color: #fff; font-size: .8rem; font-weight: 730; }
:root[data-theme="dark"] .download-button { color: #07140f; }
.text-result { max-height: 300px; overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); color: var(--muted-strong); font: .83rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.result-bulk { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center; padding: .8rem; border: 1px dashed color-mix(in srgb, var(--green) 40%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--green) 4%, var(--panel)); }
.result-bulk span { color: var(--muted-strong); font-size: .84rem; font-weight: 640; }
.result-bulk .download-button[disabled] { opacity: .6; cursor: progress; transform: none; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1rem; }
.trust-item { padding: .8rem; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); font-size: .76rem; }
.trust-item strong { display: block; color: var(--text); font-size: .83rem; }

.seo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; margin-top: 3rem; }
.seo-panel { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-xl); }
.dashboard-faq { margin-top: 3rem; }
.seo-panel h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.045em; }
.seo-panel h3 { margin: 2rem 0 .7rem; font-size: 1.25rem; }
.seo-panel p, .seo-panel li { color: var(--muted-strong); }
.seo-panel ul, .seo-panel ol { padding-left: 1.3rem; }
.side-facts { display: grid; align-content: start; gap: 1rem; }
.fact-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel-soft); }
.fact-card span { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.fact-card strong { display: block; margin-top: .3rem; font-size: 1.1rem; }
.faq-list { display: grid; gap: .75rem; margin-top: 1rem; }
.faq-item { border-radius: 16px; box-shadow: none; }
.faq-item summary { padding: 1rem 1.1rem; cursor: pointer; font-weight: 660; }
.faq-item p { padding: 0 1.1rem 1rem; margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.footer-shell { width: var(--content); margin: auto; padding: 2rem 0 3rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.footer-shell p { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; color: var(--muted-strong); font-size: .84rem; }
.footer-links a:hover { color: var(--text); }
.footer-privacy-button { border: 0; background: none; color: var(--muted-strong); cursor: pointer; font: inherit; padding: 0; }
.footer-privacy-button:hover { color: var(--text); }
.footer-languages { display: flex; flex-wrap: wrap; gap: .35rem .7rem; width: 100%; justify-content: flex-end; font-size: .75rem; }
.consent-panel { position: fixed; z-index: 200; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(760px, calc(100vw - 1.5rem)); display: flex; align-items: center; gap: 1.5rem; padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-elevated); box-shadow: 0 18px 70px rgba(0,0,0,.24); }
.consent-panel h2 { margin: 0 0 .25rem; font-size: 1rem; }
.consent-panel p { margin: .2rem 0; color: var(--muted-strong); font-size: .84rem; line-height: 1.5; }
.consent-panel a { color: var(--indigo); font-size: .82rem; text-decoration: underline; }
.consent-actions { display: flex; flex: none; gap: .5rem; }
.consent-actions button { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.consent-actions button:last-child { border-color: var(--indigo); background: var(--indigo); color: white; }
.legal-shell { width: min(820px, calc(100vw - 32px)); margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) 0; }
.legal-shell h1 { margin: .4rem 0 1rem; }
.legal-shell h2 { margin: 2rem 0 .6rem; font-size: 1.35rem; }
.legal-shell p, .legal-shell li { color: var(--muted-strong); line-height: 1.75; }
.legal-shell ul { padding-left: 1.3rem; }
.legal-warning { padding: 1rem; border-left: 4px solid var(--red); background: var(--panel); border-radius: 0 10px 10px 0; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 1rem; display: grid; place-items: center; overflow-y: auto; background: rgba(3,5,10,.72); backdrop-filter: blur(12px); }
.modal-card { width: min(500px, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.6rem; border-radius: var(--radius-lg); }
.modal-top { display: flex; justify-content: space-between; gap: 1rem; }
.modal-top h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.modal-card p { color: var(--muted); }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--panel-soft); color: var(--muted); cursor: pointer; }
.price-lockup { display: flex; align-items: baseline; gap: .35rem; margin: 1rem 0; }
.price-lockup strong { font-size: 2.35rem; letter-spacing: -.05em; }
.price-lockup span { color: var(--muted); }
.license-message { min-height: 1.4rem; margin-top: .65rem; color: var(--muted); font-size: .82rem; }
.license-message.error { color: var(--red); }
.license-message.success { color: var(--green); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 1rem; }

.toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 120; display: grid; gap: .55rem; }
.toast { max-width: 360px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-solid); box-shadow: var(--shadow); color: var(--muted-strong); animation: toast-in .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.dedicated-hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.5fr); gap: 1rem; margin-bottom: 2rem; }
.dedicated-copy { padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--panel); }
.dedicated-copy h1 { font-size: clamp(2.7rem, 5.6vw, 5.3rem); }
.dedicated-copy .hero-lede { margin-bottom: 1.5rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-chip { padding: .42rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-strong); background: var(--panel-soft); font-size: .78rem; }
.dedicated-signal { min-height: 340px; padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius-xl); background: color-mix(in srgb, var(--green) 9%, var(--panel)); display: flex; flex-direction: column; justify-content: space-between; }
.metric-big { font-size: clamp(3.5rem, 8vw, 7rem); line-height: .85; letter-spacing: -.08em; font-weight: 780; color: var(--indigo); }
.dedicated-signal p { margin: 0; color: var(--muted); }

.no-js { margin: 1rem auto; width: var(--content); padding: 1rem; border: 1px solid var(--red); border-radius: 14px; color: var(--text); }

@media (max-width: 1180px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-card.tall { grid-row: auto; min-height: 330px; }
  .workspace-body { grid-template-columns: 1fr; }
  .options-column { border-left: 0; border-top: 1px solid var(--line); }
  .seo-layout { grid-template-columns: 1fr; }
  .side-facts { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 880px) {
  :root { --content: min(100% - 30px, 1480px); }
  .privacy-rail { font-size: .74rem; }
  .nav-shell { grid-template-columns: 1fr auto; min-height: 66px; }
  .spotlight { grid-column: 1 / -1; grid-row: 2; margin-bottom: .8rem; }
  .brand small { display: none; }
  .hero-bento, .dedicated-hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 360px; }
  .privacy-panel { min-height: 300px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card.featured { grid-column: span 2; }
  .section-heading { display: block; }
  .section-heading p { margin-top: .7rem; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-languages { justify-content: flex-start; }
}

@media (max-width: 560px) {
  :root { --content: min(100% - 22px, 1480px); }
  .page-shell { padding-top: 1.25rem; }
  .text-button.pro { width: 42px; padding: 0; font-size: 0; }
  .text-button.pro::after { content: "PRO"; font-size: .7rem; }
  .hero-copy, .dedicated-copy { padding: 1.5rem; border-radius: 22px; }
  .hero-copy { min-height: 370px; }
  .hero-copy::before { display: none; }
  .spotlight .keycap { display: none; }
  h1 { font-size: clamp(2.5rem, 15vw, 4.15rem); }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card, .tool-card.featured { grid-column: auto; min-height: 240px; }
  .workspace-head { grid-template-columns: 1fr; }
  .workspace-badge { width: fit-content; }
  .trust-strip, .side-facts { grid-template-columns: 1fr; }
  .modal-actions { grid-template-columns: 1fr; }
  .consent-panel { display: block; max-height: calc(100dvh - 2rem); overflow-y: auto; }
  .consent-actions { margin-top: .9rem; }
  .consent-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.usage-shell { width: min(1100px, calc(100vw - 32px)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 4rem) 0 5rem; }
.usage-heading { max-width: 750px; margin-bottom: 2rem; }
.usage-heading .brand { margin-bottom: 2.4rem; }
.usage-heading h1 { margin: .3rem 0 .8rem; }
.usage-heading > p:last-child { color: var(--muted-strong); }
.usage-panel { padding: clamp(1.3rem, 3vw, 2rem); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.usage-panel h2 { margin-top: 0; }
.usage-panel form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.usage-panel label { width: 100%; font-weight: 650; }
.usage-panel input, .usage-panel select { min-height: 48px; padding: .7rem .85rem; color: var(--text); background: var(--bg-elevated); border: 1px solid var(--line-strong); border-radius: 10px; }
.usage-panel input { flex: 1 1 280px; }
.usage-panel select { flex: 0 1 220px; }
.usage-panel button { min-height: 48px; }
.usage-section-top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: 2.5rem; }
.usage-section-top h2 { margin: .3rem 0; }
.usage-section-top > p { color: var(--muted); }
.usage-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.2rem 0; }
.usage-metrics > div { display: grid; gap: .2rem; padding: 1.3rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.usage-metrics span { color: var(--muted); }
.usage-metrics strong { font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.15; }
.usage-table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.usage-table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; }
.usage-table-wrap th, .usage-table-wrap td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.usage-table-wrap th { color: var(--muted-strong); font-size: .85rem; }
.usage-table-wrap tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .usage-metrics { grid-template-columns: 1fr; } .usage-section-top { display: block; } .usage-panel form > * { width: 100%; } }

/* Quiet, task-first catalog. The document tools remain the main visual focus. */
:root, :root[data-theme="light"] {
  --bg: #f8faf9;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-soft: #f2f6f4;
  --text: #202b31;
  --muted: #66757b;
  --muted-strong: #4d5f65;
  --line: #dce6e2;
  --line-strong: #a8beb6;
  --indigo: #176d69;
  --violet: #ad6850;
  --cyan: #247985;
  --green: #39785e;
  --amber: #ab793b;
  --shadow: none;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --content: min(1320px, calc(100vw - 56px));
}
:root[data-theme="dark"] {
  --bg: #17211f;
  --bg-elevated: #1e2b28;
  --panel: #22312d;
  --panel-solid: #22312d;
  --panel-soft: #293934;
  --text: #f3f6f3;
  --muted: #a1b5ad;
  --muted-strong: #c5d3cc;
  --line: #40554c;
  --line-strong: #668276;
  --indigo: #8bd4c7;
  --violet: #dca18b;
  --cyan: #8acbd0;
  --green: #9accab;
  --amber: #e6bb75;
  --shadow: none;
}
/* System faces for Arabic, Devanagari and Thai are appended so those scripts render with
   a real font instead of tofu. They are ignored by the Latin and Cyrillic languages. */
body { background: var(--bg); font-family: Inter, "Segoe UI", Arial, "Segoe UI Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", "Leelawadee UI", "Noto Sans Thai", Thonburi, sans-serif; }
/* Tight negative tracking is tuned for Latin headings and squashes these scripts. */
html[lang="ar"] h1, html[lang="hi"] h1, html[lang="th"] h1,
html[lang="ar"] h2, html[lang="hi"] h2, html[lang="th"] h2,
html[lang="ar"] .tool-card h3, html[lang="hi"] .tool-card h3, html[lang="th"] .tool-card h3 { letter-spacing: normal; }
html[lang="hi"] body, html[lang="th"] body { line-height: 1.65; }
html[lang="th"] .tool-card h3, html[lang="hi"] .tool-card h3 { line-height: 1.45; }
.ambient-grid { display: none; }
.privacy-rail { min-height: 29px; padding: .25rem 1rem; background: color-mix(in srgb, var(--green) 8%, var(--bg)); font-size: .75rem; }
.site-header { background: var(--bg-elevated); backdrop-filter: none; }
.nav-shell { position: relative; min-height: 66px; display: grid; grid-template-columns: auto minmax(330px, 1fr) minmax(180px, 250px) auto; gap: 1.1rem; }
.brand { font-size: 1.14rem; letter-spacing: -.035em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--indigo); box-shadow: none; font-size: .68rem; letter-spacing: -.02em; }
:root[data-theme="dark"] .brand-mark { color: #10221c; }
.brand small { display: none; }
.spotlight { height: 39px; border-radius: 8px; background: var(--panel-soft); }
.keycap { border: 0; }
.nav-actions { gap: .4rem; }
.icon-button, .language-menu summary { width: auto; min-width: 39px; height: 39px; min-height: 39px; border-radius: 8px; background: var(--panel); }
.tool-navigation { min-width: 0; display: flex; align-items: center; gap: .3rem; }
.nav-menu { position: static; }
.nav-menu summary { min-height: 39px; display: flex; align-items: center; gap: .45rem; padding: 0 .75rem; border-radius: 8px; color: var(--text); cursor: pointer; font-size: .88rem; font-weight: 630; list-style: none; white-space: nowrap; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { font-size: 1rem; line-height: 1; color: var(--muted); }
.nav-menu[open] summary, .nav-menu summary:hover { background: var(--panel-soft); color: var(--indigo); }
.nav-menu summary:focus-visible, .mega-tool:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.mega-panel { position: absolute; z-index: 52; top: calc(100% + 1px); left: 0; right: 0; max-height: min(72vh, 680px); overflow-y: auto; padding: 1.4rem; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--bg-elevated); box-shadow: 0 16px 30px rgba(21, 39, 34, .12); }
.mega-group + .mega-group { margin-top: 1.35rem; }
.mega-group h3 { margin: 0 0 .7rem; color: var(--muted-strong); font-size: .83rem; font-weight: 700; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.mega-tool { min-height: 61px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: .6rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text); text-align: left; font-size: .86rem; font-weight: 620; cursor: pointer; }
.mega-tool:hover { border-color: var(--line-strong); background: var(--panel-soft); }
.mega-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: color-mix(in srgb, var(--indigo) 10%, var(--panel)); color: var(--indigo); }
.mega-icon svg { width: 18px; height: 18px; }
.mega-arrow { color: var(--muted); }
.page-shell { padding-top: 1.2rem; }
.hero-bento { display: block; margin-bottom: 1.5rem; }
.hero-copy { min-height: auto; padding: 1rem 0 1.2rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hero-copy::before { display: none; }
.eyebrow { margin-bottom: .45rem; color: var(--indigo); font-size: .72rem; letter-spacing: .07em; }
h1 { max-width: 960px; font-family: inherit; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.1; font-weight: 710; letter-spacing: -.055em; }
.hero-copy h1 { margin-bottom: .55rem; }
.gradient-text { color: inherit; }
.hero-lede { max-width: 850px; font-size: 1rem; }
.privacy-panel { min-height: 0; display: flex; flex-direction: row; align-items: center; gap: .8rem; padding: .65rem .9rem; border-radius: 9px; background: color-mix(in srgb, var(--green) 6%, var(--panel)); box-shadow: none; }
.privacy-panel > div:first-child { display: flex; align-items: center; gap: .7rem; }
.signal-orbit { width: 29px; height: 29px; flex: none; border: 0; border-radius: 7px; background: transparent; }
.signal-orbit svg { width: 21px; }
.privacy-panel h2 { margin: 0; font-size: .85rem; letter-spacing: 0; white-space: nowrap; }
.privacy-panel p { margin: 0; font-size: .81rem; }
.local-proof { display: none; }
.section-heading { margin-bottom: .8rem; }
.section-heading h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); letter-spacing: -.04em; }
.section-heading p { font-size: .87rem; }
.category-filters { margin-bottom: .65rem; }
.category-filter { min-height: 34px; padding: .33rem .7rem; border-radius: 7px; font-size: .78rem; }
.filter-status { min-height: 0; }
.tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.tool-card, .tool-card.featured, .tool-card.tall { grid-column: auto; grid-row: auto; min-height: 146px; padding: .85rem 1rem; border-radius: 10px; box-shadow: none; }
.tool-card::after { inset: 0 auto 0 0; width: 3px; height: 100%; opacity: 0; }
.tool-card:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: none; }
.tool-card:hover::after { width: 3px; height: 100%; opacity: 1; }
.tool-icon { width: 34px; height: 34px; border: 0; border-radius: 7px; }
.tool-icon svg { width: 20px; height: 20px; }
.tool-meta { font-size: .64rem; letter-spacing: .03em; }
.pill { padding: .12rem .35rem; border: 0; background: var(--panel-soft); }
.tool-card h3 { margin: .72rem 0 .27rem; font-size: 1rem; line-height: 1.2; letter-spacing: -.025em; }
.tool-card p { font-size: .78rem; line-height: 1.4; }
.tool-card .arrow { display: none; }
.workspace-section { margin-top: 2rem; }
.workspace-card, .seo-panel, .faq-item, .modal-card { box-shadow: none; }
.workspace-head { background: var(--panel); }
.workspace-head h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.workspace-badge { transform: none; }
.primary-button { border-radius: 9px; box-shadow: none; }
.dashboard-faq { margin-top: 2rem; }
@media (max-width: 1120px) {
  .nav-shell { grid-template-columns: auto 1fr auto; }
  .spotlight { display: none; }
  .mega-grid, .tool-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  :root { --content: min(100% - 32px, 1320px); }
  .nav-shell { grid-template-columns: 1fr auto; gap: .35rem; padding: .5rem 0; }
  .nav-shell > .brand { grid-column: 1; grid-row: 1; }
  .nav-actions { grid-column: 2; grid-row: 1; }
  .tool-navigation { grid-column: 1 / -1; grid-row: 2; }
  .spotlight { display: flex; grid-column: 1 / -1; grid-row: 3; margin: .25rem 0 0; }
  .mega-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .privacy-panel > div:first-child { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  :root { --content: min(100% - 24px, 1320px); }
  .page-shell { padding-top: .8rem; }
  .tool-navigation { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .15rem; }
  .nav-menu summary { min-height: 34px; padding: 0 .48rem; font-size: .78rem; }
  .mega-panel { padding: .8rem; max-height: 65vh; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-tool { min-height: 52px; }
  .hero-copy { padding: .8rem 0; }
  .hero-copy h1 { font-size: clamp(1.9rem, 8vw, 2.65rem); }
  .privacy-panel { align-items: flex-start; }
  .privacy-panel h2 { white-space: normal; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card, .tool-card.featured, .tool-card.tall { min-height: 124px; }
  .section-heading p { display: none; }
}

/* Shared, original file-format icons: folded files for formats, solid tiles for actions. */
.tool-icon, .mega-icon, .workspace-tool-icon { flex: none; display: grid; place-items: center; border: 0; box-shadow: none; }
.tool-icon[data-icon-kind="file"], .mega-icon[data-icon-kind="file"], .workspace-tool-icon[data-icon-kind="file"] { width: 36px; height: 40px; border-radius: 0; background: transparent; color: inherit; }
.tool-icon[data-icon-kind="file"] .format-file-svg, .mega-icon[data-icon-kind="file"] .format-file-svg, .workspace-tool-icon[data-icon-kind="file"] .format-file-svg { width: 36px; height: 40px; display: block; }
.tool-icon[data-icon-kind="action"], .mega-icon[data-icon-kind="action"], .workspace-tool-icon[data-icon-kind="action"] { width: 36px; height: 36px; border-radius: 8px; background: var(--icon-color, #176d69); color: #fff; }
.tool-icon[data-icon-kind="action"] svg, .mega-icon[data-icon-kind="action"] svg, .workspace-tool-icon[data-icon-kind="action"] svg { width: 21px; height: 21px; }
.mega-tool { grid-template-columns: 36px minmax(0, 1fr) auto; }
.mega-icon[data-icon-kind="file"] { width: 32px; height: 36px; }
.mega-icon[data-icon-kind="file"] .format-file-svg { width: 32px; height: 36px; }
.mega-icon[data-icon-kind="action"] { width: 32px; height: 32px; border-radius: 7px; }
.mega-icon[data-icon-kind="action"] svg { width: 19px; height: 19px; }
.workspace-heading { display: flex; align-items: flex-start; gap: .9rem; min-width: 0; }
.workspace-heading > div { min-width: 0; }
.workspace-tool-icon { margin-top: .3rem; }
.file-kind { width: 36px; height: 40px; border-radius: 0; background: transparent; color: inherit; }
.file-kind .format-file-svg { width: 34px; height: 38px; display: block; }
.result-file { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.result-file > span:last-child { min-width: 0; }
.upload-glyph { width: 50px; height: 50px; border-radius: 10px; background: #008f83; color: #fff; }
.upload-glyph svg { width: 25px; }
@media (max-width: 560px) { .workspace-heading { gap: .65rem; } .workspace-tool-icon { margin-top: .1rem; } }
