/* Debu Media components. Every colour, size, space and radius comes from tokens.css; only motion is set here.
   Classes start with dm-. Type comes from the token classes (display-lg, title, text-body ...) set in the markup. */

:root {
  --dm-ease: cubic-bezier(0, 0, 0.2, 1);
  --dm-fast: 150ms;
  --dm-reveal: 450ms;
}

/* Every part sizes from its border box, so width: 100% never spills past its parent. */
[class*="dm-"], [class*="dm-"]::before, [class*="dm-"]::after { box-sizing: border-box; }

/* Type helpers ------------------------------------------------------------ */
.text-label { text-transform: uppercase; }
.display-xl, .display-lg, .display-md, .title-lg, .title, .title-sm { text-wrap: balance; font-optical-sizing: auto; }
@media (max-width: 720px) {
  .display-xl { font-size: var(--display-xl-phone); }
  .display-lg { font-size: var(--display-lg-phone); }
  .display-md { font-size: var(--display-md-phone); }
}

/* Page and sections ------------------------------------------------------- */
.dm-page { background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
/* Weather: the hero's fine ink grain is the sky of the whole page. The page is its own stacking layer, so drawings set
   at z-index -1 (clouds, the hero backdrop) sit above the paper and under every card; edge art never scrolls sideways. */
.dm-page { isolation: isolate; overflow-x: clip; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='%23141210'><circle cx='52' cy='23' r='0.7'/><circle cx='34' cy='15' r='0.7'/><circle cx='202' cy='176' r='0.8'/><circle cx='49' cy='118' r='0.6'/><circle cx='38' cy='23' r='0.6'/><circle cx='204' cy='182' r='0.8'/><circle cx='176' cy='43' r='0.6'/><circle cx='138' cy='161' r='0.8'/><circle cx='194' cy='19' r='0.7'/><circle cx='148' cy='111' r='0.6'/><circle cx='104' cy='20' r='0.9'/><circle cx='190' cy='120' r='0.6'/><circle cx='200' cy='126' r='0.9'/><circle cx='187' cy='112' r='0.7'/><circle cx='132' cy='95' r='0.6'/><circle cx='67' cy='179' r='0.5'/><circle cx='10' cy='138' r='0.6'/><circle cx='118' cy='104' r='0.6'/></svg>"); background-size: 220px 220px; }
[data-theme="dark"] .dm-page, .dm-page[data-theme="dark"] { background-image: none; }
.dm-section { padding-block: var(--section); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.dm-container { max-width: var(--content-max); margin-inline: auto; }
.dm-container--wide { max-width: var(--wide-max); }
.dm-stack { display: grid; gap: var(--space-12); }
@media (max-width: 720px) { .dm-section { padding-block: var(--section-phone); } }

/* Focus: one ring everywhere ---------------------------------------------- */
.dm-btn:focus-visible, .dm-nav__link:focus-visible, .dm-nav__toggle:focus-visible, .dm-faq__q:focus-visible,
.dm-field__control:focus-visible, .dm-check input:focus-visible, .dm-footer__link:focus-visible, .dm-link:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.dm-link { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.dm-link:hover { text-decoration-thickness: 2px; }

/* Icon -------------------------------------------------------------------- */
.dm-icon { display: inline-block; flex: none; vertical-align: middle; }

/* Logo -------------------------------------------------------------------- */
.dm-logo { display: block; min-width: 0; max-width: 100%; height: auto; }

/* Button ------------------------------------------------------------------ */
.dm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 14px var(--space-6); border-radius: var(--radius-pill);
  border: var(--border-control) solid var(--btn-primary); background: var(--btn-primary); color: var(--on-btn-primary);
  text-decoration: none; white-space: nowrap; cursor: pointer; font-family: var(--font-sans);
  transition: transform var(--dm-fast) var(--dm-ease), background-color var(--dm-fast) var(--dm-ease);
}
.dm-btn:hover { transform: translateY(-1px); }
.dm-btn:active { transform: none; }
.dm-btn .dm-icon { width: 18px; height: 18px; }
.dm-btn--outline { background: transparent; color: var(--ink); border-color: var(--border); }
.dm-btn--outline:hover { background: var(--surface); }
.dm-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dm-btn--tile { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--brand-warm-white); }
.dm-btn--sm { padding: 7px var(--space-4); }
.dm-btn--block { width: 100%; }
.dm-btn[disabled], .dm-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.dm-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Navigation pill --------------------------------------------------------- */
.dm-nav { position: sticky; top: var(--space-3); z-index: 50; display: flex; justify-content: center; padding-inline: var(--gutter); }
.dm-nav__pill {
  position: relative; display: flex; align-items: center; gap: var(--space-1); max-width: 100%;
  background: var(--surface); border: var(--border-control) solid var(--border); border-radius: var(--radius-pill);
  padding: 6px 6px 6px var(--space-5);
}
.dm-nav__logo { display: flex; flex: none; margin-right: var(--space-3); }
.dm-nav__link { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.dm-nav__link:hover { background: var(--surface-quiet); }
.dm-nav__link[aria-current="page"] { font-weight: 600; }
.dm-nav__cta { margin-left: var(--space-2); }
.dm-nav__toggle {
  display: none; width: 40px; height: 40px; flex: none; align-items: center; justify-content: center; margin-left: var(--space-1);
  border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); cursor: pointer;
}
.dm-nav__toggle:hover { background: var(--surface-quiet); }
.dm-nav__sheet {
  display: none; position: absolute; top: calc(100% + var(--space-2)); left: 0; right: 0;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
  padding: var(--space-3); gap: var(--space-1);
}
.dm-nav__sheet .dm-nav__link { display: block; padding: 12px var(--space-4); }
.dm-nav[data-open] .dm-nav__sheet { display: grid; }
.dm-nav__sheet-cta { margin-top: var(--space-2); }
@media (max-width: 720px) {
  .dm-nav__pill { width: 100%; }
  .dm-nav__pill > .dm-nav__link, .dm-nav__pill > .dm-nav__cta { display: none; }
  .dm-nav__toggle { display: inline-flex; margin-left: auto; }
}

/* Hero -------------------------------------------------------------------- */
.dm-hero { display: flex; justify-content: center; padding: var(--space-16) var(--gutter) var(--space-24); }
.dm-hero__card {
  width: 100%; max-width: var(--hero-max); display: grid; justify-items: center; text-align: center;
  background: var(--surface); border: var(--border-hero) solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-10); box-shadow: var(--shadow-hero);
}
.dm-hero__card > .dm-drawing { margin-bottom: var(--space-6); }
.dm-hero__title { margin: 0; color: var(--ink); }
.dm-hero__text { margin: var(--space-5) 0 0; max-width: 32em; color: var(--ink-muted); }
.dm-hero__card > .dm-actions { justify-content: center; margin-top: var(--space-7); }
.dm-hero__note { margin: var(--space-5) 0 0; color: var(--ink-muted); }
@media (max-width: 720px) {
  .dm-hero { padding-top: var(--space-10); padding-bottom: var(--section-phone); }
  .dm-hero__card { padding: var(--space-8) var(--space-6); }
}

/* Hero backdrop: the page's scene in pen and ink, inside the Panorama frame (see the end of this file), Paper pages only ---------------------- */
.dm-hero__backdrop {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 300px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 300px), transparent);
}
.dm-hero__backdrop > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
[data-theme="dark"] .dm-hero__backdrop { display: none; }
@media (max-width: 720px) {
  .dm-hero__backdrop { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade, 150px)), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade, 150px)), transparent); }
  .dm-hero__backdrop > svg { inset: auto auto 0 calc(50% - 607px * var(--scene-focus, 0.5)); width: 607px; height: 340px; }
  /* A page scene keeps its object low on the right: the page sets --scene-focus to bring it on screen, and the fade is shorter. */
  .dm-hero__backdrop--scene { --fade: 72px; }
}

/* Clouds: a pen cloud at the page edge beside a section head, part of the Weather sky. Paper pages only. ------- */
.dm-section:has(> .dm-cloud), .dm-band:has(> .dm-cloud) { position: relative; }
.dm-cloud { position: absolute; z-index: -1; pointer-events: none; top: var(--cloud-top, 24px); width: var(--cloud-w, 240px); height: auto; }
.dm-cloud--right { left: calc(50% + 430px); }
.dm-cloud--left { left: calc(50% - 720px - 0.3 * var(--cloud-w, 240px)); }
[data-theme="dark"] .dm-cloud { display: none; }
@media (max-width: 720px) { .dm-cloud { left: calc(100% - 92px); top: -40px; width: 136px; } }

/* Section head ------------------------------------------------------------ */
.dm-head { display: grid; justify-items: start; }
.dm-head--center { justify-items: center; text-align: center; }
.dm-head__eyebrow { margin: 0 0 var(--space-4); color: var(--ink-muted); }
.dm-head__title { margin: 0; color: var(--ink); max-width: 18em; }
.dm-head__lead { margin: var(--space-5) 0 0; max-width: var(--measure); color: var(--ink-muted); }

/* Drawing ----------------------------------------------------------------- */
.dm-drawing { display: block; flex: none; max-width: 100%; }
.dm-drawing img { display: block; width: 100%; height: auto; }
.dm-drawing--sm { width: 96px; }
.dm-drawing--md { width: 140px; }
.dm-drawing--lg { width: 200px; }
.dm-drawing--xl { width: 280px; }
.dm-drawing--empty {
  aspect-ratio: 1; display: grid; place-items: center; color: var(--ink-muted);
  border: 2px dashed color-mix(in srgb, currentColor 40%, transparent); border-radius: var(--radius-md);
}
.dm-tile .dm-drawing--empty, .dm-cta .dm-drawing--empty { color: inherit; }

/* Tiles ------------------------------------------------------------------- */
.dm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile-gap); }
.dm-tile {
  display: flex; flex-direction: column; gap: var(--space-5); min-width: 0;
  border-radius: var(--radius-md); padding: var(--space-7);
  background: var(--tile-stone); color: var(--on-tile-stone);
}
.dm-tile--peach { background: var(--tile-peach); color: var(--on-tile-peach); }
.dm-tile--blush { background: var(--tile-blush); color: var(--on-tile-blush); }
.dm-tile--sage { background: var(--tile-sage); color: var(--on-tile-sage); }
.dm-tile--wide { grid-column: span 2; }
.dm-tile--tall { grid-row: span 2; }
.dm-tile__body { display: grid; gap: var(--space-2); margin-top: auto; }
.dm-tile__title, .dm-tile__text { margin: 0; }
@media (max-width: 860px) { .dm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dm-tiles { grid-template-columns: minmax(0, 1fr); } .dm-tile--wide { grid-column: auto; } .dm-tile--tall { grid-row: auto; } }

/* Feature row ------------------------------------------------------------- */
.dm-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dm-feature { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-1) var(--space-8); min-width: 0; }
.dm-feature:first-child { padding-left: 0; }
.dm-feature:last-child { padding-right: 0; }
.dm-feature + .dm-feature { border-left: var(--border-hairline) solid var(--line); }
.dm-feature > .dm-drawing { margin-bottom: var(--space-3); }
.dm-feature__title { margin: 0; color: var(--ink); }
.dm-feature__text { margin: 0; color: var(--ink-muted); }
@media (max-width: 720px) {
  .dm-features { grid-template-columns: minmax(0, 1fr); }
  .dm-feature, .dm-feature:first-child, .dm-feature:last-child { padding: var(--space-6) 0; }
  .dm-feature + .dm-feature { border-left: 0; border-top: var(--border-hairline) solid var(--line); }
}

/* Steps ------------------------------------------------------------------- */
.dm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tile-gap); }
.dm-step { display: grid; align-content: start; gap: var(--space-3); padding-top: var(--space-5); border-top: var(--border-control) solid var(--border); min-width: 0; }
.dm-step__num { color: var(--ink-muted); }
.dm-step > .dm-drawing { margin-block: var(--space-2); }
.dm-step__title, .dm-step__text { margin: 0; }
.dm-step__title { color: var(--ink); }
.dm-step__text { color: var(--ink-muted); }
@media (max-width: 860px) { .dm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-10); } }
@media (max-width: 560px) { .dm-steps { grid-template-columns: minmax(0, 1fr); } }

/* Testimonials ------------------------------------------------------------ */
.dm-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile-gap); }
.dm-quote {
  display: flex; flex-direction: column; gap: var(--space-6); margin: 0; min-width: 0;
  background: var(--surface-quiet); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-7);
}
.dm-quote__avatar {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: var(--radius-pill); background: var(--ink); color: var(--paper);
}
.dm-quote__avatar img { width: 100%; height: 100%; object-fit: cover; background: #ffffff; }
.dm-quote__text { margin: 0; }
.dm-quote__by { margin-top: auto; display: grid; gap: 2px; }
.dm-quote__name { font-weight: 600; }
.dm-quote__role { color: var(--ink-muted); }
@media (max-width: 860px) { .dm-quotes { grid-template-columns: minmax(0, 1fr); } }

/* FAQ --------------------------------------------------------------------- */
.dm-faq { border-bottom: var(--border-hairline) solid var(--line); }
.dm-faq__item { border-top: var(--border-hairline) solid var(--line); }
.dm-faq__q {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-5);
  padding: var(--space-5) 0; cursor: pointer; list-style: none; color: var(--ink); border-radius: var(--radius-sm);
}
.dm-faq__q::-webkit-details-marker { display: none; }
.dm-faq__num { color: var(--ink-muted); min-width: 2ch; }
.dm-faq__icon { transition: transform var(--dm-fast) var(--dm-ease); }
.dm-faq__item[open] .dm-faq__icon { transform: rotate(45deg); }
.dm-faq__a { margin: 0; padding: 0 var(--space-12) var(--space-6) calc(2ch + var(--space-5)); max-width: calc(var(--measure) + 2ch + var(--space-5)); color: var(--ink-muted); }
.dm-faq--plain .dm-faq__q { grid-template-columns: minmax(0, 1fr) auto; }
.dm-faq--plain .dm-faq__a { padding-left: 0; }
@media (max-width: 560px) { .dm-faq__a { padding-left: 0; padding-right: 0; } }

/* Plan card --------------------------------------------------------------- */
.dm-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile-gap); align-items: start; }
.dm-plan {
  display: grid; gap: var(--space-5); min-width: 0; color: var(--ink);
  background: var(--surface); border: var(--border-control) solid transparent; border-radius: var(--radius-md); padding: var(--space-7);
}
.dm-plan--featured { border-color: var(--border); }
.dm-plan__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.dm-plan__name { margin: 0; }
.dm-plan__badge { flex: none; background: var(--btn-primary); color: var(--on-btn-primary); border-radius: var(--radius-pill); padding: 6px 10px; }
.dm-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); margin: 0; }
.dm-plan__period { color: var(--ink-muted); }
.dm-plan__alt { margin: calc(var(--space-3) * -1) 0 0; color: var(--ink-muted); }
.dm-plan__summary { margin: 0; color: var(--ink-muted); }
/* A price's small print as rows, a label and its amount, and one extra the plan gives, in a quiet box under them. */
.dm-plan__facts { display: grid; margin: 0; }
.dm-plan__fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); padding-block: var(--space-2); border-top: var(--border-hairline) solid var(--line); }
.dm-plan__fact dt { color: var(--ink-muted); }
.dm-plan__fact dd { margin: 0; font-weight: 600; text-align: right; }
.dm-plan__perk { display: grid; gap: 2px; margin-top: calc(var(--space-2) * -1); background: var(--paper); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); }
.dm-plan__perk p { margin: 0; color: var(--ink-muted); }
.dm-plan__perk .dm-plan__perk-title { color: var(--ink); font-weight: 600; }
.dm-plan__list { list-style: none; margin: 0; padding: var(--space-5) 0 0; display: grid; gap: var(--space-3); border-top: var(--border-hairline) solid var(--line); }
.dm-plan__item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.dm-plan__item .dm-icon { width: 20px; height: 20px; margin-top: 1px; }
.dm-plan__item--no { color: var(--ink-muted); }
/* Under 961px the cards stack, each across the full width. From 721px a card's list runs in two columns, read down
   the first and then the second: --dm-plan-rows on the list is the rows in each (half its items, rounded up).
   A list that doesn't carry it stays in one column. The button keeps its own width there, it doesn't stretch
   across the card. */
@media (max-width: 960px) { .dm-plans { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 721px) and (max-width: 960px) {
  .dm-plans .dm-plan__list[style*="--dm-plan-rows"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--dm-plan-rows), auto); grid-auto-flow: column; column-gap: var(--space-8); }
  .dm-plans .dm-plan > .dm-btn { justify-self: start; width: auto; min-width: 16rem; }
  /* The rows and the box stop where the list's first column stops, so an amount stays near its label. */
  .dm-plans .dm-plan__facts, .dm-plans .dm-plan__perk { max-width: calc((100% - var(--space-8)) / 2); }
}
/* A card on its own across the page, such as what no plan includes: its list in two columns from 721px, read across. */
@media (min-width: 721px) { .dm-plan--wide .dm-plan__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); } }

/* Note card --------------------------------------------------------------- */
/* The few lines a section still has to say after its cards or tiles, with the button they lead to. Padded and
   bordered like a plan card, so the text edges line up where the two stack. */
.dm-notecard {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); min-width: 0; color: var(--ink);
  background: var(--surface); border: var(--border-control) solid transparent; border-radius: var(--radius-md); padding: var(--space-7);
}
.dm-notecard__body { display: grid; gap: var(--space-2); min-width: 0; }
.dm-notecard__title { margin: 0; }
.dm-notecard__text { margin: 0; max-width: 62ch; color: var(--ink-muted); }
/* With a drawing: the character stands first, and the lines take the room between it and the button. */
.dm-notecard--drawing { justify-content: flex-start; }
.dm-notecard--drawing .dm-notecard__body { flex: 1 1 20rem; }

/* CTA band ---------------------------------------------------------------- */
.dm-cta {
  display: grid; justify-items: center; text-align: center; gap: var(--space-4);
  border-radius: var(--radius-lg); padding: var(--space-20) var(--space-12);
  background: var(--tile-peach); color: var(--on-tile-peach);
}
.dm-cta--blush { background: var(--tile-blush); color: var(--on-tile-blush); }
.dm-cta--sage { background: var(--tile-sage); color: var(--on-tile-sage); }
.dm-cta--stone { background: var(--tile-stone); color: var(--on-tile-stone); }
.dm-cta > .dm-drawing { margin-bottom: var(--space-2); }
.dm-cta__title { margin: 0; max-width: 16em; }
.dm-cta__text { margin: 0; max-width: var(--measure); }
.dm-cta > .dm-actions { justify-content: center; margin-top: var(--space-3); }
@media (max-width: 720px) { .dm-cta { padding: var(--space-12) var(--space-6); } }

/* Form fields ------------------------------------------------------------- */
.dm-form { display: grid; gap: var(--space-5); }
.dm-field { display: grid; gap: var(--space-2); min-width: 0; }
.dm-field__label { font-weight: 600; color: var(--ink); }
.dm-field__control {
  appearance: none; width: 100%; margin: 0; font-family: var(--font-sans);
  background: var(--surface); color: var(--ink); border: var(--border-control) solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.dm-field__control::placeholder { color: var(--ink-muted); opacity: 1; }
textarea.dm-field__control { min-height: 140px; resize: vertical; }
.dm-field__select { position: relative; }
.dm-field__select .dm-field__control { padding-right: 44px; cursor: pointer; }
.dm-field__select .dm-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink); }
.dm-field__hint { color: var(--ink-muted); margin: 0; }
.dm-field--error .dm-field__control { border-color: var(--danger); }
.dm-field__error { display: flex; align-items: center; gap: var(--space-1); margin: 0; color: var(--danger); }
.dm-field__error .dm-icon { width: 18px; height: 18px; }
.dm-check { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--ink); cursor: pointer; }
.dm-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--btn-primary); cursor: pointer; }
.dm-note { display: flex; align-items: center; gap: var(--space-2); margin: 0; }
.dm-note--success { color: var(--success); }

/* Footer ------------------------------------------------------------------ */
.dm-footer { background: var(--paper); color: var(--ink); padding: var(--space-20) var(--gutter) var(--space-10); overflow: hidden; }
.dm-footer__inner { max-width: var(--content-max); margin-inline: auto; display: grid; gap: var(--space-16); }
.dm-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-12); }
.dm-footer__line { margin: 0; max-width: 18em; }
.dm-footer__cols { display: flex; flex-wrap: wrap; gap: var(--space-16); }
.dm-footer__col { display: grid; align-content: start; gap: var(--space-3); }
.dm-footer__heading { margin: 0 0 var(--space-1); color: var(--ink-muted); }
.dm-footer__link { color: var(--ink); text-decoration: none; border-radius: 4px; }
.dm-footer__link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.dm-footer__mark { width: 100%; }
.dm-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding-top: var(--space-6); border-top: var(--border-hairline) solid var(--line); color: var(--ink-muted); }
.dm-footer__legal > :first-child { margin-right: auto; }

/* Footer, Valley (Paper pages): no card, one skyline across the full width as its only border, white below it as the
   valley's sky, the brand in the left column, link columns on the right, and a full-width scene at its foot. */
.dm-footer--valley { position: relative; padding: 0 var(--gutter); background: linear-gradient(var(--surface), var(--surface)) 0 95px / 100% calc(100% - 95px) no-repeat; }
.dm-footer__skyline { position: absolute; top: 0; left: 50%; width: 2560px; max-width: none; height: 96px; transform: translateX(-50%); pointer-events: none; }
.dm-footer--valley .dm-footer__inner { padding: 144px 0 var(--space-12); }
.dm-footer__brand { display: grid; justify-items: start; align-content: start; gap: var(--space-3); }
.dm-footer__logo { display: block; margin-bottom: var(--space-3); border-radius: 4px; }
.dm-footer__logo .dm-logo { width: 160px; }
.dm-footer__copy { margin: 0; color: var(--ink-muted); }
.dm-footer__badge { margin-top: var(--space-3); }
.dm-footer__scene { position: relative; --scene-w: max(calc(100% + 2 * var(--gutter)), 1440px); width: var(--scene-w); margin-left: calc((100% - var(--scene-w)) / 2); }
.dm-footer__scene > img { display: block; }
.dm-footer__scene-art { width: 100%; height: auto; }
.dm-footer__cast { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; }
@media (max-width: 720px) {
  .dm-footer--valley { background-position: 0 47px; background-size: 100% calc(100% - 47px); }
  .dm-footer__skyline { width: 1280px; height: 48px; }
  .dm-footer--valley .dm-footer__inner { padding: 88px 0 var(--space-8); }
  .dm-footer__scene { --scene-w: 900px; margin-left: calc(50% - 900px * var(--focus, 0.5)); }
  .dm-footer__cast:not(.dm-footer__cast--phone) { display: none; }
}

/* Reveal on scroll (set up by DebuMedia.init) ----------------------------- */
.dm-reveal-armed { opacity: 0; transform: translateY(14px); transition: opacity var(--dm-reveal) var(--dm-ease), transform var(--dm-reveal) var(--dm-ease); }
.dm-reveal-armed.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .dm-btn, .dm-faq__icon { transition: none; }
  .dm-btn:hover { transform: none; }
  .dm-reveal-armed { opacity: 1; transform: none; transition: none; }
}

/* Pen line, wide NavPill, Panorama hero (2026-11-13) ------------------------------------------------ */
/* The pen line. A border drawn twice through a wobble filter (four <filter>s that DebuMedia.init() adds to the page, or the page prints itself), so it reads
   like the pen of the mountain drawings. Only for the few frames that carry the page: the hero's view and card and
   the NavPill. If a browser drops the filter the two passes fall back to one straight border. */
.dm-pen-defs { position: absolute; }
.dm-pen { position: relative; border-color: transparent; }
.dm-pen::before, .dm-pen::after {
  content: ""; position: absolute; inset: calc(var(--pen-w, 3px) * -1); border-radius: inherit; pointer-events: none; z-index: 2;
}
.dm-pen::before { border: 2.6px solid var(--ink); filter: url(#dm-pen); }
.dm-pen::after { border: 1.1px solid var(--ink); filter: url(#dm-pen-2); }
.dm-pen--s::before { border-width: 2.2px; filter: url(#dm-pen-s); }
.dm-pen--s::after { border-width: 1px; filter: url(#dm-pen-s2); }
[data-theme="dark"] .dm-pen::before, [data-theme="dark"] .dm-pen::after { filter: none; }

/* Pen rules: one drawn stroke, stretched. Question rows and the dividers between features. */
.dm-faq, .dm-faq__item { border-color: transparent; background-repeat: no-repeat; background-size: 100% 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 5' preserveAspectRatio='none'%3E%3Cpath d='M0 2.6C60 1.4 120 3.6 190 2.4S330 1.5 410 2.8 560 3.5 640 2.2 800 1.6 880 2.9 960 2.2 1000 2.5' fill='none' stroke='%23141210' stroke-width='1.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.dm-faq__item { background-position: left top -2px; }
.dm-faq { background-position: left bottom -2px; }
@media (min-width: 721px) {
  .dm-feature + .dm-feature { border-left-color: transparent; background: no-repeat left -2px top / 5px 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 200' preserveAspectRatio='none'%3E%3Cpath d='M2.6 0C1.5 22 3.5 44 2.4 70S1.6 118 2.8 140 2.3 180 2.5 200' fill='none' stroke='%23141210' stroke-width='1.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
}

/* NavPill, wide: the pill runs the content width with the logo left, the links in the middle and Log in with the
   button on the right. Below 861px it is the logo and the menu button, as before. */
.dm-nav__pill { --pen-w: 2px; width: 100%; max-width: var(--content-max); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-left: var(--space-6); }
.dm-nav__logo { justify-self: start; margin-right: 0; }
.dm-nav__links { display: flex; align-items: center; gap: var(--space-1); }
.dm-nav__end { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-1); grid-column: 3; }
.dm-nav__link[aria-current="page"] { background: no-repeat center bottom 2px / calc(100% - 22px) 6px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.6C16 1.2 30 5 48 3S82 1.6 99 3.4' fill='none' stroke='%23ee4323' stroke-width='2.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.dm-nav__link[aria-current="page"]:hover { background-color: var(--surface-quiet); }
.dm-nav__sheet .dm-nav__link[aria-current="page"] { background-size: 56px 6px; background-position: left var(--space-4) bottom 6px; }
@media (max-width: 860px) {
  .dm-nav__links, .dm-nav__end > .dm-nav__link, .dm-nav__end > .dm-nav__cta { display: none; }
  .dm-nav__end > .dm-nav__toggle { display: inline-flex; margin-left: 0; }
  .dm-nav__pill { grid-template-columns: minmax(0, 1fr) auto; padding-left: var(--space-5); }
  .dm-nav__end { grid-column: 2; }
}

/* Hero, Panorama: the page's scene in a pen frame, with the card hung over its lower edge and the page's drawing
   standing on the card. A page with no scene keeps the card alone, in the same pen. */
.dm-hero__card.dm-pen { box-shadow: none; border-radius: 20px; }
.dm-hero.dm-hero--pano { position: relative; flex-direction: column; align-items: center; padding-top: var(--space-6); }
.dm-hero__pano { --pen-w: 0px; z-index: 0; width: 100%; max-width: var(--content-max); height: clamp(240px, 41vw, 470px); border-radius: 26px; background: var(--surface); }
.dm-hero--pano .dm-hero__backdrop { inset: 2px; z-index: 0; border-radius: 24px; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
.dm-hero--pano .dm-hero__card { margin-top: clamp(-110px, -8vw, -64px); z-index: 1; }
.dm-hero--pano .dm-hero__card > .dm-drawing { position: absolute; left: var(--space-12); bottom: calc(100% - 9px); margin: 0; z-index: 3; }
@media (min-width: 721px) {
  .dm-hero--pano .dm-hero__backdrop > svg { inset: auto 0 var(--pano-drop, -16%) 0; width: 100%; height: auto; aspect-ratio: 1448 / 811; }
  .dm-hero--pano .dm-hero__backdrop--scene > svg { --pano-drop: -4%; }
}
@media (max-width: 720px) {
  .dm-hero.dm-hero--pano { padding-top: var(--space-5); }
  .dm-hero--pano .dm-hero__card > .dm-drawing { left: var(--space-6); transform: scale(0.72); transform-origin: left bottom; }
}
