/* urgentdeck.com, on top of the meeditstudio.com system (studio.css loads first). Only what urgentdeck adds:
   a white page so the cartoons sit on it like ink on paper, the cartoons and their motion, and the kite. */
:root { --bg: #FFFFFF; }
/* The studio's bar and bottom dock are tinted with its off-white; on urgentdeck they take the white page */
.bar { background: rgba(255, 255, 255, .92); }
.dock { background: linear-gradient(rgba(255, 255, 255, 0), var(--bg) 24px); }
/* Phones: a wider left margin is the kite's lane */
@media (max-width: 759px) { .wrap { padding-left: 28px; } }

/* The kite: in its drawing it sits on top of the cartoon; ud.js moves it into .ud and flies it over the page, in the
   margins, under the bar and the dock */
.ud { position: relative; overflow: hidden; overflow: clip; }
.ud .wrap { position: relative; }
.lift { position: relative; z-index: 2; background-color: var(--bg); }
.ud .urgent, .ud .offer, .ud .quote-in { position: relative; z-index: 2; }
.cart-im .kite { position: absolute; height: auto; pointer-events: none; }
.ud > .kite { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; will-change: transform; }
.ud .a { position: absolute; top: var(--y); left: var(--x); width: 0; height: 0; }
.ud .a.r { left: calc(100% - var(--gutter) / 2); }
.ud .a.l { left: calc(var(--gutter) / 2); }
/* "How it works": the numbers and their text sit on the page colour, above the kite */
.ud .steps li { position: relative; }
.ud .steps li::before { position: relative; z-index: 3; }
.ud .steps b, .ud .steps p { position: relative; z-index: 2; background: var(--bg); }
@media (max-width: 759px) {
  .ud .a { left: var(--mx, 14px); top: var(--my, var(--y)); }
  .ud .a.r, .ud .a.l { left: 14px; }
  .ud .a.desk { display: none; }
}

/* Cartoons: drawn on white, so they blend into the page */
.cartoon { margin: 0; }
.cart-im { position: relative; }
.cart-im img { display: block; width: 100%; height: auto; }
.cartoon figcaption, .hero-illo figcaption { margin-top: 10px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); font-style: italic; text-align: center; text-wrap: balance; }

/* Hero: the headline rises word by word, and the drawing floats apart in pieces at the top and settles as you scroll */
.ud-hero .hero-in { align-items: center; }
.ud-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.ud-h .w > span { display: inline-block; transition: transform 760ms cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i) * 70ms + 120ms); }
.js .ud-h:not(.in) .w > span { transform: translateY(108%); }
.ud-hero h1 + .lead { margin-top: 16px; }
.ud-facts { list-style: none; margin: 28px 0 0; padding: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--rule); }
.ud-facts b { display: block; color: var(--ink); font-weight: 600; }
.ud-facts span { font-size: var(--fs-small); color: var(--muted); }
.hero-illo { margin: 0; width: min(100%, 440px); justify-self: center; }
.me-illo .art { position: relative; width: 100%; aspect-ratio: var(--ar, 1 / 1); }
.me-illo .art > i, .hero-art .pt > i { position: absolute; inset: 0; display: block; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.me-illo .art > .fill { background: var(--hl); }
.me-illo .art > .ink { background: var(--ink); }
.hero-art .pt { position: absolute; inset: 0; will-change: transform; }
.hero-art .pt > .fill { --m: var(--mf); background: var(--hl); }
.hero-art .pt > .ink { --m: var(--mi); background: var(--ink); }
.hero-art > i { visibility: hidden; }
.hero-art.whole > i { visibility: visible; }
.hero-art.whole .pt { visibility: hidden; }

/* Services: the lead beside the heading, a cartoon at the top of each card */
.ud-split p:not(.lead) { max-width: 62ch; }
.offer .offer-art { margin: 0 0 16px; background: transparent; }
.offer .offer-art .cart-im img { width: auto; max-width: 100%; max-height: 220px; margin: 0 auto; }
.offer-for { margin-top: 4px; color: var(--ink); font-weight: 600; }
.offer-desc { margin-bottom: 12px; }
.offer .btn { margin-top: 20px; }
.two > div { padding-top: 4px; }

/* Pain points, how it works, the story */
.kinds.cols li { padding-block: 14px; }
.kinds.cols p { margin-top: 4px; }
.kinds.cols h3 { font-size: var(--fs-body); }
.ud-pains .sec-head { margin-bottom: 20px; }
.ud-how-head { display: grid; gap: 24px; margin-bottom: 32px; }
.beats { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.beats li { display: grid; grid-template-columns: 112px 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.beats b { color: var(--ink); font-weight: 600; }
.ud-turn { margin-top: 20px; max-width: 62ch; }
.ud-pull { margin: 16px 0 0; padding-left: 14px; border-left: 3px solid var(--hl); color: var(--ink); font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-h3); max-width: 40ch; }
.ud-why { display: grid; gap: 40px; }
.ud .founder-im { background: none; aspect-ratio: auto; border-radius: 0; }
.ud .founder-im img { height: auto; object-fit: contain; }
.founder .small { margin-top: 4px; }
.founder .small + p { margin-top: 12px; }
.ud-side { width: min(100%, 520px); justify-self: center; }

/* Learning games, quote, questions */
.ud-games .feature-im { background: #1b1b1f; }
.ud-games-text { margin-top: 12px; max-width: 60ch; }
.ud-price { margin-top: 12px; color: var(--ink); }
.ud-games .ctas { margin-top: 16px; }
.ud-deck { margin-bottom: 32px; }
.ud-deck .feature-im { box-shadow: 0 0 0 1px var(--rule); }
.ud-deck .ctas { margin-top: 16px; }
.ud-q { display: grid; gap: 24px; }
.ud-q-head .lead { margin-top: 12px; max-width: 52ch; }
.ud-q-head .small { margin-top: 16px; }
.ud-bow { width: min(100%, 300px); justify-self: end; }
.ud .quote-in.ud-q-card { grid-template-columns: minmax(0, 1fr); }
/* Questions as cards: numbered, 2 columns from 760px, rising in one after another (ud.js), lifting on hover with a
   highlighter line across the top. Without the script, or with reduced motion, they simply show. */
.faq-cards { margin: 24px 0 0; display: grid; gap: 16px; counter-reset: q; }
.faq-card { counter-increment: q; position: relative; z-index: 2; overflow: hidden; padding: 22px 22px 24px; border-radius: 16px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--rule); transition: transform 200ms ease, box-shadow 200ms ease; }
.faq-card::before { content: counter(q, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.faq-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hl); transform: scaleX(0); transform-origin: left; transition: transform 300ms ease; }
.faq-card dt { color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.35; }
.faq-card dd { margin: 8px 0 0; }
.faq-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--rule), 0 16px 28px -20px rgba(17, 17, 17, 0.4); }
.faq-card:hover::after { transform: scaleX(1); }
.faq-cards.arm .faq-card { opacity: 0; transform: translateY(14px); }
.faq-cards.arm.in .faq-card { opacity: 1; transform: none; transition: opacity 500ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--n) * 70ms); }
.ud-404 h1 { margin-top: 8px; }
.ud-404 .lead { margin-top: 16px; }
.ud-404 .kinds { margin-top: 32px; }

@media (max-width: 759px) {
  .ud-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-illo { width: min(100%, 340px); }
  .beats li { grid-template-columns: minmax(0, 1fr); }
  .ud-side { width: min(100%, 360px); }
  .ud-bow { width: min(100%, 260px); }
}
@media (min-width: 760px) {
  .faq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kinds.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .ud .founder { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; }
}
@media (min-width: 1024px) {
  .ud-hero .hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
  .ud-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; max-width: none; }
  .ud-split p:not(.lead) { margin-top: 0; }
  .kinds.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ud-pains { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .ud-how-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .ud-why { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .ud-why .founder { grid-column: 1 / -1; }
  .ud-deck { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 48px; }
  .ud-games .feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .ud-q { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
  .ud-q-card { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ud-h:not(.in) .w > span, .ud-h .w > span { transform: none; transition: none; }
  .faq-card, .faq-card::after { transition: none; }
  .faq-card:hover { transform: none; }
}

/* From 1024px: 4 columns. Short answers take 1, longer ones 2, a lead question the whole row (spans set per card) */
@media (min-width: 1024px) {
  .faq-cards.quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-cards.quad > .s2 { grid-column: span 2; }
  .faq-cards.quad > .s4 { grid-column: 1 / -1; }
}
