:root {
  --navy: #0a1b31;
  --navy-2: #102945;
  --blue: #2563eb;
  --blue-bright: #4b82ff;
  --sky: #eaf1ff;
  --ivory: #f7f5ef;
  --paper: #ffffff;
  --line: #dce3eb;
  --line-dark: #2a4058;
  --muted: #647386;
  --success: #18855a;
  --danger: #bd3142;
  --shadow: 0 28px 80px rgba(12, 35, 63, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .42);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  text-decoration: none;
  font-weight: 800;
  transition: top .2s ease;
}
.skip:focus { top: 18px; }

.site-header {
  height: 78px;
  padding: 0 clamp(20px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(220, 227, 235, .86);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px) saturate(140%);
  z-index: 20;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
  font-size: 20px;
  font-weight: 860;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-bright), #1749bd);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .24);
  transform: rotate(-5deg);
  font-style: normal;
}

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav > a, .footer-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
}
.main-nav > a { position: relative; }
.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: right .2s ease;
}
.main-nav > a:hover::after { right: 0; }

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f5f7fa;
}
.lang-switch button {
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
}
.lang-switch button.active {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 2px 8px rgba(10, 27, 49, .1);
}

.hero {
  min-height: 690px;
  padding: 84px 20px 62px;
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
  background:
    linear-gradient(rgba(255,255,255,.82), rgba(245,249,255,.9)),
    linear-gradient(90deg, rgba(37,99,235,.055) 1px, transparent 1px),
    linear-gradient(rgba(37,99,235,.055) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 420px;
  left: 50%;
  top: -170px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(100, 149, 255, .24);
  filter: blur(80px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid #c8d8e8;
  border-radius: 999px;
  color: #216447;
  background: rgba(249, 255, 251, .9);
  box-shadow: 0 5px 18px rgba(27, 104, 70, .06);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}
.pill > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2aa66c;
  box-shadow: 0 0 0 4px rgba(42, 166, 108, .12);
}
.hero h1 {
  max-width: 1050px;
  margin: 29px auto 21px;
  font-size: clamp(50px, 7.2vw, 94px);
  line-height: .94;
  letter-spacing: -.072em;
  text-wrap: balance;
}
.hero h1 em {
  color: var(--blue);
  font-style: normal;
}
.hero > p {
  max-width: 680px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: balance;
}

.drop {
  max-width: 780px;
  min-height: 238px;
  margin: auto;
  padding: 30px;
  border: 1.5px dashed #8faad0;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--navy);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.drop:hover, .drop.drag {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 32px 90px rgba(12, 50, 98, .19);
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue));
  box-shadow: 0 12px 24px rgba(37, 99, 235, .24);
}
.upload-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { font-size: 21px; letter-spacing: -.02em; }
.drop small { color: var(--muted); }
.drop .choose {
  margin-top: 2px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--sky);
  font-size: 12px;
  font-weight: 820;
}
.drop input:focus-visible + .upload-icon { outline: 3px solid rgba(37, 99, 235, .42); outline-offset: 4px; }

#smart-result { max-width: 780px; margin: 15px auto 0; }
#smart-result:not(:empty) {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 12px 30px rgba(12, 35, 63, .07);
}
.smart-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.smart-actions button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy);
  background: #fff;
  font-weight: 780;
  cursor: pointer;
}
.smart-actions button:hover { border-color: #9bb6dc; color: var(--blue); }

.proof {
  margin-top: 24px;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.proof span::before { content: "✓ "; color: var(--success); font-weight: 900; }

.section { max-width: 1380px; margin: auto; padding: 112px clamp(20px, 6vw, 88px); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 48px; }
.section-title small, .privacy small, .kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}
.section-title h2, .privacy h2 {
  margin: 11px 0 0;
  font-size: clamp(38px, 4.7vw, 64px);
  line-height: 1.02;
  letter-spacing: -.057em;
}
.section-title p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.7; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 42px 0 25px; }
.tabs button {
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-weight: 760;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.tabs button:hover { border-color: #9bb2cf; color: var(--navy); }
.tabs button.active { border-color: var(--navy); color: #fff; background: var(--navy); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.card {
  min-height: 262px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  color: var(--navy);
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(10, 27, 49, .025);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
  text-decoration: none;
}
.card:hover {
  border-color: #9bb7de;
  background: #fbfdff;
  box-shadow: 0 21px 44px rgba(16, 44, 81, .11);
  transform: translateY(-5px);
}
.card-top { display: flex; justify-content: space-between; align-items: start; }
.card-top > i { color: #91a0b3; font-size: 10px; font-style: normal; font-weight: 850; letter-spacing: .12em; }
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d6e1f1;
  border-radius: 12px;
  color: var(--blue);
  background: #f2f6ff;
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-letter { font-size: 16px; font-weight: 900; }
.card > b { margin-top: 30px; font-size: 20px; letter-spacing: -.025em; }
.card > p { margin: 10px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card-link { margin-top: auto; color: var(--blue); font-size: 12px; font-weight: 850; }

.privacy {
  margin: 0;
  padding: 98px clamp(22px, 7vw, 108px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(75,130,255,.24), transparent 35%),
    var(--navy);
}
.privacy small { color: #8fb4ff; }
.privacy > p { margin: 0; color: #b7c4d2; font-size: 17px; line-height: 1.75; }
.privacy ol {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line-dark);
}
.privacy li {
  padding: 27px 8px 4px 0;
  border-right: 1px solid var(--line-dark);
  display: flex;
  gap: 15px;
  align-items: center;
  color: #e9eef5;
}
.privacy li:last-child { border-right: 0; }
.privacy li b { color: #8fb4ff; font-size: 11px; letter-spacing: .12em; }

dialog {
  position: fixed;
  inset: 0;
  width: min(780px, calc(100vw - 32px));
  max-height: min(880px, calc(100vh - 32px));
  max-height: min(880px, calc(100dvh - 32px));
  margin: auto;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 24px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 40px 120px rgba(3, 18, 34, .5);
}
dialog::backdrop { background: rgba(5, 18, 34, .76); backdrop-filter: blur(7px); }
#workspace-content {
  max-height: min(880px, calc(100vh - 32px));
  max-height: min(880px, calc(100dvh - 32px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 38px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.x {
  position: absolute;
  z-index: 10;
  top: 14px;
  right: 14px;
  float: none;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #f7f9fc;
  box-shadow: 0 8px 24px rgba(3, 18, 34, .16);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.x:hover { background: #eef3f9; transform: translateY(-1px); }
.x:active { transform: translateY(0); }
.x:focus-visible { outline: 3px solid #2f6ff2; outline-offset: 3px; }
.tool { display: grid; gap: 17px; clear: both; }
.tool-head { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-right: 60px; }
.lang-switch.compact { flex: 0 0 auto; }
.lang-switch.compact button { min-width: 32px; height: 27px; padding: 0 6px; font-size: 10px; }
.tool h2 { margin: 3px 0 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; letter-spacing: -.045em; }
.tool-description { margin: -3px 0 3px; color: var(--muted); line-height: 1.62; }
.controls { display: grid; gap: 13px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; }
.field-label { color: #3e5064; font-size: 11px; font-weight: 820; letter-spacing: .02em; }
.field input, .field select {
  width: 100%;
  min-height: 47px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy);
  background: #fff;
}
.field input:hover, .field select:hover { border-color: #a8bad0; }
.file-picker {
  min-height: 88px;
  padding: 18px;
  border: 1px solid #cedbea;
  border-radius: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f5f8fc;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.file-picker:hover { border-color: #8da9cf; background: #f1f6ff; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picker-symbol {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
  font-weight: 400;
}
.file-picker input:focus-visible + .picker-symbol { outline: 3px solid rgba(37, 99, 235, .42); outline-offset: 3px; }
.picker-copy { display: grid; gap: 4px; }
.picker-copy b { font-size: 14px; }
.picker-copy small { color: var(--muted); line-height: 1.4; }
.primary {
  min-height: 50px;
  padding: 14px 18px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  box-shadow: 0 11px 24px rgba(37, 99, 235, .22);
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(37, 99, 235, .29); }
.primary:disabled { cursor: wait; opacity: .76; }
.primary.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result {
  min-height: 58px;
  padding: 16px;
  border: 1px solid #d9e5f7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  color: #294b76;
  background: #f0f5ff;
  line-height: 1.5;
}
.result.error { border-color: #f0c7cc; color: #842331; background: #fff4f5; display: grid; gap: 4px; }
.result.error span { font-size: 13px; }
.result.success { border-color: #c5e7d7; background: #f0fbf6; }
.metrics { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 12px; }
.metrics > span { display: grid; gap: 3px; }
.metrics small { color: #547062; font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; }
.metrics b { color: var(--navy); font-size: 14px; }

footer {
  padding: 48px clamp(20px, 6vw, 88px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 38px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer-links { display: flex; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--blue); }
footer > small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; text-align: right; }

.legal-page { min-height: 100vh; background: var(--ivory); }
.legal-header { height: 78px; padding: 0 clamp(20px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dedbd3; background: rgba(247,245,239,.9); }
.legal-back { color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 800; }
.legal-main { width: min(760px, calc(100% - 36px)); margin: 0 auto; padding: 80px 0 110px; }
.legal-main h1 { margin: 10px 0 18px; font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -.055em; }
.legal-main h2 { margin: 38px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.legal-main p, .legal-main li { color: #566476; line-height: 1.75; }
.legal-main a { color: var(--blue); }
.legal-note { padding: 17px 18px; border: 1px solid #d7d2c7; border-radius: 13px; background: #fff; }
.legal-main .kicker { display: block; }

/* Search-friendly tool and editorial pages */
.content-page { min-height: 100vh; color: var(--navy); background: #f7f5ef; }
.content-header {
  min-height: 78px;
  padding: 14px clamp(20px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #dedbd3;
  background: rgba(247, 245, 239, .94);
}
.content-header nav { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.content-header nav a { color: #44536a; font-size: 12px; font-weight: 800; text-decoration: none; }
.content-header nav a:hover { color: var(--blue); }
.content-main { overflow: hidden; }
.breadcrumbs { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-top: 28px; color: #6f7c8d; font-size: 12px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.tool-page-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.tool-page-hero h1 { max-width: 820px; margin: 15px 0 22px; font-size: clamp(45px, 6.5vw, 78px); line-height: .98; letter-spacing: -.06em; }
.tool-page-hero .lead { max-width: 730px; margin: 0; color: #556477; font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.tool-page-hero .trust-line { margin: 26px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: #40526a; font-size: 12px; font-weight: 790; }
.tool-page-hero .trust-line span::before { content: "✓"; margin-right: 7px; color: #126b50; }
.tool-launch {
  padding: 30px;
  border: 1px solid #cfd9e8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(10, 27, 49, .12);
}
.tool-launch .card-icon { width: 52px; height: 52px; margin-bottom: 26px; }
.tool-launch h2 { margin: 0 0 10px; font-size: 25px; letter-spacing: -.035em; }
.tool-launch p { margin: 0 0 22px; color: #647185; line-height: 1.6; }
.launch-button { min-height: 52px; padding: 15px 20px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--blue-bright), var(--blue)); box-shadow: 0 12px 26px rgba(37, 99, 235, .24); font-weight: 850; text-decoration: none; }
.launch-button:hover { transform: translateY(-2px); }
.content-band { padding: 82px 20px; background: #fff; }
.content-band.alt { background: #eef3fb; }
.content-wrap { width: min(980px, 100%); margin: 0 auto; }
.content-wrap > h2 { max-width: 780px; margin: 0 0 38px; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -.05em; }
.content-wrap > p { color: #59687a; line-height: 1.75; }
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps-list li { min-height: 190px; padding: 25px; border: 1px solid #dbe3ee; border-radius: 18px; background: #f9fbfe; color: #546276; line-height: 1.65; counter-increment: step; }
.steps-list li::before { content: "0" counter(step); display: block; margin-bottom: 24px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { padding: 28px; border: 1px solid #d6e0ee; border-radius: 18px; background: #fff; }
.info-card h2, .info-card h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.025em; }
.info-card p { margin: 0; color: #58677a; line-height: 1.72; }
.faq-list { border-top: 1px solid #d8e0eb; }
.faq-list details { padding: 23px 0; border-bottom: 1px solid #d8e0eb; }
.faq-list summary { cursor: pointer; font-size: 18px; font-weight: 820; }
.faq-list p { max-width: 780px; margin: 12px 0 0; color: #5b697b; line-height: 1.7; }
.related-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-tools a { min-height: 105px; padding: 22px; border: 1px solid #d7e1ee; border-radius: 15px; display: flex; align-items: flex-end; color: var(--navy); background: #fff; font-weight: 820; text-decoration: none; }
.related-tools a:hover { border-color: #8cace0; color: var(--blue); }
.content-footer { padding: 46px clamp(20px, 6vw, 88px); border-top: 1px solid #dbe1e9; background: #fff; }
.content-footer-inner { display: flex; justify-content: space-between; gap: 25px; flex-wrap: wrap; }
.content-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.content-footer a { color: #536174; font-size: 12px; text-decoration: none; }
.content-footer a:hover { color: var(--blue); }
.about-hero { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 70px; }
.about-hero h1 { margin: 15px 0 26px; font-size: clamp(48px, 8vw, 92px); line-height: .95; letter-spacing: -.065em; }
.about-hero > p { max-width: 760px; color: #58677a; font-size: 20px; line-height: 1.75; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principles article { padding: 28px; border: 1px solid #d7e1ec; border-radius: 18px; background: #fff; }
.principles h2 { margin: 0 0 12px; font-size: 21px; }
.principles p { margin: 0; color: #5d6a7b; line-height: 1.7; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { display: block; }
  .section-title p { margin-top: 20px; }
  .privacy { grid-template-columns: 1fr; gap: 25px; }
  .privacy ol { grid-column: auto; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tool-page-hero { grid-template-columns: 1fr; }
  .steps-list, .related-tools, .principles { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { height: 70px; padding: 0 16px; }
  .main-nav { gap: 8px; }
  .main-nav > a { display: none; }
  .brand { font-size: 18px; }
  .brand-mark { width: 33px; height: 33px; }
  .hero { min-height: auto; padding: 58px 15px 48px; }
  .hero h1 { font-size: clamp(45px, 14vw, 66px); }
  .hero > p { font-size: 16px; }
  .drop { min-height: 220px; padding: 24px 18px; border-radius: 19px; }
  .proof { gap: 12px 18px; }
  .section { padding: 78px 18px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 235px; }
  .privacy { padding: 70px 22px; }
  .privacy ol { grid-template-columns: 1fr; }
  .privacy li { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .privacy li:last-child { border-bottom: 0; }
  dialog {
    position: fixed;
    inset: auto;
    top: var(--visual-viewport-top, 0px);
    left: var(--visual-viewport-left, 0px);
    width: 100vw;
    width: var(--visual-viewport-width, 100vw);
    height: 100vh;
    height: 100dvh;
    height: var(--visual-viewport-height, 100dvh);
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  #workspace-content {
    width: 100%;
    height: 100%;
    max-height: none;
    padding:
      calc(72px + env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      calc(28px + env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }
  .x {
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
  }
  .tool-head { padding-right: 0; }
  .row { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; padding: 42px 22px; }
  .footer-links { justify-content: flex-start; gap: 16px; }
  footer > small { grid-column: auto; text-align: left; }
  .legal-header { padding: 0 18px; }
  .legal-main { padding: 58px 0 80px; }
  .content-header { align-items: flex-start; }
  .content-header nav > a:not(.lang-link) { display: none; }
  .tool-page-hero { width: min(100% - 30px, 1120px); padding: 46px 0 58px; }
  .tool-page-hero h1 { font-size: clamp(43px, 13vw, 64px); }
  .tool-launch { padding: 23px; }
  .content-band { padding: 62px 17px; }
  .steps-list { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .about-hero { padding: 62px 0 52px; }
}

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