:root {
  --ink: #111820;
  --ink-2: #2a3542;
  --muted: #657482;
  --line: #e4eaef;
  --surface: #ffffff;
  --canvas: #f2f5f7;
  --canvas-2: #e8eef2;
  --brand: #0c6b63;
  --brand-soft: #d8efe9;
  --brand-hover: #09554f;
  --signal: #9a3412;
  --white: #fff;
  --max: 1180px;
  --font-display: "Syne", "Helvetica Neue", sans-serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--canvas);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.auth-modal-open {
  overflow: hidden;
}

/* Premium scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 107, 99, 0.35) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(12, 107, 99, 0.28), rgba(12, 107, 99, 0.42));
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(12, 107, 99, 0.45), rgba(9, 85, 79, 0.62));
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.doc-type-select-menu,
.auth-modal-card,
.job-status {
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 107, 99, 0.4) rgba(12, 107, 99, 0.06);
}

.doc-type-select-menu::-webkit-scrollbar,
.auth-modal-card::-webkit-scrollbar,
.job-status::-webkit-scrollbar {
  width: 8px;
}

.doc-type-select-menu::-webkit-scrollbar-track,
.auth-modal-card::-webkit-scrollbar-track,
.job-status::-webkit-scrollbar-track {
  margin: 6px 0;
  background: rgba(12, 107, 99, 0.05);
  border-radius: 999px;
}

.doc-type-select-menu::-webkit-scrollbar-thumb,
.auth-modal-card::-webkit-scrollbar-thumb,
.job-status::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(12, 107, 99, 0.35), rgba(9, 85, 79, 0.55));
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.doc-type-select-menu::-webkit-scrollbar-thumb:hover,
.auth-modal-card::-webkit-scrollbar-thumb:hover,
.job-status::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(12, 107, 99, 0.55), rgba(9, 85, 79, 0.72));
  border: 2px solid transparent;
  background-clip: padding-box;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.muted { color: var(--muted); }

/* ?? Header ?? */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.site-header:not(.is-solid) .nav-brand,
.site-header:not(.is-solid) .nav-links a {
  color: rgba(255, 255, 255, 0.92);
}

.site-header:not(.is-solid) .nav-brand span {
  color: #9fe0d6;
}

.site-header:not(.is-solid) .nav-links a:hover {
  color: #fff;
}

.site-header:not(.is-solid) .nav-cta {
  border-color: rgba(255, 255, 255, 0.7) !important;
  color: #fff !important;
}

.site-header:not(.is-solid) .nav-cta:hover {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: #fff !important;
}

.site-header:not(.is-solid) .nav-toggle {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.site-header.is-solid {
  position: sticky;
  background: rgba(245, 247, 249, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-solid .nav-brand { color: var(--ink); }
.site-header.is-solid .nav-brand span { color: var(--brand); }
.site-header.is-solid .nav-links a { color: var(--ink-2); }
.site-header.is-solid .nav-cta {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}
.site-header.is-solid .nav-cta:hover {
  background: var(--ink) !important;
  color: var(--white) !important;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.nav-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.nav-brand-text {
  line-height: 1.15;
}

.nav-brand span { color: var(--brand); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.nav-links a:hover { color: var(--brand); }

.nav-cta {
  padding: 10px 18px !important;
  border: 1px solid var(--ink) !important;
  color: var(--ink) !important;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.nav-cta:hover {
  background: var(--ink) !important;
  color: var(--white) !important;
}

.nav-signin {
  font-weight: 600 !important;
}

.nav-account {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-solid .nav-account {
  border-color: var(--line);
  background: var(--brand-soft);
}

.nav-account img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-account-letter {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}

.site-header.is-solid .nav-account-letter {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 2px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch {
  position: relative;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}

.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn {
  border-color: var(--line);
  background: var(--surface);
}

.site-header:not(.is-solid) .lang-switch-btn {
  color: inherit;
}

.site-header.is-solid .lang-switch-btn {
  color: var(--ink-2);
}

.lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(20, 24, 32, 0.12);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-switch-menu[hidden] {
  display: none !important;
}

.lang-switch-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-2) !important;
  font-weight: 500;
  white-space: nowrap;
}

.lang-switch-menu a:hover,
.lang-switch-menu a.is-active {
  background: rgba(20, 24, 32, 0.05);
  color: var(--ink) !important;
}

/* ?? Hero (commercial full-bleed) ?? */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #101820;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(12, 18, 26, 0.94) 0%, rgba(12, 18, 26, 0.72) 38%, rgba(12, 107, 99, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 18, 26, 0.2) 0%, transparent 40%, rgba(12, 18, 26, 0.88) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080' viewBox='0 0 1920 1080'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%231c2a36'/%3E%3Cstop offset='1' stop-color='%23101820'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1920' height='1080' fill='url(%23g)'/%3E%3Cg transform='translate(1040 90)'%3E%3Crect width='700' height='860' rx='18' fill='%23f2f5f7' opacity='0.95'/%3E%3Crect x='44' y='56' width='220' height='16' rx='4' fill='%230c6b63'/%3E%3Crect x='44' y='100' width='500' height='9' rx='3' fill='%23c8d4dc'/%3E%3Crect x='44' y='124' width='460' height='9' rx='3' fill='%23c8d4dc'/%3E%3Crect x='44' y='148' width='480' height='9' rx='3' fill='%23c8d4dc'/%3E%3Crect x='44' y='200' width='612' height='1' fill='%23dbe3e9'/%3E%3Crect x='44' y='236' width='540' height='8' rx='3' fill='%23aebcc7'/%3E%3Crect x='44' y='262' width='560' height='8' rx='3' fill='%23aebcc7'/%3E%3Crect x='44' y='288' width='500' height='8' rx='3' fill='%23aebcc7'/%3E%3Crect x='44' y='360' width='240' height='280' rx='12' fill='%23e4eef0'/%3E%3Ccircle cx='164' cy='500' r='52' fill='none' stroke='%230c6b63' stroke-width='2' opacity='0.55'/%3E%3Crect x='320' y='400' width='280' height='8' rx='3' fill='%23aebcc7'/%3E%3Crect x='320' y='428' width='250' height='8' rx='3' fill='%23aebcc7'/%3E%3Crect x='320' y='456' width='265' height='8' rx='3' fill='%23aebcc7'/%3E%3C/g%3E%3Cg transform='translate(900 180) rotate(-6)'%3E%3Crect width='620' height='760' rx='18' fill='%230c6b63' opacity='0.22'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
  animation: heroDrift 22s var(--ease-soft) infinite alternate;
  will-change: transform;
}

@keyframes heroDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(-1.2%, -0.8%, 0); }
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(12, 107, 99, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(159, 224, 214, 0.12), transparent 55%);
  animation: washPulse 10s var(--ease-soft) infinite alternate;
}

@keyframes washPulse {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 140px 28px 88px;
  color: var(--white);
}

.hero-brand {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-brand span {
  color: #9fe0d6;
  font-weight: 700;
}

.hero-headline {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 24ch;
  color: rgba(255, 255, 255, 0.96);
}

.hero-lead {
  margin: 0 0 36px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  max-width: 40ch;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .35s var(--ease-soft), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover { background: #eef4f6; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.btn-solid {
  background: var(--brand);
  color: var(--white);
  border-radius: 10px;
}

.btn-solid:hover { background: var(--brand-hover); }

.btn-line {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  border-radius: 10px;
}

.btn-line:hover {
  background: var(--ink);
  color: var(--white);
}

/* ?? Reveal (scroll-in) ?? */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .06s; }
.reveal-delay-2 { transition-delay: .14s; }
.reveal-delay-3 { transition-delay: .22s; }
.reveal-delay-4 { transition-delay: .3s; }

/* ?? Sections ?? */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 108px 28px;
}

.section-tight { padding-top: 72px; padding-bottom: 72px; }

.section-head {
  max-width: 36rem;
  margin-bottom: 56px;
}

.section-head-wide {
  max-width: 42rem;
}

.section-head-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  max-width: none;
}

.section-head-split > p {
  margin: 0;
  max-width: 26rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  flex-shrink: 0;
}

.section-brandmark {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.section-brandmark-light { color: #9fe0d6; }

.section-kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--ink);
}

.section-head-split h2 { margin-bottom: 0; }

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  font-weight: 400;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-soft {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(12, 107, 99, 0.08), transparent 55%),
    linear-gradient(180deg, #eef3f6, #e8eef2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-ink {
  background: linear-gradient(160deg, #111820 0%, #16352f 100%);
  color: var(--white);
  border: 0;
}

.band-ink .section-kicker { color: #7ec8c2; }
.band-ink .section-head h2 { color: var(--white); }
.band-ink .section-head p { color: rgba(255, 255, 255, 0.62); }

/* ?? Capabilities (silky feature area) ?? */
.capabilities {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(12, 107, 99, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f9fb 0%, #eef3f6 100%);
}

.capabilities-glow {
  position: absolute;
  width: 48%;
  height: 48%;
  right: -8%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 107, 99, 0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: glowFloat 12s var(--ease-soft) infinite alternate;
}

@keyframes glowFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-6%, 8%, 0); }
}

.cap-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.cap-panel {
  position: relative;
  padding: 28px 24px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(14px);
  transition: transform .45s var(--ease-soft), background .45s var(--ease), border-color .45s var(--ease);
}

.cap-panel:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(12, 107, 99, 0.18);
}

.cap-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
}

.cap-panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.cap-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.cap-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(17, 24, 32, 0.94);
  color: #fff;
}

.cap-strip-item {
  padding: 26px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cap-strip-item:last-child { border-right: 0; }

.cap-strip-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #9fe0d6;
}

.cap-strip-item span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* legacy steps / pillars kept for other pages if referenced */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 28px 24px 8px 0;
  border-right: 1px solid var(--line);
}

.step:last-child { border-right: 0; padding-right: 0; }

.step-num {
  display: block;
  margin-bottom: 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.step h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 24ch;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.pillar {
  border-left: 2px solid var(--brand);
  padding-left: 22px;
}

.pillar-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.pillar h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ?? Translate workspace ?? */
.workspace {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border: 1px solid rgba(228, 234, 239, 0.9);
  background: rgba(255, 255, 255, 0.88);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 24, 32, 0.06);
  backdrop-filter: blur(12px);
}

.workspace-main {
  padding: 36px;
  border-right: 1px solid var(--line);
}

.workspace-side {
  padding: 36px;
  background: linear-gradient(180deg, rgba(250, 252, 253, 0.95), rgba(236, 244, 242, 0.55));
}

.dropzone {
  min-height: 280px;
  border: 1.5px dashed #9eb0bd;
  background: rgba(242, 245, 247, 0.7);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  cursor: pointer;
  transition: border-color .35s var(--ease-soft), background .35s var(--ease-soft), transform .35s var(--ease-soft);
}

.dropzone.is-dragover {
  border-color: var(--brand);
  border-style: solid;
  background: rgba(12, 107, 99, 0.07);
  transform: scale(1.01);
}

.drop-icon {
  margin-bottom: 16px;
  color: var(--brand);
}

.dropzone strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.dropzone span {
  color: var(--muted);
  font-size: 0.9rem;
}

.dropzone input { display: none; }

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 32, 0.42);
  backdrop-filter: blur(4px);
}

.auth-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  text-align: center;
  padding: 32px 28px 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(228, 234, 239, 0.95);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 24px 60px rgba(17, 24, 32, 0.18);
  animation: auth-modal-in .28s var(--ease-soft);
}

@keyframes auth-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.auth-modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.auth-modal-card > p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.auth-modal-close:hover {
  color: var(--ink);
  background: rgba(17, 24, 32, 0.05);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field select,
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="tel"],
.field input[type="url"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-sizing: border-box;
  font: inherit;
  outline: none;
  transition: border-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft);
}

.field select:focus,
.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="password"]:focus,
.field input[type="number"]:focus,
.field input[type="tel"]:focus,
.field input[type="url"]:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12, 107, 99, 0.12);
}

.field textarea { min-height: 140px; resize: vertical; }

.lang-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.lang-pair .field { margin-bottom: 16px; }

/* ?? Document type regions ?? */
.doc-type-field { margin-bottom: 18px; }

.doc-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.doc-type-tab {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s var(--ease-soft), background .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}

.doc-type-tab:hover {
  border-color: #c5d3dc;
}

.doc-type-tab.is-active {
  border-color: var(--brand);
  background: rgba(12, 107, 99, 0.08);
  box-shadow: inset 0 0 0 1px rgba(12, 107, 99, 0.12);
}

.doc-type-tab-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.doc-type-tab-engine {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-type-tab.is-active .doc-type-tab-engine {
  color: var(--brand);
}

.doc-type-locked {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(12, 107, 99, 0.22);
  border-radius: 10px;
  background: rgba(12, 107, 99, 0.06);
}

.doc-type-locked strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.doc-type-id-field {
  margin-bottom: 10px;
}

.doc-type-id-field[hidden],
.doc-type-locked[hidden] {
  display: none !important;
}

.doc-type-select {
  position: relative;
}

.doc-type-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.doc-type-select-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(197, 211, 220, 0.95);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.92));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 20px rgba(17, 24, 32, 0.04);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color .25s var(--ease-soft),
    box-shadow .25s var(--ease-soft),
    background .25s var(--ease-soft),
    transform .25s var(--ease-soft);
}

.doc-type-select-trigger:hover {
  border-color: #b7c8d3;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 24px rgba(17, 24, 32, 0.06);
}

.doc-type-select.is-open .doc-type-select-trigger,
.doc-type-select-trigger:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow:
    0 0 0 3px rgba(12, 107, 99, 0.12),
    0 10px 24px rgba(17, 24, 32, 0.06);
}

.doc-type-select-kicker {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-type-select-value {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.doc-type-select-chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--brand);
  background: rgba(12, 107, 99, 0.08);
  transition: transform .28s var(--ease-soft), background .25s var(--ease-soft);
}

.doc-type-select.is-open .doc-type-select-chevron {
  transform: rotate(180deg);
  background: rgba(12, 107, 99, 0.14);
}

.doc-type-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  margin: 0;
  padding: 8px 4px 8px 8px;
  list-style: none;
  border: 1px solid rgba(228, 234, 239, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(17, 24, 32, 0.12);
  backdrop-filter: blur(10px);
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  animation: doc-type-menu-in .22s var(--ease-soft);
}

.doc-type-select-menu[hidden] {
  display: none !important;
}

@keyframes doc-type-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.doc-type-select-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease-soft), color .2s var(--ease-soft);
}

.doc-type-select-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc-type-select-option-hint {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.doc-type-select-option:hover,
.doc-type-select-option:focus-visible {
  outline: none;
  background: rgba(12, 107, 99, 0.08);
  color: var(--ink);
}

.doc-type-select-option.is-active {
  background: rgba(12, 107, 99, 0.12);
  color: var(--brand-hover);
}

.doc-type-select-option.is-active .doc-type-select-option-label::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.doc-type-mode-hint {
  margin: 8px 2px 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.doc-type-mode-hint[hidden] {
  display: none !important;
}

.doc-type-info {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(228, 234, 239, 0.95);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.doc-type-info-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.doc-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.doc-type-badge.is-baidu {
  background: #e8eef8;
  color: #1e3a8a;
}

.doc-type-soon {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--signal);
}

.doc-type-desc {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.doc-type-soon-line {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.doc-type-meta {
  margin: 0;
  display: grid;
  gap: 6px;
}

.doc-type-meta div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: baseline;
}

.doc-type-meta dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-type-meta dd {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-2);
  word-break: break-word;
}

@media (max-width: 640px) {
  .doc-type-tabs {
    grid-template-columns: 1fr;
  }
}

.tool-meta {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

.credit-meter {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.credit-meter-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.credit-meter-row strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.credit-meter-bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: var(--canvas-2);
  overflow: hidden;
}

.credit-meter-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #1a9b8f);
  transition: width .45s var(--ease);
}

.credit-meter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

#file-name {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--brand);
  font-weight: 600;
}

.job-panel {
  margin-top: 20px;
}

.job-status {
  padding: 16px 18px;
  background: rgba(17, 24, 32, 0.92);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  min-height: 72px;
  border-radius: 10px;
}

.job-status.is-busy { box-shadow: inset 3px 0 0 var(--brand); }
.job-status.is-ok { box-shadow: inset 3px 0 0 #2f9e6b; }
.job-status.is-error { box-shadow: inset 3px 0 0 #c45c26; }

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.credits-explainer {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.nav-credits {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.site-header.is-solid .nav-credits {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(12, 107, 99, 0.06);
}

.cost-rates {
  margin-top: 48px;
  max-width: 640px;
}

.cost-rates h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.cost-rates-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.cost-rates-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.cost-rates-list strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#job-log {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  min-height: 88px;
  border-radius: 10px;
}

/* ?? Document matrix ?? */
.doc-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.doc-matrix a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}

.doc-matrix a::after {
  content: "?";
  opacity: 0.35;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.doc-matrix a:hover {
  color: #b8e4df;
  padding-left: 10px;
}

.doc-matrix a:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

/* ?? Languages ?? */
.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.lang-row span { opacity: 0.88; }

.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.lang-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.lang-grid span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--ink-2);
}

/* ?? CTA band ?? */
.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(12, 107, 99, 0.45), transparent 55%),
    linear-gradient(135deg, #111820 0%, #0c6b63 100%);
  color: var(--white);
  text-align: center;
  padding: 96px 28px;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-band h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--white);
}

.cta-band p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-band .hero-actions {
  justify-content: center;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.cta-band .btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ?? Trust / note ?? */
.trust {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  padding-top: 8px;
}

.trust h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.trust p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.trust-gap {
  margin-top: 14px;
}

.note-box {
  border-left: 3px solid var(--signal);
  padding: 12px 14px 12px 16px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 48rem;
  background: rgba(180, 83, 9, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}

/* ?? Inner pages ?? */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 132px 28px 28px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.page-hero .btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.page-hero .btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 28px 96px;
  line-height: 1.75;
  color: var(--ink-2);
}

.prose h2 {
  margin: 2.2rem 0 0.75rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
}

.prose ul { padding-left: 1.15rem; }
.prose li { margin: 0.45rem 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.billing-toggle {
  display: flex;
  width: fit-content;
  gap: 4px;
  padding: 5px;
  margin: 0 auto 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.billing-toggle button.is-active {
  background: var(--ink);
  color: var(--white);
}

.billing-hint {
  margin: 0 auto 28px;
  max-width: 36rem;
  text-align: center;
  font-size: 0.88rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 24px;
  border-radius: 18px;
}

.price-card.featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.price-card.featured ul,
.price-card.featured .tool-meta { color: rgba(255, 255, 255, 0.65); }

.pack-badge {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.packs-grid {
  margin-top: 8px;
}

.pack-card .amount small {
  margin-left: 4px;
}

.price-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.price-card .amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 4.25rem;
  font-size: 2.85rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 18px 0 22px;
}

.price-card .amount small {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.55;
}

.price-allowance {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.price-card.featured .price-allowance {
  color: rgba(255, 255, 255, 0.78);
}

.price-card .btn-solid,
.price-card .btn-line {
  width: 100%;
}

.price-card.featured .btn-line {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.price-card.featured .btn-line:hover {
  background: #fff;
  color: var(--ink);
}

.price-card.featured .btn-solid {
  background: #fff;
  color: var(--ink);
}

.price-card.featured .btn-solid:hover {
  background: #e8eef2;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 2px;
}

.doc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.doc-list a {
  display: block;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  transition: color .2s ease, padding-left .2s ease;
}

.doc-list a:hover {
  color: var(--brand);
  padding-left: 10px;
}

/* ?? Footer ?? */
.site-footer {
  background: #0e141b;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.footer-brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-inner h4 {
  margin: 0 0 16px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-inner li { margin: 0 0 10px; }
.footer-inner a:hover { color: #b8e4df; }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 40px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .steps,
  .pricing-grid,
  .doc-matrix,
  .doc-list,
  .footer-inner,
  .workspace,
  .trust,
  .cap-flow { grid-template-columns: 1fr 1fr; }

  .pillars,
  .lang-grid,
  .cap-strip { grid-template-columns: 1fr; }

  .cap-strip-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .cap-strip-item:last-child { border-bottom: 0; }

  .cta-band { padding: 72px 28px; }

  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .workspace-main { border-right: 0; border-bottom: 1px solid var(--line); }

  .section-head-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-head-split h2 { margin-bottom: 0; }
}

@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(245, 247, 249, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 18px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }

  .site-header {
    position: sticky;
    background: rgba(245, 247, 249, 0.94);
    border-bottom: 1px solid var(--line);
  }
  .site-header:not(.is-solid) .nav-brand,
  .site-header:not(.is-solid) .nav-links a { color: var(--ink-2); }
  .site-header:not(.is-solid) .nav-brand span { color: var(--brand); }
  .site-header:not(.is-solid) .nav-cta {
    border-color: var(--ink) !important;
    color: var(--ink) !important;
  }
  .site-header:not(.is-solid) .nav-toggle {
    color: var(--ink);
    border-color: var(--line);
    background: var(--surface);
  }

  .hero { min-height: 100vh; min-height: 100dvh; }
  .hero-content { padding: 110px 20px 64px; }

  .steps,
  .pricing-grid,
  .doc-matrix,
  .doc-list,
  .footer-inner,
  .workspace,
  .trust,
  .pillars,
  .lang-grid,
  .lang-pair,
  .cap-flow { grid-template-columns: 1fr; }

  .cta-band { padding: 64px 20px; }

  .section,
  .page-hero,
  .prose,
  .footer-inner,
  .footer-bottom,
  .cta-band { padding-left: 20px; padding-right: 20px; }

  .workspace-main,
  .workspace-side { padding: 24px; }
  .dropzone { min-height: 220px; }
}

/* ???? Auth ???? */
.page-hero-auth { padding-bottom: 8px; }
.auth-card {
  max-width: 420px;
  margin: 0 auto 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(17, 24, 32, 0.05);
}
.auth-google-wrap { margin-bottom: 8px; }
.auth-google-btn { display: flex; justify-content: center; min-height: 44px; }
.auth-google-hint, .auth-google-off { font-size: 0.82rem; margin: 10px 0 0; text-align: center; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-form .field { margin-bottom: 14px; }
.auth-error {
  color: var(--signal);
  font-size: 0.86rem;
  margin: 0 0 12px;
}
.auth-switch { margin-top: 18px; text-align: center; font-size: 0.9rem; }
.auth-switch a { color: var(--brand); font-weight: 600; }
.account-row { display: flex; align-items: center; gap: 14px; }
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}
.account-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-weight: 700;
}
