/* DesignAround website. Self-hosted fonts, no scripts. Shared with server pages (pages.py):
   wrap, narrow, card, btn, muted, price-lg, error, check, key, danger, top, nav, brand, foot, cols. */
@font-face { font-family: "Mona Sans"; src: url("/assets/fonts/MonaSans.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #121315;
  --t2: #4a4d53;
  --t3: #6b6e74;
  --canvas: #ffffff;
  --side: #f7f7f5;
  --wash: #f0efeb;
  --line: rgba(18, 19, 21, .09);
  --line-2: rgba(18, 19, 21, .14);
  --accent: #d9452b;
  --accent-ink: #b8361f;
  --ok: #1c8657;
  --warn: #a8690a;
  --bad: #c93c3c;
  --max: 1200px;
  --gut: 32px;
  --sans: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --float: 0 0 0 1px rgba(18,19,21,.06), 0 1px 2px rgba(18,19,21,.05), 0 12px 32px -12px rgba(18,19,21,.16);
  --lift: 0 0 0 1px rgba(18,19,21,.07), 0 2px 4px rgba(18,19,21,.04), 0 40px 80px -32px rgba(18,19,21,.35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; font-weight: 430; line-height: 1.6; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-stretch: 110%; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 40px; letter-spacing: -0.03em; }
h2 { font-size: 30px; letter-spacing: -0.025em; }
h3 { font-size: 18px; font-stretch: 106%; font-weight: 650; letter-spacing: -0.012em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin: .3em 0; }
strong, b { font-weight: 650; }
code, pre, kbd { font-family: var(--mono); font-size: .86em; }
code { background: var(--wash); border-radius: 5px; padding: .1em .38em; }
pre { background: var(--ink); color: #e8e9ea; border-radius: 12px; padding: 16px 18px; overflow-x: auto; line-height: 1.6; margin: 0 0 1.4em; font-size: 13.5px; }
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--t3); font-weight: 560; font-size: 13px; }
td:last-child, th:last-child { padding-right: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.13em; flex: none; }
.lg { width: 18px; height: 18px; display: inline-block; flex: none; }

.wrap { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: calc(760px + var(--gut) * 2); }
main.wrap { padding-top: 56px; padding-bottom: 88px; }
.muted { color: var(--t3); }
.small { font-size: 14px; }
.center { text-align: center; }
.lead { font-size: 19px; line-height: 1.6; color: var(--t2); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-stretch: 112%; font-weight: 720; letter-spacing: -0.02em; }
.brand img { width: 24px; height: 24px; }
.nav nav { display: flex; gap: 26px; flex: 1; justify-content: center; }
.nav nav a { text-decoration: none; color: var(--t2); font-size: 14.5px; font-weight: 500; }
.nav nav a:hover, .nav nav a.on { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: rgba(18,19,21,.28); }
.btn.primary, .card .btn:not(.ghost):not(.danger), .btn:not(.ghost):not(.light):not(.danger):not(.secondary) { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover, .card .btn:not(.ghost):not(.danger):hover { background: #2a2c30; }
.btn.ghost, .btn.secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: #f0efeb; }
.btn.danger { background: #fff; color: var(--bad); border-color: rgba(201,60,60,.4); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn.block { display: flex; width: 100%; }
.btn .ic { font-size: 17px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 30px 0 0; }

/* hero */
.hero { position: relative; overflow: hidden; height: 720px; background: #9a928b; }
.hero-plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(242,240,236,.94) 0%, rgba(242,240,236,.86) 30%, rgba(242,240,236,.42) 48%, rgba(242,240,236,0) 64%); }
.hero-copy { position: relative; padding-top: 112px; }
.hero h1 { font-size: 76px; line-height: 1.0; font-stretch: 114%; font-weight: 720; letter-spacing: -0.035em; margin: 0 0 26px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .acc { color: var(--accent-ink); }
.hero .lead { max-width: 520px; color: #3d4046; margin: 0; }
.install { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 14px; border-radius: 9px; background: rgba(255,255,255,.72); box-shadow: 0 0 0 1px var(--line); font-family: var(--mono); font-size: 13px; color: var(--t2); }
.install b { color: var(--accent-ink); font-weight: 600; }

/* product shot */
.product { position: relative; margin-top: -132px; padding-bottom: 28px; }
.shot { border-radius: 16px; overflow: hidden; box-shadow: var(--lift); background: #fff; }
.shot img { width: 100%; }
.caption { font-size: 13.5px; color: var(--t3); margin: 16px 2px 0; max-width: 820px; }

/* works with */
.works { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 26px 0; margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.works .lbl { font-size: 14px; color: var(--t3); flex: none; }
.works ul { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.works li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 560; color: var(--t2); }

/* sections */
.section { padding: 112px 0; }
.section.tight { padding: 88px 0; }
.section.alt { background: var(--side); }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent-ink); margin: 0 0 14px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: 44px; line-height: 1.08; font-stretch: 112%; letter-spacing: -0.03em; }
.section-head p { font-size: 18px; color: var(--t2); margin: 0; }

.feature { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 80px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.rev { grid-template-columns: minmax(0, 1fr) 420px; }
.feature.rev .f-text { order: 2; }
.f-text h3 { font-size: 34px; line-height: 1.12; font-stretch: 112%; font-weight: 700; letter-spacing: -0.028em; margin-bottom: 18px; }
.f-text p { color: var(--t2); font-size: 16.5px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.fact .n { font-size: 46px; line-height: 1; font-stretch: 112%; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.fact .d { font-size: 14px; line-height: 1.5; color: var(--t2); }
.f-media { border-radius: 16px; overflow: hidden; background: var(--side); box-shadow: 0 0 0 1px var(--line); }
.f-media.pad { padding: 28px; background: #fff; }
.f-media.stage { display: grid; place-items: center; padding: 44px 32px; background: var(--side); }
.f-media.stage img { width: 383px; border-radius: 14px; box-shadow: var(--lift); }
.f-media.tall { max-height: 560px; }
.f-media.tall img { width: 100%; }
.f-media.split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 0; background: #fff; }
.f-media.split img { height: 100%; object-fit: cover; object-position: top left; }
.f-media.split img + img { border-left: 1px solid var(--line); }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.cols3 > div { padding: 30px 32px 6px 0; }
.cols3 > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.cols3 h3 { margin-bottom: 10px; }
.cols3 p { color: var(--t2); font-size: 15.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.two h2 { font-size: 30px; }
.two ul { padding-left: 0; list-style: none; }
.two li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--line); margin: 0; color: var(--t2); font-size: 15.5px; }
.two li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }

/* closing band */
.closing { position: relative; overflow: hidden; background: #141517; color: #f4f3ef; }
.closing-plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.closing-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,23,.96) 0%, rgba(20,21,23,.86) 40%, rgba(20,21,23,.2) 70%, rgba(20,21,23,0) 100%); }
.closing .wrap { position: relative; padding-top: 120px; padding-bottom: 120px; }
.closing h2 { font-size: 52px; line-height: 1.05; font-stretch: 114%; letter-spacing: -0.032em; margin-bottom: 18px; color: #fff; }
.closing p { color: #c9cacd; font-size: 18px; max-width: 520px; }
.closing .install { background: #1d1e21; box-shadow: 0 0 0 1px rgba(255,255,255,.1); color: #c9cacd; margin-top: 6px; }
.closing .install b { color: #f08a72; }
.closing .link { color: #fff; }

/* pricing */
.page-head { padding-top: 72px; padding-bottom: 40px; }
.page-head + main.wrap { padding-top: 12px; }
.page-head h1 { font-size: 56px; line-height: 1.04; font-stretch: 114%; letter-spacing: -0.035em; margin-bottom: 16px; }
.page-head .lead { max-width: 720px; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 18px; }
.plan { border-radius: 18px; padding: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line-2); display: flex; flex-direction: column; }
.plan.featured { box-shadow: 0 0 0 2px var(--ink), var(--float); }
.plan h3 { font-size: 20px; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.plan .tag { font-size: 12px; font-weight: 600; color: var(--accent-ink); font-stretch: 100%; letter-spacing: 0; }
.price { font-size: 52px; font-weight: 700; font-stretch: 112%; letter-spacing: -0.035em; line-height: 1; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 500; color: var(--t3); letter-spacing: 0; margin-left: 4px; }
.plan .muted { font-size: 14.5px; margin: 0; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; border-top: 1px solid var(--line); }
.plan li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--line); margin: 0; font-size: 14.5px; color: var(--t2); line-height: 1.5; }
.plan li .ic { position: absolute; left: 0; top: 12px; font-size: 16px; color: var(--ink); }
.plan .btns { display: grid; gap: 10px; }
.note-line { font-size: 14px; color: var(--t3); max-width: 880px; }
.cols3 + .note-line { margin-top: 36px; }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 18px; box-shadow: 0 0 0 1px var(--line-2); overflow: hidden; margin: 8px 0 18px; }
.pack { padding: 26px 26px 24px; background: #fff; }
.pack + .pack { border-left: 1px solid var(--line); }
.pack .amount { font-size: 15px; font-weight: 600; color: var(--t2); }
.price-lg { font-size: 34px; font-weight: 700; font-stretch: 112%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 6px 0 18px; }
.usage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.usage .side-card { position: sticky; top: 96px; }
.usage .side-card img { border-radius: 16px; box-shadow: var(--float); }
.usage .side-card p { font-size: 13.5px; color: var(--t3); margin: 12px 2px 0; }
td.num, .n-col { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.faq > div { padding: 22px 0; border-top: 1px solid var(--line); }
.faq h3 { font-size: 17px; margin-bottom: 8px; }
.faq p { color: var(--t2); font-size: 15px; margin: 0; }
h2.sub { font-size: 30px; margin: 72px 0 10px; }
p.sub-lead { color: var(--t2); margin: 0 0 22px; }

/* cards, notes, forms (server pages and contact) */
.card { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line-2); padding: 26px 28px; margin: 0 0 20px; }
.card h3 { margin-top: 0; }
.card label { display: block; font-weight: 600; font-size: 14.5px; margin: 0 0 16px; }
.card input[type=email], .card input:not([type]), .card input[type=text], .card textarea { display: block; width: 100%; margin-top: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-weight: 430; }
.card textarea { height: auto; padding: 10px 14px; }
.card input:focus, .card textarea:focus { outline: none; border-color: var(--ink); }
.card label.check { font-weight: 430; display: flex; gap: 10px; align-items: flex-start; color: var(--t2); }
.card label.check input { margin-top: 5px; }
.card .btn { margin-right: 8px; }
.note { border-radius: 12px; background: var(--side); box-shadow: 0 0 0 1px var(--line); padding: 16px 18px; margin: 0 0 1.4em; }
.error { color: var(--bad); font-weight: 600; }
pre.key { white-space: pre-wrap; word-break: break-all; font-size: 15px; }

/* legal and docs */
.legal h1 { font-size: 48px; font-stretch: 114%; letter-spacing: -0.035em; margin-bottom: 10px; }
.legal .meta { color: var(--t3); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; font-stretch: 108%; letter-spacing: -0.018em; margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { color: #2e3136; font-size: 16px; line-height: 1.72; }
.legal table { font-size: 14.5px; }
.legal td { color: #2e3136; }

.docs-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc .t { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; color: var(--t2); text-decoration: none; border-left: 1px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.docs { max-width: 780px; min-width: 0; }
.docs pre { max-width: 100%; }
.docs table { display: block; overflow-x: auto; }
.docs h1 { font-size: 48px; font-stretch: 114%; letter-spacing: -0.035em; margin-bottom: 12px; }
.docs h2 { font-size: 28px; margin: 64px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.docs h3 { font-size: 18px; margin: 32px 0 10px; }
.docs p, .docs li { color: #2e3136; line-height: 1.72; }
.docs table td:first-child { white-space: nowrap; }
.docs .faq { grid-template-columns: minmax(0, 1fr); }
.docs-plate { border-radius: 16px; overflow: hidden; margin: 8px 0 36px; height: 200px; }
.docs-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.contact-grid .card:first-child { grid-row: span 2; }
.big-mail { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; font-stretch: 110%; letter-spacing: -0.02em; text-decoration: none; margin: 4px 0 14px; }
.big-mail:hover { text-decoration: underline; text-underline-offset: 6px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 18px; font-size: 15px; margin: 0; }
.kv dt { color: var(--t3); font-size: 13.5px; padding-top: 1px; }
.kv dd { margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--side); padding: 40px 0 48px; font-size: 14px; color: var(--t2); }
.foot p { margin: .35em 0; }
.foot .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot a { color: var(--t2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .brand { margin-bottom: 8px; }
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot .links + .links { margin-top: 8px; }

/* zh */
.zh .hero h1 { font-size: 68px; font-stretch: 100%; letter-spacing: -0.02em; }
.zh body, .zh .lead { line-height: 1.75; }

/* responsive */
@media (max-width: 1180px) {
  .hero h1 { font-size: 64px; }
  .feature, .feature.rev { grid-template-columns: 360px minmax(0, 1fr); gap: 56px; }
  .feature.rev { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 980px) {
  :root { --gut: 22px; }
  .nav nav { display: none; }
  .nav { justify-content: space-between; }
  .hero { height: auto; background: var(--wash); }
  .hero-scrim { display: none; }
  .hero-plate { position: static; height: 300px; object-position: 78% 60%; }
  .hero-copy { padding-top: 48px; padding-bottom: 36px; }
  .hero h1, .zh .hero h1 { font-size: 46px; }
  .hero h1 span { white-space: normal; }
  .install { display: flex; overflow-x: auto; white-space: nowrap; }
  .product { margin-top: 28px; }
  .feature, .feature.rev { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0; }
  .feature.rev .f-text { order: 0; }
  .section { padding: 72px 0; }
  .section-head h2 { font-size: 34px; }
  .f-text h3 { font-size: 28px; }
  .cols3 { grid-template-columns: minmax(0, 1fr); }
  .cols3 > div, .cols3 > div + div { padding: 24px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .cols3 > div:first-child { border-top: 0; }
  .two, .faq, .usage, .docs-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .toc { position: static; }
  .usage .side-card { position: static; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .packs { grid-template-columns: 1fr 1fr; }
  .pack:nth-child(3) { border-left: 0; }
  .pack:nth-child(n+3) { border-top: 1px solid var(--line); }
  .closing h2 { font-size: 38px; }
  .closing-scrim { background: rgba(20,21,23,.78); }
  .page-head h1, .legal h1, .docs h1 { font-size: 40px; }
  .f-media.split { grid-template-columns: minmax(0, 1fr); }
  .f-media.split img + img { display: none; }
  td.num, .n-col { white-space: normal; }
  .usage table td:first-child { width: 58%; }
}
@media (max-width: 560px) {
  .nav-cta .btn.ghost { display: none; }
  .hero h1, .zh .hero h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact .n { font-size: 40px; }
  .pack { padding: 20px; }
  .price-lg { font-size: 28px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  table { font-size: 14px; }
}

/* ------------------------------------------------------------------ brand */
.brand img { width: auto; height: 24px; }
.foot .brand img { height: 20px; }

/* ------------------------------------------------------------------ motion */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1.02); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero h1 span, .hero .lead, .hero .actions { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 span:nth-child(2) { animation-delay: .09s; }
.hero .lead { animation-delay: .2s; }
.hero .actions { animation-delay: .3s; }
.hero-plate { animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; transform: translateY(var(--y, 0px)) scale(1.02); will-change: transform; }
.js .hero-plate { animation: none; transform: translateY(var(--y, 0px)) scale(1.04); transition: transform .12s linear; }
.closing-plate { transform: translateY(var(--y, 0px)) scale(1.08); }

.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal] .f-media { transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .08s; }
.js [data-reveal]:not(.in) .f-media { transform: translateY(22px) scale(.985); }

.shot.tilt { --p: 1; transform-origin: 50% 0; transform: perspective(1800px) rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(.92 + var(--p) * .08)); }
.js .shot.tilt { --p: 0; }

/* the drawing draws itself */
.dwg { width: 100%; height: auto; display: block; }
.dwg polyline, .dwg path { stroke: var(--ink); vector-effect: non-scaling-stroke; stroke-width: 1.35px; }
.js .views polyline, .js .views path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .views.in polyline, .js .views.in path { animation: draw 1.6s cubic-bezier(.45,.05,.2,1) forwards; }
.js .views.in .v:nth-child(2) polyline { animation-delay: .12s; } .js .views.in .v:nth-child(3) polyline { animation-delay: .24s; }
.js .views.in .v:nth-child(4) polyline { animation-delay: .36s; } .js .views.in .v:nth-child(5) polyline { animation-delay: .48s; }
.js .views.in .v:nth-child(6) polyline { animation-delay: .6s; } .js .views.in .v:nth-child(7) polyline { animation-delay: .72s; }
.views { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 1px; background: var(--line); }
.views .v { position: relative; padding: 14px 16px 12px; background: #fff; }
.views .v.hero-v { grid-row: span 3; display: flex; flex-direction: column; justify-content: center; }
.views .fig { font-family: var(--mono); font-size: 11px; color: var(--t3); letter-spacing: .02em; }
.views .v .dwg { margin: 8px auto 0; max-height: 132px; }
.views .v.hero-v .dwg { max-height: 340px; }

/* ------------------------------------------------------------------ 3D stage */
.model { padding: 120px 0 112px; background: linear-gradient(180deg, #ffffff 0%, #f4f3ef 34%, #efeee9 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.model-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.model-head h2 { font-size: 48px; line-height: 1.06; font-stretch: 114%; letter-spacing: -0.034em; margin: 0; max-width: 760px; }
.model-head p { color: var(--t2); font-size: 17px; max-width: 420px; margin: 0; }
.model-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: stretch; }
.vlist { display: flex; flex-direction: column; gap: 4px; }
.vbtn { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; border: 0; background: transparent; font: inherit; color: var(--t2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.vbtn:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.vbtn[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--float); }
.vbtn .vid { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--t3); }
.vbtn[aria-pressed="true"] .vid { color: var(--accent-ink); }
.vbtn .vn { font-size: 14px; font-weight: 560; line-height: 1.3; }
.vbtn .vn small { display: block; font-size: 12px; font-weight: 430; color: var(--t3); margin-top: 1px; }
.vbtn .vr { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.vbtn.best .vr { color: var(--accent-ink); font-weight: 600; }
.stage { position: relative; min-height: 600px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 18%, #ffffff 0%, #f5f4f0 46%, #e9e7e1 100%); box-shadow: 0 0 0 1px rgba(18,19,21,.06), 0 30px 80px -40px rgba(18,19,21,.35); overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.stage canvas:active { cursor: grabbing; }
.stage.line { background: #fff; }
.stage .poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s; }
.stage .poster img { width: 62%; max-width: 560px; opacity: .9; }
.stage.ready .poster { opacity: 0; pointer-events: none; }
.hud { position: absolute; left: 22px; bottom: 20px; right: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; pointer-events: none; }
.hud .meta { background: rgba(255,255,255,.88); border-radius: 12px; padding: 10px 14px; box-shadow: 0 0 0 1px var(--line); max-width: 460px; }
.hud .meta b { font-family: var(--mono); font-weight: 600; margin-right: 8px; }
.hud .meta .r { font-family: var(--mono); color: var(--accent-ink); font-weight: 600; }
.hud .meta div { font-size: 13px; color: var(--t2); margin-top: 2px; }
.hud .hint { font-size: 12.5px; color: var(--t3); display: inline-flex; gap: 6px; align-items: center; }
.modes { position: absolute; top: 18px; right: 18px; display: inline-flex; padding: 4px; border-radius: 11px; background: rgba(255,255,255,.88); box-shadow: 0 0 0 1px var(--line); }
.modes button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--t2); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stage.loading::after { content: ""; position: absolute; top: 20px; left: 22px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(18,19,21,.15); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage.no-webgl .hud .hint, .stage.no-webgl .modes { display: none; }
.no-js-note { display: none; }

@media (max-width: 980px) {
  .model { padding: 72px 0; }
  .model-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .model-head h2 { font-size: 34px; }
  .model-grid { grid-template-columns: minmax(0, 1fr); }
  .vlist { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; order: 2; }
  .vbtn { grid-template-columns: auto auto; min-width: 150px; background: rgba(255,255,255,.6); }
  .vbtn .vn small { display: none; }
  .stage { min-height: 420px; }
  .views { grid-template-columns: 1fr 1fr; }
  .views .v.hero-v { grid-column: span 2; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .views polyline, .js .views path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .shot.tilt { --p: 1; }
}

/* download page */
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.dl { position: relative; border-radius: 18px; padding: 26px 24px 22px; background: #fff; box-shadow: 0 0 0 1px var(--line-2); display: flex; flex-direction: column; }
.dl h3 { font-size: 22px; margin: 0; }
.dl-sub { color: var(--t2); font-size: 15px; margin: 4px 0 22px; min-height: 24px; }
.dl .btn { margin-top: auto; }
.dl .btn .ic { font-size: 18px; }
.dl-two { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-two .btn { margin-top: 0; }
.dl-meta { font-size: 13.5px; color: var(--t3); margin: 12px 0 0; line-height: 1.45; min-height: 40px; }
.dl-rec { display: none; position: absolute; top: -11px; left: 20px; margin: 0; padding: 2px 9px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.dl.rec { box-shadow: 0 0 0 2px var(--ink), var(--float); }
.dl.rec .dl-rec { display: block; }
.dl.rec .btn.ghost { background: var(--ink); border-color: var(--ink); color: #fff; }
.dl-intro { color: var(--t2); max-width: 820px; margin: 0 0 26px; }
.dl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.dl-steps > div { border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; }
.dl-steps h3 { font-size: 18px; margin-bottom: 10px; }
.dl-steps ol { margin: 0 0 12px; padding-left: 20px; color: var(--t2); font-size: 15px; }
.dl-steps li { margin-bottom: 8px; }
.dl-steps pre { font-size: 12.5px; }
.dl-list { list-style: none; padding: 0; margin: 0; max-width: 880px; border-top: 1px solid var(--line); }
.dl-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); color: var(--t2); font-size: 15.5px; line-height: 1.55; }
.dl-list li .ic { position: absolute; left: 0; top: 15px; font-size: 17px; color: var(--ink); }
.dl-sums { overflow-x: auto; margin-bottom: 18px; }
.dl-sums table { font-size: 13.5px; min-width: 760px; }
.dl-sums td.mono { font-size: 12px; word-break: break-all; color: var(--t2); }
.dl-sums td:first-child { white-space: nowrap; }
@media (max-width: 1180px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; } }
@media (max-width: 760px) { .dl-steps { grid-template-columns: 1fr; gap: 0; } .dl-steps > div { padding-bottom: 8px; } }
@media (max-width: 560px) { .dl-grid { grid-template-columns: 1fr; } }
/* read-only share page (/v1/share/<token>, server-rendered) */
.share-files { list-style: none; margin: 0; padding: 0; }
.share-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; word-break: break-all; }
.share-files li:last-child { border-bottom: 0; }
.share-thumb { display: block; width: 168px; height: 126px; object-fit: contain; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); }
@media (max-width: 560px) { .share-thumb { width: 100%; height: auto; } }
