:root {
  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-strong: #eef3fb;
  --text: #162033;
  --muted: #5d697d;
  --line: #dfe6f1;
  --blue: #0f7bff;
  --cyan: #00a6c8;
  --green: #1e8e3e;
  --indigo: #3f5bd8;
  --yellow: #f9ab00;
  --red: #d93025;
  --shadow: 0 24px 70px rgba(13, 92, 178, 0.14);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(223, 230, 241, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 123, 255, 0.16);
}

.brand-mark img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  background: #edf6ff;
  outline: none;
}

.site-nav .nav-cta {
  margin-left: 6px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(15, 123, 255, 0.26);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: #0867d8;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(54px, 8vw, 104px) clamp(20px, 6vw, 92px) 64px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-text,
.section-heading p,
.module-card p,
.panel-copy p,
.site-footer p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(15, 123, 255, 0.28);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--blue);
  background: #fff;
}

.button.danger {
  min-height: 38px;
  border: 1px solid rgba(217, 48, 37, 0.22);
  color: var(--red);
  background: #fff;
}

.hero-media {
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.app-preview {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 12%, rgba(249, 171, 0, 0.2), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(15, 123, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #fff, #f4f7fb);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.preview-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--line);
}

.preview-toolbar span:nth-child(1) {
  background: var(--red);
}

.preview-toolbar span:nth-child(2) {
  background: var(--yellow);
}

.preview-toolbar span:nth-child(3) {
  background: var(--green);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.preview-header strong {
  display: block;
  margin-bottom: 5px;
  font-size: 22px;
}

.preview-header small,
.preview-tile span,
.platform-card p,
.module-list small {
  color: var(--muted);
}

.status-pill {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  background: #e8f5e9;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.preview-tile {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: #fff;
}

.preview-tile strong {
  display: block;
  margin-top: 18px;
  font-size: 42px;
  line-height: 1;
}

.preview-tile.cyan {
  border-top: 4px solid var(--cyan);
}

.preview-tile.blue {
  border-top: 4px solid var(--blue);
}

.preview-tile.green {
  border-top: 4px solid var(--green);
}

.preview-tile.indigo {
  border-top: 4px solid var(--indigo);
}

.receipt-strip {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 22px;
  border-radius: 20px;
  background: #162033;
}

.receipt-strip span {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.receipt-strip span:nth-child(1) {
  width: 74%;
}

.receipt-strip span:nth-child(2) {
  width: 92%;
}

.receipt-strip span:nth-child(3) {
  width: 58%;
}

.receipt-strip span:nth-child(4) {
  width: 82%;
}

.section {
  scroll-margin-top: 92px;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 92px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.intro-band div {
  min-height: 160px;
  padding: 34px;
  background: #fff;
}

.intro-band strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.intro-band span {
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(22, 32, 51, 0.07);
}

.module-card:hover {
  transform: translateY(-4px);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 22px 56px rgba(22, 32, 51, 0.12);
}

.module-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 14px;
}

.module-icon svg {
  width: 27px;
  height: 27px;
}

.module-card p {
  margin-bottom: 24px;
  font-size: 16px;
}

.accent-cyan .module-icon {
  color: var(--cyan);
  background: #e6f7fb;
}

.accent-blue .module-icon {
  color: var(--blue);
  background: #edf6ff;
}

.accent-green .module-icon {
  color: var(--green);
  background: #e8f5e9;
}

.accent-indigo .module-icon {
  color: var(--indigo);
  background: #f0f0ff;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--surface);
}

.print-section,
.panel-section {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  background: #fff;
}

.print-section {
  color: #d8e2f1;
  background: #111827;
}

.print-media,
.panel-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 123, 255, 0.1), rgba(30, 142, 62, 0.1)),
    #f8fbff;
  box-shadow: var(--shadow);
}

.print-media {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(196, 181, 253, 0.18), rgba(30, 142, 62, 0.14)),
    #172033;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.print-media img,
.panel-media img {
  display: block;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.print-copy,
.panel-copy {
  max-width: 620px;
}

.print-copy p,
.panel-copy p {
  margin-bottom: 22px;
}

.print-copy .eyebrow {
  color: #b8ddff;
}

.print-copy h2 {
  color: #ffffff;
}

.print-copy p,
.print-copy .check-list li {
  color: #aebbd0;
}

.print-copy .check-list li::before {
  color: #111827;
  background: #b8ddff;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  line-height: 1.6;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  content: "✓";
  font-size: 13px;
  font-weight: 800;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-list a {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}

.module-list a:hover,
.platform-card:hover {
  border-color: rgba(15, 123, 255, 0.52);
  box-shadow: 0 16px 38px rgba(22, 32, 51, 0.08);
}

.module-list span {
  font-weight: 800;
}

.web-access {
  background: #fff;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.platform-card {
  display: grid;
  min-height: 260px;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.platform-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  color: var(--blue);
  background: #edf6ff;
}

.platform-icon svg {
  width: 28px;
  height: 28px;
}

.platform-card p {
  margin: 0;
  line-height: 1.65;
}

.web-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.web-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  background: #fff;
}

.tutorials-section {
  background: linear-gradient(180deg, #fff, #f7f9fc);
}

.tutorials-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.tutorial-card {
  display: grid;
  flex: 0 0 132px;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  text-align: left;
  background: #fff;
  box-shadow: 0 14px 36px rgba(26, 45, 76, 0.08);
  cursor: pointer;
}

.tutorial-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 46px;
  padding: 0 8px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.tutorial-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--surface-strong);
}

.tutorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutorial-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(22, 32, 51, 0.22);
}

.tutorial-play svg {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 9px;
  fill: #fff;
  stroke: none;
  background: rgba(15, 123, 255, 0.94);
  box-shadow: 0 14px 30px rgba(22, 32, 51, 0.26);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0.72);
}

.video-modal-card {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-modal-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

.play-store-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface-strong);
}

.store-copy {
  max-width: 820px;
}

.store-copy p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.play-store-section h2 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
}

.store-button {
  display: inline-flex;
  min-width: 220px;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 18px;
  padding: 12px 20px;
  color: #fff;
  background: #111827;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.22);
}

.store-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #b8ddff;
}

.store-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.store-button span:last-child {
  display: grid;
  gap: 2px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.store-button small {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 46px clamp(20px, 6vw, 92px);
  color: #d8e2f1;
  background: #111827;
}

.site-footer p {
  max-width: 580px;
  margin: 18px 0 0;
  color: #aebbd0;
  font-size: 15px;
}

.footer-brand .brand-mark {
  border-color: rgba(255, 255, 255, 0.12);
  color: #b8ddff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-links a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.admin-page {
  min-height: 100vh;
  background: var(--surface);
}

.admin-nav {
  gap: 10px;
}

.admin-logout {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--blue);
}

.admin-login-section,
.admin-dashboard {
  padding: clamp(40px, 7vw, 92px) clamp(20px, 6vw, 92px);
}

.admin-login-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 72px);
}

.admin-login-copy {
  max-width: 720px;
}

.admin-login-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.admin-login-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-login-card label,
.period-control {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.admin-login-card input,
.period-control select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  background: #fff;
}

.admin-login-card input:focus,
.period-control select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(15, 123, 255, 0.14);
}

.admin-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-message.is-error {
  color: var(--red);
}

.admin-tutorials-panel {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(26, 45, 76, 0.08);
}

.tutorial-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(240px, 2fr) auto;
  gap: 14px;
  align-items: end;
}

.tutorial-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tutorial-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
}

.admin-tutorial-list {
  display: grid;
  gap: 12px;
}

.admin-tutorial-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.admin-tutorial-thumbnail {
  display: grid;
  gap: 8px;
}

.admin-tutorial-preview {
  position: relative;
  display: block;
  width: 120px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-strong);
}

.admin-tutorial-preview img {
  width: 120px;
  height: 100%;
  object-fit: cover;
}

.admin-tutorial-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(22, 32, 51, 0.22);
}

.admin-tutorial-play svg {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 9px;
  fill: #fff;
  background: rgba(15, 123, 255, 0.94);
  box-shadow: 0 12px 24px rgba(22, 32, 51, 0.22);
}

.admin-tutorial-file {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-tutorial-file input {
  max-width: 180px;
  font-size: 12px;
}

.admin-tutorial-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-tutorial-fields label {
  display: grid;
  gap: 5px;
}

.admin-tutorial-fields span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-tutorial-fields input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
  background: #fff;
}

.muted {
  color: var(--muted);
}

.admin-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-dashboard-header h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 7vw, 72px);
}

.admin-dashboard-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.period-control {
  min-width: 220px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(22, 32, 51, 0.06);
}

.metric-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.chart-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(22, 32, 51, 0.06);
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.chart-heading h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.chart-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1040px) {
  .hero,
  .split-section,
  .print-section,
  .panel-section,
  .admin-login-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .module-grid,
  .platform-grid,
  .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading.compact {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 10px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    padding-top: 40px;
  }

  .app-preview,
  .hero-media {
    min-height: 430px;
    border-radius: 22px;
  }

  .hero-media img {
    min-height: 430px;
  }

  .app-preview {
    padding: 16px;
  }

  .print-media,
  .panel-media {
    border-radius: 18px;
  }

  .print-media img,
  .panel-media img {
    min-height: 240px;
  }

  .preview-grid,
  .module-grid,
  .module-list,
  .platform-grid,
  .intro-band,
  .metrics-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: auto;
  }

  .play-store-section,
  .site-footer,
  .admin-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .period-control {
    width: 100%;
  }

  .tutorial-form,
  .admin-tutorial-item {
    grid-template-columns: 1fr;
  }

  .admin-tutorial-preview {
    width: 100%;
  }

  .video-modal-card {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-actions .button,
  .store-button {
    width: 100%;
  }
}
