/* R2 Rebate company site (r2rebate.com). One page, no build step.
   Colors follow docs/design/UI.md. Sizes are fluid: the root font size grows
   a little on large screens so the page never looks tiny on a big monitor,
   and every layout size below is in rem so it scales with it. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #141E36;
  --ink-2: #3A4457;
  --muted: #6A7282;
  --line: #E6E1D8;
  --line-soft: #F0ECE5;
  --line-strong: #CFC8BB;
  --brand: #0B1957;
  --brand-hover: #1A2C7A;
  --brand-ink: #FFFFFF;
  --mark-bg: #0A1B3D;
  --mark-ink: #FFFFFF;
  --green: #1D7A4E;
  --green-bg: #E7F3EC;
  --blue: #24509A;
  --blue-bg: #E7EEF9;
  --amber: #985A0C;
  --amber-bg: #FAF0E0;
  --red: #B1261D;
  --app-side: #0A1B3D;
  --glow: rgba(158, 204, 250, 0.55);
  --chart: #0B1957;
  --chart-fill: rgba(11, 25, 87, 0.13);
  --focus: #3D6FD6;
  --shadow: 0 1px 2px rgba(20, 30, 54, 0.04), 0 24px 48px -24px rgba(20, 30, 54, 0.22);
  --band: #0A1B3D;
  --band-ink: #FFFFFF;
  --band-muted: #AEBBD8;
  --band-line: rgba(255, 255, 255, 0.14);
  --backdrop: rgba(10, 18, 40, 0.42);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 74rem;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1022;
    --surface: #111A30;
    --ink: #E8ECF4;
    --ink-2: #B8C1D3;
    --muted: #8B95AA;
    --line: #233150;
    --line-soft: #1A2540;
    --line-strong: #34446A;
    --brand: #9ECCFA;
    --brand-hover: #BCDCFC;
    --brand-ink: #0A1B3D;
    --mark-bg: #FFFFFF;
    --mark-ink: #0A1B3D;
    --green: #6BCB98;
    --green-bg: rgba(107, 203, 152, 0.14);
    --blue: #93B8F2;
    --blue-bg: rgba(147, 184, 242, 0.14);
    --amber: #E5B46A;
    --amber-bg: rgba(229, 180, 106, 0.14);
    --red: #D9483E;
    --app-side: #0B1329;
    --glow: rgba(64, 110, 214, 0.28);
    --chart: #9ECCFA;
    --chart-fill: rgba(158, 204, 250, 0.16);
    --focus: #9ECCFA;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    --band: #111B38;
    --band-muted: #A3B1CF;
    --backdrop: rgba(2, 6, 18, 0.6);
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  /* 16px up to ~1300px wide, then grows to 20px by ~2900px wide. */
  font-size: clamp(1rem, 0.8125rem + 0.25vw, 1.25rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 0.375rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- brand mark ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
/* The R2 is drawn from outlines (the #r2-letters symbol in index.html, cut
   from Archivo Black and centred on its ink), so it sits exactly in the
   middle of the box at every size and in every browser. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark, .app-mark { display: block; flex: none; }
.mark svg, .app-mark svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--mark-bg);
  color: var(--mark-ink);
  transition: transform 0.4s var(--ease-out);
}
.brand:hover .mark { transform: rotate(-6deg) scale(1.04); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px var(--brand);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }
.btn-sm { min-height: 2.5rem; padding: 0 1.125rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.5rem;
}
.link-arrow svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover svg { transform: translateY(3px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.nav-link {
  padding-block: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: color 0.2s, background-size 0.35s var(--ease-out);
}
.nav-link:hover { color: var(--ink); background-size: 100% 1px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  /* Clips the glow behind the card so it can never widen the page. */
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(2rem, 7vh, 6rem) clamp(3rem, 9vh, 8rem);
}
.hero-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-size: clamp(2.375rem, 1rem + 3vw, 3.875rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 16ch;
}
.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

/* ---------- hero visual: the example program card ---------- */

.visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 38rem;
  /* The slides adjust to the width they get, not to the window. */
  container: visual / inline-size;
}
.visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% -30%;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
  pointer-events: none;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: clamp(1.125rem, 0.8rem + 1.2vw, 1.75rem);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.card-title { font-weight: 600; font-size: 1rem; }
.card-sub { margin-top: 0.125rem; font-size: 0.8125rem; color: var(--muted); }

.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.fig-label { font-size: 0.8125rem; color: var(--muted); }
.fig-value {
  margin-top: 0.125rem;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-report { display: flex; flex-direction: column; }
.chart {
  position: relative;
  /* Shorter on short windows (laptops at 125-150% zoom), taller on big ones.
     It also stretches when another slide is taller, so the card never has a gap. */
  flex: 1 0 auto;
  min-height: clamp(8.5rem, min(5.5rem + 9vw, 26vh), 13.5rem);
  margin: 2rem 0 2.25rem;
}
.tier {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  border-top: 1px dashed var(--line-strong);
}
.tier span {
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  padding-right: 0.375rem;
  background: var(--surface);
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}
.tier.is-reached span { color: var(--ink-2); }
.tier-4 { top: 9.09%; }
.tier-3 { top: 27.27%; }
.tier-2 { top: 54.55%; }
.tier-1 { top: 81.82%; }

.draw, .after-draw {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.plot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.plot .line {
  fill: none;
  stroke: var(--chart);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.plot .area { fill: url(#area-fill); }
.fill-top { stop-color: var(--chart); stop-opacity: 0.16; }
.fill-bottom { stop-color: var(--chart); stop-opacity: 0; }
.plot .projection {
  fill: none;
  stroke: var(--chart);
  stroke-width: 1.75;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}

.dot, .today-dot {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--chart);
}
.dot-1 { left: 27.26%; top: 81.82%; }
.dot-2 { left: 53.84%; top: 54.55%; }
.dot-3 { left: 81.78%; top: 27.27%; }
.today-dot {
  left: 85.89%;
  top: 23.45%;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--chart);
  box-shadow: 0 0 0 3px var(--surface);
}
.today-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--chart);
  opacity: 0;
}
.today-line {
  position: absolute;
  left: 85.89%;
  top: 23.45%;
  bottom: 0;
  border-left: 1px solid var(--line-strong);
}

.axis {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  height: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.axis span { position: absolute; top: 0; }
.m-jan { left: 0; }
.m-mar { left: 16.16%; }
.m-may { left: 32.88%; }
.m-jul { left: 49.59%; }
.m-sep { left: 66.58%; }
.m-nov { left: 83.29%; }

.next-level {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.next-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.next-gap { color: var(--muted); white-space: nowrap; }
.bar {
  height: 0.375rem;
  margin-top: 0.625rem;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.bar i {
  display: block;
  width: 84.2%;
  height: 100%;
  border-radius: inherit;
  background: var(--chart);
  transform-origin: left center;
}

.chip {
  position: absolute;
  top: -1.375rem;
  right: -1.25rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.125rem 0.75rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  line-height: 1.3;
}
.chip strong { display: block; font-size: 0.875rem; font-weight: 600; }
.chip small { display: block; font-size: 0.8125rem; color: var(--muted); }
.chip-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--green-bg);
  color: var(--green);
}
.chip-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- hero slideshow ----------
   All slides share one grid cell, so the frame is as tall as the tallest
   slide and nothing below it moves when the slide changes. */

.slides {
  --lead: 0.6s;           /* waits for the page to settle on first load */
  display: grid;
  touch-action: pan-y;
}
.slides.has-cycled { --lead: 0s; }
.slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--shift, 1.25rem));
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.slide.is-current {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.55s ease 0.1s, transform 0.7s var(--ease-out) 0.1s, visibility 0s;
}
.slide > .card { flex: 1 1 auto; }

/* Slide 2: a program being entered. */

.card-setup { display: flex; flex-direction: column; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  vertical-align: 0.0625rem;
  line-height: 1.4;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}
.status i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; }
.slide-setup.is-saved .status { background: var(--green-bg); color: var(--green); }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.875rem 0.75rem;
  margin-top: 1.25rem;
}
.field-label {
  display: block;
  margin-bottom: 0.3125rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.field-box {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0 0.625rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-box.is-focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent);
}
.val { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.caret {
  flex: none;
  width: 1px;
  height: 1.05em;
  margin-left: -0.125rem;
  background: var(--ink);
  animation: blink 1s steps(1) infinite;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  background: var(--line-soft);
  font-size: 0.75rem;
  color: var(--ink-2);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.tag.is-out { opacity: 0; transform: scale(0.8); }

.levels { margin-top: 1.25rem; }
.levels-head, .level-row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 0.5rem;
  align-items: center;
}
.levels-head { padding-bottom: 0.375rem; font-size: 0.75rem; color: var(--muted); }
.level-row {
  padding-block: 0.1875rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}
.level-row .field-box { min-height: 1.875rem; }
.level-row.is-out { opacity: 0; transform: translateY(6px); }

.form-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 1.25rem;
}
.btn-mini {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-mini.is-pressed { transform: scale(0.95); filter: brightness(0.88); }

.slide-setup .chip {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}
.slide-setup.is-saved .chip { opacity: 1; transform: none; }

/* The pointer that "fills in" the form. site.js moves it. */
.cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 1.125rem;
  height: 1.125rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.45, 0.05, 0.25, 1), opacity 0.3s ease;
}
.cursor.is-on { opacity: 1; }
.cursor svg {
  width: 100%;
  height: 100%;
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transform-origin: 20% 15%;
  transition: transform 0.12s ease;
}
.cursor.is-click svg { transform: scale(0.8); }

/* Slide 3: a small version of the Home screen. */

.card-app {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}
.app-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.875rem 0.5rem;
  background: var(--app-side);
  color: #FFFFFF;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  padding-left: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.app-mark {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.3125rem;
  background: #FFFFFF;
  color: #0A1B3D;
}
.app-nav {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-nav li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}
.app-nav li.is-active {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 2px 0 0 #9ECCFA;
  color: #FFFFFF;
}
.app-nav svg, .bell svg, .note-icon svg {
  flex: none;
  width: 0.8125rem;
  height: 0.8125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
  padding: 0.875rem;
  background: var(--bg);
}
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.app-greet { min-width: 0; }
.app-hello { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.app-date { font-size: 0.6875rem; color: var(--muted); }
.app-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}
.fresh { display: inline-flex; align-items: center; gap: 0.375rem; }
.fresh i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--green); }
.bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4375rem;
  background: var(--surface);
  color: var(--ink-2);
}
.bell b {
  position: absolute;
  top: -0.375rem;
  right: -0.375rem;
  display: grid;
  place-items: center;
  min-width: 0.9375rem;
  height: 0.9375rem;
  padding: 0 0.1875rem;
  border-radius: 999px;
  background: var(--red);
  color: #FFFFFF;
  font-size: 0.5625rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease-out);
}
.bell b.is-out { transform: scale(0); }
.bell b.is-bump { animation: bump 0.4s var(--ease-out); }

.app-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}
.app-strip > div { min-width: 0; padding: 0.5rem 0.625rem; }
.app-strip > div + div { border-left: 1px solid var(--line-soft); }
.app-strip .k {
  display: block;
  overflow: hidden;
  font-size: 0.625rem;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.app-strip .v {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.app-panel {
  padding: 0.5rem 0.625rem 0.375rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}
.app-panel-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
}
.app-panel-title span { font-weight: 400; color: var(--muted); }
.notes { margin: 0; padding: 0; list-style: none; }
/* Every row is the same height (each has a top rule), so the arrival
   animation can move rows by whole row-heights without changing the layout. */
.note {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding-block: 0.375rem;
  border-top: 1px solid var(--line-soft);
}
.note-icon {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
}
.note-icon.is-green { background: var(--green-bg); color: var(--green); }
.note-icon.is-blue { background: var(--blue-bg); color: var(--blue); }
.note-icon.is-amber { background: var(--amber-bg); color: var(--amber); }
.note-text { min-width: 0; line-height: 1.3; }
.note-text strong, .note-text small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.note-text strong { font-size: 0.6875rem; font-weight: 600; }
.note-text small { font-size: 0.625rem; color: var(--muted); }
.note time { font-size: 0.625rem; color: var(--muted); white-space: nowrap; }

.prow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem 3.75rem;
  gap: 0.625rem;
  align-items: center;
  padding-block: 0.3125rem;
  font-size: 0.6875rem;
}
.prow + .prow { border-top: 1px solid var(--line-soft); }
.pname { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.ptier { font-size: 0.625rem; color: var(--ink-2); white-space: nowrap; }
.pbar {
  display: block;
  height: 0.1875rem;
  margin-top: 0.1875rem;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.pbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--chart);
  transform-origin: left center;
}
.pbar .w84 { width: 84%; }
.pbar .w68 { width: 68%; }
.pbar .w54 { width: 54%; }
.pbar .w66 { width: 66%; }
.pbar .w47 { width: 47%; }
/* The programs list takes whatever height is left, like a list that carries on. */
.app-main > .app-panel:last-child { flex: 1 1 auto; overflow: hidden; }
.pearn { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* Arrows and dots under the slides. Shown only once site.js is running. */

.carousel-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.is-ready .carousel-nav { display: flex; }
.nav-arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s, transform 0.2s var(--ease-out);
}
.nav-arrow:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.nav-arrow:active { transform: scale(0.93); }
.nav-arrow svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-dots { display: flex; align-items: center; }
.nav-dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 0.45s var(--ease-out);
}
.nav-dot span {
  display: block;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
  transition: width 0.45s var(--ease-out), background-color 0.25s;
}
.nav-dot:hover span { background: var(--muted); }
.nav-dot.is-active { width: 3rem; }
.nav-dot.is-active span { width: 2.25rem; background: var(--line-strong); }
.nav-dot i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Narrow slides: phones and small windows. */
@container visual (max-width: 30rem) {
  .card-app { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .app-side { padding-inline: 0.375rem; align-items: center; }
  .app-brand { padding-left: 0; }
  .app-word, .app-nav span, .fresh, .note time { display: none; }
  .app-nav li { justify-content: center; padding: 0.4375rem; }
  .note { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .prow { grid-template-columns: minmax(0, 1fr) 5.5rem; }
  .pearn { display: none; }
  .field-box { font-size: 0.75rem; padding-inline: 0.5rem; }
  .levels-head, .level-row { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 0.7fr); }
}

/* ---------- how it works ---------- */

.how { padding-block: clamp(2rem, 6vh, 6rem) clamp(1rem, 4vh, 4rem); }
.how-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.how-intro h2, .band h2 {
  margin-top: 1rem;
  font-size: clamp(1.875rem, 1.15rem + 2.3vw, 2.875rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.how-intro > p:last-child {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-size: 1.0625rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.5rem;
  padding-block: 1.75rem;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
}
.step:last-child { padding-bottom: 0.5rem; }
.step-num {
  padding-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 0.5rem;
  max-width: 36rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- contact band and footer ---------- */

.band {
  margin-top: clamp(3rem, 9vh, 7.5rem);
  padding-top: clamp(3rem, 8vh, 6.5rem);
  background: var(--band);
  color: var(--band-ink);
  border-radius: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (prefers-color-scheme: dark) {
  .band { box-shadow: inset 0 1px 0 var(--line); }
}
.band-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}
.band h2 { margin-top: 0; max-width: 17ch; }
.band-copy p {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: 1.0625rem;
  color: var(--band-muted);
  text-wrap: pretty;
}
/* The form is the main way in; the email is a quiet second option. */
.band-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.125rem;
  font-size: 0.9375rem;
  color: var(--band-muted);
}
.band-alt a {
  color: var(--band-ink);
  text-decoration: underline;
  text-decoration-color: var(--band-line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
  overflow-wrap: anywhere;
}
.band-alt a:hover { text-decoration-color: currentColor; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.copy-btn svg {
  width: 0.9375rem;
  height: 0.9375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.is-copied { color: var(--green); border-color: var(--green); }
.band .copy-btn { border-color: var(--band-line); color: var(--band-ink); }
.band .copy-btn:hover { border-color: var(--band-ink); background: rgba(255, 255, 255, 0.06); }
.band .copy-btn.is-copied { color: #8FE0B5; border-color: #8FE0B5; }
.band-btn {
  min-height: 3.25rem;
  padding: 0 1.75rem;
  gap: 0.625rem;
  font-size: 1.0625rem;
  background: #FFFFFF;
  color: #0A1B3D;
}
.band-btn:hover { background: #E8F1FD; transform: translateY(-1px); }
.band-btn svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}
.band-btn:hover svg { transform: translateX(3px); }

.band-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--band-line);
  font-size: 0.875rem;
  color: var(--band-muted);
}
.brand-on-dark { color: var(--band-ink); font-size: 1.0625rem; }
.brand-on-dark .mark { background: #FFFFFF; color: #0A1B3D; width: 2rem; height: 2rem; }

/* ---------- contact dialog ---------- */

.contact-dialog {
  width: min(100% - 2rem, 32rem);
  max-height: calc(100% - 2rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -24px rgba(8, 16, 40, 0.45);
  overflow: auto;
}
.contact-dialog::backdrop {
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.contact-dialog[open] { animation: dialog-in 0.38s var(--ease-out); }
.contact-dialog[open]::backdrop { animation: fade-in 0.38s ease; }
.contact-dialog.is-closing { animation: dialog-out 0.2s ease forwards; }
.contact-dialog.is-closing::backdrop { animation: fade-out 0.2s ease forwards; }

.contact-dialog h2 {
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-right: 2.5rem;
}
.contact-dialog > p {
  margin-top: 0.625rem;
  color: var(--ink-2);
}
.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.dialog-close:hover { background: var(--line-soft); color: var(--ink); }
.dialog-close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}
.dialog-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
  padding: 1rem 1rem 1rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg);
}
.dialog-email > a {
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.dialog-email > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.email-actions { display: inline-flex; gap: 0.375rem; }
.copy-btn.copy-sm {
  min-height: 1.875rem;
  padding: 0 0.625rem;
  gap: 0.3125rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
  text-decoration: none;
}
.copy-btn.copy-sm:hover { color: var(--ink); }
.band .copy-btn.copy-sm { color: var(--band-muted); }
.band .copy-btn.copy-sm:hover { color: var(--band-ink); }
.band .copy-btn.copy-sm.is-copied { color: #8FE0B5; }
.copy-btn.copy-sm svg { width: 0.8125rem; height: 0.8125rem; }

/* The contact form, under the email in the Contact panel. */
.contact-form { display: grid; gap: 0.875rem; }
.contact-form[hidden] { display: none; }
.form-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.875rem 0.75rem; }
.form-field { position: relative; display: grid; gap: 0.3125rem; min-width: 0; }
.form-field label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.form-field .opt { font-weight: 400; color: var(--muted); }
.form-field input, .form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.5625rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { resize: vertical; min-height: 6.5rem; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent);
}
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--red); }
.char-count {
  justify-self: end;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.char-count.is-near { color: var(--amber); }
/* Off-screen for people; bots still find it. */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 0; font-size: 0.875rem; color: var(--red); }
.form-msg:empty { display: none; }
.form-done {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg);
}
.form-done[hidden] { display: none; }
.form-done p { color: var(--ink-2); }
.form-done .form-done-h { font-weight: 600; color: var(--ink); }

/* ---------- motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
/* Opens only as far as today's point (the line ends at 85.9% across), so
   the line's tip is the moving edge the whole way. */
@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 13.8% 0 0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { opacity: 0.45; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(3.2); }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes dialog-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}
@keyframes sheet-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@keyframes sheet-out {
  from { transform: none; }
  to { transform: translateY(100%); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes bump {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
/* Notifications arrive like on a phone: the oldest shows first at the top,
   and each newer one drops in above it and pushes the rest down a row.
   The list is newest first, so row 3 (oldest) starts two rows up. One
   4.2 s run: arrivals at 0.7 s, 2.25 s and 3.65 s, pushes at 2.1 s and 3.5 s. */
@keyframes note-oldest {
  0%, 16.7% { opacity: 0; transform: translateY(calc(-200% - 6px)) scale(0.97); }
  28.6%, 50% { opacity: 1; transform: translateY(-200%); }
  61.9%, 83.3% { opacity: 1; transform: translateY(-100%); }
  95.2%, 100% { opacity: 1; transform: none; }
}
@keyframes note-middle {
  0%, 53.6% { opacity: 0; transform: translateY(calc(-100% - 6px)) scale(0.97); }
  65.5%, 83.3% { opacity: 1; transform: translateY(-100%); }
  95.2%, 100% { opacity: 1; transform: none; }
}
@keyframes note-newest {
  0%, 86.9% { opacity: 0; transform: translateY(-6px) scale(0.97); }
  100% { opacity: 1; transform: none; }
}

.rise { animation: rise 0.9s var(--ease-out) both; }
.d0 { animation-delay: 0.05s; }
.d1 { animation-delay: 0.14s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.34s; }

/* Each slide's motion runs while it has .is-playing; site.js restarts it
   every time the slide comes round again. */
.is-playing .draw { animation: wipe 3.2s cubic-bezier(0.5, 0.05, 0.3, 1) calc(var(--lead) + 0.3s) both; }
.is-playing .after-draw { animation: fade-in 0.8s ease calc(var(--lead) + 3.4s) both; }
.is-playing .today-dot::after { animation: pulse 2.6s ease-out calc(var(--lead) + 4.1s) infinite; }
.is-playing .bar i { animation: grow 2.4s var(--ease-out) calc(var(--lead) + 0.6s) both; }
[data-slide="report"].is-playing .chip { animation: pop 0.8s var(--ease-out) calc(var(--lead) + 3.6s) both; }

.is-playing .note:nth-child(1) { animation: note-newest 4.2s var(--ease-out) both; }
.is-playing .note:nth-child(2) { animation: note-middle 4.2s var(--ease-out) both; }
.is-playing .note:nth-child(3) { animation: note-oldest 4.2s var(--ease-out) both; }
.is-playing .pbar i { animation: grow 1.2s var(--ease-out) both; }
.is-playing .prow:nth-child(2) .pbar i { animation-delay: 0.5s; }
.is-playing .prow:nth-child(3) .pbar i { animation-delay: 0.65s; }
.is-playing .prow:nth-child(4) .pbar i { animation-delay: 0.8s; }
.is-playing .prow:nth-child(5) .pbar i { animation-delay: 0.95s; }
.is-playing .prow:nth-child(6) .pbar i { animation-delay: 1.1s; }

/* Scroll reveal. site.js adds .is-pending only to sections still below the
   fold, so nothing is ever hidden when scripts are off. */
.reveal { transition: opacity 0.8s ease, transform 0.9s var(--ease-out); }
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.step.reveal::before { transition: transform 1s var(--ease-out) 0.1s; }
.step.reveal.is-pending::before { transform: scaleX(0); }
.steps .step:nth-child(2) { transition-delay: 0.1s; }
.steps .step:nth-child(3) { transition-delay: 0.2s; }
.band-contact.reveal { transition-delay: 0.12s; }

/* ---------- layout by width ---------- */

@media (min-width: 40rem) {
  .chip { display: flex; }
}

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  /* Center the text on the card itself, not on card plus arrows: the arrow
     row (1.5rem gap + 2.25rem buttons) hangs into the hero's bottom padding. */
  .visual { justify-self: end; margin-bottom: -3.75rem; }
  .hero { padding-bottom: calc(clamp(3rem, 9vh, 8rem) + 3.75rem); }
  .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .band-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  /* Button and email line share the right edge of the page. */
  .band-contact { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; }
  .band-alt { justify-content: flex-end; }
}

@media (max-width: 35.99rem) {
  .header-inner { height: 4rem; }
  .brand { font-size: 1.0625rem; }
  .mark { width: 2rem; height: 2rem; }
  /* Two equal buttons side by side on phones. */
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
  }
  .hero-actions .link-arrow {
    justify-content: center;
    min-height: 3rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.5rem;
  }
  .card { border-radius: 0.875rem; }
  .band-btn { width: 100%; }

  /* The dialog becomes a sheet from the bottom on phones. */
  .contact-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 1.25rem 1.25rem 0 0;
    border-width: 1px 0 0;
    padding: 1.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  }
  .contact-dialog[open] { animation: sheet-in 0.42s var(--ease-out); }
  .contact-dialog.is-closing { animation: sheet-out 0.24s ease forwards; }
}

/* No reduced-motion override on purpose: every visitor sees the motion,
   including those whose system asks for less (Bryce, 2026-11-10). */

@media (max-width: 29.99rem) {
  .nav-link { display: none; }
}
