/* Layout: biała strona w barwach aplikacji. Hero: tekst po lewej, interaktywny telefon (godziny pracy → rezerwacja → kalendarz)
   + telefon z ekranem jazdy po prawej. Dalej: role (szkoła/instruktor/kursant), funkcje, zdjęcie, cennik. */
:root {
  /* tokeny 1:1 z mobile/src/theme/colors.ts */
  --bg: #FFFFFF;
  --surface-muted: #F2F4F8;   /* gray100 */
  --surface-tint: #F9F8FF;    /* violet50 */
  --border: #E4E6EF;          /* gray200 */
  --border-card: #DDE2F1;     /* gray250 */
  --heading: #11182A;         /* slate900 */
  --text: #596071;            /* slate650 */
  --muted: #7A7E92;           /* slate500 */
  --primary: #4A70F0;         /* blue550 — primary.default */
  --primary-strong: #315BDF;  /* blue700 */
  --primary-soft: #EEF2FF;    /* blue100 */
  --primary-muted: #E4EAFF;   /* blue150 */
  --primary-subtle: #CED8FF;  /* blue300 */
  --success: #20BF60;         /* green450 — calendar.available */
  --success-soft: #EAFBF3;
  --danger: #E5484D;          /* red550 */
  --danger-soft: #FFF0F0;
  --warning: #F2A93B;         /* orange350 */
  --violet: #8B7CF6;
  --shadow: rgba(37, 76, 207, .18);
  --f: "Plus Jakarta Sans", -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--f); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { color: var(--heading); margin: 0; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--primary-subtle); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 52px; padding-inline: 1.5rem; border-radius: 999px; font: 700 15px/1 var(--f); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -8px var(--shadow); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); }
.btn-ghost { background: var(--bg); color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary-subtle); background: var(--primary-soft); }
.btn svg { width: 18px; height: 18px; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--heading); letter-spacing: -.02em; }
.brand img { width: 30px; height: auto; }
.nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav ul a { text-decoration: none; color: var(--text); }
.nav ul a:hover { color: var(--primary); }
.nav .btn { height: 44px; padding-inline: 1.15rem; font-size: 14px; }

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 35%; height: 120%; background: radial-gradient(closest-side, var(--primary-muted), transparent 75%); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 2rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 13px; font-weight: 700; }
.pill b { background: var(--primary); color: #fff; border-radius: 999px; padding: .15rem .55rem; font-size: 11px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-top: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34rem; margin-top: 1.25rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.roles-mini { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.25rem; font-size: 14px; font-weight: 600; color: var(--heading); }
.roles-mini span { display: inline-flex; align-items: center; gap: .45rem; }
.roles-mini i { width: 22px; height: 22px; border-radius: 50%; background: var(--success-soft); display: grid; place-items: center; }
.roles-mini i::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg) translate(1px, -1px); }

.stage { position: relative; display: grid; justify-items: center; gap: 1.1rem; padding-block: .5rem; }
.stage .chip { max-width: 215px; font-size: 12px; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .45s, transform .45s; animation: none; }
.stage .chip.on { opacity: 1; transform: none; }
.demo-view { position: relative; flex: 1; min-height: 0; }
.view { position: absolute; inset: 0; padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 10px; animation: viewIn .45s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateX(14px); } }
.banner { position: absolute; top: 38px; left: 8px; right: 8px; z-index: 6; display: flex; gap: 9px; align-items: flex-start; background: rgba(255,255,255,.97); border: 1px solid var(--border); border-radius: 18px; padding: 9px 10px; box-shadow: 0 14px 30px -12px rgba(17,24,42,.35); transform: translateY(-220%); opacity: 0; transition: transform .5s cubic-bezier(.2,.9,.3,1.2), opacity .3s; }
.banner.show { transform: none; opacity: 1; }
.banner img { width: 30px; height: 30px; object-fit: contain; padding: 5px; border-radius: 8px; border: 1px solid var(--border); background: #fff; flex: none; }
.banner b { display: block; color: var(--heading); font-size: 12px; }
.banner small { font-size: 11px; color: var(--text); line-height: 1.35; display: block; }
.banner .now { margin-left: auto; font-size: 10px; color: var(--muted); }
.hours .hrow { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--border); }
.hours .hrow:first-child { border-top: 0; }
.hours b { display: block; color: var(--heading); font-size: 12.5px; }
.hours small { font-size: 11px; color: var(--muted); transition: color .3s; }
.hours .hrow.new small { color: var(--primary); font-weight: 700; }
.sw { width: 36px; height: 21px; border-radius: 99px; background: var(--border); position: relative; transition: background .3s; flex: none; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(17,24,42,.25); transition: transform .3s; }
.sw.on { background: var(--success); }
.sw.on::after { transform: translateX(15px); }
.days span { transition: background .3s, color .3s; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-muted); border-radius: 999px; padding: 3px; font-size: 11.5px; font-weight: 700; text-align: center; }
.seg2 span { padding: 5px 0; border-radius: 999px; color: var(--muted); }
.seg2 span.on { background: #fff; color: var(--heading); box-shadow: 0 1px 4px rgba(17,24,42,.08); }
.dslots { display: grid; gap: 7px; opacity: .3; transition: opacity .4s; }
.dslots.show { opacity: 1; }
.dslot { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-card); border-radius: 12px; padding: 9px 11px; transition: border-color .3s, background .3s; }
.dslot b { color: var(--heading); font-size: 12.5px; }
.dslot.full { opacity: .55; }
.dslot.sel { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.app-btn { transition: background .3s, color .3s; }
.app-btn.ghost { background: var(--surface-muted); color: var(--muted); box-shadow: none; }
.done { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 14px; }
.big-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-size: 28px; font-weight: 800; animation: pop .5s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.lesson.fresh { border-left-color: var(--primary); background: var(--primary-soft); animation: pop .45s ease; }
.tap { animation: tap .6s ease-out; }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(74,112,240,.5); } 100% { box-shadow: 0 0 0 16px rgba(74,112,240,0); } }
/* hero demo: ekran rysowany w punktach iPhone'a (390 pt) i skalowany do telefonu na stronie */
.real { position: absolute; left: 0; top: 0; width: 390px; height: 838px; transform: scale(var(--k, .6923)); transform-origin: 0 0; overflow: hidden; background: #fff; color: #20212A; font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.3; }
.r-view { position: absolute; inset: 0; animation: viewIn .45s ease; }
.r-status { height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 16px 34px 0; font-size: 17px; font-weight: 600; }
.r-sys { display: flex; gap: 6px; align-items: center; }
.r-head { height: 64px; padding: 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.r-icb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #20212A; }
.r-logo { width: 33px; height: 36px; object-fit: contain; }
.r-right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.r-av { width: 40px; height: 40px; border-radius: 50%; background: #E4EAFF; color: #4A70F0; font-weight: 700; font-size: 14.4px; display: grid; place-items: center; flex: none; }
.r-av44 { width: 44px; height: 44px; font-size: 15.8px; }
.r-body { position: absolute; top: 118px; left: 0; right: 0; overflow: hidden; }
.r-scroll { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 18px; transition: transform .9s cubic-bezier(.4,0,.2,1); }
.r-title { font-size: 30px; font-weight: 800; letter-spacing: -.3px; }
.r-t26 { font-size: 26px; font-weight: 800; }
.r-sub { font-size: 15px; color: #687086; margin-top: 4px; }
.r-intro { text-align: center; display: grid; gap: 1px; padding: 0 0 2px; }
.r-intro .r-sub { color: #7A7E92; }
.r-ey { font-size: 12px; font-weight: 700; color: #687086; text-transform: uppercase; letter-spacing: .9px; }
.r-ey2 { font-size: 12px; font-weight: 600; color: #687086; text-transform: uppercase; letter-spacing: .9px; margin: 24px 0 12px; }
.r-sec { display: grid; gap: 10px; }
.r-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.r-card { background: #fff; border: 1px solid #E4E6EF; border-radius: 20px; padding: 16px; }
.r-b17 { font-size: 17px; font-weight: 700; display: block; }
.r-b19 { font-size: 19px; font-weight: 700; display: block; }
.r-desc { font-size: 13px; color: #687086; margin-top: 3px; }
.r-sel { flex: none; display: flex; align-items: center; gap: 6px; background: #EEF2FF; border: 1px solid #EDEBFC; border-radius: 14px; padding: 12px; min-height: 56px; font-size: 16px; font-weight: 600; color: #4A70F0; }
.r-fline { display: flex; align-items: center; gap: 8px; border-top: 1px solid #F2F4F8; padding-top: 12px; margin-top: 14px; font-size: 12px; color: #687086; }
.r-fline svg { color: #4A70F0; }
.r-strip { background: #fff; border: 1px solid #E4E6EF; border-radius: 20px; padding: 12px 0; display: grid; gap: 10px; }
.r-strip-h { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.r-strip-h b { font-size: 18px; font-weight: 800; }
.r-arr { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #20212A; }
.r-days { display: flex; gap: 12px; padding: 0 18px; overflow: hidden; }
.r-day { flex: none; width: 54px; height: 82px; border-radius: 15px; border: 1px solid #E4E6EF; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .3s, border-color .3s; }
.r-day small { font-size: 11px; font-weight: 500; color: #596071; }
.r-day b { font-size: 20px; font-weight: 700; margin-top: 5px; }
.r-day i { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; background: var(--dot); }
.r-day.sel { background: #4A70F0; border-color: #4A70F0; box-shadow: 0 4px 6px rgba(37,76,207,.2); }
.r-day.sel small, .r-day.sel b { color: #fff; }
.r-day.sel i { background: #fff; }
.r-empty { font-size: 14px; color: #7A7E92; }
.r-ints { background: #F9F8FF; border: 1px solid #EDEBFC; border-radius: 14px; animation: pop .4s ease; }
.r-int { min-height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }
.r-int i { width: 9px; height: 9px; border-radius: 50%; background: #20BF60; }
.r-int svg { margin-left: auto; color: #7A7E92; }
.r-add { margin-top: 12px; min-height: 44px; border: 1.5px dashed #AAB8FF; border-radius: 14px; color: #4A70F0; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.r-btn { min-height: 56px; border-radius: 999px; background: #4A70F0; color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 4px 5px rgba(37,76,207,.2); transition: opacity .3s; }
.r-btn.dis { opacity: .4; box-shadow: none; }
.r-btn20 { border-radius: 20px; min-height: 58px; }
.r-sticky { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px 28px; background: #fff; }
.r-out { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid #C9CCDE; border-radius: 11px; font-size: 16px; display: grid; place-items: center; background: #fff; }
.r-ride { background: #F9F8FF; border: 1px solid #EDEBFC; border-radius: 18px; padding: 14px; display: grid; gap: 8px; animation: pop .45s ease; }
.r-ride b { font-size: 15px; font-weight: 700; display: block; }
.r-ride small { font-size: 14px; color: #687086; }
.r-rfoot { font-size: 12px; color: #687086; }
.r-pill { height: 34px; padding: 0 14px; border-radius: 17px; background: #4A70F0; color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; }
.r-person { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; background: #EEF2FF; border: 1px solid #CED8FF; }
.r-person b { font-size: 16px; font-weight: 700; display: block; }
.r-person small { font-size: 12px; font-weight: 600; color: #7A7E92; }
.r-radio { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: #4A70F0; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.r-note { font-size: 12px; font-weight: 500; }
.r-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.r-chip { flex: 1 0 30%; max-width: calc((100% - 20px) / 3); height: 48px; border-radius: 24px; border: 1px solid #E4E6EF; background: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.r-chip.sel { background: #4A70F0; border-color: #4A70F0; color: #fff; }
.r-wyb { font-size: 14px; color: #687086; }
.r-sum2 { font-size: 15px; font-weight: 700; }
.r-sumline { font-size: 14px; font-weight: 500; }
.r-tl { display: grid; gap: 18px; }
.r-tlrow { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.r-time { font-size: 14px; font-weight: 600; padding-top: 13px; }
.r-lesson { background: #F9F8FF; border: 1px solid #EDEBFC; border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.r-lesson.fresh { animation: pop .45s ease; }
.r-ltop { display: flex; align-items: center; gap: 12px; }
.r-ltop b { font-size: 18px; font-weight: 700; display: block; }
.r-ltop small { font-size: 12px; font-weight: 600; color: #687086; }
.r-ltop em { font-style: normal; margin-left: auto; align-self: flex-start; font-size: 13px; font-weight: 600; color: #687086; }
.r-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #7A7E92; }
.r-free { min-height: 44px; padding: 0 12px; border: 1px solid #DDF8E8; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; }
.r-free svg { color: #4A70F0; }
.r-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; padding: 4px 12px 22px; background: #fff; border-radius: 24px 24px 0 0; border-top: 1px solid #E9ECF3; box-shadow: 0 -4px 16px rgba(27,36,56,.14); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.r-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #7A7E92; white-space: nowrap; }
.r-tab.on { color: #4A70F0; font-weight: 700; }
.r-tab.main span { width: 70px; height: 70px; margin-top: -30px; border-radius: 50%; background: #4A70F0; border: 5px solid #fff; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 12px rgba(37,76,207,.3); }
.r-banner { position: absolute; top: 56px; left: 10px; right: 10px; z-index: 20; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 22px; background: rgba(246,246,248,.97); box-shadow: 0 12px 34px rgba(0,0,0,.2); transform: translateY(-160%); opacity: 0; transition: transform .5s cubic-bezier(.2,.9,.3,1.15), opacity .3s; }
.r-banner.show { transform: none; opacity: 1; }
.r-banner img { width: 38px; height: 38px; padding: 6px; border-radius: 9px; background: #fff; object-fit: contain; flex: none; }
.r-banner b { font-size: 15px; font-weight: 600; display: block; }
.r-banner p { font-size: 15px; margin-top: 1px; }
.r-banner small { margin-left: auto; font-size: 13px; color: #8E8E93; flex: none; }
.r-alertw { position: absolute; inset: 0; z-index: 19; background: rgba(0,0,0,.28); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.r-alertw.show { opacity: 1; }
.r-alert { width: 270px; border-radius: 14px; background: rgba(242,242,247,.98); text-align: center; overflow: hidden; transform: scale(1.1); transition: transform .3s; }
.r-alertw.show .r-alert { transform: none; }
.r-alert div { padding: 19px 16px 17px; }
.r-alert b { display: block; font-size: 17px; font-weight: 600; }
.r-alert p { font-size: 13px; margin-top: 3px; }
.r-alert span { display: block; border-top: 1px solid rgba(60,60,67,.29); padding: 11px; font-size: 17px; font-weight: 600; color: #007AFF; }
.real .tap { animation: tap .6s ease-out; }
.demo-nav { display: grid; justify-items: center; gap: .7rem; }
.demo-nav p { display: flex; align-items: center; gap: .6rem; font-size: 14px; font-weight: 600; color: var(--heading); min-height: 28px; }
.role { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-strong); background: var(--primary-soft); border-radius: 999px; padding: .3rem .65rem; }
.segs { display: flex; gap: 6px; }
.segs button { border: 0; background: transparent; padding: 8px 0; cursor: pointer; }
.segs i { display: block; width: 52px; height: 5px; border-radius: 99px; background: var(--primary-muted); position: relative; overflow: hidden; }
.segs i::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--primary); border-radius: inherit; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: rec 1.6s infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 100% { box-shadow: 0 0 0 10px rgba(229,72,77,0); } }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: .65rem; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: .7rem .9rem; box-shadow: 0 18px 40px -18px rgba(17,24,42,.25); font-size: 13px; color: var(--heading); font-weight: 600; animation: float 6s ease-in-out infinite; }
.chip small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip-1 { right: 0; top: 8%; }
.chip-2 { left: 0; top: 38%; animation-delay: -1.5s; }
.chip-3 { right: 2%; bottom: 22%; animation-delay: -3s; }
.chip-4 { left: 8%; bottom: 4%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- PHONE + APP SCREENS ---------- */
.phone { width: 290px; max-width: 100%; aspect-ratio: 290 / 600; border-radius: 46px; background: #11182A; padding: 10px; box-shadow: 0 40px 80px -30px rgba(17,24,42,.45), 0 0 0 1px rgba(17,24,42,.08); z-index: 2; }
.screen { position: relative; height: 100%; border-radius: 37px; background: #fff; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; color: var(--text); }
.notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 92px; height: 26px; background: #11182A; border-radius: 20px; z-index: 5; }
.status { display: flex; justify-content: space-between; padding: 14px 24px 4px; font-weight: 700; font-size: 12px; color: var(--heading); position: relative; z-index: 4; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.app-head img { width: 22px; }
.app-head .round { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.app-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.app-body h4 { font-size: 20px; letter-spacing: -.02em; }
.app-body .sub { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.card { border: 1px solid var(--border-card); border-radius: 16px; padding: 12px; background: #fff; }
.row { display: flex; align-items: center; gap: 10px; }
.row .grow { flex: 1; min-width: 0; }
.row b { color: var(--heading); font-weight: 700; display: block; font-size: 12.5px; }
.row small { color: var(--muted); font-size: 11px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-strong); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; }
.badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.b-ok { background: var(--success-soft); color: #149653; }
.b-full { background: var(--danger-soft); color: var(--danger); }
.b-blue { background: var(--primary-soft); color: var(--primary-strong); }
.app-btn { margin-top: auto; height: 42px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; box-shadow: 0 8px 18px -8px var(--shadow); }
.map { height: 45%; flex: none; background: url(../assets/track-progress.jpg) center/cover; position: relative; margin-top: -48px; }
.map::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(transparent, #fff); }
.err { width: 22px; height: 22px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; font-weight: 800; flex: none; }
.list { display: flex; flex-direction: column; }
.list .row { padding-block: 9px; border-top: 1px solid var(--border); }
.list .row:first-child { border-top: 0; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.days span { border-radius: 12px; padding: 6px 0; font-size: 10px; color: var(--muted); background: var(--surface-muted); }
.days span b { display: block; font-size: 15px; color: var(--heading); }
.days span.on { background: var(--primary); color: rgba(255,255,255,.75); }
.days span.on b { color: #fff; }
.lesson { border-left: 3px solid var(--primary); border-radius: 12px; background: var(--surface-tint); padding: 9px 10px; }
.lesson.free { border-left-color: var(--success); background: var(--success-soft); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--primary); border-radius: 99px; }
.donut { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(#315BDF 0 38%, #6E8DF7 0 62%, #BFD0FF 0 80%, #8B7CF6 0 92%, #FF6B6B 0); display: grid; place-items: center; flex: none; }
.donut::after { content: "14"; width: 60px; height: 60px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--heading); }
.legend { display: grid; gap: 4px; font-size: 10.5px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }

/* ---------- SECTIONS ---------- */
section.block { padding-block: clamp(4rem, 8vw, 6.5rem); }
.sec-head { max-width: 44rem; display: grid; gap: .9rem; margin-bottom: 3rem; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.sec-head p { font-size: 1.08rem; }
.center { margin-inline: auto; text-align: center; justify-items: center; }

/* roles */
.roles { background: var(--surface-muted); border-radius: clamp(24px, 4vw, 40px); padding: clamp(1.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px; gap: 4px; margin-bottom: 2rem; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; font: 700 14px/1 var(--f); color: var(--text); padding: .75rem 1.2rem; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.role-pane h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.role-pane > p { margin-top: 1rem; max-width: 34rem; font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; }
.checks .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); }
.checks b { color: var(--heading); display: block; }
.checks span { font-size: 15px; }
.roles .phone { transform: none; }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.tile { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: .6rem; overflow: hidden; position: relative; min-width: 0; background: #fff; }
.tile h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.tile .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: .4rem; }
.t-map { grid-column: span 3; grid-row: span 2; padding: 0; }
.t-map .txt { padding: 1.75rem 1.75rem 0; display: grid; gap: .6rem; }
.t-map .img { flex: 1; min-height: 280px; background: url(../assets/track-progress.jpg) center 40%/cover; margin-top: 1.25rem; position: relative; }
.err-card { position: absolute; left: 1.25rem; bottom: 1.25rem; width: min(300px, calc(100% - 2.5rem)); padding: 4px 12px; box-shadow: 0 18px 40px -18px rgba(17,24,42,.3); }

/* live lesson + sync */
.live { display: grid; grid-template-columns: 1fr minmax(120px, 220px) 1fr; align-items: center; gap: 1.5rem; max-width: 960px; margin-inline: auto; }
.live figure { margin: 0; display: grid; justify-items: center; gap: 1.1rem; text-align: center; min-width: 0; }
.live figcaption b { display: block; color: var(--heading); font-size: 1.05rem; }
.live figcaption span { font-size: 14px; }
.wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--primary-subtle) 0 8px, transparent 8px 14px); }
.wire i { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-muted); animation: travel 2.6s linear infinite; }
.wire i:nth-child(2) { animation-delay: -1.3s; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 10px); } }
@keyframes travelv { from { top: 0; } to { top: calc(100% - 10px); } }
.wire span { position: absolute; left: 50%; top: -46px; translate: -50% 0; white-space: nowrap; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .35rem .8rem; font-size: 12px; font-weight: 700; color: var(--primary-strong); }
.screen.dark-map { background: #eef1f6; }
.map-full { position: absolute; inset: 0; background: #E4E7EF; overflow: hidden; }
.map-full svg { display: block; width: 100%; height: 100%; }
.ov-top { position: absolute; top: 44px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.ov-top .round { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--heading); box-shadow: 0 4px 12px rgba(17,24,42,.12); }
.tag-rec, .tag-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; background: #fff; box-shadow: 0 4px 12px rgba(17,24,42,.12); }
.tag-rec { color: var(--danger); }
.tag-live { color: var(--primary); }
.tag-live .rec-dot { animation-name: recb; }
@keyframes recb { 0% { box-shadow: 0 0 0 0 rgba(74,112,240,.5); } 100% { box-shadow: 0 0 0 10px rgba(74,112,240,0); } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 24px 24px 0 0; padding: 8px 16px 22px; display: grid; gap: 8px; box-shadow: 0 -10px 30px -12px rgba(17,24,42,.2); z-index: 3; }
.sheet .grab { width: 36px; height: 4px; border-radius: 4px; background: var(--border); justify-self: center; }
.stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats2 div { background: var(--surface-muted); border-radius: 12px; padding: 8px 10px; }
.stats2 small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.stats2 b { font-size: 17px; color: var(--heading); font-variant-numeric: tabular-nums; }
.report { height: 38px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-weight: 800; display: grid; place-items: center; font-size: 12.5px; }
.swipe { height: 46px; border-radius: 999px; background: var(--primary-soft); display: flex; align-items: center; padding: 4px; overflow: hidden; }
.swipe .knob { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 10px -4px var(--shadow); animation: nudge 2.6s ease-in-out infinite; }
.swipe .lbl { flex: 1; text-align: center; white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--primary-strong); padding-right: 30px; }
@keyframes nudge { 0%, 55%, 100% { transform: none; } 72% { transform: translateX(12px); } }
.toast { position: absolute; left: 12px; right: 12px; top: 86px; z-index: 4; background: var(--heading); color: #fff; border-radius: 14px; padding: 9px 12px; font-size: 11.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; }
.toast.show { opacity: 1; transform: none; }
.toast .err { width: 18px; height: 18px; font-size: 11px; }
.sync-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
.sync-item { border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.25rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.sync-item .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.sync-item b { color: var(--heading); font-size: 15.5px; line-height: 1.3; }
.sync-item span { font-size: 14px; }
.t-ai { grid-column: span 3; background: linear-gradient(160deg, var(--primary) 0%, var(--primary-strong) 100%); border-color: transparent; color: rgba(255,255,255,.85); }
.t-ai h3 { color: #fff; }
.t-ai .ic { background: rgba(255,255,255,.18); color: #fff; }
.ai-lines { display: grid; gap: .5rem; margin-top: .75rem; }
.ai-lines span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: .55rem .8rem; font-size: 14px; color: #fff; display: flex; gap: .5rem; align-items: center; }
.t-cal { grid-column: span 3; }
.t-cal .mini { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }

/* photo */
.photo { position: relative; border-radius: clamp(24px, 4vw, 40px); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; background: url(../assets/lesson-in-reach.jpg) center 30%/cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,24,42,.55), rgba(17,24,42,0) 60%); }
.photo .inner { position: relative; z-index: 1; padding: clamp(1.5rem, 5vw, 3.5rem); max-width: 34rem; display: grid; gap: 1rem; }
.photo h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.photo p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.photo .chip { position: absolute; right: clamp(1rem, 4vw, 3rem); top: clamp(1rem, 4vw, 3rem); left: auto; animation: none; z-index: 2; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; background: #fff; min-width: 0; }
.plan h3 { font-size: 1.25rem; }
.plan .price { display: flex; align-items: baseline; gap: .35rem; color: var(--heading); }
.plan .price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: 15px; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 30px 60px -30px var(--shadow); }
.toggle { display: inline-flex; background: var(--surface-muted); border-radius: 999px; padding: 4px; }
.toggle button { border: 0; background: transparent; font: 700 13px/1 var(--f); padding: .6rem 1rem; border-radius: 999px; color: var(--text); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--heading); box-shadow: 0 2px 8px rgba(17,24,42,.08); }
.seats { display: grid; gap: .5rem; font-size: 14px; }
.seats input { width: 100%; accent-color: var(--primary); }
.note { font-size: 13px; color: var(--muted); }

/* cta */
.cta { background: var(--primary); border-radius: clamp(24px, 4vw, 40px); overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; color: rgba(255,255,255,.88); position: relative; }
.cta .txt { padding: clamp(2rem, 6vw, 4.5rem); display: grid; gap: 1.25rem; align-content: center; position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta .btn-white { background: #fff; color: var(--primary-strong); }
.cta .btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.cta .pic { background: url(../assets/road-to-success.jpg) center 20%/cover; min-height: 360px; }
.cta .bigb { position: absolute; left: -60px; bottom: -90px; width: 320px; opacity: .1; filter: brightness(10); pointer-events: none; }

footer { padding-block: 3rem; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { text-decoration: none; }

/* reveal (startuje widoczne, animuje tylko gdy JS działa) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav ul { display: none; }
  .hero .wrap, .roles, .cta { grid-template-columns: 1fr; }
  .stage { max-width: 600px; width: 100%; margin-inline: auto; }
  .roles .phone { justify-self: center; }
  .live { grid-template-columns: 1fr; gap: 2.5rem; }
  .wire { width: 2px; height: 90px; justify-self: center; background: repeating-linear-gradient(180deg, var(--primary-subtle) 0 8px, transparent 8px 14px); }
  .wire i { left: -4px !important; animation-name: travelv; }
  .wire span { top: 50%; left: 18px; translate: 0 -50%; }
  .sync-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .t-map, .t-ai, .t-cal { grid-column: auto; grid-row: auto; }
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav .btn-ghost { display: none; }
  .stage .chip { display: none; }
  .sync-grid { grid-template-columns: 1fr; }
  .photo { min-height: 460px; }
  .photo .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
