:root {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --panel-2: #efece6;
  --line: #e4e0d8;
  --text: #141311;
  --muted: #6e6a63;
  --ink: #141311;
  --ink-text: #f5f3ef;
  --accent: #ff4a1c;
  --ok: #1f8a4c;
  --warn: #b26b00;
  --bad: #d23b2c;
  --radius: 12px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e0d; --panel: #171614; --panel-2: #201e1b; --line: #2d2a26; --text: #f2efe9; --muted: #9a958c;
    --ink: #f2efe9; --ink-text: #0f0e0d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e0d; --panel: #171614; --panel-2: #201e1b; --line: #2d2a26; --text: #f2efe9; --muted: #9a958c;
  --ink: #f2efe9; --ink-text: #0f0e0d; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 600; }
p { margin: 0 0 .8em; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.flat { background: transparent; }
.btn { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 9px 14px; border-radius: 9px; font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; justify-content: center; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { border-color: var(--muted); }
.btn.ink { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.btn.ink:hover { opacity: .88; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 13px 20px; font-size: 15.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: progress; }
input, textarea, select { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--text) 18%, transparent); border-color: var(--text); }
textarea { min-height: 84px; resize: vertical; }
label.f { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 6px; font-weight: 500; }
.pill { display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); color: var(--muted); font-weight: 500; white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 8px 13px; border-radius: 9px; font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; text-decoration: none; }
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.chip small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.chip.on small { color: inherit; opacity: .7; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--ink-text); display: inline-grid; place-items: center; font-family: var(--serif); font-size: 19px; line-height: 1; padding-bottom: 2px; flex: none; }
.logo { font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }

/* ---------- landing ---------- */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; gap: 12px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.6vw, 92px); line-height: .98; letter-spacing: -.025em; margin: 18px 0 22px; }
.hero h1 em { font-style: italic; }
.hero p.lead { font-size: 17.5px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.marquee { height: 620px; overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.marquee .col { display: grid; gap: 12px; animation: scrollY 38s linear infinite; }
.marquee .col:nth-child(2) { animation-duration: 46s; animation-direction: reverse; }
.marquee .col:nth-child(3) { animation-duration: 42s; }
.shot { position: relative; border-radius: 12px; overflow: hidden; background: var(--panel-2); aspect-ratio: 3/4; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .cap { position: absolute; left: 8px; bottom: 8px; background: rgba(15,14,13,.62); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(6px); }
@keyframes scrollY { to { transform: translateY(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .marquee .col { animation: none; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 22px 18px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.05; }
.facts span { color: var(--muted); font-size: 13.5px; }
section.s { padding: 96px 0; }
.s-head { max-width: 720px; margin-bottom: 40px; }
.s-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.02em; }
.s-head h2 em { font-style: italic; }
.s-head p { color: var(--muted); font-size: 16.5px; max-width: 600px; }
.models-strip { display: grid; gap: 28px; }
.mrow { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }
.mrow .who b { display: block; font-size: 17px; }
.mrow .imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.compare-ba { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; user-select: none; touch-action: none; cursor: ew-resize; max-width: 460px; }
.compare-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-ba .after { clip-path: inset(0 0 0 var(--x, 50%)); }
.compare-ba .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; background: #fff; transform: translateX(-1px); }
.compare-ba .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.compare-ba .lbl { position: absolute; top: 10px; background: rgba(15,14,13,.62); color: #fff; font-size: 11.5px; padding: 3px 9px; border-radius: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps-l { display: grid; gap: 4px; counter-reset: st; }
.step-l { padding: 16px 18px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.step-l.on { background: var(--panel); border-color: var(--line); }
.step-l h4 { margin: 0; font-size: 15.5px; display: flex; gap: 12px; align-items: baseline; }
.step-l h4::before { counter-increment: st; content: "0" counter(st); font-family: var(--serif); font-size: 18px; color: var(--muted); font-weight: 400; }
.step-l p { margin: 6px 0 0 34px; font-size: 14px; color: var(--muted); display: none; }
.step-l.on p { display: block; }
.screen { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(20,19,17,.25); }
.screen-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.screen img { width: 100%; }
.dark-band { background: #0f0e0d; color: #f2efe9; border-radius: 20px; padding: 64px 48px; }
:root[data-theme="dark"] .dark-band { background: #181614; border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dark-band { background: #181614; border: 1px solid var(--line); } }
.dark-band .muted { color: #9a958c; }
.dark-band .s-head p { color: #9a958c; }
.spicy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.rules div { border-top: 1px solid #2d2a26; padding-top: 14px; font-size: 14px; }
.rules b { display: block; margin-bottom: 4px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feat div { padding: 26px 22px 26px 0; border-bottom: 1px solid var(--line); }
.feat div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.feat div:not(:nth-child(3n+1)) { padding-left: 22px; }
.feat h4 { font-size: 15.5px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.cmp th, table.cmp td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { font-weight: 500; color: var(--muted); font-size: 13px; }
table.cmp td:first-child { color: var(--muted); width: 22%; }
table.cmp td:last-child { font-weight: 500; }
.table-scroll { overflow-x: auto; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price .card { padding: 30px; }
.price .big { font-family: var(--serif); font-size: 64px; line-height: 1; }
.check { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 14.5px; }
.check li { display: flex; gap: 10px; }
.check li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.check.x li { color: var(--muted); }
.check.x li::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
details.faq { border-bottom: 1px solid var(--line); padding: 18px 2px; }
details.faq summary { cursor: pointer; font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin: 10px 0 0; max-width: 680px; }
footer.site { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
footer.site a { text-decoration: none; display: block; margin: 5px 0; }
footer.site a:hover { color: var(--text); }
.doc { max-width: 760px; padding-bottom: 64px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; }
.doc h2 { margin-top: 1.6em; font-size: 19px; }

/* ---------- app ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .nl { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
.side .nl.on, .side .nl:hover { background: var(--panel-2); color: var(--text); }
.side .nl .n { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side .sec { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 10px 6px; display: flex; justify-content: space-between; align-items: center; }
.side .sec a { text-decoration: none; display: inline-flex; }
.side .foot { margin-top: auto; padding-top: 14px; }
.av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.av.lg { width: 72px; height: 72px; font-size: 24px; }
.main { padding: 28px 36px 60px; min-width: 0; max-width: 1280px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; letter-spacing: -.015em; margin: 0; line-height: 1.1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 34px; display: block; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .ic { display: none; }
.dash { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.dash .w2 { grid-column: span 2; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.card-h h3 { font-size: 14.5px; margin: 0; display: flex; gap: 8px; align-items: center; }
.card-h a, .link { font-size: 12.5px; color: var(--muted); text-decoration: none; cursor: pointer; }
.card-h a:hover, .link:hover { color: var(--text); }
.list { display: grid; gap: 2px; }
.li { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; font-size: 13.5px; }
.li:hover { background: var(--panel-2); }
.li .grow { flex: 1; min-width: 0; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { width: 40px; height: 52px; border-radius: 7px; object-fit: cover; background: var(--panel-2); flex: none; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery .g { position: relative; border-radius: 10px; overflow: hidden; background: var(--panel-2); aspect-ratio: 3/4; cursor: pointer; }
.gallery .g img, .gallery .g video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery .g:hover img { transform: scale(1.03); }
.gallery .g .tag { position: absolute; left: 8px; bottom: 8px; background: rgba(15,14,13,.62); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.sec-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }

/* chat */
.chat { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; padding-bottom: 80px; }
.msg { display: flex; gap: 12px; align-items: flex-start; animation: up .25s ease; }
.msg .bot { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--ink-text); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; padding-bottom: 2px; flex: none; }
.msg .body { flex: 1; min-width: 0; padding-top: 3px; }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { background: var(--panel-2); color: var(--text); padding: 8px 13px; border-radius: 12px; max-width: 75%; white-space: pre-wrap; font-size: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.askrow { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 13px; }
.steps li { color: var(--muted); display: flex; gap: 9px; align-items: center; }
.steps li::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.steps li.run { color: var(--text); }
.steps li.run::before { border-color: var(--text); border-right-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--text); border-color: var(--text); }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.picks .p { position: relative; border-radius: 10px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; cursor: pointer; aspect-ratio: 3/4; background: var(--panel-2); }
.picks .p img, .picks .p video { width: 100%; height: 100%; object-fit: cover; }
.picks .p.on { outline-color: var(--text); }
.picks .p .n { position: absolute; top: 6px; left: 6px; background: var(--panel); color: var(--text); font-size: 11px; font-weight: 600; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.result img, .result video { max-height: 560px; width: auto; max-width: 100%; border-radius: 12px; }
.sb { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; background: var(--panel); }
.sb textarea { min-height: 60px; font-size: 13px; }

/* modal + toast */
.modal { position: fixed; inset: 0; background: rgba(15,14,13,.5); display: grid; place-items: center; z-index: 20; padding: 16px; animation: fade .15s; }
.modal .box { background: var(--panel); border-radius: 16px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 20px; border: 1px solid var(--line); }
.modal .box.wide { width: min(980px, 100%); }
.toast { position: fixed; bottom: 16px; right: 16px; left: 16px; max-width: 420px; margin-left: auto; background: var(--ink); color: var(--ink-text); padding: 12px 16px; border-radius: 10px; z-index: 30; font-size: 14px; animation: up .2s; }
.toast.err { background: var(--bad); color: #fff; }
.copybox { background: var(--panel-2); border-radius: 10px; padding: 12px; white-space: pre-wrap; font-size: 13.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes up { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 980px) {
  .hero, .split { grid-template-columns: 1fr; gap: 32px; }
  .marquee { height: 460px; }
  .dash { grid-template-columns: 1fr; } .dash .w2 { grid-column: auto; }
  .stats, .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feat { grid-template-columns: 1fr; } .feat div { border-right: 0 !important; padding-left: 0 !important; }
  .price, .rules { grid-template-columns: 1fr; }
  .spicy-grid { grid-template-columns: repeat(2, 1fr); }
  .mrow { grid-template-columns: 1fr; gap: 10px; }
  .nav-links { display: none; }
  .dark-band { padding: 40px 20px; border-radius: 14px; }
  section.s { padding: 64px 0; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 5; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .sec, .side .foot, .side .mlist, .side .logo { display: none; }
  .side .nl { white-space: nowrap; }
  .main { padding: 16px 16px 60px; }
  .mrow .imgs { grid-template-columns: repeat(2, 1fr); }
  .marquee { grid-template-columns: repeat(2, 1fr); height: 420px; }
  .marquee .col:nth-child(3) { display: none; }
}
