/* Hand-drawn "notebook margin" doodles for the home hero: Playpen Sans lettering + wobbly SVG strokes (filter #dmRough).
   Decoration only (aria-hidden). Strokes draw themselves in once on load; motion is off for prefers-reduced-motion. */
.dm-sk,
.dm-sk-start__note,
.dm-sk-enquiry__note,
.dm-sk-signin__note { font-family: "Playpen Sans", "Comic Sans MS", cursive; }
.dm-sk { position: absolute; display: none; line-height: 1.25; font-weight: 600; }
.dm-sk__txt { display: block; white-space: nowrap; }
.dm-sk__txt--blue { color: #1a73e8; }
.dm-sk__txt--green { color: #188038; }
.dm-sk__txt--red { color: #d93025; }
.dm-sk__txt--amber { color: #b06000; }
.dm-sk svg,
.dm-sk-start__note svg,
.dm-sk-enquiry__note svg,
.dm-sk-signin__note svg { overflow: visible; }
.dm-sk path,
.dm-sk-start__note path,
.dm-sk-enquiry__note path,
.dm-sk-signin__note path { stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dm-sk-draw 1.1s ease-out 0.5s forwards; }
@keyframes dm-sk-draw { to { stroke-dashoffset: 0; } }

/* gradient-descent note, with a curved arrow toward the ball on the curve */
.dm-sk--descent { left: 50.5%; top: 24px; transform: rotate(-3deg); }
.dm-sk--descent .dm-sk__txt { font-size: 0.92rem; }
.dm-sk--descent .dm-sk__arrow { width: 3.4rem; margin: 0.15rem 0 0 4.2rem; display: block; }
.dm-sk--descent path { stroke: #ea4335; }

/* "start here!" beside the main button (home hero only) */
.dm-sk-start { position: relative; display: inline-block; }
.dm-sk-start__note { position: absolute; left: 62%; top: calc(100% + 0.35rem); display: none; align-items: flex-start; gap: 0.1rem; color: #d93025; font-weight: 700; font-size: 0.95rem; white-space: nowrap; pointer-events: none; transform: rotate(-4deg); }
.dm-sk-start__note svg { width: 2rem; margin-top: 0.1rem; }
.dm-sk-start__note path { stroke: #d93025; }
.dm-sk-start__note > span { padding-top: 1.1rem; margin-left: -0.15rem; }

/* Pencil notes for the other two primary home-page actions. */
.dm-sk-enquiry,
.dm-sk-signin { position: relative; }
.dm-sk-signin { display: inline-flex; }
.dm-sk-enquiry__note,
.dm-sk-signin__note {
  position: absolute;
  display: none;
  align-items: flex-start;
  color: #d93025;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}
.dm-sk-enquiry { padding-bottom: 1.85rem; }
.dm-sk-enquiry__note {
  left: 48%;
  top: calc(100% - 1.7rem);
  gap: 0.1rem;
  font-size: 0.9rem;
  transform: rotate(-3deg);
}
.dm-sk-enquiry__note svg { width: 1.8rem; margin-top: -0.75rem; }
.dm-sk-enquiry__note path { stroke: #d93025; }
.dm-sk-enquiry__note > span { padding-top: 0.25rem; }
.dm-sk-signin__note {
  right: -0.15rem;
  top: calc(100% + 0.15rem);
  gap: 0.05rem;
  font-size: 0.78rem;
  transform: rotate(-4deg);
}
.dm-sk-signin__note svg { width: 1.5rem; margin-top: -0.65rem; }
.dm-sk-signin__note path { stroke: #d93025; }
.dm-sk-signin__note > span { padding-top: 0.25rem; }

@media (min-width: 992px) { .dm-sk-start__note { display: flex; } .dm-hero--pro .dm-hero--compact__btn { margin-bottom: 0; } .dm-hero--pro .dm-hero-content .col-lg-6 > .d-flex.flex-wrap:last-of-type { padding-bottom: 1.7rem; } }
@media (min-width: 992px) { .dm-sk-enquiry__note, .dm-sk-signin__note { display: flex; } }
@media (min-width: 1200px) { .dm-sk--descent { display: block; } }
@media (prefers-reduced-motion: reduce) { .dm-sk path, .dm-sk-start__note path, .dm-sk-enquiry__note path, .dm-sk-signin__note path { animation: none; stroke-dashoffset: 0; } }

/* breathing room: headline sits a little lower under the badge; the "start here" note clears the stats strip */
body.dm-page-home .dm-hero--pro .dm-hero-badge { margin-bottom: 1rem; }
body.dm-page-home .dm-hero--pro .dm-hero-strip { margin-top: 1.75rem !important; }

/* backprop chain rule, handwritten, on the same row as the buttons, to the right of "Watch intro" */
.dm-bp { display: none; position: relative; flex: 0 0 auto; margin-left: 0.2rem; padding-left: 0.85rem; border-left: 2px dashed rgba(66, 133, 244, 0.45); font-family: "Playpen Sans", "Comic Sans MS", cursive; color: #202124; transform: rotate(-1.5deg); pointer-events: none; }
.dm-bp__cap { display: block; font-size: 0.68rem; font-weight: 600; color: #d93025; margin-bottom: 0.1rem; white-space: nowrap; }
.dm-bp__eq { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.dm-bp__f { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; }
.dm-bp__f i { font-style: normal; padding: 0 0.1rem; }
.dm-bp__f i:first-child { border-bottom: 2px solid #202124; padding-bottom: 0.03rem; margin-bottom: 0.08rem; }
.dm-bp__f:nth-of-type(1) { color: #188038; }
.dm-bp__f:nth-of-type(2) { color: #1a73e8; }
.dm-bp__f:nth-of-type(3) { color: #b06000; }
.dm-bp__f:nth-of-type(4) { color: #d93025; }
.dm-bp__op { color: #5f6368; font-weight: 700; }
.dm-bp__ul { display: block; width: 100%; height: 0.5rem; margin-top: 0.15rem; overflow: visible; }
.dm-bp__ul path { stroke: #4285f4; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dm-sk-draw 1.1s ease-out 0.9s forwards; }
/* from 1200px: same row as the buttons, nothing allowed to shrink or wrap */
@media (min-width: 1200px) {
  .dm-bp { display: block; }
  .dm-hero--pro .dm-hero-content .col-lg-6 > .d-flex.flex-wrap:last-of-type { flex-wrap: nowrap !important; gap: 0.6rem !important; }
  .dm-hero--pro .dm-hero-content .col-lg-6 > .d-flex.flex-wrap:last-of-type > *,
  .dm-sk-start, .dm-hero--pro .dm-hero--compact__btn { flex: none; white-space: nowrap; }
  .dm-bp__eq, .dm-bp__f, .dm-bp__op { flex: none; }
}
/* 1200-1399px: slightly tighter so it fits beside the buttons */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .dm-hero--pro .dm-hero--compact__btn { padding-left: 1rem !important; padding-right: 1rem !important; }
  .dm-bp { padding-left: 0.6rem; margin-left: 0; }
  .dm-bp__eq { font-size: 0.8rem; gap: 0.18rem; }
  .dm-bp__cap { font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) { .dm-bp__ul path { animation: none; stroke-dashoffset: 0; } }
