/* DreamReach deck sales letter (November 17, 2026).

   A slide deck that sits where a video sales letter would: under the headline of a money page.
   The slides are plain HTML in the page, so there is no iframe, no third-party embed, and nothing
   to load after the page itself. The embed is one clean rectangle with nothing around it (Tom,
   November 17, 2026): every control lives inside the slides. Without deck.js the deck is still a
   swipeable row of slides.

   Markup contract (data attributes only, no classes, same rule as the rest of the site):

     <div data-deck="name-of-this-deck" aria-label="What the deck is">
       <div data-deck-stage tabindex="0">
         <section data-slide="cover|statement|points|close" data-tone="cream|midnight"> ... </section>
       </div>
     </div>

   Inside a slide: <small> is the eyebrow, <h2> the headline, <em> inside the headline is the coral
   italic word, <p> is body copy, <ul> is a checklist, <ol> is numbered steps, and a .btn is the
   action. A <button class="btn" data-deck-next> anywhere in a slide advances the deck (the cover's
   Start). It is an outline button, never coral: coral is kept for the one real call to action.

   deck.js adds to each slide a quiet text Back (bottom left, not on the first slide) and Next
   (bottom right, not on the last slide or on a slide with its own data-deck-next button), and a
   coral progress line along the bottom edge of the frame. Do not write those into the markup.

   Sizing: the stage is a container, and every measurement inside a slide is a multiple of --u,
   one percent of the stage width, so a slide looks the same at any size. Small text has a pixel
   floor (14px eyebrow and Back/Next, 16px body). A stage 600px wide or less (phones) switches to
   the portrait scale, so type stays readable instead of shrinking the way an embedded 16:9 deck
   does. Slides are at least 16:9 (4:5 in portrait) and every slide is as tall as the tallest one,
   so long copy makes the deck taller rather than getting cut off. */

[data-deck] {
  position: relative;
  /* 960px at most, and never so tall that the button under the deck falls off a laptop screen:
     the stage height is held to the window height less the headline above and the button below. */
  width: min(100%, max(560px, min(960px, calc((100svh - 350px) * 1.7778))));
  margin: 36px auto 0;
  text-align: left;
  color: var(--midnight);
}
@media (max-width: 760px) { [data-deck] { width: 100%; margin-top: 28px; } }

/* Stage: a horizontal scroll-snap row. Swipes are the browser's own, so they feel native. */
[data-deck-stage] {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  container: deck / inline-size;
  border-radius: var(--r-card);
  background: var(--midnight-deep);
  box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent), 0 2px 6px rgba(18, 32, 44, 0.3), 0 24px 60px rgba(18, 32, 44, 0.4);
  cursor: pointer;
}
[data-deck-stage]::-webkit-scrollbar { display: none; }
[data-deck-stage]:focus-visible { outline: 2px solid color-mix(in srgb, currentColor 45%, transparent); outline-offset: 4px; }

/* Slides. The bottom padding keeps copy clear of the Back and Next row. */
[data-slide] {
  --u: 1cqw;
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 56.25cqw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: calc(var(--u) * 2.2);
  padding: calc(var(--u) * 6) calc(var(--u) * 8) calc(44px + var(--u) * 3.5);
  overflow: hidden;
  font: 400 max(16px, calc(var(--u) * 2.3)) / 1.45 var(--sans);
  background: var(--cream);
  color: var(--ink);
}
[data-slide] > * { margin: 0; }
[data-slide] small {
  font: 700 max(14px, calc(var(--u) * 1.5)) / 1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}
[data-slide] h2 {
  font-size: calc(var(--u) * 5);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--midnight);
}
[data-slide] h2 em { font-style: italic; color: var(--coral); }
[data-slide] p { max-width: 34em; text-wrap: pretty; }
[data-slide] .btn { font-size: max(16px, calc(var(--u) * 2)); padding: 1.05em 1.8em; margin-top: calc(var(--u) * 0.8); }
/* The only button on the site with an icon is the deck's Start; page buttons are text only
   (Tom, November 17, 2026). This is the one rule that sizes it. */
[data-slide] .btn svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

/* Start, or any data-deck-next button: a secondary outline button, so it never competes with the
   coral See If You Qualify under the deck (Tom, November 17, 2026). White with a midnight border
   and text, mint on hover; the rule further down flips it to a cream outline on a midnight slide. */
[data-slide] [data-deck-next] {
  color: var(--midnight);
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--midnight), 0 1px 2px rgba(18, 32, 44, 0.08), 0 6px 16px rgba(18, 32, 44, 0.1);
  transition: background-color 160ms ease, transform 160ms ease;
}
[data-slide] [data-deck-next]:hover { background: var(--mint); transform: translateY(-1px); }

/* Tones: any template can sit on either surface. */
[data-tone="midnight"] {
  background: radial-gradient(90% 130% at 50% 0%, color-mix(in srgb, var(--midnight), white 7%) 0%, var(--midnight) 55%, var(--midnight-deep) 100%);
  color: var(--cream);
}
[data-tone="midnight"] h2 { color: var(--cream); }
[data-tone="midnight"] [data-deck-next] { color: var(--cream); background: transparent; box-shadow: inset 0 0 0 2px var(--cream); }
[data-tone="midnight"] [data-deck-next]:hover { background: color-mix(in srgb, var(--cream) 14%, transparent); }

/* Template: cover. Centered, the biggest headline, a Start button, and no Back or Next row, so
   its padding is even top and bottom. */
[data-slide="cover"], [data-slide="statement"], [data-slide="close"] { align-items: center; text-align: center; }
[data-slide="cover"] { padding-bottom: calc(var(--u) * 6); }
[data-slide="cover"] img { height: calc(var(--u) * 6); width: auto; }
[data-slide="cover"] h2 { font-size: calc(var(--u) * 5.8); max-width: 14em; }

/* Template: statement. One idea, centered, with an optional line under it. */
[data-slide="statement"] h2 { font-size: calc(var(--u) * 4.8); max-width: 17em; }

/* Template: points. A headline over a checklist (ul) or numbered steps (ol). */
[data-slide="points"] { gap: calc(var(--u) * 2.6); }
[data-slide="points"] h2 { font-size: calc(var(--u) * 4.8); }
[data-slide="points"] :is(ul, ol) { list-style: none; padding: 0; display: grid; gap: calc(var(--u) * 2); counter-reset: step; font-size: max(16px, calc(var(--u) * 2.6)); }
[data-slide="points"] li { position: relative; padding-left: 2.3em; font-weight: 500; text-wrap: pretty; }
[data-slide="points"] li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.02em;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffff8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 64% no-repeat;
}
[data-slide="points"] ol li::before {
  counter-increment: step;
  content: counter(step);
  background: var(--coral);
  color: var(--white);
  font: 700 0.78em / 1.8 var(--heading);
  width: 1.8em;
  height: 1.8em;
  text-align: center;
}

/* Template: close. The ask, with the one button that leaves the deck. */
[data-slide="close"] h2 { font-size: calc(var(--u) * 5.2); max-width: 15em; }

/* Back and Next (added by deck.js): plain text, far smaller than a button so the page's own
   button stays the focus, in the same two corners on every slide. Next is the bolder of the two
   because forward is the main path. Each keeps a 44px tall tap area whatever the type size, and
   its text lines up with the slide's side padding. */
[data-deck-nav] {
  position: absolute;
  left: calc(var(--u) * 8);
  right: calc(var(--u) * 8);
  bottom: calc(var(--u) * 2);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
[data-deck-nav] button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  padding: 0 0.7em;
  margin: 0 -0.7em;
  border-radius: var(--r-btn);
  font: 700 max(14px, calc(var(--u) * 1.6)) / 1 var(--sans);
  transition: opacity 160ms ease;
}
[data-deck-nav] svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; transition: transform 160ms ease; }
[data-deck-nav] [data-deck-go="prev"] { font-weight: 500; opacity: 0.6; }
[data-deck-nav] [data-deck-go="next"] { margin-left: auto; }
[data-deck-nav] button:hover { opacity: 1; }
[data-deck-nav] [data-deck-go="next"]:hover svg { transform: translateX(3px); }
[data-deck-nav] [data-deck-go="prev"]:hover svg { transform: translateX(-3px); }
[data-deck-nav] button:focus-visible { outline: 2px solid currentColor; outline-offset: 0; opacity: 1; }

/* Portrait scale: a stage 600px wide or less. */
@container deck (max-width: 600px) {
  [data-slide] {
    min-height: 125cqw;
    gap: calc(var(--u) * 4.2);
    padding: calc(var(--u) * 8) calc(var(--u) * 7.5) calc(44px + var(--u) * 6);
    font-size: max(16px, calc(var(--u) * 4.7));
  }
  [data-slide] small { font-size: max(14px, calc(var(--u) * 3.7)); }
  [data-slide] h2 { font-size: calc(var(--u) * 8.6); }
  [data-slide] .btn { font-size: max(16px, calc(var(--u) * 4.7)); margin-top: calc(var(--u) * 1.5); }
  [data-slide="cover"] { padding-bottom: calc(var(--u) * 8); }
  [data-slide="cover"] img { height: calc(var(--u) * 12); }
  [data-slide="cover"] h2 { font-size: calc(var(--u) * 9.4); }
  [data-slide="statement"] h2 { font-size: calc(var(--u) * 8.4); }
  [data-slide="points"] { gap: calc(var(--u) * 4.2); }
  [data-slide="points"] h2 { font-size: calc(var(--u) * 7.6); }
  [data-slide="points"] :is(ul, ol) { gap: calc(var(--u) * 3.2); font-size: max(16px, calc(var(--u) * 4.7)); }
  [data-slide="close"] h2 { font-size: calc(var(--u) * 9); }
  [data-deck-nav] { left: calc(var(--u) * 7.5); right: calc(var(--u) * 7.5); bottom: calc(var(--u) * 2.5); }
  [data-deck-nav] button { font-size: max(14px, calc(var(--u) * 4.2)); }
}

/* Progress (added by deck.js): a coral line along the bottom edge, inside the frame and clipped
   to its corners. It has no track; its length against the frame is the reading. */
[data-deck-progress] {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--r-card);
  pointer-events: none;
}
[data-deck-progress] span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--coral);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}
[data-deck-live] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
