:root {
  --cream: #fbf7f2;
  --paper: #ffffff;
  --ink: #17131f;
  --ink-2: #2b2536;
  --muted: #6b6377;
  --line: #ece5dc;
  --line-2: #ddd3c6;
  --coral: #ff5a36;
  --coral-d: #e2441f;
  --violet: #6c4cf5;
  --violet-soft: #efebff;
  --lime: #d7f25c;
  --ok: #138a52;
  --ok-soft: #e4f6ec;
  --s1: #2a78d6;
  --s2: #eb6834;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
code { font: 600 .88em ui-monospace, monospace; background: #f1ebe3; padding: 1px 6px; border-radius: 5px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
main:focus-visible { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.02; margin: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 247, 242, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 22px var(--display); letter-spacing: -.03em; text-decoration: none; min-height: 44px; }
.lm { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--lime); display: grid; place-items: center; transform: rotate(-6deg); }
.lm .i { width: 18px; height: 18px; fill: var(--lime); stroke: none; }
.logo.sm { font-size: 18px; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: #f1ebe3; }
.top-cta { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--coral); color: #fff; }
.btn.primary:hover { background: var(--coral-d); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.ib { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--muted); }
.ib:hover { background: #f1ebe3; color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding: 64px 0 72px; }
.tag { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; font-size: 14px; font-weight: 500; margin: 0 0 22px; }
.tag span { background: var(--lime); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 13px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 86px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--coral); position: relative; white-space: nowrap; }
.lead { font-size: 20px; color: var(--muted); max-width: 560px; margin: 22px 0 28px; }
.acts { display: flex; gap: 12px; flex-wrap: wrap; }
.small { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.phone { position: relative; justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 16; background: var(--ink); border-radius: 44px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(23, 19, 31, .55); transform: rotate(2deg); }
.ph-post { background: var(--paper); border-radius: 32px; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.ph-img { flex: 1; background: radial-gradient(circle at 30% 30%, #ffd166, transparent 45%), radial-gradient(circle at 75% 70%, #ff5a36, transparent 50%), linear-gradient(140deg, #6c4cf5, #17131f); display: grid; place-items: end start; padding: 20px; }
.ph-img span { font: 800 28px/1 var(--display); color: #fff; letter-spacing: -.03em; }
.ph-c { padding: 12px 16px 0; font-size: 14px; opacity: 0; transform: translateY(8px); transition: .5s; }
.ph-c b { margin-right: 6px; }
.ph-c.reply { padding-bottom: 16px; color: var(--muted); padding-left: 32px; }
.ph-c.reply b { color: var(--ink); }
.ph-dm { position: absolute; left: 14px; right: 14px; bottom: 14px; background: #fff; border-radius: 26px; padding: 16px; display: grid; gap: 8px; box-shadow: 0 -20px 40px rgba(23, 19, 31, .25); opacity: 0; transform: translateY(30px); transition: .6s; }
.ph-from { margin: 0; font-size: 12px; font-weight: 700; color: var(--violet); letter-spacing: .04em; text-transform: uppercase; }
.bub { background: #f1ebe3; padding: 9px 13px; border-radius: 18px 18px 18px 6px; font-size: 14px; max-width: 88%; }
.bub.me { justify-self: end; background: var(--violet); color: #fff; border-radius: 18px 18px 6px 18px; }
.phone.s1 [data-ph1], .phone.s2 [data-ph1], .phone.s2 [data-ph2], .phone.s3 [data-ph1], .phone.s3 [data-ph2] { opacity: 1; transform: none; }
.phone.s3 .ph-dm { opacity: 1; transform: none; }

.strip { background: var(--ink); color: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-in div { padding: 26px 20px 26px 0; display: grid; }
.strip b { font: 800 34px var(--display); color: var(--lime); letter-spacing: -.03em; }
.strip span { color: #c9c2d3; font-size: 15px; }

.sec { padding: 96px 0 0; }
.eyebrow { font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin: 0 0 12px; }
.eyebrow.light { color: var(--lime); }
.sec h2, .play h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; max-width: 760px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; }
.feat.big { grid-row: span 2; background: var(--violet); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.feat.big p { color: #e3dcff; }
.feat.big code { background: rgba(255, 255, 255, .16); color: #fff; }
.feat .i { width: 26px; height: 26px; color: var(--coral); }
.feat.big .i { color: var(--lime); width: 34px; height: 34px; margin-bottom: auto; }
.feat h3 { font-size: 24px; margin: 16px 0 8px; }
.feat p { margin: 0; color: var(--muted); }

/* playground */
.play-sec { background: var(--ink); color: #fff; margin-top: 96px; padding: 88px 0; }
.play { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.lead.light { color: #c9c2d3; }
.play code { background: rgba(255, 255, 255, .12); color: var(--lime); }
.pg-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pg-rules li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #c9c2d3; }
.pg-rules .k { font: 700 13px ui-monospace, monospace; background: var(--lime); color: var(--ink); padding: 2px 8px; border-radius: 6px; }
.pg-box { background: #221d2e; border-radius: var(--r-l); padding: 22px; border: 1px solid #332c42; }
.seg { display: inline-flex; background: #17131f; padding: 4px; border-radius: 999px; gap: 2px; margin-bottom: 12px; }
.seg label { position: relative; min-height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 600; color: #c9c2d3; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: #fff; color: var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--violet); }
.pg-in { display: flex; gap: 8px; }
.pg-in input { flex: 1; min-width: 0; min-height: 48px; border-radius: 999px; border: 1px solid #3b3350; background: #17131f; color: #fff; padding: 0 18px; }
.pg-in input:focus { outline: none; border-color: var(--lime); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pg-chips button { min-height: 36px; border-radius: 999px; padding: 0 14px; background: transparent; border: 1px dashed #4a4160; color: #e3dcff; font-size: 14px; }
.pg-chips button:hover { border-color: var(--lime); color: var(--lime); }
.pg-out { background: #17131f; border-radius: var(--r-m); padding: 18px; min-height: 160px; display: grid; gap: 10px; align-content: start; }
.pg-out .muted { color: #8f87a0; margin: 0; }
.pg-out .fired { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--lime); font-weight: 700; flex-wrap: wrap; }
.pg-out .none { color: #ffb4a3; font-weight: 600; margin: 0; }
.pg-out .bub { background: #2b2536; color: #fff; }
.pg-out .bub.in { background: #fff; color: var(--ink); justify-self: end; border-radius: 18px 18px 6px 18px; }
.mode { font: 700 11px ui-monospace, monospace; padding: 2px 7px; border-radius: 5px; background: var(--violet); color: #fff; }
.mode.msg { background: #3b3350; }

/* pricing / faq */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; max-width: 900px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 30px; position: relative; display: flex; flex-direction: column; }
.plan.pro { background: var(--ink); color: #fff; border: 0; }
.plan.pro .muted, .plan.pro li { color: #c9c2d3; }
.plan h3 { font-size: 26px; }
.price { margin: 14px 0 6px; color: var(--muted); }
.price b { font: 800 52px var(--display); color: inherit; letter-spacing: -.04em; }
.plan.pro .price { color: #c9c2d3; }
.plan.pro .price b { color: var(--lime); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23138a52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan.pro li::before { background-color: rgba(215, 242, 92, .18); }
.plan.pro .btn.primary { background: var(--lime); color: var(--ink); }
.badge { position: absolute; top: 24px; right: 24px; background: var(--coral); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.faq { margin-top: 30px; max-width: 820px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; font: 700 20px var(--display); letter-spacing: -.02em; padding: 20px 40px 20px 0; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 500; color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--muted); max-width: 680px; }
.foot { border-top: 1px solid var(--line-2); margin-top: 96px; padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 760px; }

/* ---------- app ---------- */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 68px); }
.side { border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.side a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; }
.side a:hover { background: var(--cream); color: var(--ink); }
.side a[aria-current="page"] { background: var(--ink); color: #fff; }
.side .plan-card { margin-top: auto; background: var(--violet-soft); border-radius: var(--r-m); padding: 16px; font-size: 14px; }
.side .plan-card b { display: block; font: 700 17px var(--display); }
.pane { padding: 32px 36px 64px; min-width: 0; }
.pane-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pane-h h1 { font-size: 38px; font-weight: 800; }
.pane-h p { margin: 6px 0 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.tile span { color: var(--muted); font-size: 14px; font-weight: 500; }
.tile b { display: block; font: 800 34px var(--display); letter-spacing: -.03em; margin-top: 4px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; }
.card h2 { font-size: 22px; font-weight: 700; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.legend { display: flex; gap: 16px; font-size: 14px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { position: relative; height: 240px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .gl { stroke: #efe9e1; }
.chart .ax { font: 500 11px var(--font); fill: var(--muted); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .col:hover .seg, .chart .col:focus .seg { opacity: .82; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 13px; transform: translate(-50%, -100%); white-space: nowrap; z-index: 2; }
.tip b { display: block; margin-bottom: 2px; }
.tip i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.alist { display: grid; gap: 12px; }
.auto { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; }
.auto.off { opacity: .66; }
.auto h3 { font-size: 19px; font-weight: 700; }
.auto h3 a { text-decoration: none; }
.auto h3 a:hover { text-decoration: underline; }
.auto .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.kw { font: 700 12.5px ui-monospace, monospace; background: #f1ebe3; padding: 2px 8px; border-radius: 6px; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #f1ebe3; }
.pill.ai { background: var(--violet-soft); color: var(--violet); }
.pill .i { width: 13px; height: 13px; }
.auto .r { display: flex; align-items: center; gap: 6px; }
.sw { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #d9d1c6; border: 0; padding: 0; transition: background .2s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sw[aria-checked="true"] { background: var(--ok); }
.sw[aria-checked="true"]::after { transform: translateX(22px); }
.sw::before { content: ""; position: absolute; inset: -7px -2px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: var(--r-l); }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.fld input, .fld textarea, .fld select { min-height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 14px; background: #fff; font-weight: 500; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.fld small { color: var(--muted); font-weight: 400; }
.err { color: var(--coral-d); font-size: 14px; margin: 0; min-height: 1em; }
.edit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-h .n { width: 28px; height: 28px; border-radius: 9px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font: 800 14px var(--display); }
.step-h h2 { font-size: 20px; }
.checks { display: flex; gap: 10px; flex-wrap: wrap; }
.checkc { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 600; cursor: pointer; }
.checkc:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.checkc input { width: 16px; height: 16px; accent-color: var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font: 700 13.5px ui-monospace, monospace; background: var(--lime); padding: 0 4px 0 12px; border-radius: 999px; min-height: 34px; }
.chip button { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; }
.chip button:hover { background: rgba(0, 0, 0, .08); }
.chip .i { width: 14px; height: 14px; }
.kwin { display: flex; gap: 8px; }
.kwin input { flex: 1; min-width: 0; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.post { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 3px solid transparent; padding: 0; display: grid; place-items: end start; text-align: left; }
.post span { position: relative; z-index: 1; padding: 8px; color: #fff; font: 700 13px/1.15 var(--display); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.post[aria-pressed="true"] { border-color: var(--coral); }
.post[aria-pressed="true"]::after { content: ""; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modec { position: relative; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px; cursor: pointer; display: grid; gap: 4px; }
.modec input { position: absolute; opacity: 0; }
.modec b { display: flex; align-items: center; gap: 8px; }
.modec span { font-size: 13.5px; color: var(--muted); }
.modec:has(input:checked) { border-color: var(--violet); background: var(--violet-soft); }
.modec:has(input:focus-visible) { outline: 3px solid var(--violet); }
.modec .lock { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; background: var(--ink); color: var(--lime); padding: 2px 8px; border-radius: 999px; }
.counter { display: flex; gap: 20px; }
.counter div { display: grid; }
.counter b { font: 800 28px var(--display); }
.counter span { color: var(--muted); font-size: 13px; }
.sim { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 20px; }
.sim h2 { font-size: 20px; color: #fff; }
.sim .pg-out { margin-top: 12px; min-height: 120px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 360px; overflow: auto; }
.hist li { border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: 14px; }
.hist .who { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.hist p { margin: 2px 0 0; }
.hist .out { color: var(--violet); }
.integ { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.integ .logo-box { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--coral), var(--violet)); color: #fff; display: grid; place-items: center; }
.integ .logo-box .i { width: 28px; height: 28px; }
.integ .grow { flex: 1; min-width: 200px; }
.integ h3 { font-size: 20px; }
.integ p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 3px 10px; border-radius: 999px; }
.status.off { color: var(--muted); background: #f1ebe3; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; margin: 16px 0 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--violet); color: #fff; border-radius: var(--r-m); padding: 16px 20px; margin-bottom: 18px; }
.banner p { margin: 0; }
.banner .btn { background: var(--lime); color: var(--ink); }

/* signin / dialog */
.signin { max-width: 440px; margin: 64px auto; }
.dlg { border: 0; border-radius: var(--r-l); padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(23, 19, 31, .4); }
.dlg::backdrop { background: rgba(23, 19, 31, .55); }
.dlg-in { padding: 24px; display: grid; gap: 14px; }
.dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-h h2 { font-size: 24px; }
.dlg p { margin: 0; }
.perm { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.perm li { display: flex; gap: 8px; align-items: center; }
.perm .i { color: var(--ok); width: 16px; height: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.test { font-size: 13px; background: var(--ok-soft); color: var(--ok); padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); animation: tin .2s ease-out; display: flex; align-items: center; gap: 8px; }
.toast .i { color: var(--lime); width: 18px; height: 18px; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } html { scroll-behavior: auto; } }

@media (max-width: 1020px) {
  .hero, .play { grid-template-columns: minmax(0, 1fr); }
  .phone { transform: none; width: min(320px, 100%); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .edit { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; position: sticky; top: 68px; z-index: 5; }
  .side a { flex: none; }
  .side .plan-card { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav { display: none; }
  .top-cta .btn.ghost { display: none; }
  .hero { padding-top: 40px; }
  .lead { font-size: 18px; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .feats, .plans { grid-template-columns: minmax(0, 1fr); }
  .feat.big { min-height: 220px; }
  .pane { padding: 22px 16px 56px; }
  .pane-h h1 { font-size: 30px; }
  .auto { grid-template-columns: minmax(0, 1fr); }
  .modes, .row2 { grid-template-columns: minmax(0, 1fr); }
  .pg-in { flex-direction: column; }
  .pg-chips button { min-height: 44px; }
}
@media (max-width: 640px) { .hide-s { display: none; } }
.fld { min-width: 0; }
.fld input, .fld textarea, .fld select { width: 100%; min-width: 0; }
