/* MarkPoint landing page. Tokens match the trailer (tokens.css). */
:root {
  --blue: #2D5DB0;
  --blue-dark: #244C94;
  --teal: #2AB1A5;
  --ink: #0E0F12;
  --ink-2: #4A4F57;
  --muted: #8A909A;
  --line: #E0E6EC;
  --ground: #F2F6F9;
  --card: #FFFFFF;

  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking-display: -0.03em;

  --radius-card: 24px;
  --radius-button: 14px;
  --shadow-card: 0 40px 90px rgba(26, 43, 74, .14), 0 6px 18px rgba(26, 43, 74, .08);
  --shadow-button: 0 18px 40px rgba(45, 93, 176, .30);

  --ease-small: cubic-bezier(.16, 1, .3, 1);
  --ease-big: cubic-bezier(.33, 0, .15, 1);
  --dur-small: 600ms;
  --dur-big: 900ms;
  --stagger: 60ms;

  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: var(--blue); }
/* Page headings use Inter Tight, so the product's own Nunito (trailer, app screens) stands apart. */
h1, h2 { margin: 0; font-family: var(--font-heading); font-weight: 650; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.key { color: var(--blue); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; text-decoration: none;
  font: 600 16px/1 var(--font-body);
  border-radius: var(--radius-button);
  padding: 15px 22px;
  box-shadow: var(--shadow-button);
  transition: background-color 200ms ease, transform 200ms var(--ease-small);
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: 15px; box-shadow: 0 8px 20px rgba(45, 93, 176, .22); border-radius: 12px; }
.btn-lg { padding: 18px 28px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 246, 249, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { 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: 800 22px/1 var(--font-display); letter-spacing: var(--tracking-display); }
.brand-sm { font-size: 19px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; text-align: center; }
@media (min-width: 720px) { .hero { padding: 88px 0 104px; } }
/* One line at every width: the longest version is ~13em wide. main.js shrinks it further if a fallback font runs wider. */
.headline { font-size: clamp(20px, 6.7vw, 80px); margin: 0 auto; white-space: nowrap; }
.sub { margin: 22px auto 0; max-width: 36rem; color: var(--ink-2); font-size: clamp(17px, 2.1vw, 20px); line-height: 1.55; }

.video-card {
  position: relative;
  margin: 44px auto 0; max-width: 1040px;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 720px) { .video-card { margin-top: 56px; } }
.video-card video { width: 100%; height: 100%; object-fit: cover; background: var(--card); }

.video-ui {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 14px; pointer-events: none;
}
@media (min-width: 720px) { .video-ui { padding: 20px; } }
.video-ui > * { pointer-events: auto; }
.video-card.hd .video-ui { display: none; }

.pill, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .94); color: var(--ink);
  font: 600 14px/1 var(--font-body);
  border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 43, 74, .14);
  transition: background-color 200ms ease, color 200ms ease;
}
.pill { padding: 11px 16px 11px 13px; }
.pill svg { width: 20px; height: 20px; color: var(--blue); }
.icon-btn { width: 42px; height: 42px; padding: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.pill:hover, .icon-btn:hover { background: #fff; color: var(--blue); }
.icon-btn .i-play { display: none; }
.icon-btn.paused .i-play { display: block; }
.icon-btn.paused .i-pause { display: none; }
@media (max-width: 560px) {
  .video-ui { padding: 10px; }
  .pill { font-size: 12.5px; padding: 7px 11px 7px 9px; gap: 6px; }
  .pill svg { width: 16px; height: 16px; }
  .icon-btn { width: 32px; height: 32px; }
  .icon-btn svg { width: 14px; height: 14px; }
}

.hero-cta { margin-top: 40px; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Features ---------- */
.features { padding: 24px 0 40px; }
.feature {
  display: grid; gap: 28px; align-items: center;
  padding: 48px 0;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 112px; padding: 80px 0; }
  .feature.flip .feature-text { order: 2; }
}
/* Section titles always sit on one line: sized to the space they have. */
.title { font-size: clamp(26px, 8.6vw, 48px); white-space: nowrap; }
@media (min-width: 900px) { .feature .title { font-size: clamp(28px, 3.2vw, 46px); } }
.feature-text p { margin: 18px 0 0; color: var(--ink-2); font-size: 18px; max-width: 30rem; }
.shot {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; }

/* ---------- Booking ---------- */
.book { padding: 72px 0 96px; text-align: center; }
@media (min-width: 720px) { .book { padding: 96px 0 128px; } }
.center { text-align: center; }
.lead { margin: 18px auto 0; max-width: 34rem; color: var(--ink-2); font-size: 18px; }
.book-card {
  margin: 40px auto 0; max-width: 1000px;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: left;
}
.cal-embed { width: 100%; min-height: 700px; overflow: auto; }
.cal-embed iframe { display: block; width: 100%; min-width: 320px; height: 700px; border: 0; }
.cal-placeholder {
  min-height: 560px; display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 32px; text-align: center; color: var(--ink-2);
}
.cal-placeholder svg { width: 40px; height: 40px; color: var(--teal); }
.cal-placeholder p { margin: 0; max-width: 26rem; }
.cal-placeholder code { font-size: 14px; background: var(--ground); padding: 2px 6px; border-radius: 6px; }
.email-line { margin: 28px 0 0; color: var(--ink-2); }
.email-line a { font-weight: 600; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-2); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.copy { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .footer-links { margin-left: 0; } .copy { width: 100%; } }

/* ---------- Motion (only when JS is running) ----------
   Headlines: each word masked, slides up 110% → 0, staggered; the blue key phrase arrives last.
   Hero words are snappy (page load). Section titles use the heavier curve and rise with their card.
   Big things: rise ~100px with inertia. Small things: short snappy rise. No fades. */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform var(--dur-small) var(--ease-small); transition-delay: calc(var(--i) * var(--stagger)); }
.js .title[data-split] .w > span { transition-duration: var(--dur-big); transition-timing-function: var(--ease-big); transition-delay: calc(var(--i) * 70ms); }
.js .loaded .headline .w > span, .js .in [data-split] .w > span { transform: none; }

/* Rotating word after "More": masked slide, old word up and out, new word up and in.
   The slot's width eases to each word so the centred line re-centres smoothly. */
.js .headline .rotator {
  display: inline-block; position: relative; overflow: hidden; vertical-align: top;
  height: calc(1.05em + .14em); margin-bottom: -.14em; text-align: left;
}
.js .headline .rotator.ready { transition: width var(--dur-small) var(--ease-small); }
.js .headline .rot-word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  transform: translateY(110%);
  transition: transform var(--dur-small) var(--ease-small);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js .loaded .headline .rot-word.current { transform: none; }
.js .loaded .headline .rot-word.out { transform: translateY(-110%); }

.js [data-rise] { transform: translateY(100px); transition: transform var(--dur-big) var(--ease-big); transition-delay: var(--d, 0ms); }
.js .small-in { transform: translateY(24px); transition: transform var(--dur-small) var(--ease-small); transition-delay: var(--d, 160ms); }

.js .loaded .hero [data-rise], .js .loaded .hero .small-in,
.js .in [data-rise], .js .in .small-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-split] .w > span, .js .headline .rot-word.current, .js [data-rise], .js .small-in { transform: none !important; transition: none !important; }
  .js .headline .rotator { transition: none !important; }
}

/* Section sequence: title words and card start together, then the text follows. */
.js .feature-text .small-in, .js .book .lead { --d: 320ms; }
.js .book .email-line { --d: 520ms; }

/* =========================================================
   Feature close-ups: one piece of the app each, crisp at any size,
   with one small looping gesture. Sizes are in cqw (1% of the card's width).
   ========================================================= */
.demo { position: relative; container-type: inline-size; }
.demo .stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #F4F7FA; display: grid; place-items: center; }
.demo .ui { font-family: var(--font-body); font-size: 1.9cqw; line-height: 1.3; color: var(--ink); }
.demo .ui p { margin: 0; }
.demo .mask { position: relative; display: block; overflow: hidden; }
.demo .card-ui { background: #fff; border: .15cqw solid var(--line); box-shadow: 0 2cqw 5cqw rgba(26, 43, 74, .10), 0 .4cqw 1.2cqw rgba(26, 43, 74, .05); }

/* cursor */
.demo .cursor { position: absolute; left: 84%; top: 88%; width: 3.4cqw; z-index: 5; pointer-events: none; }
.demo .cursor svg { display: block; width: 100%; transform: translate(-21%, -10%); transform-origin: 21% 10%; filter: drop-shadow(0 .3cqw .5cqw rgba(0, 0, 0, .22)); }
.demo .ripple { position: absolute; width: 5cqw; height: 5cqw; margin: -2.5cqw 0 0 -2.5cqw; border-radius: 50%; border: .35cqw solid var(--blue); z-index: 4; pointer-events: none; opacity: 0; }

/* Plan the whole term: mini planner */
.demo .mp {
  --cls: 25cqw; --col: calc((86cqw - var(--cls) - .6cqw) / 4);
  width: 86cqw; border-radius: 2.2cqw; overflow: hidden;
  background: #fff; border: .15cqw solid var(--line);
  box-shadow: 0 2cqw 5cqw rgba(26, 43, 74, .10), 0 .4cqw 1.2cqw rgba(26, 43, 74, .05);
}
.demo .mp-head { display: grid; grid-template-columns: var(--cls) repeat(4, 1fr); height: 8cqw; align-items: stretch; border-bottom: .15cqw solid var(--line); }
.demo .mp-head .mp-cls { display: flex; align-items: center; padding-left: 2.4cqw; color: var(--ink-2); }
.demo .mp-wk { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.5cqw; color: var(--muted); }
.demo .mp-wk b { font-size: 2cqw; color: var(--ink); }
.demo .mp-wk.now { background: var(--blue); color: rgba(255, 255, 255, .85); }
.demo .mp-wk.now b { color: #fff; }
.demo .mp-row { display: grid; grid-template-columns: var(--cls) 1fr; height: 13cqw; }
.demo .mp-row + .mp-row { border-top: .15cqw solid #EEF1F4; }
.demo .mp-row .mp-cls { display: flex; flex-direction: column; justify-content: center; padding: 0 2.4cqw; font-size: 1.55cqw; color: var(--ink-2); }
.demo .mp-row .mp-cls b { font-size: 2.05cqw; font-weight: 600; color: var(--ink); margin-bottom: .3cqw; }
.demo .mp-track { position: relative; border-left: .15cqw solid #EEF1F4; background-image: linear-gradient(to right, #EEF1F4 .15cqw, transparent .15cqw); background-size: var(--col) 100%; background-position: calc(-.15cqw) 0; }
.demo .mp-block {
  position: absolute; left: .5cqw; top: 1.9cqw; bottom: 1.9cqw;
  width: calc(var(--span) * var(--col) - 1cqw);
  box-sizing: border-box; border-radius: 1.4cqw; border: .15cqw solid; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 1.1cqw .6cqw .9cqw;
}
.demo .mp-block.pink { background: #FADDE2; border-color: #F2C3CC; }
.demo .mp-block.blue { background: #DCE8F8; border-color: #B5C8E6; }
.demo .mp-block > b { padding-left: .6cqw; font-size: 1.9cqw; font-weight: 700; white-space: nowrap; color: #1A1D24; }
.demo .mp-block .wks { display: grid; grid-template-columns: repeat(var(--n, var(--span)), calc(var(--col) - 2.5cqw)); gap: 2.5cqw; }
.demo .mp-block .wks i { display: grid; place-items: center; height: 3cqw; background: #fff; border-radius: .8cqw; font-style: normal; font-size: 1.5cqw; font-weight: 700; color: #1A1D24; }
.demo .handle { position: absolute; right: .55cqw; top: 50%; width: .55cqw; height: 42%; border-radius: 1cqw; background: rgba(45, 93, 176, .45); transform: translateY(-50%); }

/* Set work in one click: paper + one button */
.demo .as { display: flex; align-items: center; gap: 4.5cqw; }
.demo .sheet { width: 36cqw; box-sizing: border-box; padding: 2.4cqw 2.6cqw 2.8cqw; border-radius: 1.4cqw; font-size: 1.28cqw; line-height: 1.45; color: #2B2F36; background: #fff; border: .15cqw solid var(--line); box-shadow: 0 2cqw 5cqw rgba(26, 43, 74, .10), 0 .4cqw 1.2cqw rgba(26, 43, 74, .05); }
.demo .sh-top { display: flex; justify-content: space-between; font-size: 1.15cqw; color: var(--muted); padding-bottom: 1cqw; margin-bottom: 1.5cqw !important; border-bottom: .12cqw solid var(--line); }
.demo .sh-title { font-size: 1.65cqw; font-weight: 700; color: var(--ink); margin-bottom: 1.2cqw !important; }
.demo .sh-q { margin-top: 1cqw !important; }
.demo .sh-o { display: flex; flex-wrap: wrap; gap: .3cqw 1.6cqw; margin-top: .5cqw !important; font-size: 1.15cqw; color: var(--ink-2); }
.demo .as-side { width: 33cqw; }
.demo .as-title { font: 800 3.1cqw/1.1 var(--font-display); letter-spacing: -0.02em; }
.demo .as-meta { margin: .7cqw 0 2.8cqw !important; font-size: 1.7cqw; color: var(--ink-2); }
.demo .as-lbl { font-size: 1.45cqw; font-weight: 600; color: var(--muted); margin-bottom: .8cqw !important; }
.demo .as-sel { display: flex; justify-content: space-between; align-items: center; padding: 1.4cqw 1.6cqw; border-radius: 1.2cqw; background: #fff; border: .15cqw solid var(--line); font-size: 1.85cqw; font-weight: 600; }
.demo .as-sel span { font-size: 1.5cqw; font-weight: 400; color: var(--muted); }
.demo .as-btn { margin-top: 1.6cqw; height: 5.8cqw; border-radius: 1.2cqw; background: var(--blue); color: #fff; font-size: 1.9cqw; font-weight: 600; box-shadow: 0 1.4cqw 3cqw rgba(45, 93, 176, .28); }
.demo .as-btn .mask { height: 100%; }
.demo .as-btn .mask > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .8cqw; }
.demo .as-btn svg { width: 2.3cqw; }
.demo .as-btn .a2 { transform: translateY(110%); }
.demo .as-note { margin-top: 1.3cqw !important; font-size: 1.55cqw; font-weight: 600; color: #1B7F46; }
.demo .as-note .mask { height: 2.1cqw; }
.demo .as-note .mask > span { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(110%); }

/* Mark in minutes: one answer */
.demo .mk { width: 76cqw; box-sizing: border-box; padding: 3cqw 3.4cqw; border-radius: 2.2cqw; background: #fff; border: .15cqw solid var(--line); box-shadow: 0 2cqw 5cqw rgba(26, 43, 74, .10), 0 .4cqw 1.2cqw rgba(26, 43, 74, .05); }
.demo .mk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.4cqw; }
.demo .mk-head b { display: block; font: 800 3cqw/1.1 var(--font-display); letter-spacing: -0.02em; }
.demo .mk-head small { display: block; margin-top: .5cqw; font-size: 1.6cqw; color: var(--ink-2); }
.demo .mk-score { display: flex; align-items: flex-end; gap: .8cqw; font: 800 4.4cqw/1.1 var(--font-display); color: #1B7F46; }
.demo .mk-score .mask { width: 1.2em; height: 1.1em; }
.demo .mk-score .mask > span { position: absolute; right: 0; top: 0; }
.demo .mk-score .m2 { transform: translateY(110%); }
.demo .mk-score i { font-style: normal; color: var(--ink); line-height: 1.1; }
.demo .mk-q { padding: 2.2cqw 2.4cqw; border-radius: 1.6cqw; border: .15cqw solid var(--line); }
.demo .mk-q small { display: block; font-size: 1.4cqw; font-weight: 600; color: var(--muted); }
.demo .mk-q > b { display: block; margin: .9cqw 0 1.3cqw; font-size: 2cqw; font-weight: 700; }
.demo .mk-q p { margin: 0 0 1.7cqw !important; padding: 1.4cqw 1.6cqw; border-radius: 1cqw; background: #F5F7FA; font-size: 1.75cqw; line-height: 1.5; color: var(--ink-2); }
.demo .mk-marks { display: flex; align-items: center; gap: 1cqw; font-size: 1.6cqw; font-weight: 500; color: var(--ink-2); }
.demo .mk-btn { padding: .7cqw 1.5cqw; border-radius: .9cqw; border: .15cqw solid var(--line); background: #fff; font-weight: 700; color: var(--ink); }

/* keep slides that are off to the side from widening the page */
.features, .book { overflow-x: clip; }

/* ---------- Timeline down the middle ----------
   A light track with a blue fill that follows the scroll (set in main.js),
   and a dot per feature that lights up as the fill reaches it. */
.features .wrap.timeline { position: relative; max-width: calc(1240px + 2 * var(--gutter)); }
.tl-line { position: absolute; top: 48px; bottom: 48px; left: calc(var(--gutter) + 9px); width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; }
.tl-fill { position: absolute; inset: 0; background: var(--blue); border-radius: 2px; transform: scaleY(0); transform-origin: top; }
.feature { position: relative; padding-left: 36px; }
.tl-dot {
  position: absolute; left: 9px; top: 74px; width: 18px; height: 18px; margin: -9px 0 0 -9px; box-sizing: border-box;
  border-radius: 50%; background: var(--ground); border: 2px solid #C9D3DE;
  transition: background-color 300ms var(--ease-small), border-color 300ms var(--ease-small), box-shadow 300ms var(--ease-small);
}
.tl-dot.on { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px rgba(45, 93, 176, .14); }
.tl-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 300ms var(--ease-small); }
.tl-dot.on::after { transform: scale(1); }
@media (min-width: 900px) {
  .tl-line { left: 50%; }
  .feature { padding-left: 0; }
  .tl-dot { left: 50%; top: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-dot, .tl-dot::after { transition: none; }
}

/* =========================================================
   Dark, editorial look (after watchfern.com): black page, medium-weight
   Inter Tight, one accent colour, a text-only header that turns into a
   frosted bar. The app close-ups keep the app's own look.
   ========================================================= */
:root {
  --page: #FFFFFF;
  --page-fg: #0E0F12;
  --page-fg-2: #4A4F57;
  --page-muted: #8A909A;
  --page-line: #E6EBF0;
  --accent: #2D5DB0;           /* brand blue */
  --font-body: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;   /* the app's own UI font */
}
body { background: var(--page); color: var(--page-fg); font-family: var(--font-body); letter-spacing: -0.01em; }
a { color: var(--accent); }
:focus-visible { outline-color: var(--accent); }
.skip { background: #fff; color: #000; }
h1, h2 { font-family: var(--font-body); font-weight: 500; letter-spacing: -0.035em; line-height: 1.06; }
.key { color: var(--accent); }
.demo .ui { font-family: var(--font-ui); letter-spacing: 0; }


/* header: wordmark left, comma-separated nav right; frosted rounded bar once you scroll */
.site-header { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 720px) { .site-header { top: 20px; left: 20px; right: 20px; } }
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 18px; border-radius: 16px;
  background: rgba(40, 40, 42, 0); transition: background-color 350ms var(--ease-small), -webkit-backdrop-filter 350ms, backdrop-filter 350ms;
}
@media (min-width: 720px) { .header-bar { height: 76px; padding: 0 28px; } }
.site-header.scrolled .header-bar { background: rgba(242, 246, 249, .78); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.site-header .brand { position: relative; display: block; overflow: hidden; height: 1.15em; color: var(--page-fg); text-decoration: none; font: 600 24px/1.15 var(--font-body); letter-spacing: -0.05em; }
@media (min-width: 720px) { .site-header .brand { font-size: 30px; } }
.brand-full, .brand-short { display: block; transition: transform 500ms var(--ease-small); }
.brand-short { position: absolute; left: 0; top: 0; transform: translateY(110%); }
.site-header.scrolled .brand-full { transform: translateY(-110%); }
.site-header.scrolled .brand-short { transform: none; }
.nav { font: 500 16px/1.2 var(--font-body); letter-spacing: -0.04em; color: var(--page-fg); white-space: nowrap; }
@media (min-width: 720px) { .nav { font-size: 22px; } }
.nav { text-decoration: none; transition: color 200ms ease; }
.nav:hover { color: var(--accent); }

/* hero */
.hero { padding: 132px 0 72px; }
@media (min-width: 720px) { .hero { padding: 188px 0 112px; } }
.headline { font-weight: 500; letter-spacing: -0.04em; }
.sub { color: var(--page-fg-2); font-size: clamp(17px, 2vw, 21px); line-height: 1.5; max-width: 33rem; }
.video-card { background: #fff; box-shadow: var(--shadow-card); border-radius: 20px; }
.btn { background: var(--page-fg); color: #fff; box-shadow: none; border-radius: 12px; font-family: var(--font-body); font-weight: 500; letter-spacing: -0.01em; }
.btn:hover { background: var(--accent); }

/* the trailer widens as you scroll (browser-driven, so it stays smooth) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .video-card {
      position: relative; left: 50%; translate: -50% 0;
      width: min(1040px, calc(100vw - 32px)); max-width: none; margin-left: 0; margin-right: 0;
      animation: video-grow linear both; animation-timeline: scroll(root); animation-range: 0px 560px;
    }
    @keyframes video-grow { to { width: calc(100vw - 32px); border-radius: 16px; } }
  }
}



/* features */
.feature-text p { color: var(--page-fg-2); font-size: 19px; line-height: 1.55; }
.shot { box-shadow: none; border-radius: 20px; background: #F4F7FA; }
.tl-line { background: var(--page-line); }
.tl-fill { background: var(--accent); }
.tl-dot { background: var(--page); border-color: #C9D3DE; }
.tl-dot.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(45, 93, 176, .14); }
.tl-dot::after { background: var(--page); }

/* booking */
.lead { color: var(--page-fg-2); font-size: 19px; }
.book-card { box-shadow: var(--shadow-card); border-radius: 20px; }
.email-line { color: var(--page-fg-2); }
.email-line a { color: var(--accent); font-weight: 500; }

/* footer */
.site-footer { border-top-color: var(--page-line); color: var(--page-muted); }
.site-footer .brand { color: var(--page-fg); text-decoration: none; font: 600 20px/1 var(--font-body); letter-spacing: -0.05em; }
.footer-links a { color: var(--page-muted); }
.footer-links a:hover { color: var(--page-fg); }
.copy { color: var(--page-muted); }

/* Phones: two lines at a readable size (desktop stays on one line) */
@media (max-width: 599px) {
  .headline { white-space: normal; font-size: clamp(34px, 11.5vw, 50px); line-height: 1.08; }
  .headline .l2 { display: block; white-space: nowrap; }
}

/* Headings and wordmark: the same type as the "Book a demo" link (Inter Tight medium, tight tracking) */
:root { --font-heading: "Inter Tight", "Inter", system-ui, sans-serif; }
h1, h2 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
.headline { font-weight: 500; letter-spacing: -0.04em; }
.site-header .brand, .site-footer .brand { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.04em; }

/* Headline masks clip only top and bottom (that's all the slide-up needs), never the
   sides, so a word can't lose its last letters if the browser measured it early. */
.js .headline .rotator, .js [data-split] .w { overflow-x: visible; overflow-y: clip; }

/* Heading key words in a green teal (#0F9A80: 3.5:1 on white, fine for large text) */
:root { --highlight: #0F9A80; }
h1 .key, h2 .key { color: var(--highlight); }

/* Wordmark: "MarkPoint." — on scroll the letters after the M fold away and the
   full stop slides in to sit after the M ("M."). */
.site-header .brand { display: inline-flex; align-items: baseline; gap: 0; height: auto; overflow: visible; white-space: nowrap; }
.site-header .b-rest {
  display: inline-block; overflow: clip; width: var(--rest-w, auto);
  transition: width 600ms var(--ease-small), opacity 350ms ease;
}
.site-header.scrolled .b-rest { width: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .site-header .b-rest { transition: none; } }

/* Subtext: two lines on desktop */
.sub { max-width: 46rem; text-wrap: balance; }

/* Hero button: green, to match the heading highlight. Semibold 19px counts as large text,
   so white on #0F9A80 (3.5:1) reads clearly. */
.hero-cta .btn { background: var(--highlight); color: #fff; font-size: 19px; font-weight: 600; }
.hero-cta .btn:hover { background: #0C8470; }

/* Timeline in the same green as the highlights */
.tl-fill { background: var(--highlight); }
.tl-dot.on { background: var(--highlight); border-color: var(--highlight); box-shadow: 0 0 0 5px rgba(15, 154, 128, .16); }


