/* Markeity Q4 flow challenge landing page, v2. Tokens and rules: landing/DESIGN.md */

@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --bg-alt: #0d0d0d;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f1;
  --muted: #a6a6a1;
  --accent: #dbfe52;
  --accent-ink: #0a0a0a;
  --accent-soft: rgba(219, 254, 82, 0.12);
  --gutter: 20px;
  --container: 1080px;
  --section: clamp(72px, 9vw, 120px);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-alt); }
.muted { color: var(--muted); }
.prose { max-width: 62ch; }
.center { text-align: center; }
.center .prose { margin-inline: auto; }

/* Atmosphere: dot grid + a faint lime light, used on hero and the qualify band only */
.atmos { position: relative; isolation: isolate; overflow: hidden; }
.atmos::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.atmos::after {
  content: ""; position: absolute; left: 50%; top: -20%; width: 900px; height: 600px; z-index: -1; pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(219, 254, 82, 0.13), rgba(219, 254, 82, 0) 62%);
}

/* Type */
.h1 { font-weight: 900; font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-weight: 700; font-size: 1.375rem; line-height: 1.18; letter-spacing: -0.015em; }
.lead { font-size: 1.125rem; }
.small { font-size: 0.875rem; font-weight: 500; line-height: 1.5; }
.accent { color: var(--accent); }
.sub { margin-top: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text);
}
.pill--accent { border-color: rgba(219, 254, 82, 0.35); color: var(--accent); background: var(--accent-soft); }
.pill + .h2, .pill + .h1 { margin-top: 18px; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; overflow: hidden;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 900; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(219, 254, 82, 0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -30%; width: 40%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-120%) skewX(-18deg); pointer-events: none;
}
.btn:hover { box-shadow: 0 10px 30px -10px rgba(219, 254, 82, 0.55); filter: brightness(1.04); }
.btn:hover::after { animation: shine 0.9s var(--ease) forwards; }
.btn:active { transform: scale(0.97) !important; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn__arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
@keyframes shine { to { transform: translateX(420%) skewX(-18deg); } }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 700; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); filter: none; }
.btn--ghost::after { display: none; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.cta-note { margin-top: 12px; }
.cta-block { text-align: center; margin-top: 40px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20; height: var(--nav-h); display: flex; align-items: center;
  background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 28px; width: auto; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) 0; overflow: hidden; }
.hero__copy { text-align: center; max-width: 820px; margin-inline: auto; }
.hero__sub { margin: 20px auto 0; max-width: 46ch; }
.hero__ctas { margin-top: 30px; }

/* Three phones, real emails scrolling inside */
.phones {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0;
  height: 600px; margin-top: 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
/* The container must be as tall as the main phone (600px): a shorter box plus the mask
   sliced the top of the phone off flat (seen live 13/10 on both pages). */
.phone {
  --screen-h: 600px;
  position: relative; width: 290px; height: 600px; flex: 0 0 auto;
  border-radius: 40px; background: #161616; border: 1px solid var(--line-strong);
  padding: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.phone__screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.phone__screen img { width: 100%; height: auto; animation: mailscroll var(--dur, 16s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); will-change: transform; }
@keyframes mailscroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(-100% + var(--screen-h) - 20px)); } }
.phone--side { display: none; }
@media (min-width: 900px) {
  .phones { height: 600px; }
  .phone--side { display: block; width: 250px; height: 520px; --screen-h: 520px; opacity: 0.9; }
  .phone--left { transform: translate(28px, 40px) rotate(-5deg); z-index: 1; }
  .phone--right { transform: translate(-28px, 40px) rotate(5deg); z-index: 1; }
  .phone--main { z-index: 2; }
}

/* Logo band */
.logos { padding-block: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 64px; align-items: center; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 28px; width: auto; opacity: 0.9; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* The deal: sticky-stacking cards */
.stack { display: grid; gap: 20px; margin-top: 40px; }
.stack__card {
  position: sticky; top: calc(var(--nav-h) + 20px + var(--i) * 18px);
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.9);
  min-height: 380px;
}
@media (min-width: 900px) { .stack__card { grid-template-columns: 6fr 5fr; padding: 48px; min-height: 420px; } }
.stack__card p { margin-top: 12px; max-width: 48ch; }
.stack__num { display: inline-block; font-weight: 900; font-size: 0.9375rem; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 14px; }
.stack__visual { position: relative; display: grid; place-items: center; min-height: 240px; }
.stack__visual .phone { width: 230px; height: 300px; --screen-h: 300px; border-radius: 32px; }
.stack__visual .phone__screen { border-radius: 24px; }
.stack__visual .phone__screen img { animation-duration: 12s; }
.ba { display: grid; gap: 12px; width: 100%; max-width: 420px; }
.ba__item { width: 88%; }
.ba__item + .ba__item { justify-self: end; }
.ba__label { display: block; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.ba__item--after .ba__label { color: var(--accent); }
.frame { border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.frame img { width: 100%; }
.zero { text-align: center; }
.zero__num { font-weight: 900; font-size: clamp(5rem, 12vw, 8rem); line-height: 1; letter-spacing: -0.05em; color: var(--accent); }
.zero__label { margin-top: 6px; font-weight: 700; }

/* Email showcase */
.mailrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 899px) {
  .mailrow {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); scrollbar-width: none;
  }
  .mailrow::-webkit-scrollbar { display: none; }
  .mail { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }
}
.mail { --screen-h: 560px; height: 560px; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line-strong); position: relative; }
.mail img { width: 100%; height: auto; animation: mailscroll var(--dur, 18s) ease-in-out infinite alternate; animation-play-state: paused; will-change: transform; }
.mail:hover img, .mail:focus-within img { animation-play-state: running; }
.mail__tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
@media (hover: none) { .mail img { animation-play-state: running; animation-duration: 26s; } }
.mailrow-note { margin-top: 16px; text-align: center; }

/* Video cases */
.videos { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
@media (min-width: 640px) { .videos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .videos { grid-template-columns: 1fr 1fr 1fr; } }
.video { position: relative; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.video__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.video__frame:hover img { transform: scale(1.04); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%;
}
.video__play span {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 1.25rem; padding-left: 4px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7); transition: transform 0.35s var(--ease);
}
.video__play:hover span { transform: scale(1.08); }
.video figcaption { margin-top: 12px; }
.video__brand { font-weight: 700; color: var(--text); }

/* Inside Klaviyo: bento with stat chips */
.bento { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
@media (min-width: 768px) { .bento { grid-template-columns: 1fr 1fr; } .bento > :first-child { grid-column: 1 / -1; } }
.bento figcaption { margin-top: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; }
.stat__num { display: block; font-weight: 900; font-size: 1.75rem; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.stat__label { display: block; margin-top: 4px; }

/* Who this is for */
.qualify { text-align: center; }
.qualify__num { font-weight: 900; font-size: clamp(3.75rem, 11vw, 7rem); line-height: 1; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.qualify__line { font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.75rem); letter-spacing: -0.01em; margin-top: 8px; }
.qualify p { margin-inline: auto; margin-top: 16px; max-width: 48ch; }

/* Quotes */
.quotes { display: grid; grid-template-columns: 1fr; margin-top: 40px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { position: relative; padding: 28px 0 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .quote { padding: 36px 32px; }
  .quote:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .quote:nth-child(even) { padding-right: 0; }
}
.quote__mark { display: block; font-weight: 900; font-size: 3rem; line-height: 0.6; color: var(--accent); margin-bottom: 18px; }
.quote blockquote { font-weight: 700; font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: 12px; font-style: normal; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 62ch; }

/* Final CTA */
.final { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; justify-items: start; }
@media (min-width: 768px) { .final { grid-template-columns: auto 1fr; gap: 40px; } }
.final__photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.final p { margin-top: 12px; max-width: 52ch; }
.final .btn { margin-top: 24px; }

/* Footer */
.footer { padding: 40px 0 120px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .footer { padding-bottom: 48px; } }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__top img { height: 24px; width: auto; }
.footer__top a { text-decoration: none; }
.footer__top a:hover { text-decoration: underline; }
.footer__legal { margin-top: 24px; max-width: 72ch; }

/* Mobile sticky bar */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.45s var(--ease);
}
.stickybar.is-on { transform: none; }
.stickybar__text { font-weight: 700; font-size: 0.9375rem; line-height: 1.25; }
@media (min-width: 768px) { .stickybar { display: none; } }

/* Reveal on scroll (JS adds .in) */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: blur(0); }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 32px 48px; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .phone__screen img, .mail img { animation: none; }
  .btn, .btn__arrow, .video__frame img, .faq summary::after, .stickybar { transition: none; }
  .btn:hover::after { animation: none; }
  .stack__card { position: static; }
}

/* ---------- Logo wall (two rows, from markeity.com's hero; used on /dk) ---------- */
.wall { display: grid; gap: 12px; max-width: 1040px; margin-inline: auto; }
.wall__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wall__track { display: flex; width: max-content; gap: 12px; animation: marquee var(--wall-dur, 40s) linear infinite; }
.wall__row--reverse .wall__track { animation-direction: reverse; }
.wall__row:hover .wall__track { animation-duration: calc(var(--wall-dur, 40s) * 3); }
.wall__card { flex: 0 0 auto; width: 200px; height: 72px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.09); background: linear-gradient(100deg, rgba(28, 28, 28, 0.85), rgba(8, 8, 8, 0.85)); backdrop-filter: blur(8px); }
.wall__card img { width: 100%; height: 100%; object-fit: contain; opacity: 0.92; }
@media (max-width: 767px) { .wall { gap: 10px; } .wall__track { gap: 10px; } .wall__card { width: 150px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .wall__track { animation: none; } }

/* ---------- Flow diagram ("Det du får", /dk) ---------- */
.flowmap { margin-top: 40px; display: grid; gap: 0; justify-items: center; }
.flowmap__node { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 0.9375rem; }
.flowmap__node--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.flowmap__sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.flowmap__sources .flowmap__node { background: transparent; color: var(--muted); font-weight: 500; }
.flowmap__link { width: 1px; height: 28px; background: var(--line-strong); }
.flowmap__link--accent { background: var(--accent); opacity: 0.7; }
.flowmap__bus { position: relative; width: 100%; max-width: 920px; height: 28px; }
.flowmap__bus::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; border-top: 1px solid var(--line-strong); }
.flowmap__bus::after { content: ""; position: absolute; left: 50%; top: -28px; height: 28px; border-left: 1px solid var(--line-strong); }
.flows { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: 100%; max-width: 920px; }
.flow { position: relative; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); padding: 18px 14px 16px; text-align: center; }
.flow::before { content: ""; position: absolute; left: 50%; top: -28px; height: 28px; border-left: 1px solid var(--line-strong); }
.flow__name { display: block; font-weight: 700; font-size: 0.9375rem; line-height: 1.2; min-height: 2.4em; }
.flow__count { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--muted); }
.flow__mails { display: grid; gap: 6px; margin-top: 14px; }
.flow__mail { height: 10px; border-radius: 999px; background: var(--accent); opacity: 0.85; }
.flow__mail:nth-child(2) { opacity: 0.7; } .flow__mail:nth-child(3) { opacity: 0.55; } .flow__mail:nth-child(4) { opacity: 0.4; }
.flowmap__sum { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 48px; margin-top: 36px; text-align: center; }
.flowmap__sum .stat__num { font-size: 2.25rem; }
@media (max-width: 767px) {
  .flows { grid-template-columns: repeat(2, 1fr); }
  .flows .flow:last-child { grid-column: 1 / -1; }
  .flow::before, .flowmap__bus::before { display: none; }
  .flowmap__bus { height: 0; }
  .flowmap__bus::after { display: none; }
  .flows { margin-top: 28px; }
}
/* Eight flows (13/10): four per row, no per-card connectors, one link from the popup node */
.flows--8 { grid-template-columns: repeat(4, 1fr); }
.flows--8 .flow::before { display: none; }
@media (max-width: 767px) { .flows--8 { grid-template-columns: repeat(2, 1fr); margin-top: 0; } .flows--8 .flow:last-child { grid-column: auto; } }
/* Step 2 on /dk: one wide Klaviyo flows table instead of the before/after pair, so the rows stay readable */
.flowshot { width: 100%; }
.ba__label--accent { color: var(--accent); }
@media (min-width: 900px) {
  .stack__card--wide { grid-template-columns: 1fr; min-height: 0; }
  .stack__card--wide .stack__visual { min-height: 0; }
  .stack__card--wide p { max-width: 62ch; }
}
/* On phones the flows table scrolls sideways at a readable size instead of shrinking to 358px */
@media (max-width: 899px) {
  .stack__visual--flowshot { min-height: 0; margin-top: 8px; }
  .flowshot .frame { overflow-x: auto; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .flowshot .frame img { width: 760px; max-width: none; display: block; }
  .flowshot .ba__label::after { content: " · swipe"; color: var(--muted); font-weight: 500; }
}
/* Calendly inline embed (/dk): dark frame, tall enough that the month view and the time list fit */
.calendly { margin-top: 40px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg); overflow: hidden; }
.calendly-inline-widget { min-width: 320px; min-height: 620px; }
.calendly-inline-widget iframe { display: block; }
@media (max-width: 767px) { .calendly { margin-top: 28px; } .calendly-inline-widget { min-height: 760px; } }
.stickybar.is-off { transform: translateY(110%); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Calendly's iframe paints white outside its card on wide screens: keep the frame as wide as the card */
/* Below ~640px Calendly's desktop layout never finishes loading (spinner forever, measured 14/10: 600 fails, 660 works), so 680 is the floor. */
@media (min-width: 768px) { .calendly { max-width: 680px; margin-inline: auto; } }
/* Grid items default to min-width:auto, so the 760px swipe image pushed the whole page wider on phones (seen 14/10) */
.stack__visual--flowshot, .flowshot { min-width: 0; }
.flowshot .frame { max-width: 100%; }
