/* beltmeter.com: the school-facing website. Same brand as the app (red, system font). */
:root {
  --ink: #111827; --muted: #4b5563; --soft: #6b7280; --bg: #f8fafc; --card: #ffffff; --line: #e5e7eb;
  --brand: #d7263d; --brand-ink: #ffffff; --brand-soft: #fdecee; --ok: #10b981; --warn: #f59e0b;
  --dark: #0f172a; --dark-ink: #f1f5f9; --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f3f4f6; --muted: #a1a8b3; --soft: #8b93a0; --bg: #0b0f17; --card: #151b26; --line: #273042;
    --brand: #ef3b52; --brand-soft: #2a1519; --dark: #151b26; --shadow: none; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 16px; }
h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 800; color: var(--brand); margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 24px; max-width: 60ch; }
.muted { color: var(--muted); } .small { font-size: 14px; }

/* Nav */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { font-weight: 800; font-size: 21px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo b { color: var(--brand); }
nav.links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
nav.links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
nav.links a:hover { color: var(--brand); }
nav.links a.btn { color: var(--brand-ink); }
/* Phones: the links fold into a menu under the ☰ button. */
.menu-btn { display: none; margin-left: auto; font-size: 24px; line-height: 1; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); width: 44px; height: 40px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav.links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; }
  nav.links.open { display: flex; }
  nav.links a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  nav.links a.btn { margin-top: 12px; border-bottom: 0; text-align: center; }
}

/* Buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; font-size: 16px; cursor: pointer; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.pills li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--muted); }

/* Phone mock with the example result */
.phone { max-width: 340px; margin: 0 auto; background: var(--dark); border-radius: 36px; padding: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.screen { background: #0b1220; color: #e5e7eb; border-radius: 26px; padding: 20px 18px; }
.screen .school { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.screen .who { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 14px; }
.screen .who b { font-size: 24px; color: #fff; display: block; }
.screen .who span { font-size: 13px; color: #cbd5e1; }
.ring { width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#ef3b52 calc(var(--p) * 1%), #1f2937 0); }
.ring div { width: 66px; height: 66px; border-radius: 50%; background: #0b1220; display: grid; place-items: center; text-align: center; line-height: 1.05; }
.ring strong { font-size: 21px; color: #fff; } .ring small { font-size: 9px; color: #94a3b8; display: block; }
.bar { margin: 9px 0; font-size: 13px; }
.bar .row { display: flex; justify-content: space-between; }
.bar .row em { font-style: normal; color: #94a3b8; }
.bar .track { position: relative; height: 8px; background: #1f2937; border-radius: 99px; margin-top: 4px; }
.bar .fill { height: 100%; border-radius: 99px; background: #10b981; }
.bar.miss .fill { background: #f59e0b; }
.bar .target { position: absolute; top: -3px; width: 2px; height: 14px; background: #fff; border-radius: 2px; }
.mission { background: #111a2e; border-radius: 14px; padding: 10px 12px; margin-top: 14px; font-size: 13px; color: #cbd5e1; }
.mission b { color: #fff; }
.caption { text-align: center; font-size: 13px; color: var(--soft); margin-top: 10px; }

/* Grids and cards */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.card .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 8px; }
.icon { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.quote { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.01em; text-align: center; margin: 0; }
.quote b { color: var(--brand); }

/* Tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
td small { color: var(--soft); display: block; }

/* Pricing */
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--card); margin: 8px 0 20px; }
.toggle button { border: 0; background: transparent; color: var(--ink); padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.plan { display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--brand); }
.plan .tag { align-self: flex-start; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 12px; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 0; }
.plan .price span { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .yearly-note { font-size: 14px; color: var(--muted); min-height: 1.6em; }
.plan ul { padding-left: 0; list-style: none; margin: 16px 0 20px; flex: 1; }
.plan li { padding-left: 26px; position: relative; margin: 8px 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
section.alt details { background: var(--bg); }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Form */
form.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.demo .full { grid-column: 1 / -1; }
@media (max-width: 600px) { form.demo { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 15px; display: block; }
input, select, textarea { width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: var(--bg); color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.notice.ok { background: #ecfdf5; color: #065f46; } .notice.err { background: var(--brand-soft); color: var(--brand); }
@media (prefers-color-scheme: dark) { .notice.ok { background: #062a1f; color: #6ee7b7; } }

footer.bottom { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.bottom a { color: var(--muted); }

/* Hero demo animation: bars, numbers and ring move from check to check */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring { transition: --p 1.1s ease; }
.bar .fill { transition: width 1.1s ease, background-color .5s; }
.stages { display: flex; gap: 6px; margin: 0 0 6px; }
.stages span { flex: 1; text-align: center; font-size: 11px; padding: 3px 0; border-radius: 99px; background: #111a2e; color: #64748b; transition: background-color .4s, color .4s; }
.stages span.on { background: #ef3b52; color: #fff; font-weight: 700; }
.mission { transition: opacity .4s; }
.mission.fade { opacity: 0; }
.mission.done { background: #052e22; color: #a7f3d0; }
.mission.done b { color: #6ee7b7; }

/* Feature highlights under the hero */
.highlights > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: start; }
.highlights .icon { grid-row: span 2; font-size: 24px; margin: 0; }
.highlights b { font-size: 16px; }
.highlights p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* Hero owner dashboard: KPIs, the Master's text to a new family and the trial calendar */
.dash { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); max-width: 520px; margin: 0 auto; }
.dash-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.dash-top span { color: var(--soft); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.kpis div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; }
.kpis strong { display: block; font-size: 22px; letter-spacing: -.02em; transition: color .3s; }
.kpis strong.bump { color: var(--ok); }
.kpis span { font-size: 11.5px; color: var(--soft); line-height: 1.25; display: block; }
@media (max-width: 460px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.dash-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
@media (max-width: 460px) { .dash-cols { grid-template-columns: 1fr; } }
.chat, .cal { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.chat-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.chat-head small { color: var(--soft); font-weight: 500; }
.msgs { display: flex; flex-direction: column; gap: 6px; height: 232px; overflow: hidden; justify-content: flex-end; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
.msg { max-width: 88%; padding: 7px 10px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; animation: pop .35s ease both; }
.msg.out { align-self: flex-end; background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.msg.in { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .who { display: block; font-size: 10px; opacity: .75; margin-bottom: 1px; }
.msg .link { display: inline-block; margin-top: 4px; background: rgba(255,255,255,.18); border-radius: 8px; padding: 2px 8px; font-weight: 700; }
.msg.typing { color: var(--soft); font-style: italic; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.cal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cal li { font-size: 12.5px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; line-height: 1.3; }
.cal li b { display: block; font-size: 12px; }
.cal li.new { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--card)); animation: pop .4s ease both; }
.cal li.new::after { content: "New trial booked"; display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; color: var(--ok); }

/* Real screens */
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; border-radius: 28px; border: 8px solid var(--dark); box-shadow: var(--shadow); }
.shots figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; text-align: center; }
.shots figcaption b { display: block; color: var(--ink); font-size: 17px; }

/* The booking calendar opens in a pop-up over the page (full screen on phones). */
.book-dialog { width: min(760px, 100vw - 32px); height: min(860px, 100dvh - 32px); padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.book-dialog[open] { display: flex; flex-direction: column; }
.book-dialog::backdrop { background: rgba(15, 23, 42, .6); }
.book-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; color: #111827; }
.book-close { font-size: 20px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f3f4f6; color: #111827; cursor: pointer; }
.book-dialog iframe { flex: 1; width: 100%; border: 0; }
@media (max-width: 600px) { .book-dialog { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border-radius: 0; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 8px; }
section[id] { scroll-margin-top: 60px; }
/* After someone books: the demo section confirms it instead of asking again. */
.booked h2 { margin-top: 0; }
.booked-icon { font-size: 44px; line-height: 1; margin: 0 0 10px; }

/* Demo video in "See it" */
.promo { margin: 28px auto 8px; max-width: 520px; text-align: center; }
.promo video { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 16px; background: #0f1218; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: block; }
.promo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.promo figcaption b { color: var(--ink); margin-right: 6px; }
