:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --ink: #14161d;
  --ink-2: #4a4f5e;
  --ink-3: #868c9c;
  --line: #e6e9f0;
  --line-2: #d8dce6;
  --accent: #5b53f0;
  --accent-ink: #ffffff;
  --accent-soft: #ecebfe;
  --ok: #1ea672;
  --ok-soft: #e3f6ee;
  --warn: #b97f12;
  --warn-soft: #fdf3df;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 29, 0.04), 0 8px 24px rgba(20, 22, 29, 0.06);
  --shadow-sm: 0 1px 2px rgba(20, 22, 29, 0.06);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: transform .06s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4a42df; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-soft:hover { background: #e8ebf3; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); display: grid; place-items: center; color: #fff;
}
.brand .logo svg { width: 17px; height: 17px; }
.brand .dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a.navlink { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav a.navlink:hover { color: var(--ink); }
.lang-toggle { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 11px; font-size: 12.5px; font-weight: 700;
  color: var(--ink-3); cursor: pointer; font-family: inherit;
}
.lang-toggle button.active { background: var(--ink); color: #fff; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
  transition:
    grid-template-columns 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    gap 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-grid.hero-grid--tool-focus {
  grid-template-columns: minmax(0, 0fr) minmax(0, 1fr);
  gap: 0;
}
.hero-copy {
  min-width: 0;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  max-height: 520px;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}
.hero-grid.hero-grid--tool-focus .hero-copy {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.55s;
}
.hero.hero--tool-active {
  padding-bottom: 20px;
}
.hero.hero--tool-active + section {
  padding-top: 40px;
}
.hero-grid .tool-card {
  min-width: 0;
  transition: box-shadow 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-grid.hero-grid--tool-focus .tool-card {
  box-shadow: 0 12px 40px rgba(20, 22, 29, 0.1);
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; }
.hero p.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 24px; max-width: 42ch; line-height: 1.55; }
.hero .formats { font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* ---------- Drop zone / tool ---------- */
.tool-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
}
.dropzone {
  margin: 18px; padding: 44px 28px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-2); border-radius: 18px; background: var(--surface-2);
  max-height: 280px;
  opacity: 1;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropzone.dropzone--collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  pointer-events: none;
}
.tool-body {
  padding: 0 18px 18px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.12s,
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.12s;
}
.tool-body.tool-body--entering {
  opacity: 0;
  transform: translateY(8px);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .ico { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--accent); }
.dropzone h3 { margin: 0 0 4px; font-size: 18px; }
.dropzone p { margin: 0 0 16px; color: var(--ink-3); font-size: 14px; }

/* ---------- Tool steps ---------- */
.step { padding: 18px 4px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.step-head h4 { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.step-actions { display: flex; gap: 8px; }

/* thumbnails */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(20,22,29,.72); color: #fff; border: 0; cursor: pointer; font-size: 14px; line-height: 1;
  display: grid; place-items: center;
}
.thumb .rm:hover { background: #14161d; }
.thumb-add {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
  border: 2px dashed var(--line-2);
  background: var(--surface-2);
  color: var(--ink-3);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.thumb-add:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.thumb-add svg { width: 26px; height: 26px; flex-shrink: 0; }
.thumb-add-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  padding: 0 6px;
  max-width: 100%;
}

/* platform chips */
.platforms-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pchip {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: 14px; padding: 11px 15px 11px 12px; background: var(--surface);
  transition: border-color .15s ease, background .15s ease; user-select: none;
}
.pchip:hover { border-color: var(--ink-3); }
.pchip.on { border-color: var(--accent); background: var(--accent-soft); }
.plogomark {
  width: 28px; height: 28px; object-fit: contain; flex: none;
  border-radius: 7px; border: 1px solid rgba(0,0,0,.06); background: #fff;
  padding: 3px; box-sizing: border-box;
}
.plogomark--sm { width: 20px; height: 20px; padding: 2px; border-radius: 5px; }
.plogomark--lg { width: 36px; height: 36px; padding: 4px; border-radius: 9px; }
.pchip .pmeta { display: flex; flex-direction: column; line-height: 1.2; }
.pchip .pname { font-weight: 650; font-size: 14.5px; }
.pchip .ptag { font-size: 11.5px; color: var(--ink-3); }
.pchip .check { margin-left: 2px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; }
.pchip.on .check { background: var(--accent); border-color: var(--accent); }
.pchip .check svg { width: 11px; height: 11px; opacity: 0; }
.pchip.on .check svg { opacity: 1; }

/* requirements panel */
.reqs { margin-top: 14px; display: grid; gap: 12px; }
.req-block { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.req-block .rb-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.req-block .rb-head strong { font-size: 14px; }
.req-block .rb-head .spec { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.req-block ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.req-block li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink-2); }
.req-block li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ok-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ea672' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 9px; background-repeat: no-repeat; background-position: center;
}

.process-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 0; }
.hint { font-size: 13px; }
.hint.err { color: #c0392b; }

/* results */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.result-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.result-card .preview { aspect-ratio: 1; background-color: #fff;
  background-image:
    linear-gradient(45deg, #eef0f5 25%, transparent 25%),
    linear-gradient(-45deg, #eef0f5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef0f5 75%),
    linear-gradient(-45deg, transparent 75%, #eef0f5 75%);
  background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  display: grid; place-items: center; padding: 10px;
}
.result-card .preview img { max-width: 100%; max-height: 100%; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.result-card .rc-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.result-card .rc-foot .meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.result-card .rc-foot .meta .pn { font-size: 13px; font-weight: 650; }
.result-card .rc-foot .meta .sz { font-size: 11px; color: var(--ink-3); }
.result-card .rc-foot .dl { margin-left: auto; }
.dl-icon-btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.dl-icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.dl-icon-btn svg { width: 16px; height: 16px; }

.demo-note { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--warn); background: var(--warn-soft); border: 1px solid #f3e6c4; border-radius: 12px; padding: 10px 13px; margin-top: 14px; }
.demo-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 33px; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { font-size: 17px; color: var(--ink-2); margin: 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.step-card .num { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.step-card .num svg { width: 20px; height: 20px; }
.step-card h3 { margin: 0 0 8px; font-size: 18px; }
.step-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.platforms-alt { background: var(--surface); }
.platform-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.pcard .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pcard .ph .pn { font-size: 17px; font-weight: 700; }
.pcard .ph .spec { font-size: 12px; color: var(--ink-3); }
.pcard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pcard li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--ink-2); }
.pcard li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ok-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ea672' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}
.soon-banner { margin-top: 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; }
.soon-banner strong { display: block; font-size: 16px; margin-bottom: 4px; }
.soon-banner span { color: var(--ink-3); font-size: 14px; }

/* pricing */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-card .plan { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.price-card .price { font-size: 38px; font-weight: 750; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price-card .price small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.price-card .imgs { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.price-card .pdesc { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; }
.price-card .btn { margin-top: auto; }
.soon-pill { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--ink-3); padding: 4px 10px; border-radius: 999px; }

/* api teaser */
.api-teaser { background: var(--ink); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.api-teaser h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: -0.02em; }
.api-teaser p { color: #b9bdca; font-size: 16px; margin: 0 0 22px; }
.api-teaser .btn-primary { background: #fff; color: var(--ink); }
.api-teaser .btn-primary:hover { background: #eceef3; }
.code-block { background: #0c0d12; border: 1px solid #262833; border-radius: 14px; padding: 18px; overflow-x: auto; }
.code-block pre { margin: 0; }
.code-block code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #d6d9e3; line-height: 1.7; white-space: pre; }
.code-block .tok-method { color: #7ee0a0; }
.code-block .tok-url { color: #8ab4f8; }
.code-block .tok-key { color: #c3a6ff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer .brand { margin-bottom: 12px; }
.site-footer .ftag { color: var(--ink-3); font-size: 14px; max-width: 30ch; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; color: var(--ink-3); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-trademarks { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); max-width: 70ch; }

/* ---------- Docs page ---------- */
.docs-main { padding: 48px 0 80px; }
.docs-main .wrap { max-width: 860px; }
.docs-main h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 10px; }
.docs-main .docs-lead { font-size: 17px; color: var(--ink-2); margin: 0 0 8px; }
.docs-back { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-block; margin-bottom: 24px; }
.endpoint { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 22px; box-shadow: var(--shadow-sm); }
.endpoint h3 { margin: 0 0 4px; font-size: 19px; }
.endpoint .ep-desc { color: var(--ink-2); font-size: 14.5px; margin: 0 0 16px; }
.method-line { display: inline-flex; align-items: center; gap: 10px; font-family: ui-monospace, monospace; font-size: 13.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; }
.method-line .m { font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.method-line .m.get { background: var(--ok-soft); color: var(--ok); }
.method-line .m.post { background: var(--accent-soft); color: var(--accent); }
.docs-note { background: var(--warn-soft); border: 1px solid #f3e6c4; border-radius: var(--radius); padding: 18px 20px; margin-top: 22px; }
.docs-note strong { display: block; margin-bottom: 4px; }
.docs-note p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- Auth ---------- */
.header-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-row .brand { margin-right: auto; }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

.auth-page { display: flex; justify-content: center; padding: 48px 24px 72px; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow);
}
.auth-card-wide { max-width: 460px; }
.auth-card h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.02em; }
.auth-card > p { margin: 0 0 24px; color: var(--ink-2); }
.auth-foot { margin-top: 16px; text-align: center; font-size: 14px; }
.auth-foot.muted, .muted { color: var(--ink-3); }
.small { font-size: 13px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form-group input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface);
}
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-hint { margin-top: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.45; }

.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-field.has-toggle input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink-3);
  cursor: pointer; display: grid; place-items: center; border-radius: 8px;
}
.password-toggle:hover { color: var(--ink); background: var(--surface-2); }
.password-toggle[hidden] { display: none; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.alert-success { background: var(--ok-soft); color: #0d6b47; border: 1px solid #b8e6d0; }
.alert-warning { background: var(--warn-soft); color: #7a5a0a; border: 1px solid #f3e6c4; }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; }

.guest-quota-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.guest-quota-banner--warn {
  background: #fff8e6;
  color: #7a5c00;
  border-bottom-color: #e8d4a0;
}
.guest-quota-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dev-quota-reset-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  padding: 10px 14px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #7a5c00;
  background: #fff8e6;
  border: 1px dashed #e0c060;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.dev-quota-reset-fab:hover {
  background: #fff3d0;
  color: #5c4500;
}

/* ---------- Modal ---------- */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal.hidden { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 29, 0.45);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 50px rgba(20, 22, 29, 0.18);
  animation: modal-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-title { margin: 0 32px 10px 0; font-size: 20px; letter-spacing: -0.02em; }
.modal-body { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.verify-loading { text-align: center; padding: 24px 0; }
.verify-loading .spinner { margin: 0 auto 12px; }

.account-page { padding: 48px 24px 72px; }
.account-card {
  max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.account-profile { display: flex; gap: 16px; align-items: center; margin: 20px 0; }
.account-avatar {
  width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 22px; flex: none;
}
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.account-password-panel { margin-top: 16px; padding-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .hero-grid,
  .hero-copy,
  .tool-card,
  .dropzone,
  .tool-body {
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    transition:
      grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1),
      gap 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .hero-grid.hero-grid--tool-focus {
    grid-template-columns: 1fr;
    grid-template-rows: 0fr auto;
    gap: 0;
  }
  .hero.hero--tool-active + section {
    padding-top: 32px;
  }
  .api-teaser { grid-template-columns: 1fr; }
  .steps, .platform-cards, .price-cards, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav.open { display: flex; }
  .nav a.navlink { padding: 12px 24px; }
  .nav .lang-toggle, .nav .btn { margin: 8px 24px; }
  .menu-toggle { display: grid; place-items: center; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; }
  .menu-toggle svg { width: 20px; height: 20px; }
  section { padding: 52px 0; }
  .api-teaser { padding: 32px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 26px; }
}
