/* Public surfaces: the anonymous landing page and the compact auth layout.
   Loaded by landing.html and auth_base.html after service.css,
   skins.css and redaktsiya.css. */

.public-page{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.6}
.public-page a{color:inherit;text-decoration:none}
.public-skip{position:fixed;left:16px;top:-80px;z-index:40;padding:10px 18px;border-radius:9px;background:var(--surface);border:1px solid var(--line);color:var(--ink)}
.public-skip:focus{top:14px}
.public-shell{max-width:1180px;margin:0 auto;padding:0 26px}

/* --- Header ---------------------------------------------------- */
.public-header{border-bottom:1px solid var(--line);background:var(--canvas)}
.public-header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:74px}
.public-header-actions{display:flex;align-items:center;gap:16px}
.public-header-sep{width:1px;height:26px;background:var(--line)}
.public-nav-link{font-size:14px;font-weight:600;color:var(--muted);padding:6px 2px}
.public-nav-link:hover{color:var(--ink)}
.public-login{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 4px;font-size:14px;font-weight:600;color:var(--ink)}
.public-login:hover{color:var(--accent-text)}

/* --- Hero ------------------------------------------------------ */
.landing-hero{padding:88px 0 96px;text-align:center}
.landing-hero .brand-lockup-lg{justify-content:center;margin-bottom:34px}
.landing-hero h1{font-size:clamp(28px,4vw,46px);line-height:1.14;font-weight:700;margin:0 auto 16px;max-width:900px;color:var(--ink)}
.landing-hero .hero-lead{font-size:clamp(15px,1.6vw,19px);color:var(--muted);max-width:720px;margin:0 auto 32px}
.public-page a.cta-large{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:58px;padding:15px 30px;
  border:0;border-radius:12px;background:var(--brand);color:#fff;font-size:19px;font-weight:700;line-height:1.25;cursor:pointer}
.public-page a.cta-large:hover{background:var(--accent-strong);color:#fff}
.cta-large svg{width:20px;height:20px}
.public-page a.cta-secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 22px;
  border:1px solid transparent;border-radius:11px;background:var(--accent-strong);color:#fff;font-size:15px;font-weight:650}
.public-page a.cta-secondary:hover{background:var(--accent-strong-hover);color:#fff}
.hero-note{margin:16px 0 0;font-size:13px;color:var(--muted)}

/* --- Sections -------------------------------------------------- */
/* Generous, content-driven rhythm: the landing breathes while the cabinet stays
   compact. Titles and leads sit inside .public-shell, so they need the nested
   selector to stay centred. */
.landing-section{padding:96px 0;border-top:1px solid var(--line)}
.landing-section .public-shell>h2{text-align:center;font-size:clamp(24px,3vw,36px);font-weight:700;margin:0 0 12px}
.landing-section .public-shell>.section-lead{text-align:center;color:var(--muted);font-size:16px;max-width:640px;margin:0 auto 40px}
.landing-cta-row{display:flex;justify-content:center;margin-top:38px}

/* --- Four steps ------------------------------------------------ */
.landing-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 26px;margin:0;padding:0}
.step{min-width:0}
.step-figure{margin:0 0 18px;aspect-ratio:4/3;border-radius:16px;background:var(--surface-2);border:1px solid var(--line);
  display:grid;place-items:center;overflow:hidden;padding:10px}
.step-figure img{width:100%;height:100%;object-fit:contain;display:block}
.step-number{display:block;font-size:15px;font-weight:700;color:var(--accent-text);margin-bottom:6px}
.step h3{font-size:19px;font-weight:680;margin:0 0 8px;color:var(--ink)}
.step p{margin:0;font-size:14px;color:var(--muted)}

/* --- Platform samples ------------------------------------------ */
.landing-samples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
.sample-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);min-width:0}
.sample-bar{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--line)}
.sample-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#fff;flex:0 0 auto;font-size:11px;font-weight:700}
/* Platform tiles keep each network's identity but are deepened until a white
   label passes 4.5:1. They stay aria-hidden decoration beside the platform name. */
.sample-mark-telegram{background:#1879ae}
.sample-mark-vk{background:#3d70ab}
.sample-mark-instagram{background:#c02a5f}
.sample-bar-name{font-size:14px;font-weight:650;color:var(--ink);flex:1;min-width:0}
.sample-dots{color:var(--muted);font-size:17px;line-height:1;letter-spacing:2px}
.sample-body{padding:0}
.sample-actions{display:inline-flex;gap:16px}
.sample-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sample-card .platform-skin{border:0;border-radius:0;background:transparent;box-shadow:none}
.sample-card .platform-skin .skin-head{padding:12px 16px}
.sample-platform-note{text-align:center;margin:26px auto 0;font-size:13px;color:var(--muted);max-width:640px}

/* --- Schedule line and footer --------------------------------- */
.landing-schedule{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 22px;margin-top:34px;font-size:15px;color:var(--ink)}
.landing-schedule .schedule-item{display:inline-flex;align-items:center;gap:10px}
.landing-schedule svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.landing-schedule .schedule-sep{width:1px;height:22px;background:var(--line)}
.public-footer{border-top:1px solid var(--line);padding:26px 0 40px;color:var(--muted);font-size:12.5px}
.public-footer-inner{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;justify-content:space-between}
.public-footer p{margin:0;max-width:760px}

/* --- Compact auth layout -------------------------------------- */
.auth-page{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.6;min-height:100vh;display:flex;flex-direction:column}
.auth-topbar{border-bottom:1px solid var(--line);background:var(--canvas)}
.auth-topbar-inner{max-width:520px;margin:0 auto;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.auth-main{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:44px 22px 60px}
.auth-shell{width:100%;max-width:456px}
.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:32px}
.auth-card h1{font-size:26px;line-height:1.25;font-weight:650;letter-spacing:0;margin:0 0 8px;font-family:Inter,"Segoe UI",Arial,sans-serif}
.auth-card .auth-sub{margin:0 0 24px;color:var(--muted);font-size:14px}
.auth-card .stack-form{gap:16px}
.auth-card .errorlist{margin:0 0 6px}
.auth-alt{margin:18px 0 0;font-size:13px;color:var(--muted);text-align:center}
.auth-alt a{color:var(--accent-text);font-weight:600}
.auth-footnote{margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}
.auth-footnote strong{display:block;color:var(--ink);margin-bottom:5px;font-size:13px}
.auth-footnote p{margin:0 0 8px}
.auth-footnote p:last-child{margin-bottom:0}
.auth-page .brand-lockup{cursor:default}
.auth-page .wide-actions{display:grid;gap:10px;margin-top:6px}
.auth-page .button{min-height:46px;font-size:14px}
.auth-notice{margin:22px 0 0;padding:16px 18px;border-radius:11px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);font-size:13px}
.auth-notice strong{display:block;color:var(--ink);margin-bottom:4px}
.auth-recipient{margin:20px 0;padding:16px 18px;border-radius:11px;background:var(--surface-2);border:1px solid var(--line)}
.auth-recipient .tiny-label{color:var(--muted)}
.auth-recipient strong{display:block;font-size:15px;overflow-wrap:anywhere}
.auth-recipient .muted{display:block;font-size:12.5px;margin-top:6px}
.auth-steps{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:12px}
.auth-steps li{display:flex;gap:12px;font-size:14px;color:var(--muted)}
.auth-steps span{flex:0 0 auto;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--accent-soft);color:var(--accent-text);font-size:12px;font-weight:700}

@media (max-width:1000px){
  .landing-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .landing-samples{grid-template-columns:minmax(0,1fr)}
  .public-nav-link{display:none}
}
@media (max-width:640px){
  .public-shell{padding:0 18px}
  .landing-hero{padding:56px 0 60px}
  .landing-hero .brand-lockup-lg{gap:14px}
  .landing-hero .brand-lockup-lg .brand-mark{width:64px;height:64px}
  .landing-section{padding:56px 0}
  .landing-steps{grid-template-columns:minmax(0,1fr);gap:26px}
  .public-header-inner{min-height:64px}
  .public-header-sep{display:none}
  .public-header-actions{gap:8px}
  .theme-switch button{padding:6px 9px}
  .theme-switch-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .cta-large{width:100%;padding:14px 18px}
  .auth-main{padding:26px 16px 46px}
  .auth-card{padding:24px 20px}
  .auth-topbar-inner{padding:14px 16px}
  .auth-page .brand-descriptor{display:none}
}
@media (max-width:400px){
  .public-shell{padding:0 14px}
  .public-header .brand-words{display:none}
  .public-header-actions{gap:6px}
  .public-login{font-size:13px}
  .landing-hero .brand-lockup-lg .brand-mark{width:56px;height:56px}
  .landing-hero h1{font-size:26px}
  .cta-large{font-size:17px;padding:13px 14px}
}
