:root {
  --bg: #f9f9f9;
  --paper: #ffffff;
  --ink: #12141a;
  --ink-2: #4a4f5c;
  --ink-3: #8a8f9c;
  --line: #e6e8ec;
  --accent: #1673ff;
  --accent-ink: #ffffff;
  --accent-soft: #e4efff;
  --ios: #0a84ff;
  --android: #2fb36b;
  --ok: #1f9d55;
  --warn: #b7791f;
  --err: #c53030;
  --r: 18px;
  --shadow: 0 1px 2px rgba(18, 20, 26, .06), 0 12px 32px -12px rgba(18, 20, 26, .18);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
code, pre { font-family: var(--mono); font-size: .9em; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 19px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.logo-img { height: 32px; width: auto; }
.logo b { font-weight: 800; background: linear-gradient(180deg, #1e9bff, #0a55ff); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 .18em; }
.hero-art { width: min(300px, 70%); height: auto; margin: -12px 0 6px -10px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 600 15px var(--font); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }

/* hero */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 16px; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(180deg, #1e9bff, #0a55ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip.ios .dot { background: var(--ios); }
.chip.android .dot { background: var(--android); }

/* converter card */
.card { background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.conv { padding: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.tab { border: 0; background: transparent; border-radius: 11px; height: 42px; font: 600 14.5px var(--font); color: var(--ink-2); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.tab small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.drop { border: 2px dashed var(--line); border-radius: 18px; min-height: 230px; display: grid; place-items: center; text-align: center; padding: 22px; cursor: pointer; transition: border-color .15s, background .15s; position: relative; overflow: hidden; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); display: grid; place-items: center; margin: 0 auto 12px; }
.drop .ico svg { width: 26px; height: 26px; }
.drop strong { display: block; font-size: 17px; }
.drop span { color: var(--ink-3); font-size: 14px; }
.drop .preview { position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: var(--bg); }
.drop .preview video { width: 100%; height: 100%; object-fit: contain; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); padding: 0 12px; font: 15px var(--font); color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.unit { position: relative; }
.unit::after { content: "cm"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; pointer-events: none; }
.note { font-size: 13px; color: var(--ink-3); margin: 10px 2px 0; }
.note b { color: var(--ink-2); }
.free-pill { display: inline-block; background: var(--accent-soft); color: #0a4fd6; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }

/* progress + result */
.status { display: none; margin-top: 14px; }
.status.on { display: block; }
.bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s ease; }
.status p { margin: 8px 2px 0; font-size: 14px; color: var(--ink-2); }
.queue { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg); }
.queue .n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; min-width: 46px; text-align: center; }
.queue .t { font-size: 14px; color: var(--ink-2); }
.queue .t b { color: var(--ink); display: block; font-size: 15px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.result { display: none; }
.result.on { display: block; }
.result model-viewer { width: 100%; height: 300px; background: radial-gradient(circle at 50% 40%, #fff, var(--bg)); border-radius: 16px; --poster-color: transparent; }
.result .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.result .row .btn { flex: 1 1 auto; }
.share { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--bg); }
.share canvas, .share img { width: 96px; height: 96px; border-radius: 8px; background: #fff; padding: 6px; }
.share .link { font-size: 13px; word-break: break-all; color: var(--ink-2); }
.share b { display: block; font-size: 14px; margin-bottom: 4px; }
.err { color: var(--err); font-size: 14px; margin-top: 10px; }

/* sections */
section.block { padding: 72px 0; }
section.block.tight { padding: 40px 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; }
h3 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 6px; }
.sub { color: var(--ink-2); font-size: 18px; max-width: 40em; margin: 0 0 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.tile p { color: var(--ink-2); margin: 0; font-size: 15px; }
.tile .num { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.dark-band { background: var(--ink); color: #f4f2ec; }
.dark-band .sub, .dark-band .tile p { color: #b9bcc6; }
.dark-band .tile { background: #1b1e26; border-color: #2a2e39; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.formats span { font: 600 13px var(--mono); padding: 6px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan .price { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.plan .btn { margin-top: auto; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .packs { grid-template-columns: 1fr; } }
.pack { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pack b { font-size: 18px; display: block; }
.pack span { color: var(--ink-3); font-size: 13px; }

/* faq */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* prose (landing + docs) */
.prose h2 { font-size: 28px; margin-top: 44px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose pre { background: var(--ink); color: #e9e7e1; padding: 18px; border-radius: 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.prose code { background: #eceef2; padding: 2px 6px; border-radius: 6px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.related a:hover { border-color: var(--ink); }

/* account */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat b { font-size: 34px; letter-spacing: -.03em; display: block; line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: 13px; }
.jobs { display: grid; gap: 8px; }
.job { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.job img, .job .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.job small { color: var(--ink-3); }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); }
.badge.done { background: #dcf5e6; color: var(--ok); }
.badge.queued, .badge.processing { background: #fdf0d5; color: var(--warn); }
.badge.failed { background: #fde2e2; color: var(--err); }
.keyline { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.secret { font-family: var(--mono); background: var(--ink); color: #fff; padding: 12px; border-radius: 12px; word-break: break-all; font-size: 13px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(18, 20, 26, .55); display: none; place-items: center; z-index: 50; padding: 20px; }
.modal.on { display: grid; }
.modal .box { background: var(--paper); border-radius: 22px; width: min(460px, 100%); padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); max-height: 92vh; overflow: auto; }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal p { color: var(--ink-2); margin: 0 0 16px; }
.modal .or { text-align: center; color: var(--ink-3); font-size: 13px; margin: 12px 0; }
.modal .x { float: right; border: 0; background: var(--bg); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; }

/* footer */
footer { padding: 48px 0 60px; border-top: 1px solid var(--line); margin-top: 40px; font-size: 14px; color: var(--ink-3); }
footer .cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
footer a { display: block; text-decoration: none; padding: 3px 0; color: var(--ink-2); }
footer a:hover { color: var(--ink); }

/* viewer page */
.viewer { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.viewer model-viewer { width: 100%; height: 100%; min-height: 60vh; background: radial-gradient(circle at 50% 35%, #fff, var(--bg)); }
.viewer .bar2 { display: flex; gap: 10px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.ar-btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }

/* converter: both products always visible */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mode { position: relative; display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.mode:hover { border-color: #c9d6ea; }
.mode[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: linear-gradient(180deg, #fff, #f5f9ff); }
.mode .mi { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.mode[aria-selected="true"] .mi { background: linear-gradient(180deg, #1e9bff, #0a55ff); color: #fff; }
.mode .mi svg { width: 22px; height: 22px; }
.mode .mt b { display: block; font-size: 15px; line-height: 1.2; }
.mode .mt small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
.mode .free-pill { position: absolute; top: -9px; right: 10px; }
@media (max-width: 420px) { .mode { flex-direction: column; align-items: flex-start; } }

/* home: two products */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.duo-card { position: relative; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.duo-card.video { background: var(--ink); color: #f1f3f6; border-color: var(--ink); }
.duo-card.video p { color: #b9bcc6; }
.duo-card.video .formats span { background: #1b1e26; border-color: #2a2e39; color: #e6e8ec; }
.duo-card h3 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.duo-card p { margin: 0; color: var(--ink-2); }
.duo-card .btn { align-self: flex-start; margin-top: 6px; }
.duo-card.video .btn.dark { background: #fff; color: var(--ink); }
.duo-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #1e9bff, #0a55ff); color: #fff; }
.duo-ic svg { width: 28px; height: 28px; }
.duo-time { position: absolute; top: 28px; right: 28px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: #0a4fd6; }
.duo-card.video .duo-time { background: #1b2a44; color: #8cc2ff; }

/* misc */
.lang { margin-top: 10px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); padding: 0 8px; font: 13px var(--font); color: var(--ink-2); }
.kw { font-size: 12.5px; color: var(--ink-3); margin-top: 28px; }
.code-input { letter-spacing: .5em; font-size: 24px !important; text-align: center; font-weight: 700; }
.ts { min-height: 66px; margin: 10px 0; }

/* guides */
.guide .byline { color: var(--ink-3); font-size: 14px; margin: -6px 0 18px; }
.guide .answer { font-size: 18px; background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 0 0 26px; }
.tbl { overflow-x: auto; margin: 14px 0 22px; -webkit-overflow-scrolling: touch; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--paper); }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--bg); }
.tbl tbody th { font-weight: 600; }
.guide .cta { margin: 30px 0; }
.guide .cta .btn { margin-top: 6px; }
