/* Dialboard landing page.
   The page is an office wall: a painted wall with the whiteboard hung on it, sticky notes
   and an index card stuck around it. Boards and paper keep their physical colors in dark
   mode; only the wall (and the text printed on it) changes. */

/* self-hosted (Permanent Marker: Apache 2.0, Gochi Hand: OFL 1.1) */
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/permanent-marker-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Gochi Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/gochi-hand-latin.woff2) format("woff2");
}

:root {
  /* the wall */
  --wall-1: #e3dbce;
  --wall-2: #cbc1b2;
  --wall-glow: rgba(255, 250, 240, .62);
  --wall-shade: rgba(70, 52, 30, .16);
  --wall-shadow: rgba(48, 36, 22, .40);
  --wall-text: #2b2826;
  --wall-text-2: #45403a;
  --wall-muted: #5d564e;
  --wall-rule: rgba(43, 40, 38, .16);
  --wall-ink-black: #2b2826;
  --wall-ink-blue: #1b46c2;
  --wall-ink-red: #d1311f;
  --wall-ink-green: #0d7a4c;
  --focus: #1b46c2;

  /* board materials (physical, never themed) */
  --surface-1: #fcfdfd;
  --surface-2: #eef1f2;
  --frame-1: #f5f7f9;
  --frame-2: #cfd4da;
  --frame-3: #9ba2aa;
  --frame-4: #7b828a;
  --plastic: #4f555c;

  /* dry-erase pigments (MarkerInk.INK) */
  --ink-black: #2b2826;
  --ink-blue: #1b46c2;
  --ink-red: #d1311f;
  --ink-green: #0d7a4c;
  --ink-hint: rgba(43, 40, 38, .72);   /* small grey writing on the board or a card (>= 4.5:1) */

  /* paper */
  --note-yellow: #fdf07c;
  --note-pink: #ffc3d8;
  --note-green: #c8f1b5;
  --note-blue: #b7dffb;
  --note-ink: #2b2826;
  --card: #fffdf7;

  /* type */
  --font-marker: "Permanent Marker", "Marker Felt", "Chalkboard SE", "Comic Sans MS", cursive;
  --font-hand: "Gochi Hand", "Marker Felt", "Bradley Hand", "Comic Sans MS", cursive;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --maxw: 1240px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --fw: 16px;              /* aluminum frame width */
  --noise: none;           /* speckle texture, generated by landing.js */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall-1: #3d3833;
    --wall-2: #211e1b;
    --wall-glow: rgba(255, 238, 210, .09);
    --wall-shade: rgba(0, 0, 0, .3);
    --wall-shadow: rgba(0, 0, 0, .74);
    --wall-text: #f1ebe1;
    --wall-text-2: #d8d1c6;
    --wall-muted: #b4ada3;
    --wall-rule: rgba(241, 235, 225, .16);
    --wall-ink-black: #f1ebe1;
    --wall-ink-blue: #8ea9ff;
    --wall-ink-red: #ff8a6c;
    --wall-ink-green: #5fd49b;
    --focus: #9db8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall-1: #3d3833;
  --wall-2: #211e1b;
  --wall-glow: rgba(255, 238, 210, .09);
  --wall-shade: rgba(0, 0, 0, .3);
  --wall-shadow: rgba(0, 0, 0, .74);
  --wall-text: #f1ebe1;
  --wall-text-2: #d8d1c6;
  --wall-muted: #b4ada3;
  --wall-rule: rgba(241, 235, 225, .16);
  --wall-ink-black: #f1ebe1;
  --wall-ink-blue: #8ea9ff;
  --wall-ink-red: #ff8a6c;
  --wall-ink-green: #5fd49b;
  --focus: #9db8ff;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--wall-2);
  color: var(--wall-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* the painted wall, fixed behind everything (background-attachment: fixed is unreliable on iOS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 70% at 14% -8%, var(--wall-glow), transparent 60%),
    radial-gradient(80% 60% at 100% 105%, var(--wall-shade), transparent 62%),
    var(--noise),
    linear-gradient(170deg, var(--wall-1), var(--wall-2));
}

img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }

:focus-visible {
  outline: 3px dashed var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}
.wb, .note, .lead-card { --focus: #1b46c2; }

.skip {
  position: absolute;
  left: var(--gut-l);
  top: 8px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--note-yellow);
  color: var(--note-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .45);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gut-l) + var(--gut-r));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}

/* text written with a dry-erase marker */
.ink-marker, .ink-hand { filter: url(#ink-rough); }
.ink-marker { font-family: var(--font-marker); font-weight: 400; }
.ink-hand { font-family: var(--font-hand); font-weight: 400; }

/* hand-drawn decorations: landing.js draws them with MarkerInk on a canvas inside the element */
[data-ink] { position: relative; }
.ink-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* without the ink engine landing.js still draws these, with plain canvas lines */

/* ------------------------------------------------------------------ marker-drawn buttons */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 24px 9px;
  font-family: var(--font-marker);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.1;
  color: var(--ink-black);
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform .15s ease, color .15s ease;
}
.cta:hover { transform: translateY(-1px) rotate(-.6deg); color: var(--ink-blue); }
.cta:active { transform: translateY(1px); }
.cta-primary {
  min-height: 58px;
  padding-left: 32px;
  padding-right: 32px;
  font-size: clamp(23px, 2.2vw, 28px);
}
/* the swash is drawn on the decor canvas; keep that canvas under the text */
.cta[data-ink-fill] { isolation: isolate; }
.cta[data-ink-fill] > .ink-decor { z-index: -1; }
.cta-secondary {
  min-height: 48px;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 18px;
  color: var(--ink-black);
}
.cta-secondary:hover { color: var(--ink-blue); }
.cta-sm { min-height: 44px; padding: 6px 16px 5px; font-size: 18px; }

/* ------------------------------------------------------------------ top bar (on the wall) */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--wall-text);
}
.brand img { border-radius: 8px; box-shadow: 0 3px 6px -2px rgba(0, 0, 0, .35); }
.brand-name { font-family: var(--font-marker); font-size: 26px; line-height: 1; letter-spacing: .01em; }
.topnav { display: flex; align-items: center; gap: clamp(4px, 1.6vw, 22px); }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--wall-text);
  text-decoration: none;
}
.nav-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav-cta { color: var(--wall-text); }
.nav-cta:hover { color: var(--wall-text); }

@media (max-width: 760px) { .nav-wide { display: none; } }
.signed-in .nav-link[data-when-in] { display: none; }
.nav-cta { white-space: nowrap; }
@media (max-width: 420px) {
  .nav-cta { display: none; }
  .brand-name { font-size: 24px; }
}

/* ------------------------------------------------------------------ whiteboard materials */

.wb { position: relative; }
.wb-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--fw) var(--fw) 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--frame-1) 0%, var(--frame-2) 22%, var(--frame-3) 78%, var(--frame-4) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    inset 1px 0 0 rgba(255, 255, 255, .45),
    inset -1px 0 0 rgba(0, 0, 0, .18),
    0 50px 80px -34px var(--wall-shadow),
    0 16px 26px -12px var(--wall-shadow),
    0 2px 4px rgba(0, 0, 0, .12);
}
.wb-frame::before { /* brushed metal grain */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 1px, rgba(0, 0, 0, .035) 1px 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
}
.wb-corner {
  position: absolute;
  width: calc(var(--fw) + 12px);
  height: calc(var(--fw) + 12px);
  background: linear-gradient(145deg, #6b7178, var(--plastic) 55%, #33373c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .35);
  z-index: 3;
  pointer-events: none;
}
.wb-corner.tl { top: -2px; left: -2px; border-radius: 12px 4px 10px 4px; }
.wb-corner.tr { top: -2px; right: -2px; border-radius: 4px 12px 4px 10px; }

.wb-surface {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  color: var(--ink-black);
  background:
    radial-gradient(130% 85% at 12% -5%, rgba(255, 255, 255, .95), transparent 58%),
    radial-gradient(80% 60% at 92% 108%, rgba(160, 170, 178, .16), transparent 70%),
    linear-gradient(178deg, var(--surface-1), var(--surface-2));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .2),
    inset 0 2px 5px rgba(0, 0, 0, .2),
    inset 0 -1px 0 rgba(255, 255, 255, .6);
}
.speckle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--noise);
  opacity: .55;
  mix-blend-mode: multiply;
}
/* the glossy reflection sits on top of the ink, like light on melamine */
.wb-gloss {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 24%, rgba(255, 255, 255, .45) 31%, rgba(255, 255, 255, .06) 37%, transparent 44%),
    linear-gradient(112deg, transparent 0 47%, rgba(255, 255, 255, .16) 50%, transparent 54%),
    radial-gradient(140% 120% at 50% 50%, transparent 62%, rgba(90, 100, 110, .10));
  mix-blend-mode: screen;
}
.wb-layer {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.layer-base { z-index: 1; }
.layer-ink { z-index: 3; }
.layer-anim { z-index: 4; }

/* a plain ledge for boards without tools */
.wb-ledge {
  position: relative;
  height: 22px;
  margin: 0 calc(var(--fw) * -1);
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #7d848c 0, #a9b0b7 12%, #dde1e5 38%, #c3c8ce 72%, #8a9199 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 4px rgba(0, 0, 0, .22);
}

/* ------------------------------------------------------------------ marker tray */

.wb-tray {
  position: relative;
  z-index: 2;
  height: 64px;
  margin: 0 calc(var(--fw) * -1);
  padding: 0 calc(var(--fw) + 12px);
  display: flex;
  align-items: flex-end;
  gap: 14px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #7d848c 0, #a9b0b7 6%, #dde1e5 24%, #cdd2d7 60%, #b2b8bf 84%, #8a9199 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 4px rgba(0, 0, 0, .25);
}
.wb-tray::before { /* the trough the markers rest in */
  content: "";
  position: absolute;
  left: calc(var(--fw) + 2px);
  right: calc(var(--fw) + 2px);
  top: 6px;
  height: 24px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .06) 70%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.wb-tray::after { /* brushed grain */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 1px, rgba(0, 0, 0, .03) 1px 3px);
  mix-blend-mode: overlay;
}
.tray-group { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 10px; height: 100%; padding-bottom: 10px; }
.tray-spacer { flex: 1; }
.tray-brand {
  position: relative;
  z-index: 1;
  align-self: center;
  margin-top: 18px;
  font: 800 9px/1 var(--font-body);
  letter-spacing: .34em;
  color: rgba(40, 44, 50, .42);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  white-space: nowrap;
}

/* a dry-erase marker lying in the tray (44px tall hit area, 20px marker) */
.marker {
  --c: var(--ink-black);
  position: relative;
  width: 96px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  transform: translateY(0) rotate(0deg);
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.3);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3));
}
.marker[data-color="blue"] { --c: var(--ink-blue); }
.marker[data-color="red"] { --c: var(--ink-red); }
.marker[data-color="green"] { --c: var(--ink-green); }
.m-body {
  position: absolute;
  left: 30px;
  right: 0;
  top: 15px;
  height: 18px;
  border-radius: 3px 10px 10px 3px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f3f5 35%, #d3d8dd 75%, #b9bfc6 100%);
  overflow: hidden;
}
.m-body::before { /* color band */
  content: "";
  position: absolute;
  left: 10px;
  width: 30px;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000));
  opacity: .92;
}
.m-body::after { /* end plug */
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 9px;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 65%, #000));
}
.m-tip {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 14px;
  height: 8px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  opacity: 0;
  transition: opacity .15s;
}
.m-tip::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  width: 6px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f4f5f6, #c3c8cd);
}
.m-cap {
  position: absolute;
  left: 0;
  top: 14px;
  width: 36px;
  height: 20px;
  border-radius: 10px 3px 3px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55) 0 12%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.2);
}
.m-cap::after { /* pocket clip */
  content: "";
  position: absolute;
  left: 8px;
  right: 6px;
  top: -2px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c));
}
.marker[aria-pressed="true"] { transform: translateY(-16px) rotate(-5deg); }
.marker[aria-pressed="true"] .m-cap { transform: translate(-20px, 6px) rotate(-12deg); }
.marker[aria-pressed="true"] .m-tip { opacity: 1; }

/* felt eraser */
.eraser {
  position: relative;
  width: 78px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.3);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .32));
}
.eraser::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 22px;
  border-radius: 9px 9px 3px 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, #4a5058, #2b2f34 70%, #1e2125);
}
.eraser .e-felt {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 33px;
  height: 9px;
  border-radius: 0 0 3px 3px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, #d5d2cc, #b4b0a9);
}
.eraser:active, .eraser.lift { transform: translateY(-12px) rotate(4deg); }

/* spray bottle: stands in the tray and rises above its lip */
.spray {
  position: relative;
  z-index: 1;
  flex: none;
  width: 48px;
  height: 84px;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .3));
  transform-origin: 50% 100%;
  transition: transform .18s ease;
}
.spray > span { position: absolute; display: block; }
.spray .b-body {
  left: 8px;
  right: 6px;
  bottom: 0;
  height: 50px;
  border-radius: 10px 10px 7px 7px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .14) 32%, rgba(255, 255, 255, 0) 62%, rgba(0, 0, 0, .1)),
    linear-gradient(180deg, rgba(205, 233, 248, .9) 0 20%, #86c8ec 21%, #3f9ed6 100%);
  box-shadow: inset 0 0 0 1px rgba(22, 82, 130, .28), inset 0 -3px 4px rgba(0, 0, 0, .12);
}
.spray .b-label {
  left: 11px;
  right: 9px;
  bottom: 11px;
  height: 17px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 82, 130, .15);
  font: 800 9px/17px var(--font-body);
  letter-spacing: .08em;
  text-align: center;
  color: #23557e;
}
.spray .b-neck {
  left: 17px;
  width: 18px;
  bottom: 49px;
  height: 8px;
  border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 3px), linear-gradient(180deg, #f1f3f5, #b9bfc5);
}
.spray .b-head {
  left: 13px;
  width: 27px;
  bottom: 56px;
  height: 20px;
  border-radius: 6px 10px 3px 3px;
  background: linear-gradient(180deg, #ffffff, #dfe3e7 55%, #b6bcc3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(0, 0, 0, .18);
}
.spray .b-head::before { /* nozzle */
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  width: 12px;
  height: 8px;
  border-radius: 3px 1px 1px 3px;
  background: linear-gradient(180deg, #e9ecef, #aab1b8);
}
.spray .b-head::after { /* nozzle tip */
  content: "";
  position: absolute;
  left: -12px;
  top: 5px;
  width: 3px;
  height: 6px;
  border-radius: 1px;
  background: #6f7780;
}
.spray .b-trigger {
  left: 7px;
  bottom: 40px;
  width: 9px;
  height: 18px;
  border-radius: 2px 2px 6px 6px;
  background: linear-gradient(90deg, #a9b0b7, #e6e9ec 60%, #c3c9cf);
  transform: rotate(16deg);
  transform-origin: 70% 0;
  transition: transform .12s ease;
}
.spray::after { /* the mist when it sprays */
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 26px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 230, 248, .9), rgba(200, 230, 248, 0));
  opacity: 0;
  pointer-events: none;
}
.spray:hover { transform: rotate(-3deg); }
.spray:active { transform: translateY(2px); }
.spray.squeeze .b-trigger { transform: rotate(34deg); }
.spray.squeeze::after { animation: mist .5s ease-out; }
@keyframes mist { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(-10px) scale(1.4); } }

/* the felt eraser that sweeps across during a cash-in or a wipe */
.felt {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: 70px;
  height: 32px;
  margin: -16px 0 0 -35px;
  pointer-events: none;
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, #474d55, #262a2f 65%, #c9c5bf 66%, #b3afa8);
  box-shadow: 0 8px 12px -4px rgba(0, 0, 0, .42);
  will-change: transform;
}
.felt.big { width: 120px; height: 52px; margin: -26px 0 0 -60px; border-radius: 12px 12px 4px 4px; }

/* magnets */
.magnets { display: flex; gap: 10px; flex: none; }
.magnet {
  --m: #d23a3a;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .75) 0 7%, rgba(255, 255, 255, 0) 16%),
    radial-gradient(circle at 50% 45%, var(--m) 0 58%, color-mix(in srgb, var(--m) 70%, #000) 100%);
  box-shadow:
    0 4px 5px -1px rgba(0, 0, 0, .35),
    0 1px 1px rgba(0, 0, 0, .25),
    inset 0 -3px 4px rgba(0, 0, 0, .22),
    inset 0 2px 2px rgba(255, 255, 255, .25);
  transition: transform .15s ease;
}
.magnet svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.magnet:hover { transform: translateY(-1px); }
.magnet:active { transform: translateY(1px) scale(.97); }
.magnet.m-blue { --m: #2a63c9; }
.magnet.m-yellow { --m: #f0b81c; }
.magnet[aria-pressed="true"] .mute { display: none; }
.magnet[aria-pressed="false"] .wave { display: none; }
.magnet.nudge { animation: nudge .32s ease; }
@keyframes nudge { 30% { transform: rotate(-14deg); } 65% { transform: rotate(10deg); } }

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

.hero { padding-top: 6px; padding-bottom: clamp(56px, 9vw, 120px); }
.hero-surface {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.hero-surface.pen-up { touch-action: none; }
@media (pointer: coarse) {
  .hero-surface.pen-up { touch-action: manipulation; }
  .hero-surface.pen-up .demo { touch-action: none; }
}
@media (pointer: fine) { .hero-surface { cursor: crosshair; } }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(26px, 3.6vw, 52px) clamp(20px, 3.6vw, 52px) clamp(32px, 2.8vw, 40px);
}

.pitch {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.tag {
  display: inline-block;
  padding: 3px 12px 2px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--note-ink);
  background: var(--note-yellow); /* browsers without color-mix */
  background: linear-gradient(180deg, var(--note-yellow), color-mix(in srgb, var(--note-yellow) 88%, #a07a00));
  box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .4);
  transform: rotate(-1.6deg);
  filter: none;
}
.pitch h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 92px);
  font-size: clamp(42px, 15.2cqi, 96px);
  line-height: .98;
  letter-spacing: .005em;
  color: var(--ink-black);
}
.pitch h1 [data-ink] { display: inline-block; }
.lede {
  max-width: 25em;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.22;
  color: var(--ink-black);
}
.lede-short { display: none; }
.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}
.hero .ctas .cta-primary { margin-left: 4px; }
.fine {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink-black);
  opacity: .78;
}

/* the live demo */
.demo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-head {
  display: flex;
  flex-wrap: wrap;          /* in a narrow column the magnets drop below the note instead of covering it */
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.stat {
  flex: 0 0 auto;
  min-width: 0;
  padding: 10px 22px;
  text-align: center;
  line-height: 1;
}
.stat-main {
  display: block;
  font-size: clamp(19px, 1.9vw, 26px);
  white-space: nowrap;
}
.stat-main .val { color: var(--ink-green); }
.stat-sub {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  white-space: nowrap;
  opacity: .8;
}

.boxes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.box {
  --ink: var(--ink-blue);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 178px;
  padding: 14px 20px 8px;
  cursor: pointer;
}
.box[data-color="red"] { --ink: var(--ink-red); }
.box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.box-titles { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.label {
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}
.sub {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.1;
  opacity: .84;
}
.count {
  flex: none;
  padding: 0 4px 0 8px;
  font-size: clamp(44px, 4.6vw, 62px);
  line-height: .9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.count-n { display: inline-block; }
.tally-area {
  position: relative;
  flex: 1 1 auto;
  min-height: 62px;
  margin: 6px 0 2px;
}
.box-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
.plus {
  min-width: 56px;
  min-height: 44px;
  padding: .2em .7em .1em;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}
.plus:active { transform: translateY(1px); }
.kbd { margin-left: auto; font: 600 14px/1 var(--font-body); color: var(--ink-hint); white-space: nowrap; }
.kbd kbd {
  display: inline-block;
  min-width: 1.75em;
  margin-left: 5px;
  padding: 4px 6px 3px;
  font: 700 13px/1 var(--font-body);
  text-align: center;
  color: var(--ink-black);
  background: linear-gradient(180deg, #ffffff, #e8ebee);
  border: 1px solid rgba(43, 40, 38, .34);
  border-bottom-width: 2px;
  border-radius: 5px;
}
@media (pointer: coarse) { .kbd { display: none; } }

.demo-hint {
  text-wrap: pretty;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 2.6em;
  padding-left: 4px;
  font-size: 19px;
  line-height: 1.2;
  color: var(--ink-black);
}
.demo-hint svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--ink-blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.demo-hint.flash { animation: hint-in .4s ease; }
@keyframes hint-in { from { opacity: 0; transform: translateX(-6px); } }

/* rewriting a count */
.writing {
  -webkit-mask-image: linear-gradient(90deg, #000 0 44%, transparent 56% 100%);
  mask-image: linear-gradient(90deg, #000 0 44%, transparent 56% 100%);
  -webkit-mask-size: 230% 100%;
  mask-size: 230% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: write var(--dur, 320ms) cubic-bezier(.35, .15, .45, 1) forwards;
}
@keyframes write { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

@media (max-width: 919px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pitch h1 { font-size: clamp(42px, 11vw, 88px); font-size: clamp(40px, 15cqi, 88px); }
}
@media (min-width: 620px) and (max-width: 919px) {
  .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --fw: 10px; }
  .wb-tray { height: 58px; padding: 0 calc(var(--fw) + 6px); gap: 8px; }
  .tray-group { gap: 6px; padding-bottom: 8px; }
  .tray-brand { display: none; }
  .marker { width: 74px; }
  .m-cap { width: 28px; height: 17px; top: 15px; }
  .m-body { left: 24px; height: 15px; top: 16px; }
  .m-body::before { left: 8px; width: 20px; }
  .m-tip { left: 15px; top: 20px; width: 11px; height: 7px; }
  .marker[aria-pressed="true"] { transform: translateY(-13px) rotate(-5deg); }
  .marker[aria-pressed="true"] .m-cap { transform: translate(-15px, 5px) rotate(-12deg); }
  .eraser { width: 60px; }
  .spray { margin-bottom: 6px; }
  .hero-grid { padding-bottom: 38px; }
}
@media (max-width: 480px) {
  /* the first row of tallies shows on the first screen */
  .hero-grid { padding: 20px 16px 38px; gap: 24px; }
  .pitch h1 { margin: 16px 0 12px; }
  .lede-long { display: none; }
  .lede-short { display: inline; }
  .ctas { margin-top: 18px; gap: 4px 20px; }
  .fine { display: none; }
  .box { min-height: 160px; padding: 12px 14px 6px; }
  .demo-head { gap: 8px; }
  .stat { margin-left: 6px; padding: 10px 14px 8px; }
  .stat-main { font-size: 17px; }
  .stat-sub { font-size: 14px; }
  .magnets { gap: 6px; }
  .demo-hint { font-size: 18px; min-height: 3.7em; }
  .marker { width: 48px; }
  .m-cap { width: 24px; }
  .m-body { left: 19px; }
  .m-body::before { left: 6px; width: 11px; }
  .m-tip { left: 11px; }
  .eraser { width: 46px; }
  .tray-group { gap: 3px; }
  .wb-tray { gap: 4px; }
}
@media (max-width: 350px) {
  .marker { width: 44px; }
  .eraser { width: 44px; }
}
/* phones held sideways: keep the pitch and the demo side by side so the board shows on the first screen */
@media (max-width: 919px) and (max-height: 520px) and (orientation: landscape) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; padding: 20px 24px 38px; }
  .pitch { justify-content: flex-start; }
  .pitch h1 { margin: 14px 0 10px; font-size: clamp(28px, 7.4vw, 44px); }
  .pitch { min-width: 0; }
  .lede { font-size: 20px; }
  .lede-long { display: none; }
  .lede-short { display: inline; }
  .ctas { margin-top: 14px; gap: 4px 18px; }
  .fine { display: none; }
  .demo { gap: 10px; }
  .boxes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .box { min-height: 120px; padding: 10px 16px 4px; }
  .tally-area { min-height: 40px; margin: 4px 0 0; }
  .demo-hint { font-size: 17px; }
}

/* ------------------------------------------------------------------ section heads (on the wall) */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 {
  font-family: var(--font-marker);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  color: var(--wall-text);
  text-wrap: balance;
}
.section-head h2 > span { display: inline-block; padding-bottom: 10px; }
.intro {
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--wall-text-2);
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ sticky notes */

.note {
  --paper: var(--note-yellow);
  position: relative;
  padding: 30px 26px 28px;
  color: var(--note-ink);
  font-family: var(--font-hand);
  font-size: 21px;
  line-height: 1.24;
  background: var(--paper); /* browsers without color-mix */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .055) 0 20px, rgba(0, 0, 0, 0) 21px),
    linear-gradient(168deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--paper) 86%, #a07a00));
  border-radius: 2px 2px 4px 30px / 2px 2px 4px 9px;
  box-shadow:
    0 26px 30px -20px rgba(0, 0, 0, .5),
    0 3px 6px rgba(0, 0, 0, .14);
  transform: rotate(var(--tilt, -1.2deg));
}
.note.pink { --paper: var(--note-pink); }
.note.green { --paper: var(--note-green); }
.note.blue { --paper: var(--note-blue); }
.note h3 {
  margin: 12px 0 8px;
  font-family: var(--font-marker);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.08;
  text-wrap: balance;
}
.note p + p { margin-top: 8px; }

.step-n {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-red);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}
.step:nth-child(2) { margin-top: 34px; }
.step:nth-child(3) { margin-top: 12px; }
.sketch { width: 100%; height: 96px; }
.step .sketch { margin-top: 10px; }
.step .sketch-tall { height: 112px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .step:nth-child(2) { margin-top: 0; margin-left: clamp(0px, 6vw, 60px); }
  .step:nth-child(3) { margin-top: 0; }
}

/* ------------------------------------------------------------------ the money board */

.money {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 90px);
}
.money-wb { grid-column: 1 / 2; grid-row: 1; }
.money-in {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3.4vw, 46px) clamp(20px, 3.6vw, 52px) clamp(26px, 3vw, 42px);
  padding-right: clamp(20px, 9vw, 150px);
}
.step-n-board { position: absolute; left: clamp(14px, 2vw, 24px); top: clamp(14px, 2vw, 22px); }
.money-title {
  margin-left: 46px;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.05;
  color: var(--ink-black);
}
.money-title > span { display: inline-block; padding-bottom: 12px; }
.funnel {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: clamp(26px, 3vw, 40px);
}
.funnel li { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; flex: 0 1 auto; }
.funnel li:first-child { align-items: flex-start; text-align: left; }
.funnel .num {
  --nh: clamp(46px, 5.4vw, 72px);
  display: block;
  font-weight: 400;
}
.funnel .num-sketch { width: calc(var(--d) * var(--nh) * .62 + 14px); height: var(--nh); }
.funnel li > span { max-width: 6.4em; margin-top: 4px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.1; }
.funnel .arrow { flex: 1 1 60px; min-width: 56px; max-width: 120px; margin-top: clamp(10px, 1.5vw, 20px); }
.funnel .arrow .sketch { height: 40px; }
.worth { margin-top: clamp(26px, 3vw, 40px); }
.worth-main {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.25;
}
.worth-main .eq { color: var(--ink-green); margin-right: 6px; }
.worth-val {
  display: inline-block;
  margin-left: 14px;
  padding: 0 14px;
  font-size: 1.5em;
  color: var(--ink-green);
}
.worth-sub { margin-top: 6px; font-size: clamp(20px, 2vw, 24px); }
.money-copy {
  max-width: 30em;
  margin-top: clamp(22px, 2.6vw, 34px);
  font-size: clamp(20px, 1.8vw, 23px);
  line-height: 1.3;
  color: var(--ink-black);
}
.money-copy b { font-weight: 400; font-size: .92em; letter-spacing: .01em; white-space: nowrap; }
.handnote { font-family: var(--font-marker); font-size: .95em; color: var(--ink-green); white-space: nowrap; }

.nos-note {
  grid-column: 2 / 3;
  grid-row: 1;
  z-index: 3;
  margin: 120px 0 0 -70px;
}
.nos-note .sketch { height: 74px; margin-top: 6px; }
.nos-quote { margin-top: 12px; font-size: 24px; color: var(--ink-red); }

@media (max-width: 1060px) {
  .money { grid-template-columns: minmax(0, 1fr); }
  .money-in { padding-right: clamp(20px, 3.6vw, 52px); }
  .nos-note { grid-column: 1; grid-row: 2; margin: -26px 0 0 auto; width: min(100%, 380px); margin-right: 4%; }
}
@media (max-width: 760px) {
  .funnel { flex-direction: column; align-items: flex-start; gap: 0; }
  .funnel li:not(.arrow) { flex-direction: row; align-items: baseline; gap: 12px; text-align: left; }
  .funnel li > span { max-width: none; }
  .funnel .arrow { align-self: flex-start; flex: none; width: 46px; min-width: 0; height: 40px; margin: 2px 0 2px 4px; }
  .funnel .arrow .sketch { width: 40px; height: 40px; }
  .money-title { margin-left: 44px; }
  .worth-val { margin-left: 4px; }
}

/* ------------------------------------------------------------------ features */

.features { padding-top: clamp(80px, 10vw, 150px); }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 100px);
}
.feature-row.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h3 {
  text-wrap: balance;
  font-family: var(--font-marker);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  color: var(--wall-text);
}
.feature-copy p {
  max-width: 32em;
  margin-top: 14px;
  font-size: clamp(18px, 1.5vw, 19px);
  color: var(--wall-text-2);
}
.feature-copy .aside { font-weight: 600; color: var(--wall-text); }
@media (max-width: 860px) {
  .feature-row, .feature-row.flip { grid-template-columns: minmax(0, 1fr); }
  .feature-row.flip .feature-copy { order: 0; }
}

/* sound pad */
.sound-pad {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 2.4vw, 30px);
}
.sound-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  min-height: 132px;
  padding: 14px 16px 12px;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  text-align: left;
  color: var(--ink-black);
}
.sound-btn { transition: transform .12s ease, background-color .12s ease; }
.sound-btn:hover { background-color: rgba(27, 70, 194, .045); }
.sound-btn:active, .sound-btn.playing { background-color: rgba(27, 70, 194, .08); }
.sound-btn:active { transform: translateY(1px) scale(.985); }
.sound-btn > .ink-marker { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.1; }
.sound-sketch { height: 70px; }
.sound-written {
  display: flex;
  align-items: center;
  height: 70px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-blue);
}
.sound-btn.playing .sound-written { animation: write .9s cubic-bezier(.35, .15, .45, 1) forwards; -webkit-mask-image: linear-gradient(90deg, #000 0 44%, transparent 56% 100%); mask-image: linear-gradient(90deg, #000 0 44%, transparent 56% 100%); -webkit-mask-size: 230% 100%; mask-size: 230% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.sound-btn.playing > .ink-marker { color: var(--ink-blue); }

/* lead card */
.lead-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  padding: 10px 0 0;
}
.lead-card {
  position: relative;
  width: min(100%, 470px);
  padding: 18px 26px 34px;
  color: var(--note-ink);
  background:
    linear-gradient(172deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 40%),
    var(--card);
  border-radius: 3px;
  box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .5), 0 3px 6px rgba(0, 0, 0, .12);
  transform: rotate(-1.4deg);
}
.lc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -26px 4px;
  padding: 0 26px 6px;
  border-bottom: 2px solid rgba(209, 49, 31, .55);
}
.lc-name { font-size: 36px; line-height: 1.1; color: var(--ink-blue); white-space: nowrap; }
.lc-tag { padding-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-hint); white-space: nowrap; }
.lc-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 46px;
  padding-bottom: 3px;
  margin: 0 -26px;
  padding-left: 26px;
  padding-right: 26px;
  border-bottom: 1.5px solid rgba(27, 70, 194, .2);
}
.lc-k {
  flex: none;
  width: 92px;
  padding-bottom: 7px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-hint);
}
.lc-v { font-size: 27px; line-height: 1.15; color: var(--ink-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-extra .lc-k { color: var(--ink-green); }
.lc-extra .lc-v { color: var(--ink-black); }
.lc-add { display: flex; align-items: flex-end; min-height: 44px; padding-bottom: 4px; font-size: 20px; color: var(--ink-hint); }
.lc-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  padding-top: 12px;
}
.lc-o { padding: 4px 8px; font-size: 18px; line-height: 1.2; color: var(--ink-hint); }
.lc-on { color: var(--ink-green); }
.call-list {
  position: relative;
  width: min(88%, 300px);
  margin: -6px 0 0 auto;
  padding: 26px 20px 18px;
  font-size: 19px;
}
.cl-title { font-size: 20px; margin-bottom: 6px; }
.cl-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1.5px dashed rgba(0, 0, 0, .14); }
.cl-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cl-row b { font-family: var(--font-marker); font-weight: 400; font-size: 15px; white-space: nowrap; }
.c-green { color: var(--ink-green); }
.c-red { color: var(--ink-red); }
.c-blue { color: var(--ink-blue); }
@media (max-width: 520px) {
  .sound-pad { padding: 16px 14px; gap: 14px; }
  .sound-btn { min-height: 118px; padding: 12px 10px 10px; }
  .sound-btn > .ink-marker { font-size: 17px; }
  .lc-outcomes { gap: 6px 10px; }
  .lc-o { padding: 4px 4px; font-size: 15px; }
  .lc-on { margin: 0 6px; } /* room for its circle */
  .call-list { margin-top: -4px; }
  .lead-visual { padding-bottom: 0; }
  .lead-card { padding: 16px 18px 30px; }
  .lc-head, .lc-row { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .lc-name { font-size: 32px; }
  .lc-k { width: 74px; font-size: 11px; }
  .lc-v { font-size: 24px; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 40px);
  align-items: start;
  padding-top: 16px;
}
.fcard {
  position: relative;
  min-width: 0;
  padding: 26px 22px 18px;
  color: var(--note-ink);
  background:
    linear-gradient(172deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 40%),
    var(--card);
  border-radius: 3px;
  box-shadow: 0 26px 32px -22px rgba(0, 0, 0, .5), 0 3px 6px rgba(0, 0, 0, .12);
  transform: rotate(var(--tilt, 0deg));
}
.fcard:nth-child(even) { margin-top: 26px; }
.pin { /* a round magnet holding the card up */
  --m: #d23a3a;
  position: absolute;
  top: -13px;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .75) 0 7%, rgba(255, 255, 255, 0) 16%),
    radial-gradient(circle at 50% 45%, var(--m) 0 58%, color-mix(in srgb, var(--m) 70%, #000) 100%);
  box-shadow: 0 4px 5px -1px rgba(0, 0, 0, .35), 0 1px 1px rgba(0, 0, 0, .25), inset 0 -3px 4px rgba(0, 0, 0, .22);
}
.fcard .icon { width: 64px; height: 64px; margin: 0 0 4px -6px; }
.fcard h3 {
  margin: 0 -22px;
  padding: 0 22px 10px;
  border-bottom: 2px solid rgba(209, 49, 31, .55);
  font-family: var(--font-marker);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 25px);
  line-height: 1.1;
  text-wrap: balance;
  color: var(--note-ink);
}
.fcard p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 28px;
  color: #45403a;
  /* blue rules under each line, like an index card */
  background: repeating-linear-gradient(180deg, transparent 0 26.5px, rgba(27, 70, 194, .2) 26.5px 28px);
}
@media (max-width: 1060px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; max-width: 460px; }
  .fcard:nth-child(even) { margin-top: 0; }
}

/* ------------------------------------------------------------------ closer */

.closer { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 110px); }
.closer-grid { position: relative; }
.closer-in {
  position: relative; /* no z-index: the note on it sits above the board's gloss */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 310px);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 60px) clamp(20px, 4vw, 60px) clamp(28px, 4vw, 70px);
  padding-right: clamp(20px, 6vw, 100px);
}
.closer-copy h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; }
.closer-copy > p { margin-top: 14px; font-size: clamp(21px, 2vw, 26px); line-height: 1.22; }
.closer-copy { position: relative; z-index: 2; }
.closer-note { z-index: 6; }
.cn-title { font-size: 25px; line-height: 1.08; margin-bottom: 10px; }
@media (max-width: 1060px) {
  .closer-in { padding-right: clamp(20px, 4vw, 56px); }
}
@media (max-width: 760px) {
  .closer-in { grid-template-columns: minmax(0, 1fr); }
  .closer-note { max-width: 340px; }
}

/* ------------------------------------------------------------------ footer */

.footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-top: 26px;
  padding-bottom: max(30px, env(safe-area-inset-bottom, 0px));
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gut-l);
  right: var(--gut-r);
  border-top: 2px solid var(--wall-rule);
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-marker); font-size: 21px; color: var(--wall-text); }
.foot-brand img { border-radius: 6px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--wall-text-2); text-underline-offset: 4px; }
.foot-nav a:hover { color: var(--wall-text); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .writing, .sound-btn.playing .sound-written { animation-duration: 1ms !important; }
  .marker, .eraser, .m-cap, .cta, .magnet { transition: none; }
  .demo-hint.flash, .magnet.nudge, .spray.squeeze::after { animation: none; }
  .spray, .spray .b-trigger, .sound-btn { transition: none; }
}
