:root {
  color-scheme: dark;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Arial, sans-serif;
  --bg: #081120;
  --header: #060d1a;
  --surface: #121a2b;
  --surface-2: #161f31;
  --surface-3: #20293a;
  --text: #dae2fd;
  --muted: #aeb6ca;
  --line: #434654;
  --line-soft: rgba(141, 144, 160, .28);
  --footer-divider: #7f8ba3;
  --primary: #b3c5ff;
  --primary-strong: #356ae6;
  --on-primary: #f9f7ff;
  --success: #78e4b7;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f7ff;
  --header: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3fe;
  --surface-3: #e7e7f2;
  --text: #191b23;
  --muted: #4b5160;
  --line: #c3c6d6;
  --line-soft: rgba(115, 118, 133, .24);
  --footer-divider: #7b8496;
  --primary: #0650cc;
  --primary-strong: #356ae6;
  --on-primary: #ffffff;
  --success: #0d9f6e;
  --shadow: 0 24px 70px rgba(38, 48, 88, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font-ui); transition: background .2s ease, color .2s ease; }
html.mobile-menu-open, html.mobile-menu-open body { overflow: hidden; overscroll-behavior: none; }
html[data-theme="light"] .benefit,
html[data-theme="light"] .privacy-panel { background: var(--surface-2); }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.material-symbols-outlined { font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24; line-height: 1; }
.section-shell, .footer-shell { width: min(100% - 48px, 1120px); margin-inline: auto; }
.nav-shell { width: min(100% - 48px, 1232px); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; height: 64px; border-bottom: 1px solid var(--line); background: var(--header); }
.nav-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 19px/1 var(--font-ui); color: var(--text); }
.brand-mark { width: 34px; height: 34px; display: block; overflow: hidden; flex: 0 0 34px; border-radius: 50%; }
.brand-mark img { display: block; width: auto; height: 100%; max-width: none; }
.brand-name > span:last-child { color: #1661e8; }
.desktop-nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.nav-link { height: 100%; display: flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; border-bottom: 3px solid transparent; transition: color .18s ease, border-color .18s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-divider { width: 1px; height: 22px; background: var(--line); }
.icon-button, .icon-text-button { border: 0; background: transparent; cursor: pointer; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.icon-button:hover, .icon-button:focus-visible, .icon-text-button:hover { color: var(--primary); background: var(--surface-3); }
.desktop-nav #themeButton { width: 35px; height: 35px; border: 0; border-radius: 0; background: transparent; }
.desktop-nav #themeButton:hover, .desktop-nav #themeButton:focus-visible { background: transparent; }
.icon-text-button { height: 40px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
#languageButton .material-symbols-outlined { color: var(--primary); font-size: 22px; }
#themeIcon { font-size: 18px; }
html[data-theme="light"] #themeIcon { color: #f59e0b; }
html[data-theme="dark"] #themeIcon { color: #8b9dff; }
.language-wrap { position: relative; }
.language-menu { position: absolute; top: 44px; right: 0; width: 150px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.language-menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.language-menu button:hover { background: var(--surface-3); color: var(--primary); }
.mobile-menu-button, .mobile-nav, .mobile-nav-dismiss { display: none; }

.hero { padding-block: 70px 60px; text-align: center; }
.trust-pill, .count-pill, .secure-badge { display: inline-flex; align-items: center; border-radius: 999px; text-transform: uppercase; }
.trust-pill { gap: 7px; margin-bottom: 34px; padding: 7px 15px; border: 1px solid rgba(53, 106, 230, .55); background: rgba(53, 106, 230, .2); color: var(--primary); font-size: 12px; font-weight: 700; text-transform: none; }
.trust-pill .material-symbols-outlined { font-size: 16px; font-variation-settings: "FILL" 1; }
.hero h1 { max-width: 800px; margin: 0 auto 14px; font: 650 42px/1.16 var(--font-ui); letter-spacing: 0; }
.hero-copy { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.55; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.benefit { position: relative; min-height: 116px; padding: 26px 52px 26px 28px; display: flex; align-items: flex-start; gap: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.benefit:hover, .benefit:focus-visible { transform: translateY(-3px); border-color: var(--primary-strong); box-shadow: 0 10px 26px rgba(20, 42, 94, .1); outline: none; }
.benefit-arrow { position: absolute; right: 18px; bottom: 16px; color: var(--muted); font-size: 18px; transition: color .18s ease, transform .18s ease; }
.benefit:hover .benefit-arrow, .benefit:focus-visible .benefit-arrow { color: var(--primary); transform: translateX(3px); }
.benefit-icon { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(108, 99, 255, .16); color: #9da7ff; font-size: 19px; }
.benefit:nth-child(2) .benefit-icon { background: rgba(120, 228, 183, .14); color: #5de1b0; }
.benefit:nth-child(3) .benefit-icon { background: rgba(255, 159, 92, .14); color: #ffb06d; }
.benefit h2 { margin: 2px 0 4px; font: 700 14px/1.4 var(--font-ui); }
.benefit p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.tools-section { padding-block: 34px 72px; scroll-margin-top: 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading-title { margin-bottom: 4px; display: flex; align-items: center; gap: 9px; }
.section-heading-icon { flex: 0 0 auto; color: var(--primary); font-size: 26px; font-variation-settings: "FILL" 0, "wght" 550, "GRAD" 0, "opsz" 24; }
.section-heading h2 { margin: 0 0 4px; font: 650 28px/1.25 var(--font-ui); }
.section-heading-title h2 { margin: 0; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.count-pill { padding: 5px 13px; background: var(--surface-3); color: var(--primary); font-size: 11px; font-weight: 600; text-transform: none; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card { position: relative; min-height: 188px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-4px); border-color: var(--primary-strong); background: var(--surface-2); box-shadow: 0 14px 34px rgba(0, 0, 0, .12); outline: none; }
.tool-card.is-selected { border: 2px solid var(--primary-strong); }
.popular-label { position: absolute; top: -12px; left: 16px; padding: 5px 12px; border-radius: 999px; background: var(--primary-strong); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.tool-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-3); color: var(--primary); font-size: 29px; }
.featured .tool-icon { background: var(--primary-strong); color: #fff; }
.tool-card:hover .tool-icon { font-variation-settings: "FILL" 1, "wght" 500; }
.arrow { color: var(--muted); font-size: 24px; transition: transform .2s ease; }
.tool-card:hover .arrow { color: var(--primary); transform: translateX(4px); }
.tool-card.benefit-highlight { animation: benefit-card-highlight 1.6s ease; }
@keyframes benefit-card-highlight {
  0%, 100% { box-shadow: none; }
  25%, 70% { border-color: var(--primary-strong); box-shadow: 0 0 0 3px rgba(53, 106, 230, .18), 0 14px 34px rgba(0, 0, 0, .12); transform: translateY(-4px); }
}
.tool-card strong { display: block; margin-bottom: 8px; font: 600 20px/1.35 var(--font-ui); }
.tool-card > span:last-child { display: block; color: var(--muted); font-size: 15px; line-height: 1.48; }

.privacy-section { position: relative; isolation: isolate; padding-block: 0 32px; scroll-margin-top: 96px; }
.privacy-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42px -56px -18px;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 34%, rgba(86, 132, 255, .10), transparent 36%),
    radial-gradient(circle at 88% 68%, rgba(145, 112, 255, .08), transparent 38%),
    radial-gradient(circle, rgba(133, 151, 207, .045) 1px, transparent 1.2px);
  background-size: auto, auto, 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}
html[data-theme="light"] .privacy-section::before {
  background:
    radial-gradient(circle at 13% 34%, rgba(75, 119, 240, .085), transparent 36%),
    radial-gradient(circle at 88% 68%, rgba(139, 112, 232, .07), transparent 38%),
    radial-gradient(circle, rgba(67, 91, 157, .04) 1px, transparent 1.2px);
  background-size: auto, auto, 18px 18px;
}
.privacy-panel { min-height: 310px; padding: 32px; display: grid; grid-template-columns: 1fr 330px; align-items: center; gap: 48px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.privacy-copy { display: flex; align-items: center; gap: 24px; padding-left: 20px; }
.privacy-shield { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-strong); color: #fff; font-size: 30px; font-variation-settings: "FILL" 1; }
.privacy-copy h2 { margin: 0 0 8px; font: 600 16px/1.4 var(--font-ui); }
.privacy-copy p { max-width: 590px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.secure-badge { gap: 10px; margin-top: 24px; padding: 8px 16px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; }
.secure-badge .secure-dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 7px rgba(16, 185, 129, .35); animation: secure-breathe 2.8s ease-in-out infinite; }
.secure-badge b { font: inherit; }
@keyframes secure-breathe {
  0%, 100% { background: #10b981; box-shadow: 0 0 5px rgba(16, 185, 129, .28); }
  50% { background: #34d399; box-shadow: 0 0 11px rgba(52, 211, 153, .58); }
}
.security-picture { justify-self: end; width: 260px; transform: translateX(-30px); }
.security-picture img { display: block; width: 100%; height: auto; object-fit: contain; }
html[data-theme="light"] .security-picture img { filter: drop-shadow(0 12px 24px rgba(15, 23, 42, .14)); }
html[data-theme="dark"] .security-picture img { filter: drop-shadow(0 8px 20px rgba(37, 99, 235, .12)); }

.site-footer { border-top: 1px solid var(--line); background: var(--header); }
.footer-shell { min-height: 126px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 46px; }
.footer-brand { font-size: 21px; }
.footer-brand .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
.footer-shell p { margin: 7px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.footer-shell .footer-tagline { margin: 0; line-height: 1.4; }
.footer-shell nav { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 12px; font-weight: 400; line-height: 1.4; }
.footer-shell nav a { transition: color .18s ease; }
.footer-shell nav a + a { display: inline-flex; align-items: center; gap: 8px; }
.footer-shell nav a + a::before { content: ""; flex: 0 0 1px; width: 1px; height: 11px; background: var(--footer-divider); }
.footer-shell a:hover { color: var(--primary); }

.workspace-dialog { width: min(980px, calc(100vw - 40px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.workspace-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.workspace-dialog::backdrop { background: rgba(4, 9, 20, .76); backdrop-filter: blur(5px); }
.info-dialog { position: relative; width: min(420px, calc(100vw - 32px)); padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); text-align: center; }
.info-dialog::backdrop { background: rgba(4, 9, 20, .66); backdrop-filter: blur(4px); }
.info-dialog-close { position: absolute; top: 12px; right: 12px; }
.info-dialog-icon { width: 48px; height: 48px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: rgba(53, 106, 230, .14); color: var(--primary); font-size: 28px; font-variation-settings: "FILL" 1; }
.info-dialog h2 { margin: 0 0 14px; font: 700 20px/1.35 var(--font-ui); }
.info-dialog p { margin: 8px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.info-dialog-confirm { min-width: 110px; height: 42px; margin-top: 22px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--primary-strong); color: #fff; font-weight: 700; cursor: pointer; }
.dialog-header { position: sticky; top: 0; z-index: 2; min-height: 84px; padding: 16px 20px 16px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-title-wrap { display: flex; align-items: center; gap: 14px; }
.dialog-tool-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-strong); color: #fff; }
.eyebrow { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.dialog-header h2 { margin: 0; font: 650 22px/1.25 var(--font-ui); }
.dialog-body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; overflow: hidden; }
.dialog-body[hidden], .settings-panel > label[hidden] { display: none !important; }
.upload-workspace { min-height: 440px; padding: 28px; border-right: 1px solid var(--line); overflow: hidden; }
.drop-zone { width: 100%; min-height: 250px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--primary-strong); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.drop-zone:hover, .drop-zone.dragover { background: var(--surface-3); box-shadow: inset 0 0 0 2px rgba(53,106,230,.15); }
.drop-icon { margin-bottom: 16px; color: var(--primary); font-size: 46px; }
.drop-zone strong { margin-bottom: 6px; font: 650 20px/1.3 var(--font-ui); }
.drop-zone > span:not(.drop-icon):not(.choose-files) { color: var(--muted); font-size: 14px; }
.file-limit { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 500; }
.choose-files { margin-top: 20px; padding: 11px 18px; border-radius: 8px; background: var(--primary-strong); color: #fff; font-size: 13px; font-weight: 700; }
.queue-heading { margin: 24px 0 12px; display: flex; justify-content: space-between; align-items: center; }
.queue-heading h3, .settings-panel h3 { margin: 0; font: 700 15px/1.4 var(--font-ui); }
.queue-heading button { border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 700; cursor: pointer; }
.file-list { max-height: 146px; display: grid; gap: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.empty-state { margin: 0; padding: 16px; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.file-row { min-width: 0; padding: 11px 12px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-2); }
.file-type { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-3); color: var(--primary); font-size: 10px; font-weight: 800; }
.file-row strong, .file-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row strong { font-size: 13px; }
.file-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.file-status { color: var(--success); font-size: 11px; font-weight: 800; }
.settings-panel { padding: 28px; background: var(--header); }
.settings-panel h3 { margin-bottom: 24px; }
.settings-panel > label { display: grid; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.settings-panel label > span { display: flex; justify-content: space-between; }
.settings-panel select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.settings-panel input[type="range"] { width: 100%; accent-color: var(--primary-strong); }
.settings-panel .checkbox-row { display: flex; align-items: center; grid-template-columns: auto 1fr; gap: 10px; }
.settings-panel input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary-strong); }
.local-note { padding: 14px; display: flex; gap: 11px; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--muted); }
.local-note .material-symbols-outlined { color: var(--success); }
.local-note p { margin: 0; font-size: 11px; line-height: 1.5; }
.local-note strong { color: var(--text); }
.convert-button { width: 100%; height: 46px; margin-top: 24px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 8px; background: var(--primary-strong); color: #fff; font-weight: 700; cursor: pointer; }
.convert-button:disabled { opacity: .42; cursor: not-allowed; }
.convert-button.processing .material-symbols-outlined { animation: pulse-icon .8s ease-in-out infinite alternate; }
@keyframes pulse-icon { to { transform: translateX(4px); } }
.success-panel { margin: 0 28px 20px; padding: 16px; display: flex; align-items: center; gap: 12px; border: 1px solid color-mix(in srgb, var(--success), transparent 45%); border-radius: 8px; background: color-mix(in srgb, var(--success), transparent 90%); }
.success-panel[hidden] { display: none; }
.success-panel > .material-symbols-outlined { color: var(--success); font-size: 30px; }
.success-panel strong { font-size: 13px; }
.success-panel p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.success-panel button { margin-left: auto; height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 7px; background: var(--primary-strong); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; }
.toast[hidden] { display: none; }
.back-to-top { display: none; }

@media (min-width: 901px) {
  main, .footer-shell {
    font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  }
  .section-shell, .footer-shell { width: min(100% - 64px, 1040px); }
  .section-heading-icon { color: #60a5fa; }
  .hero h1 { font-size: 40px; font-weight: 600; letter-spacing: -.018em; }
  .section-heading h2 { font-size: 27px; font-weight: 600; letter-spacing: -.012em; }
  .tool-card strong { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
  .tool-card > span:last-child { max-width: 31ch; line-height: 1.52; }
}

@media (max-width: 1232px) {
  .privacy-section::before { right: 0; left: 0; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: grid; }
  .mobile-nav-dismiss:not([hidden]) { position: fixed; inset: 0; z-index: 18; display: block; border: 0; background: rgba(0, 0, 0, .35); backdrop-filter: none; -webkit-backdrop-filter: none; cursor: default; }
  html[data-theme="dark"] .mobile-nav-dismiss:not([hidden]) { background: rgba(0, 0, 0, .35); }
  .mobile-nav { position: fixed; top: 64px; right: 0; z-index: 19; width: min(66.666vw, 320px); max-height: calc(100dvh - 64px); padding: 0; overflow-y: auto; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0 0 0 12px; background: #fff; box-shadow: -12px 0 32px rgba(15, 23, 42, .18); }
  html[data-theme="dark"] .mobile-nav { background: #0f172a; }
  .mobile-nav:not([hidden]) { display: block; }
  .mobile-menu-header { height: 72px; padding: 0 14px 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce6f5; background: #f3f7ff; }
  .mobile-menu-header strong { font-size: 16px; font-weight: 750; }
  .mobile-menu-header .mobile-menu-close { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
  .mobile-menu-header .mobile-menu-close:hover, .mobile-menu-header .mobile-menu-close:focus-visible { background: rgba(53, 106, 230, .1); color: var(--primary); outline: none; }
  html[data-theme="dark"] .mobile-menu-header { border-bottom-color: rgba(173, 190, 220, .18); background: #18243b; }
  .mobile-menu-content { padding: 24px 16px 18px; display: grid; grid-auto-rows: max-content; align-content: start; gap: 4px; }
  .mobile-nav a, .mobile-nav button { padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-weight: 700; }
  .mobile-language-control { padding: 10px 12px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
  .mobile-language-heading { display: flex; align-items: center; gap: 8px; }
  .mobile-language-heading .material-symbols-outlined { color: var(--primary); font-size: 20px; }
  .mobile-language-control select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: 500 14px/1 var(--font-ui); }
  .benefit-grid, .tool-grid { grid-template-columns: 1fr 1fr; }
  .privacy-panel { grid-template-columns: 1fr 280px; gap: 30px; }
  .privacy-copy { padding-left: 0; }
  .security-picture { width: 250px; transform: none; }
  .footer-shell { grid-template-columns: 1fr auto; }
  .footer-tagline { display: none; }
}

@media (max-width: 680px) {
  .section-shell, .nav-shell, .footer-shell { width: min(100% - 32px, 1232px); }
  .brand { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .hero { padding-block: 56px 44px; }
  .hero h1 { font-size: 32px; line-height: 1.22; word-break: keep-all; overflow-wrap: normal; }
  .hero-copy { font-size: 16px; }
  .benefit-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .benefit { min-height: 104px; padding: 24px 50px 24px 24px; }
  .tools-section { padding-block: 56px; }
  .section-heading { align-items: flex-start; gap: 20px; }
  .section-heading h2 { font-size: 26px; }
  .count-pill { margin-top: 6px; white-space: nowrap; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 184px; padding: 24px; }
  .back-to-top:not([hidden]) { position: fixed; right: 18px; bottom: 18px; z-index: 17; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(219, 234, 254, .9); border-radius: 50%; background: rgba(53, 106, 230, .7); color: #fff; box-shadow: 0 5px 14px rgba(15, 23, 42, .16); cursor: pointer; animation: back-to-top-in .18s ease-out; }
  .back-to-top:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(15, 23, 42, .2); }
  .back-to-top:active, .back-to-top:focus-visible { background: rgb(53, 106, 230); outline: none; }
  .back-to-top .material-symbols-outlined { font-size: 24px; }
  .privacy-panel { min-height: 0; grid-template-columns: 1fr; padding: 26px; }
  .privacy-copy { align-items: flex-start; }
  .security-picture { justify-self: center; width: min(100%, 240px); }
  .footer-shell { padding-block: 28px; grid-template-columns: 1fr; }
  .footer-shell nav { flex-wrap: wrap; gap: 8px; }
  .workspace-dialog { overflow-y: auto; }
  .workspace-dialog[open] { display: block; }
  .dialog-body { grid-template-columns: 1fr; overflow: visible; }
  .upload-workspace { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .success-panel { align-items: flex-start; flex-wrap: wrap; }
  .success-panel button { margin-left: 42px; }
}

/* Phone-only density adjustments. Keep tablet and desktop layouts unchanged. */
@media (max-width: 600px) {
  .hero { padding: 18px 0 7px; }
  .trust-pill { margin-bottom: 16px; }
  .benefit-grid { gap: 20px; margin-top: 18px; }
  .benefit { padding-top: 22px; padding-bottom: 22px; }
  .tools-section { padding: 8px 0 56px; }

  .tool-card { min-height: 0; padding: 15px 20px; }
  .tool-card-top { margin-bottom: 8px; }
  .tool-icon { width: 44px; height: 44px; font-size: 26px; }
  .tool-card strong { margin-bottom: 6px; }

  .security-picture { width: min(100%, 180px); }

  .back-to-top:not([hidden]) {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .workspace-dialog { max-height: calc(100dvh - 24px); }
  .dialog-header { min-height: 72px; padding: 12px 16px 12px 18px; }
  .upload-workspace { min-height: 0; padding: 20px; }
  .drop-zone { min-height: 160px; padding: 16px 20px; }
  .drop-icon { display: none; }
  .choose-files { margin-top: 14px; }
  .queue-heading { margin-top: 18px; }
  .settings-panel { padding: 22px 20px; }
  .settings-panel h3 { margin-bottom: 18px; }
  .settings-panel > label { margin-bottom: 16px; }
  .local-note { padding: 12px; }
  .convert-button { margin-top: 18px; }
  .workspace-dialog:not(.has-files) #clearButton { display: none; }
  .convert-button:not(:disabled) { background: #075fdf; box-shadow: 0 6px 16px rgba(7, 95, 223, .28); }
}

@keyframes back-to-top-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 700px) and (min-width: 681px) {
  .workspace-dialog { overflow-y: auto; }
  .workspace-dialog[open] { display: block; }
  .dialog-body { overflow: visible; }
  .upload-workspace { min-height: 0; }
}

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