/* Elektronická evidence pro autoškoly. Landing page, mobile first, no framework, no web fonts. */
:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --blue-l: #eff4ff;
  --amber: #f59e0b;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 8px 24px rgb(15 23 42 / .07);
  --shadow-lg: 0 2px 6px rgb(15 23 42 / .06), 0 24px 60px rgb(30 58 138 / .18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 32px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 0; border-radius: 12px;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  color: #fff; background: var(--blue);
  box-shadow: 0 1px 2px rgb(29 78 216 / .3), 0 6px 16px rgb(37 99 235 / .25);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-ghost { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { color: var(--blue-d); background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .15); }
.btn-light:hover { background: #f1f5ff; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu a:not(.btn):hover { color: var(--blue); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: grid; place-content: center; gap: 5px;
    width: 44px; height: 44px; margin-right: -8px; padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgb(15 23 42 / .08);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 16px; padding: 14px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgb(59 130 246 / .16), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgb(251 191 36 / .12), transparent 60%),
    linear-gradient(#fff, var(--bg-soft));
}
.hero-in { display: grid; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(22 163 74 / .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(22 163 74 / 0); } }
.hero h1 { margin: 20px 0 18px; font-size: clamp(36px, 7vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: 16px; }
.checks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; background: var(--green); }

@media (max-width: 520px) {
  .cta-row .btn { width: 100%; }
}

/* Hero demo: the main button and a window with a screenshot of the live demo */
.hero .cta-row { margin-bottom: 10px; }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-demo {
  background: linear-gradient(135deg, var(--blue), #4f46e5);
  box-shadow: 0 10px 30px rgb(37 99 235 / .35), inset 0 1px 0 rgb(255 255 255 / .2);
}
.btn-demo:hover { background: linear-gradient(135deg, var(--blue-d), #4338ca); }
.demo-note { margin-bottom: 26px; color: var(--muted); font-size: 14px; }

.demo-win {
  position: relative; display: block; overflow: hidden;
  border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-lg); border: 1px solid rgb(226 232 240 / .9);
  transition: transform .25s ease, box-shadow .25s ease;
}
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.demo-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.demo-bar i:nth-child(1) { background: #f87171; }
.demo-bar i:nth-child(2) { background: #fbbf24; }
.demo-bar i:nth-child(3) { background: #4ade80; }
.demo-url { flex: 1; min-width: 0; margin: 0 10px; padding: 4px 12px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-live { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b91c1c; }
.demo-live em { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: live 1.6s infinite; }
@keyframes live { 50% { opacity: .3; } }
.demo-shot { position: relative; display: block; }
.demo-shot img { display: block; width: 100%; height: auto; transition: transform .4s ease, filter .3s ease; }
.demo-ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(circle at center, rgb(15 23 42 / .6), rgb(15 23 42 / .35));
  color: #fff; text-align: center; opacity: 0; transition: opacity .25s ease;
}
.demo-play { display: grid; place-content: center; width: 76px; height: 76px; margin-bottom: 10px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 0 0 10px rgb(255 255 255 / .25); }
.demo-play svg { width: 30px; height: 30px; margin-left: 4px; }
.demo-ov b { font-size: 22px; }
.demo-ov small { font-size: 14px; opacity: .85; }
.demo-win:hover, .demo-win:focus-visible { box-shadow: 0 30px 80px rgb(30 58 138 / .32); }
.demo-win:hover .demo-ov, .demo-win:focus-visible .demo-ov { opacity: 1; }
.demo-win:hover img, .demo-win:focus-visible img { transform: scale(1.03); filter: blur(1.5px); }
@media (hover: none) {
  .demo-ov { opacity: 1; background: linear-gradient(transparent 45%, rgb(15 23 42 / .6)); justify-content: flex-end; padding-bottom: 18px; }
  .demo-play { width: 56px; height: 56px; margin-bottom: 6px; }
  .demo-play svg { width: 22px; height: 22px; }
  .demo-ov b { font-size: 18px; }
  .demo-ov small { display: none; }
}

/* Hero product mock-up */
.hero-art { position: relative; padding: 0 0 40px; }
.app {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgb(226 232 240 / .8);
  font-size: 13px; color: var(--ink);
}
.app-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.app-bar i:nth-child(1) { background: #f87171; }
.app-bar i:nth-child(2) { background: #fbbf24; }
.app-bar i:nth-child(3) { background: #4ade80; }
.app-bar span { margin-left: 10px; color: var(--muted); font-weight: 500; }
.app-main { padding: 14px; min-width: 0; }
.app-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--bg-soft); color: var(--muted); }
.app-search svg { width: 15px; height: 15px; }
.row { display: grid; grid-template-columns: minmax(0, 2.2fr) .5fr .8fr 1.3fr; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid #f1f5f9; }
.row:last-child { border-bottom: 0; }
.row.head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.row > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { flex: none; display: grid; place-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 10px; color: #fff; }
.a1 { background: #6366f1; } .a2 { background: #0ea5e9; } .a3 { background: #ec4899; } .a4 { background: #f59e0b; } .a5 { background: #10b981; }
.chip { justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.chip.ok { background: #dcfce7; color: #166534; }
.chip.warn { background: #fef3c7; color: #92400e; }
.chip.new { background: var(--blue-l); color: var(--blue-d); }
.toast {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: 13px;
  animation: float 6s ease-in-out infinite;
}
.toast svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
.toast b { display: block; color: var(--ink); font-size: 14px; }
.toast span { color: var(--muted); }
.t1 { right: -6px; bottom: 0; }
.t1 svg { background: #dcfce7; color: var(--green); }
.t2 { left: -10px; top: 46%; animation-delay: -3s; }
.t2 svg { background: var(--blue-l); color: var(--blue); }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row > span:nth-child(2), .row > span:nth-child(3) { display: none; }
  .toast { display: none; }
  .hero-art { padding-bottom: 0; }
}

@media (min-width: 980px) {
  .hero { padding: 88px 0 104px; }
  .hero .wrap, .topbar .wrap { width: min(1280px, 100% - 48px); }
  .hero-in { grid-template-columns: .92fr 1.08fr; gap: 56px; }
  .hero h1 { font-size: clamp(44px, 4.4vw, 56px); }
  .hero-art { padding: 0 0 20px 20px; }
  .t1 { right: -20px; bottom: -10px; }
  .t2 { left: -24px; }
}

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 980px) { .section { padding: 112px 0; } }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.03em; max-width: 20em; }
.sub { margin-top: 16px; max-width: 40em; font-size: 18px; color: var(--muted); }

/* Before / after */
.pains { background: #fff; }
.compare { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { padding: 28px; border-radius: var(--radius); }
.compare-col h3 { font-size: 20px; margin-bottom: 18px; }
.compare-col ul { display: grid; gap: 14px; }
.compare-col li { display: flex; gap: 12px; align-items: flex-start; }
.compare-col svg { flex: none; width: 24px; height: 24px; padding: 5px; margin-top: 1px; border-radius: 50%; }
.before { background: var(--bg-soft); }
.before h3 { color: var(--muted); }
.before li { color: var(--muted); }
.before svg { background: #fee2e2; color: var(--red); }
.after { background: linear-gradient(160deg, var(--blue-l), #fff 80%); box-shadow: inset 0 0 0 1.5px #c7d7fe; }
.after li { color: var(--ink); font-weight: 500; }
.after svg { background: var(--green); color: #fff; }

/* Features */
.features { background: var(--bg-soft); }
.grid { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 28px; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); border: 1px solid rgb(226 232 240 / .7);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.icon { display: inline-grid; place-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-l); color: var(--blue); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 16px; color: var(--muted); }

/* Feature showcase (zig-zag app mock-ups) */
.showcase { display: grid; gap: 20px; margin: 44px 0; }
.show-row {
  display: grid; gap: 28px; align-items: center;
  padding: 28px; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); border: 1px solid rgb(226 232 240 / .7);
}
@media (min-width: 900px) {
  .showcase { gap: 28px; }
  .show-row { grid-template-columns: 1fr 1.08fr; padding: 40px 44px; gap: 52px; }
  .show-row.rev .show-text { order: 2; }
}
.show-text .icon { margin-bottom: 16px; }
.show-text h3 { font-size: clamp(22px, 3vw, 26px); letter-spacing: -.02em; margin-bottom: 10px; }
.show-text p { font-size: 17px; color: var(--muted); max-width: 34em; }
.show-art { min-width: 0; }
.show-art .app { font-size: 12.5px; }
.show-art .app-main { padding: 12px 14px; }

/* Dashboard mock-up */
.dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.stat { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.stat span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stat b { display: block; margin: 5px 0 2px; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1; }
.stat small { font-size: 11px; font-weight: 600; color: var(--green); }
.dash-chart { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dc-head span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dc-up { font-size: 13px; font-weight: 800; color: var(--green); }
.dash-bars { display: flex; align-items: flex-end; gap: 9px; height: 116px; }
.dash-bars i { flex: 1; background: #dbe6fe; border-radius: 5px 5px 0 0; }
.dash-bars i.on { background: var(--blue); }
.dash-bars i:nth-child(1) { height: 40px; }
.dash-bars i:nth-child(2) { height: 56px; }
.dash-bars i:nth-child(3) { height: 48px; }
.dash-bars i:nth-child(4) { height: 72px; }
.dash-bars i:nth-child(5) { height: 64px; }
.dash-bars i:nth-child(6) { height: 88px; }
.dash-bars i:nth-child(7) { height: 112px; }
.dash-bars i:nth-child(8) { height: 98px; }
.dc-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e7edf7; }
.dc-foot span { font-size: 12px; font-weight: 600; color: var(--muted); }
.dc-foot b { font-size: 15px; font-weight: 800; color: var(--ink); }

/* Calendar mock-up */
.cal { padding: 16px 18px 22px; }
.cal-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.cal-days span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 22px; gap: 7px; }
.cal-ev { display: flex; flex-direction: column; justify-content: center; gap: 1px; border-radius: 7px; padding: 4px 7px; font-size: 10.5px; line-height: 1.15; overflow: hidden; }
.cal-ev b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev span { font-weight: 600; font-size: 9.5px; opacity: .8; }
.cal-ev.c1 { background: #eef2ff; color: #4338ca; border-left: 3px solid #6366f1; }
.cal-ev.c2 { background: #ecfeff; color: #0e7490; border-left: 3px solid #06b6d4; }
.cal-ev.c3 { background: #fef3c7; color: #92400e; border-left: 3px solid #f59e0b; }
.cal-ev.c4 { background: #dcfce7; color: #166534; border-left: 3px solid #22c55e; }
.cal-ev.e1 { grid-column: 1; grid-row: 1 / span 2; }
.cal-ev.e2 { grid-column: 2; grid-row: 2 / span 2; }
.cal-ev.e3 { grid-column: 3; grid-row: 1 / span 2; }
.cal-ev.e4 { grid-column: 4; grid-row: 2 / span 2; }
.cal-ev.e5 { grid-column: 5; grid-row: 1 / span 2; }
.cal-ev.e6 { grid-column: 1; grid-row: 4 / span 2; }
.cal-ev.e7 { grid-column: 2; grid-row: 5 / span 2; }
.cal-ev.e8 { grid-column: 3; grid-row: 4 / span 2; }
.cal-ev.e9 { grid-column: 4; grid-row: 5 / span 2; }
.cal-ev.e10 { grid-column: 5; grid-row: 4 / span 2; }
@media (max-width: 560px) {
  .show-row { padding: 22px; }
  .dash { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
  .stat { padding: 9px 10px; }
  .stat b { font-size: 21px; }
  .cal { padding: 12px 12px 16px; }
  .cal-days { gap: 5px; margin-bottom: 8px; }
  .cal-days span { font-size: 9px; }
  .cal-grid { gap: 5px; grid-auto-rows: 19px; }
  .cal-ev { padding: 3px 6px; font-size: 9px; gap: 0; border-left-width: 2px; }
  .cal-ev span { font-size: 8.5px; }
}

/* Steps */
.steps-list { display: grid; gap: 20px; margin-top: 44px; counter-reset: s; }
@media (min-width: 860px) { .steps-list { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps-list li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); }
.num {
  display: grid; place-content: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 0 0 6px var(--blue-l);
}
.steps-list h3 { font-size: 20px; margin-bottom: 8px; }
.steps-list p { color: var(--muted); font-size: 16px; }

/* Audience */
.audience { background: var(--ink); color: #cbd5e1; }
.audience h2, .audience h3 { color: #fff; }
.audience .kicker { color: #93c5fd; }
.aud-grid { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 640px) { .aud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .aud-grid { grid-template-columns: repeat(3, 1fr); } }
.aud-grid li { padding: 26px; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
.aud-grid h3 { font-size: 18px; margin-bottom: 10px; }
.aud-grid p { font-size: 15.5px; }

/* About */
.about { background: var(--bg-soft); }
.about-in { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-in { grid-template-columns: 1.3fr .9fr; gap: 64px; align-items: center; } }
.about-text { margin-top: 20px; max-width: 42em; font-size: 17px; line-height: 1.7; color: var(--text); }
.about-stats { display: grid; gap: 16px; }
@media (min-width: 480px) and (max-width: 899px) { .about-stats { grid-template-columns: repeat(3, 1fr); } }
.about-stats li { padding: 24px 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid rgb(226 232 240 / .7); }
.about-stats b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); }
.about-stats span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* Sign-up */
.signup { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.signup-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .signup-in { grid-template-columns: 1fr 1fr; gap: 72px; } }
.signup-copy h2 { margin-bottom: 16px; }
.signup-copy > p { font-size: 18px; color: var(--muted); margin-bottom: 26px; }
.form {
  display: grid; gap: 6px; padding: 28px;
  border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
@media (min-width: 600px) { .form { padding: 36px; } }
.form label { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.form label:first-child { margin-top: 0; }
.form abbr { color: var(--red); text-decoration: none; }
.form input {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 16px/1.3 var(--font); transition: border-color .15s, box-shadow .15s;
}
.form input::placeholder { color: #94a3b8; }
.form input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(37 99 235 / .15); }
.form input[aria-invalid="true"] { border-color: var(--red); }
.form .btn { margin-top: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 0; font-weight: 600; font-size: 15px; }
.form-msg:not(:empty) { margin-top: 10px; padding: 12px 14px; border-radius: 10px; }
.form-msg.ok { background: #dcfce7; color: #166534; }
.form-msg.err { background: #fee2e2; color: #991b1b; }
.fine { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq-list { margin-top: 36px; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--bg-soft); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.faq details[open] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* Final CTA */
.final { padding: 0 0 80px; }
.final-in {
  padding: 56px 28px; border-radius: 28px; text-align: center; color: #dbeafe;
  background:
    radial-gradient(600px 300px at 90% 0%, rgb(251 191 36 / .25), transparent 60%),
    linear-gradient(135deg, #2563eb, #1e3a8a);
  box-shadow: var(--shadow-lg);
}
.final-in h2 { color: #fff; font-size: clamp(28px, 5vw, 42px); font-weight: 800; margin-bottom: 12px; }
.final-in p { font-size: 18px; margin-bottom: 28px; }

/* Footer */
.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.footer-in { display: grid; gap: 20px; justify-items: start; }
.footer .brand { font-size: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--blue); }
.footer p { font-size: 14px; color: var(--muted); }
@media (min-width: 860px) {
  .footer-in { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer nav { justify-content: center; }
}

/* Subtle motion. All opt-in via the .anim class the script adds, so without
   JS or with reduced motion the page stays fully visible and static. */
.show-row { transition: transform .25s ease, box-shadow .25s ease; }
.show-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.about-stats li { transition: transform .2s ease, box-shadow .2s ease; }
.about-stats li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

@media (prefers-reduced-motion: no-preference) {
  /* Base reveal is opacity only, so elements that lift on hover keep their
     own transform. */
  .anim .rv { opacity: 0; transition: opacity .6s ease; }
  .anim .rv.in { opacity: 1; }
  /* Add an upward slide for text blocks that never use a hover transform. */
  .anim .section h2.rv, .anim .section .sub.rv, .anim .compare-col.rv,
  .anim .steps-list li.rv, .anim .aud-grid li.rv, .anim .about-copy.rv,
  .anim .faq-list details.rv {
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
  }
  .anim .section h2.rv.in, .anim .section .sub.rv.in, .anim .compare-col.rv.in,
  .anim .steps-list li.rv.in, .anim .aud-grid li.rv.in, .anim .about-copy.rv.in,
  .anim .faq-list details.rv.in { transform: none; }

  /* Dashboard bars grow up when the row reveals. */
  .anim .show-row.in .dash-bars i { animation: bar-grow .8s cubic-bezier(.22, .61, .36, 1) both; transform-origin: bottom; }
  .anim .show-row.in .dash-bars i:nth-child(1) { animation-delay: .04s; }
  .anim .show-row.in .dash-bars i:nth-child(2) { animation-delay: .10s; }
  .anim .show-row.in .dash-bars i:nth-child(3) { animation-delay: .16s; }
  .anim .show-row.in .dash-bars i:nth-child(4) { animation-delay: .22s; }
  .anim .show-row.in .dash-bars i:nth-child(5) { animation-delay: .28s; }
  .anim .show-row.in .dash-bars i:nth-child(6) { animation-delay: .34s; }
  .anim .show-row.in .dash-bars i:nth-child(7) { animation-delay: .40s; }
  .anim .show-row.in .dash-bars i:nth-child(8) { animation-delay: .46s; }

  /* Calendar events sweep in, staggered left to right, top then bottom. */
  .anim .show-row.in .cal-ev { animation: pop-in .45s ease both; }
  .anim .show-row.in .cal-ev.e1 { animation-delay: .03s; }
  .anim .show-row.in .cal-ev.e2 { animation-delay: .08s; }
  .anim .show-row.in .cal-ev.e3 { animation-delay: .13s; }
  .anim .show-row.in .cal-ev.e4 { animation-delay: .18s; }
  .anim .show-row.in .cal-ev.e5 { animation-delay: .23s; }
  .anim .show-row.in .cal-ev.e6 { animation-delay: .28s; }
  .anim .show-row.in .cal-ev.e7 { animation-delay: .33s; }
  .anim .show-row.in .cal-ev.e8 { animation-delay: .38s; }
  .anim .show-row.in .cal-ev.e9 { animation-delay: .43s; }
  .anim .show-row.in .cal-ev.e10 { animation-delay: .48s; }

  /* Student table rows slide in. */
  .anim .show-row.in .app-main .row:not(.head) { animation: row-in .5s ease both; }
  .anim .show-row.in .app-main .row:nth-child(3) { animation-delay: .06s; }
  .anim .show-row.in .app-main .row:nth-child(4) { animation-delay: .12s; }
  .anim .show-row.in .app-main .row:nth-child(5) { animation-delay: .18s; }
  .anim .show-row.in .app-main .row:nth-child(6) { animation-delay: .24s; }

  /* Gentle pulse on the early-access badge dot. */
  .badge .dot { animation: dot-pulse 2.6s ease-in-out infinite; }
}

@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / .5); } 70% { box-shadow: 0 0 0 7px rgb(34 197 94 / 0); } }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; background: var(--bg-soft); text-align: center; }
.lost-in { display: grid; justify-items: center; gap: 16px; padding: 32px 16px; }
.lost h1 { font-size: 96px; font-weight: 800; letter-spacing: -.05em; color: var(--blue); }
.lost p { font-size: 18px; margin-bottom: 8px; }
