/* Главная zidos.dev по рассказу (25.10): шапка с кнопкой, герой с маскотом в строке, сетка механик без пустот, цена беты, подвал. */
.nav-cta{margin-left:12px;height:44px;padding:0 20px;white-space:nowrap}
@media(max-width:1099px){.nav-cta{display:none}}
.hero-copy h1{display:inline-flex;align-items:center;justify-content:center;gap:.12em;max-width:none}
.hero-copy h1 .hero-mascot{width:.82em;height:.82em;flex:none}
.hero-copy .ctas{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px}

/* Механики (ob-home-7): крупная карточка и узкая, пара равных, широкая горизонтальная внизу; цветная одна (права). Колонки по высоте строки, копия внизу как на эталоне. */
#plan{grid-column:span 7}#document{grid-column:span 5}#rights,#yours{grid-column:span 6}#queue{grid-column:span 12}
#plan .plan-slots{--plan-gap:22px}
#queue{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:48px}
@media(max-width:1100px) and (min-width:769px){#plan,#document{grid-column:span 6}}
@media(max-width:768px){#queue{display:flex}}
.m-only{display:none}
#rights{background:var(--action);color:var(--action-ink)}
#rights .mini-meta,#rights .mini-ui,#rights .mechanic-copy h3,#rights .mechanic-copy p,#rights .mini-agent span,#rights .permission-explanation{color:var(--action-ink)}
#rights .mini-meta,#rights .mini-agent span,#rights .mechanic-copy p{opacity:.78}
#rights .mascot{--m-color:#5C9A00;--m-detail:#3F6B00}
#rights .mini-ui button:focus-visible{outline-color:var(--action-ink)}

/* Права: один сегмент в одну строку из трёх кнопок, выбранное инверсией. */
.permission-options{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:4px}
.permission-options button{padding:10px 12px;white-space:nowrap;min-width:0}
#rights .permission-options button{background:#92CC2E;color:var(--action-ink)}
#rights .permission-options button[aria-pressed=true]{background:var(--action-ink);color:var(--action)}
@media(max-width:480px){.mechanic-card{padding:20px}.permission-options button{padding:10px 8px}}
@media(max-width:380px){.mechanic-card{padding:16px}.permission-options{gap:2px}.permission-options button{padding:10px 5px}}

/* Цена беты: один крупный объект. */
.price-box{display:grid;justify-items:center;gap:20px;padding:80px 24px;background:var(--frame);border-radius:28px;text-align:center}
.price-box h2{font-size:clamp(28px,3.4vw,40px)}
.price-object{font-size:clamp(48px,14vw,200px);font-weight:500;letter-spacing:-.06em;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.price-note{color:var(--muted);font-size:18px;line-height:1.5;max-width:46ch}
@media(max-width:759px){.price-box{padding:56px 16px}.price-note{font-size:16px}}

/* Финал (ob-home-12): соты из тональных ячеек, шесть агентов в ячейках, текст поверх. */
.final{--hx:112px;--hy:calc(var(--hx)*1.1547)}
.cta{grid-template-columns:minmax(0,1fr);display:grid;align-items:center;justify-items:center;position:relative;overflow:hidden;border-radius:28px;padding:48px 0}
.hex-field{min-width:0;overflow:hidden;grid-area:1/1;align-self:stretch;justify-self:stretch;display:grid;align-content:center;justify-items:center}
.hex-row{display:flex;justify-content:center;margin-top:calc(var(--hy)*-.25 + 4px)}.hex-row:first-child{margin-top:0}.hex-row:nth-child(even) .hex:last-child{display:none}
/* owner 09.11 07:34 «кроп гексов»: 11 сот по 112 px были шире коробки 1184 и резались справа; теперь остров целых сот 11/10/11 по центру, сота по ширине коробки */
.cta{container-type:inline-size}.hex-field{--hx:min(100px,calc(100cqw/11 - 4px));--hy:calc(var(--hx)*1.1547)}
.hex{width:var(--hx);height:var(--hy);margin:0 2px;flex:none;display:grid;place-items:center;background:var(--frame);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.hex-m{background:var(--panel)}.hex figure{margin:0}.hex figcaption{display:none}
.cta-body{grid-area:1/1;z-index:1;display:grid;justify-items:center;gap:24px;padding:0 24px;max-width:640px}.cta-body h2{text-wrap:balance}
@media(max-width:960px){.final{--hx:84px}.cta{padding:32px 0 0;gap:32px}.cta-body{grid-area:1/1}.hex-field{grid-area:2/1}}
.footer-sites{padding-top:16px;padding-bottom:8px}.footer-sites p{font-size:16px;line-height:1.5;color:var(--muted)}.footer-sites a{color:var(--ink);text-underline-offset:3px;text-decoration:underline}


.mascot{overflow-anchor:none} /* WebKit picked the blinking hero mascot as the scroll anchor: every blink nudged the page by 4px */

/* Телефон — своя композиция (вердикт владельца 09.11 05:53, совет 06:15): первый кадр законченный, механики одним окном с вкладками, эстафета вместо сети, FAQ до беты, цена и финал одним блоком, без сот и повтора лозунга. */
@media(max-width:768px){
main{display:grid;grid-template-columns:minmax(0,1fr)}
#beta,.final{order:1;overflow-anchor:none} /* WebKit picks the scroll anchor in DOM order: a reordered section above the FAQ in the DOM made the page jump when an answer opened */
main>section{padding:48px 0}
.hero{padding:32px 0 0}
.hero .stage{margin:28px calc(-1*var(--gut)) 0;padding:0;border-radius:0;background:none}
.hero .window-caption{padding:0 var(--gut) 12px}
.hero-scene{border-radius:0;max-height:max(260px,calc(100svh - var(--scene-top,380px) - 8px));-webkit-mask-image:linear-gradient(transparent,#000 40px);mask-image:linear-gradient(transparent,#000 40px)} /* the top crop reads as a scrolled feed, not a sliced bubble */
.section-intro{margin-bottom:24px;gap:12px}
.section-intro h2{font-size:34px}
.mech-tabs{display:flex;gap:4px;padding:4px;margin-bottom:12px;background:var(--frame);border-radius:999px}
.mech-tabs button{flex:1 1 auto;min-height:44px;padding:0 8px;border-radius:999px;font-size:14px;font-weight:500;color:var(--muted);white-space:nowrap}
.mech-tabs button[aria-selected=true]{background:var(--ink);color:var(--canvas)}
.mech-tabs button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.mechanics-grid{display:grid;grid-template-columns:minmax(0,1fr)}
.mechanic-card{grid-row:1;gap:24px;align-self:start;justify-content:flex-start} /* surface hugs its own tab; the grid cell keeps the tallest tab, so nothing below moves on switch */ /* surface hugs its own tab; the grid cell keeps the tallest tab, so nothing below moves on switch */
.mechanic-card:not(.is-on){visibility:hidden}
#document .document-criteria{display:none} /* on the phone it repeats the goal line */
#yours .mini-diff code.m-only{display:block;color:var(--muted)}
.queue-run{display:grid;gap:4px;list-style:none;padding:0;margin:0 0 16px}
.queue-after.m-only{display:block;margin-bottom:8px}
.queue-run .doc-state,#document .doc-state{justify-self:end}
#rights .permission-explanation{max-width:none} /* the run the queued message waits behind (same steps as «Шаги») */
.queue-run li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:44px;font-size:14px}
.queue-run li:nth-child(2) .step-number{background:var(--ink);color:var(--frame)}
#rights .permission-options{grid-template-columns:minmax(0,1fr);gap:8px} /* phone: the three modes as a list, thumb-sized rows */
#rights .permission-options button{min-height:48px;padding:0 20px;text-align:left}
#yours .mini-diff{padding:12px 16px;border-radius:16px;background:var(--canvas);gap:2px}
#yours .mini-diff code{white-space:pre-wrap} /* keeps the function body indented */
.queued-message{max-width:none;padding:12px 16px;border-radius:16px;background:var(--canvas)} /* the queued message as it sits in the chat */
.mechanic-copy h3{font-size:20px}
#plan .plan-slots{--plan-gap:6px}
#queue{display:flex;align-items:stretch;gap:24px}
#mechanics .mini-btn.primary{background:var(--action);color:var(--action-ink)}
#rights{background:var(--frame);color:var(--ink)}
#rights .mini-ui,#rights .mechanic-copy h3,#rights .permission-explanation{color:var(--ink)}
#rights .mini-meta,#rights .mini-agent span,#rights .mechanic-copy p{color:var(--muted);opacity:1}
#rights .mascot{--m-color:#A6E83A;--m-detail:#5C9A00}
#rights .permission-options button{background:var(--panel);color:var(--ink)}
#rights .permission-options button[aria-pressed=true]{background:var(--action);color:var(--action-ink)}
#rights .mini-ui button:focus-visible{outline-color:var(--ink)}
#handoff .hf-heading .lead{display:none}
#handoff .nt-stage{display:none}
.price-box{padding:40px 20px 8px;border-radius:28px 28px 0 0;gap:12px}
#beta{padding-bottom:0}
.final{padding-top:0}
.cta{background:var(--frame);border-radius:0 0 28px 28px;padding:24px 0 40px}
.hex-field{display:none}
.cta-body{gap:20px;padding:0 20px}
.cta-body h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cta-free{display:none}
.footer-brand>p{display:none}
.cta .btn:not(.main){background:var(--canvas)}
footer{padding-top:40px}
.footer-main{gap:28px}
.fcols{row-gap:24px}
.footer-bottom{margin-top:24px}
}
@media(min-width:769px){.mech-tabs{display:none}
}

/* 09.11 pass 1: desktop section rhythm (was 208–256px of empty canvas between blocks) */
@media(min-width:769px){main>section:not(.hero){padding-top:60px;padding-bottom:60px}#mechanics .section-intro{margin-bottom:80px}.final{padding-bottom:40px}} /* council+Sonnet 09.11: ≤128px between sections */
@media(min-width:480px) and (max-width:1099px){.hero .stage{width:min(100%,444px);margin:28px auto 0;padding:12px;border-radius:24px;background:var(--panel)}.hero .window-caption{padding:4px 12px 16px}.hero-scene{border-radius:16px;max-height:max(260px,calc(100svh - var(--scene-top,380px) - 24px));-webkit-mask-image:linear-gradient(transparent,#000 40px);mask-image:linear-gradient(transparent,#000 40px)}} /* 480–1099: the 390 phone scene near natural size; the 1440 frame at 769–1099 scaled text to 5–9 px and hid «Принять правку» (council p3) */
