/* Константа Лабс. Tokens and rationale: CONSUMER_DESIGN.md. System fonts only, no network requests. */
:root{
 --bg:#fff;--panel:#f2f3f5;--chip:#e7e9ed;--chip-hover:#dcdfe4;--line:#e1e4e8;--field:#a4a9b3;
 --ink:#16181d;--ink-2:#2f333b;--muted:#5a606b;
 --yellow:#f3d34a;--yellow-hover:#ebc52c;
 --error:#b3261e;--success:#1a6633;--focus:#1f5fbf;
 --r-panel:28px;--r-stage:20px;--r-control:14px;
 --sans:"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","DejaVu Sans",sans-serif;
 --ease-out:cubic-bezier(.23,1,.32,1);
 font-family:var(--sans);font-size:16px;font-synthesis:none;color:var(--ink);background:var(--bg);
 -webkit-text-size-adjust:100%;text-size-adjust:100%
}
*{box-sizing:border-box}
body{margin:0;line-height:1.5}
a{color:inherit;text-underline-offset:4px;text-decoration-thickness:1px}
p{max-width:65ch;text-wrap:pretty}
h1,h2,h3{margin:0;text-wrap:balance;font-weight:800;letter-spacing:-.02em}
img{max-width:100%}
[hidden]{display:none!important}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.skip{position:absolute;left:16px;top:-100px;z-index:10;padding:12px 16px;background:var(--bg);border:2px solid var(--ink);border-radius:var(--r-control);font-weight:600}
.skip:focus{top:8px}
.small{font-size:14px;color:var(--muted)}

/* Header and footer, shared by every page */
.site-header{max-width:1264px;margin:0 auto;padding:14px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:19px;font-weight:800;letter-spacing:-.02em;text-decoration:none;white-space:nowrap}
/* Original mark: a constant, "=", on a yellow tile. Drawn in CSS, no asset. */
.brand-mark{flex:none;width:32px;height:32px;border-radius:10px;background:linear-gradient(var(--ink),var(--ink)) 50% 11px/14px 3px no-repeat,linear-gradient(var(--ink),var(--ink)) 50% 18px/14px 3px no-repeat,var(--yellow)}
.header-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.header-link{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:var(--r-control);font-size:15px;font-weight:500;text-decoration:none}
.bot-link{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;margin-left:8px;border-radius:var(--r-control);background:var(--ink);color:#fff;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap;transition:transform 140ms var(--ease-out)}
.site-footer{max-width:1264px;margin:0 auto;padding:32px 32px 44px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px 32px;align-items:center}
.site-footer .brand{font-size:17px}
.site-footer .brand-mark{width:28px;height:28px;border-radius:9px;background-position:50% 9px,50% 16px;background-size:12px 3px,12px 3px,auto}
.site-footer p{margin:0;font-size:15px;color:var(--muted)}
.footer-links{display:flex;flex-wrap:wrap;gap:0 20px}
.footer-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink)}

/* Buttons: yellow is the one main action; white is secondary; dark is Telegram. */
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid #d3d6dc;border-radius:var(--r-control);background:var(--bg);color:var(--ink);font:inherit;font-size:15px;font-weight:600;line-height:1.25;text-align:center;text-decoration:none;cursor:pointer;touch-action:manipulation;transition:transform 140ms var(--ease-out)}
.button{min-height:52px;padding:14px 24px;font-size:16px;background:var(--yellow);border-color:var(--yellow);color:var(--ink)}
.button-quiet{background:var(--ink);border-color:var(--ink);color:#fff}
button:disabled{cursor:default;opacity:.62}
form[aria-busy=true] button[type=submit]{cursor:progress}

/* Intro: title, one line of instruction, quick navigation across the projects */
.catalog{max-width:1264px;margin:0 auto;padding:0 32px;min-width:0}
.intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);grid-template-areas:"text note" "index index";gap:20px 48px;align-items:end;padding:36px 0 28px}
.intro-text{grid-area:text;min-width:0}
.intro h1{font-size:48px;line-height:1.05;letter-spacing:-.03em}
.lead{margin:14px 0 0;font-size:18px;line-height:1.45;color:var(--ink-2);max-width:42em}
.rail-note{grid-area:note;margin:0;padding:16px 20px;background:var(--panel);border-radius:var(--r-stage);font-size:15px;color:var(--muted)}
.rail-note a{color:var(--ink);font-weight:600}
.index{grid-area:index;min-width:0}
.index ol{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.index a{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:68px;padding:12px 18px;background:var(--panel);border:2px solid transparent;border-radius:var(--r-stage);text-decoration:none}
.index a[aria-current]{border-color:var(--ink)}
.index-name{font-size:16px;font-weight:700;line-height:1.25}
.index-tag{font-size:14px;line-height:1.3;color:var(--muted)}
.noscript{padding:24px;font-size:17px;background:var(--panel);border-radius:var(--r-panel)}

/* Catalog: one wide panel for the first project, then a 2×2 grid. Same order as before. */
#projects{scroll-margin-top:8px}
#product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.product{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"screen" "copy" "route" "actions" "details";grid-template-rows:auto auto auto auto 1fr;padding:24px 28px 28px;background:var(--panel);border-radius:var(--r-panel);scroll-margin-top:12px;min-width:0}
.product-feature{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"copy screen" "route screen" "actions screen" "details screen";grid-template-rows:auto auto auto 1fr;column-gap:40px;padding:40px}
.product-copy{grid-area:copy;min-width:0;margin-top:20px}
.product-feature .product-copy{margin-top:0}
.tag{margin:0 0 4px;font-size:15px;color:var(--muted)}
.product-name{font-size:28px;line-height:1.1}
.product-feature .product-name{font-size:40px;line-height:1.05}
.product-purpose{margin:8px 0 0;font-size:18px;line-height:1.35;color:var(--ink-2)}
.product-feature .product-purpose{font-size:21px;margin-top:10px}
/* The actual demo steps. Same marker on demo.html. */
.route{grid-area:route;list-style:none;margin:16px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 16px;counter-reset:step}
.route li{counter-increment:step;display:flex;align-items:center;gap:8px;font-size:15px;line-height:1.3;color:var(--ink)}
.route li::before{content:counter(step);flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--yellow);color:var(--ink);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.product-feature .route{flex-direction:column;gap:10px;margin-top:24px}
.product-feature .route li{font-size:16px}
.actions{grid-area:actions;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:20px}
.product-feature .actions{margin-top:28px}
.external-note{font-size:14px;color:var(--muted)}
.product-screen{grid-area:screen;margin:0;min-width:0}
/* Real screenshots: proportional, never cropped or upscaled past their natural size. */
.product-screen a{display:flex;align-items:center;justify-content:center;height:340px;padding:16px;background:var(--bg);border-radius:var(--r-stage)}
.product-screen img{display:block;width:auto;height:auto;max-width:100%;max-height:308px}
.screen-phone img{border-radius:12px}
.product-feature .product-screen a{height:auto;min-height:100%;padding:24px}
.product-feature .product-screen{display:flex;flex-direction:column}
.product-feature .product-screen a{flex:1}
.product-feature .product-screen img{max-height:500px}
figcaption{margin:10px 4px 0;font-size:13px;line-height:1.45;color:var(--muted)}
.product-details{grid-area:details;min-width:0;align-self:end}
.product-feature .product-details{align-self:start;margin-top:12px}
.status{margin:20px 0 0;font-size:14px;line-height:1.45;color:var(--muted);max-width:52ch}
.secondary-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.beta-link{min-height:44px;padding:10px 16px;font-size:15px}

/* Feedback and beta form */
.response-area{padding:72px 0 80px;scroll-margin-top:8px}
.response-head h2{font-size:36px;line-height:1.1}
.response-head p{margin:10px 0 0;font-size:17px;color:var(--ink-2)}
.response-body{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;margin-top:28px;align-items:start}
.form-sheet{min-width:0;padding:32px;background:var(--panel);border-radius:var(--r-panel)}
.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 20px;background:var(--chip);border-radius:16px}
.mode-switch button{border:0;border-radius:12px;background:none;min-height:44px;font-size:15px}
.mode-switch [aria-pressed=true]{background:var(--bg);color:var(--ink);box-shadow:0 1px 2px rgb(22 24 29 / .12)}
form{display:block}
.context{margin:0;font-size:15px;font-weight:700}
.context:empty{display:none}
.field{display:grid;gap:8px;margin:20px 0 0;font-size:15px;font-weight:600}
label.field[for]{margin-bottom:0}
input,select,textarea{width:100%;min-width:0;max-width:100%;min-height:52px;padding:13px 14px;border:1px solid var(--field);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:16px;font-weight:400}
/* Room for the action below the field when the on-screen keyboard shrinks the viewport. */
textarea{resize:vertical;min-height:108px;scroll-margin-bottom:200px}
input{scroll-margin-bottom:200px}
textarea::placeholder,input::placeholder{color:#686e79}
[aria-invalid=true]{border-color:var(--error);box-shadow:inset 0 0 0 1px var(--error)}
.beta-intro{margin:0;font-size:15px}
.notice{margin:20px 0 0;padding:14px 16px;background:var(--bg);border-radius:var(--r-control);font-size:14px;color:var(--muted)}
.hint{margin:4px 0 8px;font-size:14px;color:var(--muted)}
.field-error{margin:6px 0 0;font-size:14px;color:var(--error);font-weight:600}
.field-error:empty{display:none}
.check{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;margin:16px 0 0;padding:14px;background:var(--bg);border-radius:var(--r-control);font-size:15px;line-height:1.45;cursor:pointer}
.check input{width:22px;height:22px;min-height:0;margin:0;padding:0;accent-color:var(--ink)}
.check input[aria-invalid=true]{outline:2px solid var(--error);outline-offset:2px;box-shadow:none}
.submit-row{margin-top:24px}
.submit-row .button{min-width:240px}
#form-status{min-height:1.5em;margin:12px 0 0;font-size:15px;line-height:1.5}
#form-status[data-state=error]{color:var(--error);font-weight:600}
#form-status[data-state=success]{color:var(--success);font-weight:600}
#form-status[data-state=pending]{color:var(--muted)}
#receipt{margin-top:16px;padding:20px;background:var(--bg);border-radius:var(--r-stage);transition:opacity 200ms var(--ease-out),transform 200ms var(--ease-out)}
@starting-style{#receipt{opacity:0;transform:translateY(6px)}}
.receipt-title{margin:0;font-weight:700}
#receipt .small{margin:4px 0 0}
code{display:block;margin:12px 0;padding:12px;background:var(--panel);border-radius:10px;font-size:14px;overflow-wrap:anywhere;white-space:normal;user-select:all}
.receipt-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-bottom:12px}
.text-link{display:inline-flex;align-items:center;min-height:44px}
.response-aside{min-width:0;padding:28px;border:1px solid var(--line);border-radius:var(--r-panel);font-size:15px}
.response-aside p{margin:0 0 12px}
.aside-title{font-weight:800;font-size:20px;letter-spacing:-.01em}
.response-aside .button{width:100%;margin:8px 0 20px;font-size:15px;min-height:48px;padding:12px 16px}

/* Demo pages */
.demo-wrap{max-width:860px;margin:0 auto;padding:16px 32px 72px}
.back-link{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:500}
.demo-wrap h1{font-size:40px;line-height:1.08;margin-top:8px}
.demo-notice{margin:12px 0 0;font-size:14px;color:var(--muted)}
#task{margin:16px 0 0;font-size:18px}
.step-list{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.step-list li{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;background:var(--panel);border-radius:999px;font-size:15px;color:var(--muted)}
.step-n{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--bg);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}
.step-list li.done .step-n{background:var(--chip)}
.step-list li.current{color:var(--ink);font-weight:600}
.step-list li.current .step-n{background:var(--yellow)}
.demo-screen{margin:20px 0;padding:32px;background:var(--panel);border-radius:var(--r-panel);min-width:0}
.demo-screen h2{font-size:28px;line-height:1.15;margin:4px 0 12px}
.demo-screen p{margin:12px 0}
.demo-screen ul{padding-left:22px}
.demo-screen li{margin:8px 0}
.demo-screen button{margin:8px 10px 0 0}
.demo-screen .metric{margin:8px 0;font-size:48px;font-weight:800;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums}
.outcome{margin:12px 0;padding:16px 18px;background:var(--bg);border-radius:var(--r-control)}
.outcome p{margin:4px 0}
.terminal-review{margin-top:20px}
.demo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.demo-wrap>.small{margin-top:20px}
.table{position:relative;width:min(100%,420px);height:210px;margin:16px 0;background:#216a59;border:12px solid #785237;border-radius:16px}
.ball{position:absolute;left:32%;top:55%;width:20px;height:20px;border-radius:50%;background:#fff}
.ball.object{left:62%;top:30%;background:#f1d25d}
.trajectory{position:absolute;left:37%;top:39%;width:28%;border-top:2px dashed #fff;transform:rotate(-25deg)}
.error{color:var(--error)}

/* Reading pages: privacy and delete */
.reading{max-width:760px;margin:0 auto;padding:16px 32px 72px}
.reading h1{font-size:40px;line-height:1.08;margin:8px 0 16px}
.reading h2{font-size:21px;font-weight:700;letter-spacing:-.01em;margin:36px 0 0;line-height:1.25}
.reading p{line-height:1.6}
.reading form{max-width:480px;margin-top:24px;padding:24px;background:var(--panel);border-radius:var(--r-panel)}
.reading .field{margin:0 0 16px}
#delete-status{min-height:1.5em;margin:12px 0 0}

@media(hover:hover) and (pointer:fine){
 .button:hover{background:var(--yellow-hover);border-color:var(--yellow-hover)}
 .button-quiet:hover,.bot-link:hover{background:#2c3038;border-color:#2c3038}
 button:not(.button):not(:disabled):hover{background:var(--chip);border-color:var(--chip)}
 .mode-switch button[aria-pressed=false]:hover{background:var(--chip-hover)}
 .mode-switch button[aria-pressed=true]:hover{background:var(--bg)}
 .header-link:hover{background:var(--panel)}
 .index a:hover{background:var(--chip)}
 .product-screen a:hover img{outline:2px solid var(--chip);outline-offset:4px}
 a:hover{text-decoration-thickness:2px}
}
@media(prefers-reduced-motion:no-preference){
 /* Pointer presses only; keyboard activation stays still. */
 button:not(:disabled):active:not(:focus-visible),.button:active:not(:focus-visible),.bot-link:active:not(:focus-visible){transform:scale(.97)}
}

/* Tablet: one column, each panel keeps text beside its screen */
@media(max-width:1023px){
 .intro{grid-template-columns:minmax(0,1fr);grid-template-areas:"text" "index";padding:24px 0 20px;gap:16px}
 .intro h1{font-size:38px}
 .rail-note,.index-tag{display:none}
 .index ol{display:flex;gap:8px;margin:0;overflow-x:auto;scrollbar-width:none;padding:2px}
 .index ol::-webkit-scrollbar{display:none}
 .index li{flex:none}
 .index a{min-height:44px;padding:0 16px;border-radius:999px;border-width:0}
 .index a[aria-current]{background:var(--chip)}
 .index-name{font-size:15px;font-weight:600;white-space:nowrap}
 #product-list{grid-template-columns:minmax(0,1fr);gap:16px}
 .product,.product-feature{grid-template-columns:minmax(0,1fr) minmax(0,280px);grid-template-areas:"copy screen" "route screen" "actions screen" "details screen";grid-template-rows:auto auto auto 1fr;column-gap:28px;padding:28px}
 .product-copy{margin-top:0}
 .product-feature .product-name{font-size:34px}
 .product-feature .product-screen img{max-height:440px}
 .response-body{grid-template-columns:minmax(0,1fr)}
 .response-aside{max-width:560px}
}
/* Phone: name, demo action, then the real screen; steps and limits follow */
@media(max-width:720px){
 .site-header{padding:10px 16px}
 .brand{font-size:17px;gap:8px}
 .brand-mark{width:28px;height:28px;border-radius:9px;background-position:50% 9px,50% 16px;background-size:12px 3px,12px 3px,auto}
 .header-link{display:none}
 .bot-link{margin-left:0;padding:0 14px;font-size:14px}
 .catalog{padding:0 16px}
 .intro{padding:12px 0 16px;gap:12px}
 .intro h1{font-size:30px;line-height:1.1}
 .lead{font-size:15px;margin-top:8px}
 .product,.product-feature{display:flex;flex-direction:column;padding:20px 16px 18px;border-radius:24px}
 #product-list{gap:12px}
 .product-copy{order:1}
 .actions{order:2;margin-top:14px}
 .product-screen{order:3;margin-top:16px}
 .route{order:4}
 .product-details{order:5}
 .tag{font-size:14px;margin-bottom:2px}
 .product-name,.product-feature .product-name{font-size:26px}
 .product-purpose,.product-feature .product-purpose{font-size:17px;margin-top:6px}
 .actions .button{flex:1 1 auto}
 .product-feature .actions{margin-top:16px}
 .product-screen a{padding:12px}
 .product-feature .product-screen a{height:auto;min-height:0;flex:none;padding:8px}
 .product-feature .product-screen img{max-height:560px}
 .route,.product-feature .route{flex-direction:row;gap:6px 14px;margin-top:14px}
 .route li,.product-feature .route li{font-size:14px;gap:6px}
 .route li::before{width:22px;height:22px;font-size:12px}
 .status{margin-top:12px}
 .secondary-actions{margin-top:12px;gap:6px}
 .beta-link{flex:1 1 auto;padding:10px 10px;font-size:14px}
 .product-screen a{height:240px}
 .product-screen img{max-height:216px}
 .response-area{padding:40px 0 48px}
 .response-head h2{font-size:28px}
 .response-head p{font-size:16px}
 .response-body{margin-top:20px;gap:12px}
 .form-sheet{padding:18px 16px;border-radius:24px}
 .response-aside{padding:20px;border-radius:24px}
 .submit-row .button{width:100%;min-width:0}
 .site-footer{padding:24px 16px 36px;gap:4px 24px}
 .demo-wrap,.reading{padding:8px 16px 56px}
 .demo-wrap h1,.reading h1{font-size:30px}
 .demo-screen{padding:20px 16px;border-radius:24px}
 .demo-screen h2{font-size:24px}
 .demo-actions>*{flex:1 1 auto}
 .reading form{padding:18px 16px;border-radius:24px}
}
@media(max-width:359px){
 .site-header{padding:8px 12px}
 .brand{font-size:15px}
 .bot-link{padding:0 12px;font-size:13px}
 .catalog{padding:0 12px}
 .intro{padding-top:8px}
 .intro h1{font-size:24px}
 .lead{font-size:14px}
 .index a{padding:0 14px}
 .index-name{font-size:14px}
 .product,.product-feature{padding:18px 14px 16px}
 .product-name,.product-feature .product-name{font-size:24px}
 .product-purpose,.product-feature .product-purpose{font-size:16px}
 .route li,.product-feature .route li{font-size:13px}
 .form-sheet{padding:14px 12px}
 .mode-switch button{font-size:14px;padding:8px 6px}
 .demo-screen{padding:16px 12px}
 .demo-screen button{width:100%;margin-right:0}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}

/* Testers: three ways in. Plain panels, same tokens as the catalog. */
.testers{padding:72px 0 0;scroll-margin-top:8px}
.testers-head h2{font-size:36px;line-height:1.1}
.testers-head p{margin:10px 0 0;font-size:17px;color:var(--ink-2)}
.testers-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px}
.testers-path{padding:24px;background:var(--panel);border-radius:var(--r-stage);min-width:0}
.testers-path h3{font-size:20px;line-height:1.25}
.testers-path p{margin:10px 0 0;font-size:15px}
.testers-path a{font-weight:600}
.testers-steps{margin:12px 0 0;padding-left:22px;font-size:15px}
.testers-steps li+li{margin-top:8px}
.testers-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.button-light{background:var(--bg);border-color:var(--line)}
@media(max-width:1023px){.testers-paths{grid-template-columns:1fr}}
@media(max-width:720px){.testers{padding-top:48px}.testers-head h2{font-size:28px}.testers-head p{font-size:16px}.testers-path{padding:20px}.testers-actions .button{flex:1 1 100%}}
