/* PDF Compressor — landing page. Brand identity is committed (iOS blue + coral),
   so colors mirror the app's Theme.swift rather than a fresh palette. */

:root {
  --blue: #007AFF;
  --blue-600: #0066d6;
  --blue-700: #0052ac;
  --blue-hero-top: #3d9bff;
  --coral: #e5534b;
  --coral-soft: #fdecea;
  --green: #1f8a45;
  --green-bg: #e7f6ec;

  --ink: #0e1620;
  --ink-2: #38424c;
  --muted: #5a6571;          /* 4.7:1 on white, passes body contrast */
  --line: #e3e7ec;
  --bg: #ffffff;
  --surface: #f4f7fa;
  --surface-2: #eef2f7;
  --on-blue-soft: rgba(255, 255, 255, 0.82);

  --r-sm: 12px;
  --r-card: 16px;
  --r-pill: 999px;
  --shadow: 0 18px 50px -24px rgba(15, 38, 70, 0.35);
  --shadow-sm: 0 6px 20px -12px rgba(15, 38, 70, 0.4);

  --wrap: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-nav: 100;

  /* System stack mirrors the iOS app's typography and renders all four
     locales natively with clean punctuation: SF Pro, PingFang, Hiragino, Apple SD Gothic. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", "Noto Sans CJK SC", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1;
}

h1, h2, h3 {
  line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance;
  line-break: strict; word-break: normal; /* keep CJK small kana / particles off line starts */
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

.skip {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-pill);
  z-index: 200; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: var(--r-pill);
  cursor: pointer; transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: #fff; color: var(--blue); border: 1px solid rgba(0, 122, 255, 0.28); }
.btn-secondary:hover { background: #f3f8ff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.94rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(18px, 5vw, 40px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; }
.brand-mark { display: inline-flex; }
.brand-name-thin { font-weight: 500; color: var(--ink-2); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 0.96rem; color: var(--ink-2); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

.lang-nav {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 3px; background: #fff;
}
.lang-nav a {
  font-size: 0.86rem; color: var(--ink-2); font-weight: 500;
  padding: 5px 11px; border-radius: var(--r-pill); line-height: 1;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang-nav a:hover { color: var(--blue); }
.lang-nav a[aria-current] { background: var(--blue); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(61, 155, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 40px) clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 36ch; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.86rem; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 138, 69, 0.16);
}

.hero-title {
  font-size: clamp(2rem, 4.3vw, 3.3rem); font-weight: 800;
  letter-spacing: -0.03em; margin: 22px 0 18px;
}
.hero-title em { font-style: normal; color: var(--coral); }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 38ch; }

.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 30px 0 22px; }
.hero-note { font-size: 0.9rem; color: var(--muted); }

.trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--green-bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  background: var(--green);
}

/* Hero visual: the compress demo */
.hero-visual { display: flex; justify-content: center; }
.demo-card {
  width: min(380px, 100%); background: #fff; border-radius: 22px;
  padding: 24px; box-shadow: var(--shadow);
  border: 1px solid rgba(227, 231, 236, 0.8);
}
.demo-head { display: flex; align-items: center; gap: 14px; }
.demo-icon { border-radius: 10px; flex: none; }
.demo-file { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.demo-name { font-weight: 600; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-meta { font-size: 0.82rem; color: var(--muted); }
.pill { font-weight: 700; font-size: 0.88rem; padding: 5px 11px; border-radius: var(--r-pill); flex: none; }
.pill-save { background: var(--green-bg); color: var(--green); font-variant-numeric: tabular-nums; }

.demo-bar { height: 10px; border-radius: var(--r-pill); background: var(--surface-2); margin: 22px 0 14px; overflow: hidden; }
.demo-bar-fill {
  display: block; height: 100%; width: 26%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--blue), #4da3ff);
}
.demo-sizes { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.demo-before { color: var(--muted); text-decoration: line-through; }
.demo-arrow { color: var(--blue); flex: none; }
.demo-after { font-weight: 700; font-size: 1.15rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 116px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }

.kicker { color: var(--blue); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; max-width: 20ch; }
.section-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 56ch; margin-top: 18px; }

/* Compare (privacy POV) */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px;
}
.compare-col { padding: 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff; }
.compare-tag { display: inline-block; font-weight: 600; font-size: 0.9rem; margin-bottom: 18px; }
.compare-them { background: var(--surface-2); }
.compare-them .compare-tag { color: var(--ink-2); }
.compare-us { border-color: rgba(0, 122, 255, 0.4); box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.18); }
.compare-us .compare-tag { color: var(--blue); }
.compare-col li { position: relative; padding-left: 30px; margin-bottom: 13px; color: var(--ink-2); }
.compare-col li:last-child { margin-bottom: 0; }
.compare-them li::before, .compare-us li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
}
.compare-them li::before {
  background: #c2cad3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6 6 18M6 6l12 12' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6 6 18M6 6l12 12' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.compare-us li::before {
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; counter-reset: none; }
.step { padding-top: 12px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 1.25rem;
}
.step h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.level { position: relative; padding: 28px 26px; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff; }
.level-hot { border-color: rgba(0, 122, 255, 0.45); box-shadow: var(--shadow); }
.level-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 4px 10px;
  border-radius: var(--r-pill); margin-bottom: 16px; letter-spacing: 0.01em;
}
.level-free { background: var(--green-bg); color: var(--green); }
.level-pro { background: var(--coral-soft); color: var(--coral); }
.level h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.level p { color: var(--muted); }
.levels-note { margin-top: 28px; color: var(--ink-2); max-width: 60ch; }

/* Pricing */
.pricing-wrap { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.pricing-card {
  background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.pricing-tag {
  display: inline-block; background: var(--coral-soft); color: var(--coral);
  font-weight: 700; font-size: 0.85rem; padding: 5px 13px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.pricing-list { margin-bottom: 26px; }
.pricing-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--ink-2); }
.pricing-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pricing-fine { font-size: 0.86rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* FAQ */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.faq-item h3 {
  font-size: 1.08rem;
  font-weight: 750;
  margin-bottom: 8px;
}
.faq-item p {
  color: var(--muted);
}

/* Content pages: SEO, support, policies */
.content-main {
  background: linear-gradient(180deg, #fbfcfe 0%, var(--surface) 100%);
  padding: clamp(36px, 7vw, 78px) clamp(18px, 5vw, 40px);
  min-height: 72vh;
}
.content-page {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(28px, 5vw, 48px);
}
.content-kicker {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}
.content-page h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.content-lead {
  color: var(--ink-2);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  margin-bottom: 34px;
}
.content-page h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin: 34px 0 10px;
}
.content-page p,
.content-page li {
  color: var(--ink-2);
}
.content-page ul,
.content-steps {
  display: grid;
  gap: 10px;
  margin: 12px 0 4px;
  padding-left: 22px;
}
.content-page ul { list-style: disc; }
.content-steps { list-style: decimal; }
.content-page a:not(.btn) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.status-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: clamp(20px, 4vw, 30px);
  margin-bottom: 28px;
}
.status-hero h2,
.status-grid h2,
.review-panel h2,
.tool-copy h2 {
  margin-top: 0;
}
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 8px;
}
.content-page .link-list,
.content-page .check-list {
  list-style: none;
  padding-left: 0;
}
.link-list li,
.check-list li {
  position: relative;
  padding-left: 26px;
}
.link-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 50%;
}
.check-list li::before {
  background: var(--green);
}
.review-panel {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* Browser tool prototype */
.tool-panel {
  display: grid;
  gap: 22px;
}
.tool-copy p,
.tool-note {
  color: var(--muted);
}
.drop-zone {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 26px;
  border: 1.5px dashed rgba(0, 122, 255, 0.46);
  border-radius: var(--r-card);
  background: #f7fbff;
  cursor: pointer;
  text-align: center;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.drop-zone:hover {
  background: #eef7ff;
  border-color: var(--blue);
}
.drop-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.drop-title {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--blue);
}
.drop-sub {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.tool-result {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.tool-file {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tool-status {
  color: var(--green);
  font-weight: 650;
}
.tool-meter {
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden;
}
.tool-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 0.35s var(--ease);
}
.tool-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.tool-stats div {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 14px;
}
.tool-stats dt {
  color: var(--muted);
  font-size: 0.86rem;
}
.tool-stats dd {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
}
.tool-plan {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}
.tool-plan p {
  margin: 0;
}
.tool-note {
  font-size: 0.92rem;
}

/* Footer */
.footer { background: var(--ink); color: #fff; padding: 44px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 0.96rem; color: var(--on-blue-soft); }
.footer-links { display: flex; gap: 24px; margin-left: auto; font-size: 0.94rem; }
.footer-links a { color: var(--on-blue-soft); }
.footer-links a:hover { color: #fff; }
.footer-rights { font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Reveal motion ----------
   Default state is fully visible. JS adds .pre to hide just before observing,
   then .in to reveal; a timeout safety net guarantees content never stays
   hidden if the observer can't fire (backgrounded or headless tab). */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal].pre { opacity: 0; transform: translateY(18px); }
  .js [data-reveal].in {
    opacity: 1; transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner, .pricing-wrap { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-visual { order: -1; }
  .pricing-card { max-width: 460px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .compare, .steps, .levels, .faq-list { grid-template-columns: 1fr; }
  .status-hero, .status-grid, .tool-stats { grid-template-columns: 1fr; }
  .status-hero .btn { width: 100%; }
  .trust { gap: 14px 22px; }
}
@media (max-width: 420px) {
  .brand-name-thin { display: none; }
  .hero-cta { gap: 12px; }
  .btn { width: 100%; }
  .nav-actions .btn { width: auto; }
}

/* --- Browser PDF tools --- */
.app-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.app-cta-icon { display: flex; }
.app-cta-title { font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.app-cta-text { color: var(--muted); font-size: 0.94rem; margin: 0; }
.app-cta-btn { white-space: nowrap; }

.tool {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.tool-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tool-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 30px 18px; text-align: center; cursor: pointer;
  border: 2px dashed rgba(0, 122, 255, 0.35); border-radius: var(--r-sm);
  background: #f7fbff; transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tool-drop:hover, .tool-drop.is-over { background: #eef6ff; border-color: var(--blue); }
.tool-drop-title { font-weight: 600; color: var(--ink); }
.tool-drop-sub { font-size: 0.86rem; color: var(--muted); }
.tool-filelist { margin: 12px 0 0; font-size: 0.92rem; color: var(--ink-2); }
.tool-hint { color: var(--muted); font-size: 0.92rem; margin: 0 0 12px; }
.tool-options { display: grid; gap: 14px; margin: 16px 0; }
.tool-field { display: flex; flex-direction: column; gap: 6px; }
.tool-label { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.tool-control {
  font: inherit; font-size: 0.96rem; color: var(--ink);
  padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.tool-range { padding: 0; accent-color: var(--blue); }
.tool-actions { margin-top: 16px; }
.tool-run:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.tool-progress { height: 6px; margin-top: 16px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.tool-progress-fill { height: 100%; width: 0; background: var(--blue); transition: width 0.2s linear; }
.tool-status { margin: 12px 0 0; font-size: 0.92rem; color: var(--muted); }
.tool-status.is-error { color: var(--coral); }
.tool-results { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.tool-stat { margin: 0; font-size: 1.02rem; color: var(--ink); }
.tool-download { align-self: flex-start; }
.tool-privacy { margin: 18px 0; font-size: 0.92rem; color: var(--green); }
.tool-noscript { color: var(--coral); }
.tool-faq h3 { font-size: 1.02rem; margin: 16px 0 4px; }
.tool-related { margin-top: 26px; }
.tool-related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tool-related-links a { font-size: 0.92rem; color: var(--blue); padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 22px 0; }
.tool-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tool-card-title { font-weight: 700; color: var(--ink); }
.tool-card-desc { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 640px) {
  .app-cta { grid-template-columns: 1fr; text-align: center; }
  .app-cta-icon { justify-content: center; }
  .app-cta-btn { width: 100%; }
}

/* Language switcher in tool/hub headers */
.lang-switch { display: flex; gap: 4px; align-items: center; }
.lang-switch a {
  font-size: 0.82rem; color: var(--muted); padding: 4px 8px; border-radius: var(--r-pill); line-height: 1;
}
.lang-switch a[aria-current="page"] { color: var(--blue); font-weight: 700; background: #eef6ff; }
.lang-switch a:hover { color: var(--ink); }
@media (max-width: 640px) { .lang-switch { display: none; } }
