/* Tumble website. Dark, with the Tumble orange. One stylesheet for every page, static or Worker-rendered. */
:root {
  --bg: #0b0b0b; --bg2: #121212; --surface: #161616; --surface2: #1d1d1d; --line: #262626; --line2: #333;
  --fg: #f4f4f4; --muted: #a3a3a3; --dim: #737373;
  --orange: #FE6532; --orange-hover: #F0531F; --orange-dark: #D9480F; --orange-soft: rgba(254, 101, 50, .12); --orange-glow: rgba(254, 101, 50, .35);
  --ok: #3ccf7a; --warn: #ff7b5c;
  --radius: 14px; --radius-sm: 8px;
  --display: "Avenir Next", Avenir, Futura, Inter, system-ui, -apple-system, sans-serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 48px); }
.i { flex: none; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 23px; border: 1px solid var(--line2);
  background: transparent; color: var(--fg); font: 600 15px/1 var(--text); cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--surface2); border-color: #444; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 18px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 27px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.btn-ghost { border-color: transparent; color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 11, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font: 700 19px/1 var(--display); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--fg); background: rgba(255, 255, 255, .05); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links .btn { margin-left: 10px; }
.nav-toggle { display: none; }
.nav-burger { display: none; }
@media (max-width: 820px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 10px; cursor: pointer; }
  .nav-burger span { width: 20px; height: 2px; border-radius: 1px; background: var(--fg); }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); background: var(--bg2); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.foot h4 { font: 600 13px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot a:not(.btn):not(.brand) { display: block; color: var(--muted); font-size: 15px; padding: 4px 0; }
.foot a:not(.btn):not(.brand):hover { color: var(--fg); text-decoration: none; }
.foot-brand p { color: var(--muted); margin: 14px 0 18px; max-width: 300px; }
.foot-small { padding: 20px 0 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- sections ---------- */
.section { padding: 110px 0 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); }
.lede { color: var(--muted); font-size: 19px; margin-top: 16px; }
.accent { color: var(--orange); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(860px, 92vh); display: grid; align-items: end; overflow: hidden; margin-top: -65px; padding-top: 65px; }
.hero video, .hero .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero video { object-fit: cover; }
.hero .hero-shade { background: linear-gradient(180deg, rgba(11,11,11,.25) 0%, rgba(11,11,11,.15) 40%, rgba(11,11,11,.88) 82%, var(--bg) 100%), radial-gradient(ellipse at 20% 80%, rgba(11,11,11,.7), transparent 60%); }
.hero-content { position: relative; padding: 0 0 88px; }
.hero h1 { font-size: clamp(48px, 8.2vw, 104px); font-weight: 700; max-width: 900px; letter-spacing: -0.03em; text-shadow: 0 4px 40px rgba(0,0,0,.4); }
.hero .lede { font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.82); max-width: 620px; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero-note { color: rgba(255,255,255,.6); font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 15px; background: rgba(254,101,50,.16); border: 1px solid rgba(254,101,50,.4); color: #ffb79c; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.stats > div { padding: 26px 28px; } .stats > div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font: 700 36px/1 var(--display); color: var(--fg); } .stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); font: 700 16px/1 var(--display); margin-bottom: 20px; }
.step h3 { font-size: 22px; margin-bottom: 10px; } .step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- live stage ---------- */
.stage-card { position: relative; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(ellipse at 50% 0%, #1c1512 0%, var(--bg2) 60%); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.stage-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.stage-bar .title { font-weight: 600; margin-right: auto; display: flex; gap: 8px; align-items: center; }
.stage-bar .title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.stage-canvas { width: 100%; height: 460px; touch-action: none; cursor: grab; }
.stage-canvas:active { cursor: grabbing; }
.stage-hint { position: absolute; left: 18px; bottom: 14px; color: var(--dim); font-size: 13px; pointer-events: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 500 13px/1 var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--orange); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--fg); border-color: var(--line2); }

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg2); padding: 30px 28px 32px; }
.feature .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; } .feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- split (text + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.split li { display: flex; gap: 12px; color: var(--muted); } .split li .i { color: var(--orange); margin-top: 3px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Plugin window mock: a faithful sketch of Tumble's own layout. */
.mock { border: 1px solid var(--line2); border-radius: 14px; background: #1e1e1e; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02); font: 12px/1.4 var(--text); color: #ddd; }
.mock-top { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-bottom: 1px solid #2c2c2c; }
.mock-top .burger { color: var(--orange); font-size: 15px; } .mock-top b { font-weight: 600; } .mock-top .chip { margin-left: 4px; }
.mock-top .sp { margin-left: auto; display: flex; gap: 6px; } .mock-top .sp i { width: 54px; height: 20px; border-radius: 5px; border: 1px solid #333; display: block; }
.mock-body { display: grid; grid-template-columns: 130px 1fr 150px; height: 300px; }
.mock-pal { border-right: 1px solid #2c2c2c; padding: 10px; display: flex; flex-direction: column; gap: 7px; color: #bbb; }
.mock-pal span { display: flex; align-items: center; gap: 6px; } .mock-pal span::before { content: "›"; color: #777; }
.mock-stage { position: relative; background: #f5f5f5; margin: 14px; border-radius: 3px; }
.mock-stage canvas { width: 100%; height: 100%; }
.mock-insp { border-left: 1px solid #2c2c2c; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-insp .row { display: flex; justify-content: space-between; color: #aaa; } .mock-insp .row i { width: 50px; height: 16px; border: 1px solid #3a3a3a; border-radius: 4px; display: block; }
.mock-insp .card { border: 1px solid #3a3a3a; border-radius: 6px; padding: 7px; display: flex; flex-direction: column; gap: 6px; }
.mock-tl { border-top: 1px solid #2c2c2c; padding: 8px 12px 12px; display: grid; gap: 5px; }
.mock-tl .bar { display: flex; gap: 8px; align-items: center; color: #999; } .mock-tl .bar .bake { margin-left: auto; border: 1px solid #3a3a3a; border-radius: 5px; padding: 2px 8px; }
.mock-tl .clip { height: 14px; border-radius: 3px; }
@media (max-width: 600px) { .mock-body { grid-template-columns: 1fr; } .mock-pal, .mock-insp { display: none; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.plan.featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 24px 70px rgba(254,101,50,.18); background: linear-gradient(180deg, #1d1511 0%, var(--surface) 45%); }
.plan .flag { position: absolute; top: -12px; left: 28px; padding: 3px 10px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.plan h3 { font-size: 26px; } .plan .tag { color: var(--muted); min-height: 52px; }
.plan .price { color: var(--muted); } .plan .price b { color: var(--fg); font: 700 44px/1 var(--display); letter-spacing: -0.02em; margin-right: 4px; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; color: rgba(255,255,255,.86); font-size: 15px; } .plan li .i { color: var(--orange); margin-top: 3px; }
.plan form, .plan .plan-cta { margin-top: auto; padding-top: 12px; display: grid; gap: 12px; }
.plan .btn { width: 100%; }
.seats { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.seats button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--fg); font-size: 18px; cursor: pointer; }
.seats button:hover:not(:disabled) { border-color: var(--orange); }
.seats button:disabled { opacity: .3; cursor: default; }
.seats output { min-width: 26px; text-align: center; color: var(--fg); font-weight: 700; font-size: 17px; }
.seats .total { margin-left: auto; white-space: nowrap; }
.price-note { text-align: center; color: var(--dim); font-size: 14px; margin-top: 24px; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { color: var(--dim); font-weight: 600; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 18%; }
.compare .yes { color: var(--orange); } .compare .no { color: var(--dim); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 64px 56px; background: radial-gradient(ellipse at 85% 20%, #ff8a5c 0%, var(--orange) 35%, #c63e0b 100%); color: #fff; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); max-width: 620px; }
.cta-band p { color: rgba(255,255,255,.88); margin-top: 14px; max-width: 560px; font-size: 18px; }
.cta-band .hero-cta { margin-top: 28px; }
.cta-band .btn { background: #fff; border-color: #fff; color: #111; } .cta-band .btn:hover { background: #f1f1f1; }
.cta-band .btn.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); } .cta-band .btn.btn-outline:hover { background: rgba(255,255,255,.12); }
.cta-band canvas { position: absolute; right: 0; top: 0; width: 46%; height: 100%; opacity: .95; }
@media (max-width: 760px) { .cta-band { padding: 44px 28px; } .cta-band canvas { display: none; } }

/* ---------- modifiers page ---------- */
.cat-nav { position: sticky; top: 64px; z-index: 20; background: rgba(11,11,11,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cat-nav .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; padding: 10px 0; }
@media (max-width: 860px) { .cat-nav { position: static; } .cat-nav a { font-size: 13px; padding: 6px 10px !important; } }
.cat-nav a { flex: none; white-space: nowrap; padding: 7px 9px; border-radius: 18px; color: var(--muted); font-size: 14px; border: 1px solid transparent; }
.cat-nav a:hover { color: var(--fg); border-color: var(--line2); text-decoration: none; }
.cat { padding-top: 84px; scroll-margin-top: 110px; }
.cat-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.cat-grid.flip > :first-child { order: 2; }
.demo { border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); overflow: hidden; }
.demo .stage-bar { padding: 10px 12px; }
.demo canvas { width: 100%; height: 340px; touch-action: none; cursor: grab; }
.cat h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 12px; }
.cat .intro { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.mods { display: grid; gap: 2px; }
.mod { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: start; padding: 12px 14px; border-radius: 12px; }
.mod:hover { background: var(--surface); }
.mod .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface2); color: var(--orange); }
.mod b { display: block; font-weight: 600; } .mod span { color: var(--muted); font-size: 15px; }
@media (max-width: 920px) { .cat-grid, .cat-grid.flip { grid-template-columns: 1fr; } .cat-grid.flip > :first-child { order: 0; } }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--surface2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.chip.pro { background: var(--orange); color: #fff; }
.chip.free { background: rgba(60,207,122,.14); color: var(--ok); }
.chip.ok { background: rgba(60,207,122,.14); color: var(--ok); } .chip.warn { background: rgba(255,123,92,.14); color: var(--warn); }

/* ---------- documents, forms, admin (narrow pages) ---------- */
.doc { padding-top: 64px; }
.doc .page-title { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.doc .sub { color: var(--muted); font-size: 17px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; } .doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: rgba(255,255,255,.82); } .doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; } .doc li { margin: 6px 0; }
.doc .updated { color: var(--dim); font-size: 14px; margin-top: 6px; }
.doc .toc { margin: 28px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); columns: 2; column-gap: 32px; }
.doc .toc a { display: block; color: var(--muted); padding: 3px 0; font-size: 15px; break-inside: avoid; } .doc .toc a:hover { color: var(--fg); }
@media (max-width: 600px) { .doc .toc { columns: 1; } }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--orange-soft); border: 1px solid rgba(254,101,50,.35); color: #ffd2c2; margin: 18px 0; }
.notice.bad { background: rgba(255,123,92,.12); border-color: rgba(255,123,92,.4); color: #ffc2b2; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); padding: 24px; margin-top: 24px; }
code { font: 14px var(--mono); background: var(--orange-soft); color: #ffc6b0; padding: 2px 7px; border-radius: 5px; user-select: all; }
.code-big { display: inline-block; font: 600 22px/1 var(--mono); letter-spacing: .04em; padding: 14px 18px; border-radius: 10px; }

table.list { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
table.list th, table.list td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { color: var(--dim); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
td form { display: inline; }

button, input, select, textarea { font: inherit; }
.doc button:not(.btn), .doc .button { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line2); background: transparent; color: var(--fg); cursor: pointer; font-size: 14px; }
.doc button:not(.btn):hover { background: var(--surface2); }
.doc button.primary { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; height: 44px; padding: 0 22px; border-radius: 22px; }
.doc button.primary:hover { background: var(--orange-hover); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.stack label, .fieldLabel { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 14px; }
.stack label .muted, .fieldLabel .muted { font-weight: 400; }
.field { display: flex; flex-direction: column; gap: 8px; }
input[type=email], input[type=text], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea { width: 100%; min-width: 0; padding: 11px 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--fg); font-weight: 400; font-size: 15px; }
.row input[type=email] { width: auto; flex: 1; min-width: 240px; }
select { height: 46px; appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; } textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange-glow); outline-offset: 0; border-color: var(--orange); }
input[type=file] { font-size: 14px; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .pick[hidden] { display: none; } .pick .muted { font-size: 14px; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .files:empty { display: none; }
.files li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.files .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.files .fx { width: 24px !important; height: 24px !important; padding: 0 !important; margin-left: auto; border: 0 !important; border-radius: 12px !important; background: none; color: var(--muted); font-size: 18px; line-height: 1; }
.files .fx:hover { background: var(--surface2); color: var(--fg); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* licence codes on the thank-you and licence pages */
.codes { list-style: none; padding: 0 !important; margin: 22px 0 !important; display: flex; flex-direction: column; gap: 10px; }
.codes li { display: flex; align-items: center; gap: 14px; margin: 0 !important; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.codes code { font: 600 19px/1 var(--mono); letter-spacing: .05em; padding: 8px 12px; }
.codes .btn { margin-left: auto; }
.doc ol.how li::marker { color: var(--orange); font-weight: 700; }
.lic { margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.lic h2 { margin: 0 0 4px !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lic .sub { font-size: 15px !important; }
.lic table.list { margin: 18px 0; }
.lic td form + form { margin-left: 6px; }
@media (max-width: 600px) { .lic { padding: 16px; } table.list th:first-child, table.list td:first-child { display: none; } }
.compare td svg { display: block; margin: 0 auto; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.lic form[action="/team/portal"] { margin-top: 18px; }
.plan { min-width: 0; } @media (max-width: 420px) { .plan { padding: 26px 20px 22px; } .seats { gap: 8px; } }

/* site-styled dropdown (site.js turns select[data-dropdown] into this; the select stays for the form) */
.dd { position: relative; }
.dd-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.dd button.dd-btn { width: 100%; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--fg); font-size: 15px; font-weight: 400; text-align: left; cursor: pointer; }
.dd button.dd-btn:hover { background: var(--surface); border-color: #474747; }
.dd button.dd-btn:focus-visible, .dd button.dd-btn[aria-expanded="true"] { outline: 2px solid var(--orange-glow); outline-offset: 0; border-color: var(--orange); }
.dd-btn .chev { flex: none; color: var(--muted); transition: transform .18s ease; }
.dd-btn[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--fg); }
.dd .dd-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow: auto;
  background: var(--surface2); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.dd .dd-list[hidden] { display: none; }
.dd .dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 12px; border-radius: 8px; color: var(--fg); font-size: 15px; cursor: pointer; }
.dd .dd-list li.active { background: var(--orange-soft); }
.dd .dd-list li[aria-selected="true"] { color: var(--orange); font-weight: 600; }
.dd .dd-list li .tick { visibility: hidden; flex: none; }
.dd .dd-list li[aria-selected="true"] .tick { visibility: visible; }
.dd .dd-list:focus { outline: none; }

/* ---------- ready-made scenes (modifiers page) ---------- */
.scene-group { margin-top: 36px; }
.scene-group h3 { color: var(--orange); font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.scene { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.scene svg { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; }
.scene figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 12px 11px; font-size: 14px; font-weight: 600; }
.scene figcaption .chip { margin-left: auto; }

