:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #fafafa;
  --surface-hover: #f2f2f3;
  --ink: #17171a;
  --muted: #505247;
  --rule: #bab8ab;
  --rule-strong: #17171a;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, p, ul {
  margin: 0;
}

a {
  color: inherit;
}

button, input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

/* Homepage Sticky Tray: Retro 3D Controls Left & Right, Big GoodChecl Center, Subbar Below */
.home-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  direction: ltr;
}

.home-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  height: 58px;
  min-height: 58px;
}

.home-topbar .drawer-trigger {
  justify-self: start;
}

.home-topbar .lang-menu {
  justify-self: end;
}

.home-brand-wrap {
  margin: 0;
  justify-self: center;
  line-height: 1;
}

.home-brand {
  display: inline-block;
  font-size: clamp(1.9rem, 3.1vw, 2.45rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.home-subbar {
  border-top: 1px solid #ecebe4;
  background: var(--paper);
  padding: 6px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Classic 3D Beveled Controls (ONLY Strip-3 Drawer Trigger & Language Switcher) */
.drawer-trigger {
  appearance: none;
  width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dad7cf;
  border-top: 1px solid #9d9b92;
  border-left: 1px solid #9d9b92;
  border-right: 1px solid #2b2b2e;
  border-bottom: 1px solid #2b2b2e;
  box-shadow:
    inset 1.5px 1.5px 0 #ffffff,
    inset -1.5px -1.5px 0 #828076;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.drawer-trigger svg {
  width: 15px;
  height: 15px;
}

.drawer-trigger:hover {
  background: #e1ded7;
}

.drawer-trigger:active,
.drawer-trigger[aria-expanded="true"] {
  background: #cecbc3;
  border-top-color: #2b2b2e;
  border-left-color: #2b2b2e;
  border-right-color: #9d9b92;
  border-bottom-color: #9d9b92;
  box-shadow:
    inset 1.5px 1.5px 0 #7b7970,
    inset -1.5px -1.5px 0 #ffffff;
  transform: translate(1px, 1px);
}

.lang-menu {
  position: relative;
  z-index: 50;
}

.lang-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #dad7cf;
  border-top: 1px solid #9d9b92;
  border-left: 1px solid #9d9b92;
  border-right: 1px solid #2b2b2e;
  border-bottom: 1px solid #2b2b2e;
  box-shadow:
    inset 1.5px 1.5px 0 #ffffff,
    inset -1.5px -1.5px 0 #828076;
  padding: 0 6px;
  min-width: 46px;
  height: 28px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.lang-trigger:hover {
  background: #e1ded7;
}

.lang-trigger:active,
.lang-trigger[aria-expanded="true"] {
  background: #cecbc3;
  border-top-color: #2b2b2e;
  border-left-color: #2b2b2e;
  border-right-color: #9d9b92;
  border-bottom-color: #9d9b92;
  box-shadow:
    inset 1.5px 1.5px 0 #7b7970,
    inset -1.5px -1.5px 0 #ffffff;
  transform: translate(1px, 1px);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-flag svg {
  display: block;
  width: 15px;
  height: 11px;
  box-shadow: 0 0 0 1px rgba(23, 23, 26, 0.16);
}

.lang-list .lang-flag svg {
  width: 18px;
  height: 13px;
}

.lang-caret {
  font-size: 0.7rem;
  color: var(--muted);
  margin-inline-start: 2px;
}

.lang-list {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 196px;
  max-height: 390px;
  overflow-y: auto;
  list-style: none;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 28px rgba(23, 23, 26, 0.08);
}

.lang-list[hidden] {
  display: none;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover,
.lang-option[aria-selected="true"] {
  background: var(--surface-hover);
}

.lang-option[aria-selected="true"] {
  font-weight: 600;
}

/* Proportional Centered Hero: Logo -> Caption */
.hero {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--rule-strong);
  padding-block: clamp(26px, 4.2vh, 42px) clamp(32px, 5vh, 48px);
  background: var(--paper);
}

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 0;
}

.hero-art-wrap {
  width: min(380px, 82%);
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}

.hero-art {
  display: block;
  width: clamp(176px, 19vw, 248px);
  height: auto;
  transform: translateX(4%);
  user-select: none;
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-sub {
  font-size: clamp(0.94rem, 1.15vw, 1.04rem);
  color: var(--muted);
  line-height: 1.58;
  max-width: 640px;
  text-wrap: balance;
}

.hero-suites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.hero-suite-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.hero-suite-link:hover {
  background: var(--surface-hover);
}

.hero-suite-link.is-primary {
  background: var(--ink);
  color: var(--paper);
}

.hero-suite-link.is-primary:hover {
  opacity: 0.88;
}

.hero-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3.1vw, 2.48rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-search {
  position: relative;
  width: min(500px, 100%);
  margin-top: 18px;
  text-align: start;
}

.hero-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-search-icon {
  position: absolute;
  inset-inline-start: 14px;
  color: var(--muted);
  pointer-events: none;
}

.hero-search-input {
  width: 100%;
  height: 44px;
  padding-block: 0;
  padding-inline: 40px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 0;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.hero-search-input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
}

.hero-search-results {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline: 0;
  z-index: 30;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 12px 30px rgba(23, 23, 26, 0.1);
  max-height: 360px;
  overflow-y: auto;
}

.hero-search-results[hidden] {
  display: none;
}

.hero-search-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #ecebe4;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.hero-search-item:last-child {
  border-bottom: 0;
}

.hero-search-item:hover,
.hero-search-item.is-selected {
  background: var(--surface-hover);
}

.hero-search-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hero-search-item-icon .tool-icon {
  width: 28px;
  height: 28px;
}

.hero-search-item-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-search-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-search-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-search-badge {
  flex-shrink: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hero-search-item-desc {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search-empty {
  padding: 14px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

/* Two-Suite Homepage Structure (01 Converter & Tools / 02 Photo & Image Editor) */
.catalog {
  padding-block: 0;
}

.suite-section {
  padding-block: clamp(44px, 6.2vh, 66px) clamp(52px, 7vh, 76px);
  background: var(--paper);
  scroll-margin-top: 108px;
}

.suite-section + .suite-section {
  border-top: 1px solid var(--rule-strong);
}

.suite-section.is-editor-suite {
  background: var(--paper);
}

.suite-section.is-editor-suite .tool-card {
  background: var(--paper);
}

.suite-section.is-editor-suite .tool-card:hover {
  background: var(--surface-hover);
}

.suite-head {
  margin-bottom: 30px;
}

.suite-head-top {
  margin-bottom: 10px;
}

.suite-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: var(--ink);
  color: var(--paper);
}

.suite-title {
  font-size: clamp(1.38rem, 2.2vw, 1.78rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.suite-desc {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.suite-roadmap {
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px dashed var(--rule);
  background: var(--paper);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.studio-card + .cat-group {
  margin-top: 36px;
}

.cat-group + .cat-group {
  margin-top: 38px;
}

.cat-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e4e7;
  margin-bottom: 18px;
}

.cat-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-grid.is-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-grid.is-cols-4 .tool-card {
  padding: 18px 18px;
}

@media (max-width: 1040px) {
  .tool-grid.is-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tool-grid,
  .tool-grid.is-cols-4 {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  min-height: 132px;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.tool-card[hidden] {
  display: none;
}

.tool-card:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-icon {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.studio-card .tool-icon {
  width: 72px;
  height: 72px;
}

.tool-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ui-arrow,
.badge-arrow,
.ui-arrow-inline {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.ui-arrow-inline {
  margin: 0 2px;
  opacity: 0.75;
}

.tool-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.tool-desc {
  margin-top: 7px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Unified Photo Editor Overview Card (Section I — no canvas UI generated yet) */
.studio-card {
  width: 100%;
  display: block;
  padding: 28px 30px;
  min-height: auto;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.studio-card-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.studio-card-copy {
  flex: 1;
  min-width: 0;
}

.studio-card-copy .tool-desc {
  margin-top: 5px;
}

@media (max-width: 520px) {
  .studio-card-head {
    gap: 14px;
    align-items: flex-start;
  }
  .studio-card .tool-icon {
    width: 48px;
    height: 48px;
  }
}

.studio-card-title {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(1.22rem, 1.9vw, 1.48rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
}

.studio-version-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.studio-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-module-chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 6px 11px;
}

.studio-card-foot {
  margin-top: 4px;
}

.studio-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  font-size: 0.84rem;
  font-weight: 700;
}

.studio-routes-wrap {
  margin-top: 28px;
}

.studio-routes-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

.studio-routes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.studio-route-card {
  min-height: 130px;
  padding: 20px 22px;
  gap: 14px;
}

.studio-route-card .tool-name {
  font-size: 0.98rem;
}

.studio-route-card .tool-desc {
  font-size: 0.83rem;
}

@media (max-width: 1040px) {
  .studio-routes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .studio-card {
    padding: 22px 20px;
  }
  .studio-routes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

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

/* Editorial Trust Strip */
.trust {
  border-top: 1px solid var(--rule-strong);
  padding-block: 52px;
  background: var(--paper);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.trust-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.trust-item p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--rule);
  padding-block: 28px;
  background: var(--paper);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Preview Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 26, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(520px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.modal-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.modal-title {
  margin-top: 4px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.modal-close {
  border: 1px solid var(--rule);
  background: var(--paper);
  min-width: 36px;
  min-height: 36px;
  cursor: pointer;
  font-size: 1rem;
}

.modal-close:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.modal-body {
  padding-top: 16px;
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-drop {
  border: 1px dashed var(--ink);
  background: var(--surface);
  padding: 24px 16px;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
}

.modal-drop span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.modal-live-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 9px 15px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.modal-live-link[hidden] {
  display: none;
}

.modal-live-link:hover {
  opacity: 0.88;
}

.tool-card-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tool-badge-live {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Slide-out Drawer (iLovePDF Mobile Style in GoodChecl Monochrome) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 26, 0.36);
  z-index: 60;
  display: flex;
  justify-content: flex-start;
  direction: ltr;
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer {
  width: min(350px, 88vw);
  height: 100dvh;
  background: var(--paper);
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 12px 0 32px rgba(23, 23, 26, 0.12);
}

.drawer-backdrop.is-open .drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}

.drawer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  background: var(--paper);
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.drawer-search-wrap {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  flex-shrink: 0;
}

html[dir="rtl"] .drawer-search-wrap {
  direction: rtl;
}

.drawer-search-input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--ink);
}

.drawer-search-input::placeholder {
  color: var(--muted);
}

.drawer-search-input:focus {
  border-color: var(--ink);
  outline: none;
}

.drawer-empty {
  padding: 28px 12px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 28px;
  direction: inherit;
}

html[dir="rtl"] .drawer-body {
  direction: rtl;
}

.drawer-suite + .drawer-suite {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-strong);
}

.drawer-suite-label {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border-inline-start: 3px solid var(--ink);
  padding: 4px 8px;
  margin-bottom: 10px;
}

.drawer-group + .drawer-group {
  margin-top: 16px;
}

.drawer-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px 8px;
}

.drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.drawer-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  min-height: 42px;
  border: 1px solid transparent;
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.drawer-item:hover {
  background: var(--surface-hover);
}

.drawer-item.is-active {
  background: var(--surface-hover);
  border-color: var(--ink);
  font-weight: 700;
}

.drawer-item-icon {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-item-icon .tool-icon {
  width: 24px;
  height: 24px;
}

.drawer-item-name {
  flex: 1;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.drawer-item.is-active .drawer-item-name {
  font-weight: 700;
}

.drawer-live {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--paper);
  flex-shrink: 0;
}

/* Tool Page Header & Category Shortcuts */
.tool-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 58px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding-inline: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.tool-topbar-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-topbar .tool-shortcuts {
  justify-self: center;
}

.tool-topbar .lang-menu {
  justify-self: end;
}

.tool-brand {
  font-size: clamp(1.55rem, 2.3vw, 1.9rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.tool-shortcuts {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shortcut-sep {
  width: 1px;
  height: 18px;
  background: var(--rule);
  margin-inline: 8px;
  flex-shrink: 0;
}

.shortcut-item {
  position: relative;
}

.shortcut-item.is-mega-item {
  position: static;
}

.shortcut-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  min-height: 34px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.shortcut-btn:hover,
.shortcut-btn.is-direct.is-active,
.shortcut-item.is-open .shortcut-btn {
  border-color: var(--rule);
  background: var(--surface);
}

.shortcut-caret {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.shortcut-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 265px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 12px 28px rgba(23, 23, 26, 0.1);
  display: grid;
  gap: 3px;
  z-index: 45;
}

.shortcut-menu[hidden] {
  display: none;
}

html[dir="rtl"] .shortcut-menu {
  direction: rtl;
}

.shortcut-menu-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 4px 8px 6px;
}

.shortcut-menu-section + .shortcut-menu-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.shortcut-menu-grid {
  display: grid;
  gap: 3px;
}

.shortcut-menu.is-mega {
  left: 50%;
  transform: translateX(-50%);
  padding: 16px;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 14px 32px rgba(23, 23, 26, 0.1);
}

.shortcut-menu.is-mega.is-cols-2 {
  width: min(580px, calc(100vw - 32px));
}

.shortcut-menu.is-mega.is-cols-3 {
  width: min(790px, calc(100vw - 32px));
}

.shortcut-mega-cols {
  display: grid;
  gap: 18px;
  align-items: start;
}

.shortcut-mega-cols.is-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shortcut-mega-cols.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shortcut-mega-col {
  min-width: 0;
}

.shortcut-mega-col + .shortcut-mega-col {
  border-inline-start: 1px solid #e5e5e7;
  padding-inline-start: 18px;
}

.shortcut-mega-list {
  display: grid;
  gap: 3px;
}

.shortcut-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid transparent;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.shortcut-link:hover {
  background: var(--surface-hover);
}

.shortcut-link.is-active {
  background: var(--surface-hover);
  border-color: var(--ink);
  font-weight: 700;
}

.shortcut-link.is-featured {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.shortcut-link.is-featured .drawer-item-icon,
.shortcut-link.is-featured .drawer-item-icon .tool-icon {
  width: 58px;
  height: 58px;
}

.shortcut-link.is-featured .shortcut-featured-desc {
  color: #3d3e37;
}

.shortcut-featured-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shortcut-featured-copy .drawer-item-name {
  font-weight: 700;
}

.shortcut-featured-desc {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.38;
}

.shortcut-item:last-child .shortcut-menu:not(.is-wide):not(.is-mega) {
  left: auto;
  right: 0;
}

@media (max-width: 1120px) {
  .tool-topbar .tool-shortcuts {
    display: none;
  }
}

@media (max-width: 980px) {
  .tool-shortcuts,
  .home-subbar {
    display: none;
  }
  .home-topbar,
  .tool-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: 52px;
    padding: 8px 16px;
  }
  .tool-topbar-left {
    display: contents;
  }
  .home-topbar .drawer-trigger,
  .tool-topbar .drawer-trigger {
    justify-self: start;
  }
  .home-topbar .lang-menu,
  .tool-topbar .lang-menu {
    justify-self: end;
  }
  .home-brand,
  .tool-brand {
    justify-self: center;
    font-size: clamp(1.65rem, 5.8vw, 1.95rem);
    letter-spacing: -0.055em;
  }
  .tool-app {
    min-height: calc(100dvh - 52px);
  }
}

@media (max-width: 560px) {
  .home-topbar,
  .tool-topbar {
    padding: 8px 16px;
  }
  .home-brand,
  .tool-brand {
    font-size: 1.68rem;
  }
  .hero {
    padding-block: 24px 28px;
  }
  .hero-art-wrap {
    margin-bottom: 18px;
  }
}

/* Tool Workspace: iLovePDF Split-Screen in GoodChecl Monochrome */
.tool-app {
  min-height: calc(100dvh - 58px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.tool-app[hidden],
.drop-stage[hidden],
.workspace[hidden],
.result-stage[hidden],
.tool-below[hidden] {
  display: none;
}

.drop-stage {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(32px, 6vh, 58px) 16px clamp(72px, 9vh, 96px);
  text-align: center;
}

.drop-head {
  max-width: 620px;
  margin-bottom: 22px;
}

.drop-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.drop-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.drop-sub {
  margin-top: 8px;
  max-width: 48ch;
  margin-inline: auto;
  font-size: 0.96rem;
  color: var(--muted);
}

.drop-box {
  width: min(600px, 100%);
  padding: clamp(32px, 6vh, 54px) 24px;
  background: var(--paper);
  border: 1.5px dashed var(--rule-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.drop-box.is-dragover {
  background: var(--surface-hover);
  border-style: solid;
}

/* Shared Classic 3D Beveled Tactile Buttons (matches topbar trigger & switcher) */
.btn-primary,
.btn-convert,
.stage-add-btn,
.studio-cta,
.shortcut-link.is-featured {
  appearance: none;
  background: #dad7cf;
  border-top: 1px solid #9d9b92;
  border-left: 1px solid #9d9b92;
  border-right: 1px solid #2b2b2e;
  border-bottom: 1px solid #2b2b2e;
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #828076;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.btn-primary:hover,
.btn-convert:hover,
.stage-add-btn:hover,
.studio-cta:hover,
.shortcut-link.is-featured:hover {
  background: #e1ded7;
}

.btn-primary:active,
.btn-convert:active:not(:disabled),
.stage-add-btn:active,
.studio-cta:active,
.shortcut-link.is-featured:active {
  background: #cecbc3;
  border-top-color: #2b2b2e;
  border-left-color: #2b2b2e;
  border-right-color: #9d9b92;
  border-bottom-color: #9d9b92;
  box-shadow:
    inset 2px 2px 0 #7b7970,
    inset -2px -2px 0 #ffffff;
  transform: translate(1px, 1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
}

.btn-secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  min-height: 40px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--surface-hover);
}

.drop-hint {
  font-size: 0.84rem;
  color: var(--muted);
}

.drop-sample-btn {
  appearance: none;
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.drop-sample-btn:hover {
  color: var(--ink);
}

/* Active Split Screen */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  min-height: calc(100dvh - 58px);
}

.stage-pane {
  position: relative;
  padding: 54px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stage-add-wrap {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.stage-add-tip {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  white-space: nowrap;
}

.stage-add-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stage-add-count {
  position: absolute;
  top: -7px;
  inset-inline-start: -7px;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px 20px;
  max-width: 920px;
  width: 100%;
}

.file-card {
  position: relative;
  width: 192px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 12px 10px;
  box-shadow: 0 4px 16px rgba(23, 23, 26, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: grab;
  transition: border-color 0.14s ease, transform 0.14s ease;
}

.file-card:hover {
  border-color: var(--ink);
}

.file-card.is-dragging {
  opacity: 0.55;
}

.file-card.is-drag-target {
  border: 2px dashed var(--ink);
}

.file-meta-pill {
  position: absolute;
  top: -27px;
  left: 50%;
  transform: translateX(-50%);
  background: #42443e;
  color: var(--paper);
  font-size: 0.69rem;
  font-weight: 600;
  padding: 3px 8px;
  white-space: nowrap;
}

.file-meta-pill::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #42443e;
}

.file-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  gap: 4px;
}

.file-act-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.file-act-btn:hover {
  border-color: var(--ink);
  background: var(--surface-hover);
}

.file-sheet {
  width: 146px;
  height: 186px;
  background: var(--paper);
  border: 1px solid #e5e4dc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width 0.16s ease, height 0.16s ease, padding 0.16s ease;
}

.file-sheet[data-orientation="landscape"] {
  width: 164px;
  height: 122px;
}

.file-sheet[data-margin="none"] {
  padding: 2px;
}

.file-sheet[data-margin="small"] {
  padding: 10px;
}

.file-sheet[data-margin="big"] {
  padding: 18px;
}

.file-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.18s ease;
}

.file-name {
  width: 100%;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Right Sidebar Options */
.opts-pane {
  background: var(--paper);
  border-inline-start: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.opts-scroll {
  padding: 18px 22px 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.opts-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-inline: -22px;
  padding-inline: 22px;
}

.opt-field {
  display: grid;
  gap: 8px;
}

.opt-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.seg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.seg-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 6px;
  min-height: 70px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.seg-btn:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.seg-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--surface-hover);
  box-shadow: inset 0 0 0 1px var(--ink);
}

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

.seg-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.5;
}

.opts-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
}

.opts-select:focus {
  border-color: var(--ink);
  outline: none;
}

.opts-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ink);
  cursor: pointer;
  padding-top: 2px;
}

.opts-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
  cursor: pointer;
}

.opts-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.btn-convert {
  width: 100%;
  min-height: 52px;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-convert:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Result Screen */
.result-stage {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: clamp(32px, 6vh, 58px) 16px clamp(72px, 9vh, 96px);
}

.result-card {
  width: min(580px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 32px 26px;
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.result-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.result-check-svg {
  display: block;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.result-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.result-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  width: 100%;
}

.result-card .btn-primary {
  padding: 13px 20px;
  min-height: 48px;
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .opts-pane {
    border-inline-start: 0;
    border-top: 1px solid var(--rule);
  }
  .opts-foot {
    position: sticky;
    bottom: 0;
  }
}

/* Tool Page Below-the-Fold Ad Preview (CLS-Locked) & SEO Guide */
.tool-below {
  flex: 1;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 44px 20px 64px;
}

.ad-slot-shell {
  width: min(760px, 100%);
  margin: 0 auto 36px;
}

.ad-slot-shell[hidden] {
  display: none;
}

.ad-slot-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
  text-align: center;
}

#ad-slot-tool-bottom {
  min-height: 98px;
  width: 100%;
  border: 1px dashed var(--rule);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 14px 16px;
  text-align: center;
}

#ad-slot-tool-bottom strong {
  font-size: 0.78rem;
  color: var(--ink);
}

#ad-slot-tool-bottom span {
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  #ad-slot-tool-bottom {
    min-height: 110px;
  }
}

.seo-panel {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.seo-block h2,
.seo-faq h2 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.seo-steps {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.5;
}

.seo-steps strong {
  color: var(--ink);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.seo-table th,
.seo-table td {
  text-align: start;
  padding: 7px 10px;
  border: 1px solid var(--rule);
}

.seo-table th {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
}

.seo-table td {
  color: var(--muted);
}

.seo-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.seo-faq-grid h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.seo-faq-grid p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .seo-grid,
  .seo-faq-grid {
    grid-template-columns: 1fr;
  }
}

html[dir="rtl"] .hero-eyebrow,
html[dir="rtl"] .ad-slot-label,
html[dir="rtl"] .tool-badge,
html[dir="rtl"] .hero-search-badge,
html[dir="rtl"] .modal-tag,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .suite-kicker,
html[dir="rtl"] .suite-title,
html[dir="rtl"] .studio-card-title,
html[dir="rtl"] .cat-title,
html[dir="rtl"] .tool-name,
html[dir="rtl"] .trust-item h3,
html[dir="rtl"] .modal-title,
html[dir="rtl"] .drop-kicker,
html[dir="rtl"] .drop-title,
html[dir="rtl"] .drawer-suite-label,
html[dir="rtl"] .drawer-cat,
html[dir="rtl"] .result-title {
  letter-spacing: 0;
}

html[dir="rtl"] .studio-cta .ui-arrow,
html[dir="rtl"] .btn-convert .ui-arrow,
html[dir="rtl"] .btn-back .ui-arrow {
  transform: scaleX(-1);
}

/* Mobile Responsive */
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .hero-stage {
    margin-top: 4px;
  }
  .hero-art {
    width: clamp(175px, 52vw, 235px);
  }
  .trust {
    padding-block: 38px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 460px) {
  .drawer {
    width: 100%;
    border-right: 0;
  }
  .stage-add-tip {
    display: none;
  }
  .file-card {
    width: min(192px, calc(50% - 10px));
  }
  .file-sheet {
    width: 120px;
    height: 152px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tool-card, .lang-trigger, .drawer, .hero-suite-link {
    transition: none;
  }
}

/* Converter Engine Workspace Extensions (Pure Monochrome + Alpha Checkerboard) */
.alpha-check {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #ededf0 25%, transparent 25%),
    linear-gradient(-45deg, #ededf0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ededf0 75%),
    linear-gradient(-45deg, transparent 75%, #ededf0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.opts-fields {
  display: grid;
  gap: 18px;
}

.opt-field.is-disabled {
  opacity: 0.48;
}

.opt-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.opt-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.opt-range {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
}

.opt-help {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.seg-btn.seg-compact {
  min-height: 44px;
  padding: 8px 6px;
  gap: 2px;
}

.seg-btn.seg-compact small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.size-pill {
  appearance: none;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.size-pill:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.size-pill[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.tool-notice {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  max-width: 560px;
}

.tool-notice[hidden] {
  display: none;
}

.progress-wrap {
  margin-bottom: 12px;
  display: grid;
  gap: 6px;
}

.progress-wrap[hidden] {
  display: none;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
}

.progress-cancel {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.progress-cancel:hover {
  border-color: var(--ink);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #e4e4e7;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.16s ease;
}

/* Favicon Preview Bar */
.favicon-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 42px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.favicon-preview-bar[hidden] {
  display: none;
}

.favicon-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.favicon-tab-mock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 600;
}

.favicon-size-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--muted);
}

.favicon-box-16,
.favicon-box-32,
.favicon-box-48 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d4d8;
  overflow: hidden;
}

.favicon-box-16 { width: 16px; height: 16px; }
.favicon-box-32 { width: 32px; height: 32px; }
.favicon-box-48 { width: 48px; height: 48px; }

.favicon-box-16 img,
.favicon-box-32 img,
.favicon-box-48 img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Result List & Savings Badges */
.savings-pill,
.codec-pill {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
}

.savings-pill.is-neutral,
.codec-pill {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.result-list {
  width: min(760px, 100%);
  display: grid;
  gap: 8px;
}

.result-list[hidden] {
  display: none;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.result-row-main {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: start;
}

.result-row-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-row-meta {
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.result-row-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.result-dl-one {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* Before / After Comparison Slider */
.compare-shell {
  width: min(760px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.compare-shell[hidden] {
  display: none;
}

.compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compare-head h3 {
  font-size: 0.94rem;
  font-weight: 700;
}

.compare-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.compare-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-tab {
  appearance: none;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.compare-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.compare-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 440px;
  border: 1px solid var(--rule);
  overflow: hidden;
  user-select: none;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.compare-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
  pointer-events: none;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.compare-badge {
  position: absolute;
  top: 10px;
  padding: 3px 8px;
  background: rgba(23, 23, 26, 0.85);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 4;
  pointer-events: none;
}

.compare-badge.is-left { left: 10px; }
.compare-badge.is-right { right: 10px; }

.compare-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

@media (max-width: 600px) {
  .result-row {
    flex-direction: column;
    align-items: stretch;
  }
  .result-row-side {
    justify-content: space-between;
  }
}

.svg-paste-box {
  width: 100%;
  max-width: 480px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line, #dedad3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.svg-paste-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, #dedad3);
  border-radius: 10px;
  background: var(--bg, #ffffff);
  color: var(--ink, #17171a);
  padding: 10px 12px;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.svg-paste-input:focus {
  outline: 2px solid var(--ink, #17171a);
  outline-offset: 1px;
}

.opt-field.is-disabled {
  opacity: 0.48;
}

.picker-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 42px;
}

.picker-hint-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted, #6f6c66);
}

.picker-canvas-wrap {
  position: relative;
  border: 1px solid var(--line, #dedad3);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  max-height: 540px;
}

#picker-canvas {
  display: block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  cursor: crosshair;
}

.picker-loupe {
  position: absolute;
  pointer-events: none;
  background: #17171a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  z-index: 4;
}

.loupe-grid {
  display: grid;
  grid-template-columns: repeat(9, 11px);
  grid-template-rows: repeat(9, 11px);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.loupe-cell {
  width: 11px;
  height: 11px;
  display: block;
}

.loupe-cell.is-center {
  outline: 1.5px solid #ffffff;
  outline-offset: -1px;
}

.loupe-meta {
  margin-top: 5px;
  text-align: center;
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.picker-active-card {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.picker-active-card strong {
  font: 700 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.picker-active-card span {
  font: 500 11.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: 0.88;
}

.copy-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line, #dedad3);
  border-radius: 8px;
  background: var(--bg, #ffffff);
}

.copy-key {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #6f6c66);
  min-width: 38px;
}

.copy-code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 11.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy-btn {
  border: 1px solid var(--line, #dedad3);
  background: var(--surface, #f7f5f0);
  color: var(--ink, #17171a);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--ink, #17171a);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.swatch-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--line, #dedad3);
  border-radius: 8px;
  background: var(--bg, #ffffff);
  color: var(--ink, #17171a);
  cursor: pointer;
  text-align: left;
}

.swatch-btn:hover {
  border-color: var(--ink, #17171a);
}

.swatch-chip {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
}

.swatch-hex {
  font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.swatch-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.swatch-mini {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.b64-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 18px;
  padding: 16px;
  border: 1px solid var(--line, #dedad3);
  border-radius: 14px;
  background: var(--surface, #f7f5f0);
}

.b64-output {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line, #dedad3);
  border-radius: 10px;
  background: var(--bg, #ffffff);
  color: var(--ink, #17171a);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.result-tags-note {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted, #6f6c66);
}

/* Legal, Contact & 404 Pages */
.legal-page {
  min-height: calc(100vh - 58px - 74px);
  padding-block: clamp(36px, 6vh, 64px) clamp(48px, 8vh, 84px);
  background: var(--paper);
}

.legal-wrap {
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
}

.legal-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 14px;
}

.legal-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--ink);
}

.legal-updated {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.legal-card {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--rule);
  background: var(--paper);
  display: grid;
  gap: 24px;
}

.legal-section h2 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.legal-section p,
.legal-section li {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-section p + p {
  margin-top: 10px;
}

.legal-list {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.legal-section a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-box {
  padding: 18px 20px;
  border: 1px solid var(--ink);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-email {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.error-page {
  min-height: calc(100vh - 58px - 74px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.error-box {
  max-width: 520px;
}

.error-code {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
}
