/* Shared header and footer for wczoraj.app */
header{
  position:sticky;top:0;z-index:100;background:rgba(9,9,9,.76);
  backdrop-filter:blur(14px) saturate(150%);border-bottom:1px solid rgba(255,255,255,.09)
}
.site-nav{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.site-nav .wordmark{display:inline-flex;align-items:center;gap:9px;color:#fff;font-weight:900;font-size:14px;letter-spacing:.01em;text-decoration:none}
.site-nav .wordmark:hover{text-decoration:none}
.site-nav .dot{width:9px;height:9px;border-radius:50%;background:#28ffa6;box-shadow:0 0 16px rgba(40,255,166,.62)}
.site-nav .brand{color:#28ffa6}
.site-cta{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border-radius:10px;background:#28ffa6;color:#08110c;font-size:13px;font-weight:900;text-decoration:none}
.site-cta:hover{text-decoration:none;filter:brightness(1.04)}
footer{margin-top:34px;padding:34px 0 38px;border-top:1px solid rgba(255,255,255,.09);text-align:center;color:#9f9f9f;font-size:13px}
.footer-links{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;margin-bottom:14px}
.footer-links a{color:#c7c7c7;text-decoration:none}
.footer-links a:hover{color:#28ffa6;text-decoration:none}
.footer-brand{margin:0;color:#b8b8b8}
@media(max-width:600px){
  .site-nav{min-height:56px}.site-nav .wordmark{font-size:15px}.site-cta{min-height:36px;padding:7px 10px;font-size:12px}
  footer{padding:28px 0 32px}.footer-links{gap:12px}
}


/* v85.1: wspólny mobile shell */
@media(max-width:600px){
  .site-nav{min-height:54px}
  .site-nav .wordmark{font-size:14px}
  .site-cta{min-height:36px;padding:7px 10px;font-size:12px;border-radius:9px}
  footer{margin-top:26px;padding:26px 0 30px;font-size:12px}
  .footer-links{gap:11px;margin-bottom:8px}
}

/* v85.1: mobile-first typography. Landscape telefonu nie może wpadać w desktop. */
@media (max-width:700px){
  .site-nav{min-height:52px}
  .site-nav .wordmark{font-size:13.5px}
  .site-cta{min-height:34px;padding:6px 9px;font-size:11.5px}
}
@media (orientation:landscape) and (max-height:500px) and (max-width:1000px){
  header{backdrop-filter:blur(10px) saturate(140%)}
  .site-nav{min-height:46px}
  .site-nav .wordmark{font-size:13px}
  .site-nav .dot{width:7px;height:7px}
  .site-cta{min-height:32px;padding:5px 9px;font-size:11px;border-radius:8px}
  footer{margin-top:18px;padding:18px 0 20px;font-size:11.5px}
  .footer-links{gap:10px;margin-bottom:7px}

  /* Podstrony prawne też mają zachowywać się jak mobile. */
  main{padding-top:12px!important;padding-bottom:12px!important}
  .hero-intro{margin-bottom:12px!important}
  .hero-intro h1, main > .wrap > h1, main h1{font-size:25px!important;line-height:1.08!important}
  main h2{font-size:18px!important;line-height:1.18!important;margin-top:16px!important;margin-bottom:7px!important}
  main h3{font-size:16px!important}
  main p,main li,main .muted{font-size:13px!important;line-height:1.45!important}
  main .card{padding:13px!important;border-radius:12px!important}
}

/* v85.1: finalna warstwa responsywna. Mobile i tablet są projektowane osobno. */
@media (max-width: 1180px) and (pointer: coarse) {
  body{font-size:15px;line-height:1.5}
  .wrap{padding-left:clamp(16px,3vw,28px);padding-right:clamp(16px,3vw,28px)}
  .hero{padding-top:clamp(28px,5vw,52px)}
  .hero h1{font-size:clamp(34px,5.2vw,46px);line-height:1.07}
  .hero .lead{font-size:clamp(15px,2.2vw,17px);line-height:1.48}
  .demo{box-shadow:none}
  footer{font-size:11.5px}
  .footer-links{font-size:11.5px}
}

/* Telefony pionowo i wąskie tablety. */
@media (max-width: 767px) {
  :root{--header:50px;--radius:14px}
  html{-webkit-text-size-adjust:100%}
  body{font-size:14px;line-height:1.48}
  .wrap{padding-left:14px;padding-right:14px}
  header{background:rgba(9,9,9,.84);backdrop-filter:blur(10px) saturate(135%)}
  .site-nav,.nav{min-height:50px;height:50px}
  .site-nav .wordmark,.wordmark{font-size:13px;gap:7px}
  .site-nav .dot,.dot{width:7px;height:7px;box-shadow:0 0 10px rgba(40,255,166,.5)}
  .site-cta,.navlinks .nav-cta{min-height:32px;padding:5px 9px;font-size:11px;border-radius:8px}

  section{padding:15px 0}
  .hero{padding:20px 0 14px}
  .hero-grid{grid-template-columns:1fr;gap:15px}
  .hero h1,h1{font-size:clamp(26px,7vw,30px);line-height:1.08;letter-spacing:-.024em;margin:5px 0 9px}
  h2{font-size:clamp(20px,5.4vw,23px);line-height:1.15;letter-spacing:-.018em}
  h3{font-size:16px;line-height:1.2}
  .lead,.hero .lead{font-size:14px;line-height:1.47}
  .hero-actions{margin-top:13px;gap:3px}
  .hero-actions .btn:first-child{min-height:43px}
  .hero-actions .btn.secondary{min-height:34px;font-size:12px}
  .hero-note{font-size:10.8px;line-height:1.4;margin-top:4px}

  /* Przykład na mobile jest częścią treści, nie osobną ciężką kartą. */
  .demo{
    width:100%;max-width:none;margin:0;padding:12px 0 11px;
    background:transparent;border:0;border-top:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(255,255,255,.08);border-radius:0;box-shadow:none;
  }
  .demo::before{display:none!important}
  .demo-kicker{font-size:10px;line-height:1.3;color:#777;text-transform:none}
  .demo-title{font-size:16px;line-height:1.22;margin:4px 0 2px;letter-spacing:-.012em}
  .demo-meta{font-size:11.5px;line-height:1.38;color:#9f9f9f}
  .demo .progress{height:5px;margin:10px 0 6px;border:0;background:#171717}
  .demo-count{gap:8px}
  .demo-count strong{font-size:16px;line-height:1.15}
  .demo-count .muted{font-size:10.8px;line-height:1.3}
  .locked{margin-top:9px;padding-top:8px;font-size:10.8px;line-height:1.4;color:#858585;gap:7px}

  .card{padding:13px;border-radius:12px;box-shadow:none}
  .section-head{margin-bottom:11px}
  .section-head p{font-size:13px;line-height:1.46}
  .form-grid{grid-template-columns:1fr;gap:10px}
  .form-label{font-size:12.5px;line-height:1.25;margin-bottom:5px}
  .form-help{font-size:10px;line-height:1.2}
  .form input,.form select,.recovery-import input,.owner-panel input,.join-row input{
    min-height:45px;font-size:16px;line-height:1.25;padding:9px 11px;border-radius:10px
  }
  /* 16 px na inputach chroni iOS przed zoomem; sam placeholder może być wizualnie lżejszy. */
  .form input::placeholder,.recovery-import input::placeholder,.owner-panel input::placeholder,.join-row input::placeholder{
    font-size:12.5px;color:#666;opacity:1
  }
  .form select{font-size:14px}
  .mode-hint,.field-hint,.form-micro,.security-micro{font-size:10.5px;line-height:1.4}
  .inline-note{padding:9px 10px;font-size:11.5px;line-height:1.43;border-radius:10px}
  .advanced-details,.recovery-details{margin-top:12px;padding-top:11px}
  .advanced-details summary,.recovery-details summary{font-size:12px}
  .form-actions{margin-top:13px}
  .form-actions .btn{width:100%;min-height:43px}

  .steps{gap:0}
  .step{grid-template-columns:30px 1fr;column-gap:9px;padding:12px 0}
  .step-no{width:25px;height:25px;font-size:11px;border-radius:8px}
  .step h3{font-size:15px;margin-top:1px}
  .step p{font-size:12.5px;line-height:1.44}
  .why{grid-template-columns:1fr;gap:8px}
  .quote-card{padding:12px;border-radius:10px}
  .quote-card strong{font-size:13px}
  .quote-card p{font-size:12.5px;line-height:1.44}

  .saved-head{align-items:flex-start}
  .saved-grid{grid-template-columns:1fr;gap:8px;margin-top:11px}
  .saved-card{padding:12px;border-radius:10px}

  .check-hero{padding:18px 0 5px}
  .check-title{font-size:clamp(24px,6.8vw,28px);line-height:1.08;margin:5px 0 8px}
  .check-kicker{font-size:11px}
  .meta-row{gap:5px}
  .meta-pill{font-size:10.8px;padding:5px 7px}
  .big-count{font-size:27px}
  .remaining{font-size:11.5px}
  .status,.join-box,.crew,.next-step{padding:12px;border-radius:10px;margin-top:11px}
  .status h2{font-size:18px}
  .status p{font-size:12px;line-height:1.44}
  .join-box label{font-size:11.5px}
  .privacy-note{font-size:10.5px;line-height:1.4}
  .crew-chip{font-size:11.5px;padding:5px 8px}
  .actions{gap:6px;margin-top:11px}
  .actions .btn{min-height:41px;font-size:12px}

  footer{margin-top:20px;padding:18px 0 22px;font-size:10.5px;line-height:1.35}
  .footer-links{gap:8px;margin-bottom:6px;font-size:10.5px;line-height:1.3}
  .footer-links a{white-space:nowrap}
  .footer-brand{font-size:10px;line-height:1.3;color:#777}

  .legal-page main{padding:14px 0!important}
  .legal-page .hero-intro{margin-bottom:10px!important}
  .legal-page h1{font-size:24px!important;line-height:1.08!important;margin-bottom:6px!important}
  .legal-page h2{font-size:17px!important;line-height:1.2!important;margin:15px 0 6px!important}
  .legal-page h3{font-size:15px!important}
  .legal-page p,.legal-page li,.legal-page .muted{font-size:13px!important;line-height:1.47!important}
  .legal-page .card{padding:0!important;margin:10px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .legal-page .badge{font-size:9.8px!important;padding:3px 6px!important}
}

@media (max-width: 380px) {
  .wrap{padding-left:12px;padding-right:12px}
  .hero h1,h1{font-size:25px}
  h2{font-size:19px}
  .lead,.hero .lead{font-size:13.5px}
  .demo-title{font-size:15.5px}
  .form input::placeholder,.recovery-import input::placeholder,.owner-panel input::placeholder,.join-row input::placeholder{font-size:12px}
  footer,.footer-links{font-size:10px}
}

/* Telefon poziomo. Wysokość ekranu ma pierwszeństwo przed szerokością. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
  :root{--header:44px;--radius:11px}
  body{font-size:13px;line-height:1.4}
  .wrap{max-width:960px;padding-left:12px;padding-right:12px}
  .site-nav,.nav{height:44px;min-height:44px}
  .site-nav .wordmark,.wordmark{font-size:12px}
  .site-cta,.navlinks .nav-cta{min-height:29px;padding:4px 8px;font-size:10.5px}

  section{padding:10px 0}
  .hero{padding:10px 0 9px}
  .hero-grid{grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr);gap:18px;align-items:center}
  .hero h1,h1{font-size:clamp(21px,3.2vw,25px);line-height:1.05;margin:3px 0 6px}
  h2{font-size:18px;line-height:1.12}
  h3{font-size:14.5px}
  .lead,.hero .lead{font-size:12.5px;line-height:1.4}
  .hero-actions{display:flex;gap:6px;margin-top:9px}
  .hero-actions .btn:first-child{width:auto;min-height:36px;padding:7px 11px;font-size:11.5px}
  .hero-actions .btn.secondary{min-height:36px;padding:7px 9px;font-size:11px;border:1px solid rgba(255,255,255,.10)}
  .hero-note{font-size:9.8px;margin-top:4px;text-align:left}

  .demo{padding:8px 0;border-radius:0;background:transparent;border-left:0;border-right:0;min-width:0}
  .demo-kicker{font-size:9px}
  .demo-title{font-size:14px;line-height:1.15;margin:3px 0 1px}
  .demo-meta{font-size:10.5px;line-height:1.28}
  .demo .progress{height:4px;margin:7px 0 4px}
  .demo-count strong{font-size:14px}
  .demo-count .muted{font-size:9.6px}
  .locked{margin-top:6px;padding-top:6px;font-size:9.5px;line-height:1.28}

  .card{padding:11px;border-radius:10px}
  .section-head{margin-bottom:9px}
  .section-head p{font-size:11.8px}
  .form-grid{grid-template-columns:1fr 1fr;gap:8px 10px}
  .form-label{font-size:11.5px;margin-bottom:4px}
  .form-help{font-size:9.5px}
  .form input,.form select,.recovery-import input,.owner-panel input,.join-row input{min-height:40px;font-size:16px;padding:7px 9px}
  .form input::placeholder,.recovery-import input::placeholder,.owner-panel input::placeholder,.join-row input::placeholder{font-size:11.5px}
  .form select{font-size:13px}
  .inline-note{font-size:10.5px;padding:8px 9px}
  .form-actions{margin-top:10px}
  .btn{min-height:36px;padding:7px 11px;font-size:11.5px}

  .steps{grid-template-columns:repeat(3,1fr);gap:8px}
  .step{display:block;padding:9px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:#101010}
  .step:first-child{border-top:1px solid rgba(255,255,255,.07);padding-top:9px}
  .step-no{width:22px;height:22px;margin-bottom:6px;font-size:10px}
  .step p,.quote-card p{font-size:11px;line-height:1.35}
  .why{grid-template-columns:1fr 1fr;gap:8px}
  .quote-card{padding:9px}

  .check-hero{padding:10px 0 4px}
  .check-title{font-size:22px;margin:3px 0 5px}
  .meta-pill{font-size:9.8px;padding:4px 6px}
  .big-count{font-size:24px}
  .status,.join-box,.crew,.next-step{padding:10px;margin-top:8px}
  .status h2{font-size:17px}
  .status p{font-size:11px}
  .privacy-note{font-size:9.8px}

  footer{margin-top:12px;padding:12px 0 14px;font-size:9.8px}
  .footer-links{gap:7px;margin-bottom:4px;font-size:9.8px}
  .footer-brand{font-size:9.5px}

  .legal-page main{padding:9px 0!important}
  .legal-page h1{font-size:21px!important}
  .legal-page h2{font-size:15.5px!important;margin:12px 0 5px!important}
  .legal-page p,.legal-page li,.legal-page .muted{font-size:11.5px!important;line-height:1.4!important}
}

/* Niski landscape: przykład ma zostać czytelny, ale nie zabierać całej wysokości. */
@media (orientation: landscape) and (max-height: 400px) and (max-width: 900px) {
  .hero{padding-top:7px}
  .hero-note{display:none}
  .locked{display:none}
  .demo{padding-top:6px;padding-bottom:6px}
  .hero h1,h1{font-size:21px}
  .lead,.hero .lead{font-size:12px}
}

/* Tablet pionowo i poziomo. */
@media (min-width: 768px) and (max-width: 1180px) and (min-height: 601px) {
  :root{--header:56px;--radius:16px}
  .site-nav,.nav{min-height:56px;height:56px}
  .hero{padding:34px 0 26px}
  .hero-grid{grid-template-columns:1fr;gap:22px}
  .hero h1,h1{font-size:clamp(34px,5vw,42px);margin:8px 0 11px}
  h2{font-size:26px}
  .lead,.hero .lead{font-size:15.5px}
  .demo{max-width:680px;padding:16px 0;border-radius:0;background:transparent;border-left:0;border-right:0;box-shadow:none}
  .demo::before{display:none!important}
  .demo-title{font-size:20px}
  .demo-meta{font-size:13px}
  .demo-count strong{font-size:19px}
  .form input::placeholder,.recovery-import input::placeholder,.owner-panel input::placeholder,.join-row input::placeholder{font-size:13px}
  footer{font-size:11px;padding:22px 0 25px}
  .footer-links{font-size:11px;gap:10px}
}

@media (min-width: 768px) and (max-width: 900px) and (min-height: 601px) {
  .hero-grid{grid-template-columns:1fr}
}
@media (min-width: 901px) and (max-width: 1180px) and (min-height: 601px) and (orientation: landscape) {
  .hero-grid{grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);gap:30px;align-items:center}
  .hero h1,h1{font-size:clamp(34px,4vw,40px)}
  .demo{max-width:none;padding:15px 0}
  .demo-title{font-size:19px}
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
  .legal-page .card{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin-top:8px!important}
}
@media (min-width: 768px) and (max-width: 1180px) and (min-height: 601px) {
  .legal-page .card{box-shadow:none!important}
}
