/* SkipBoard v2 — welcome / onboarding */

.screen-welcome { padding-bottom: env(safe-area-inset-bottom); }
.welcome-flow { min-height: 100dvh; background: var(--bg); }
.welcome-body { padding: 0; }
.welcome-step { padding: 24px var(--gutter) 32px; max-width: 620px; margin: 0 auto; }

/* ---- Hero (step 0): dark "forest" cover, brand-first -------------------- */
.welcome-flow.is-hero {
  background:
    radial-gradient(120% 60% at 78% 8%, rgba(16, 185, 129, 0.18), transparent 60%),
    radial-gradient(90% 50% at 10% 100%, rgba(4, 120, 87, 0.16), transparent 65%),
    #0e1513;
  color: #f2f5f3;
}
.welcome-flow.is-hero::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(242, 245, 243, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 245, 243, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(90% 55% at 50% 0%, #000 0%, transparent 78%);
}
.welcome-flow.is-hero .flow-head {
  background: rgba(14, 21, 19, 0.72);
  border-bottom-color: transparent;
  color: #f2f5f3;
}
.welcome-flow.is-hero .step-dots i { background: rgba(242, 245, 243, 0.2); }
.welcome-flow.is-hero .step-dots i.is-active { background: #34d399; }
.welcome-flow.is-hero .btn-ghost { color: rgba(242, 245, 243, 0.8); }
.welcome-flow.is-hero .btn-ghost:hover { background: rgba(242, 245, 243, 0.08); }

.welcome-hero {
  position: relative;
  z-index: 1;
  padding: 20px var(--gutter) 32px;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-x: clip;
}
.welcome-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content; padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(52, 211, 153, 0.35); color: #6ee7b7;
  background: rgba(16, 185, 129, 0.08); letter-spacing: 0.08em;
}
.welcome-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 11.5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 650;
  color: #f2f5f3;
  margin: 2px 0 2px;
}
.welcome-h1 .hl {
  color: #34d399;
  text-decoration: underline;
  text-decoration-color: rgba(52, 211, 153, 0.45);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  text-decoration-skip-ink: none;
}
.welcome-lead {
  color: rgba(242, 245, 243, 0.72);
  font-size: var(--t-16);
  line-height: 1.55;
  max-width: 44ch;
}
.hero-art { position: relative; margin: 6px 0 4px; padding: 4px 8px 8px; max-width: 100%; }
.hero-note {
  display: block;
  margin: -6px 10px 0 auto;
  width: fit-content;
  max-width: 88%;
  text-align: right;
  font-size: 22px; line-height: 1.05;
  color: #f2c14e;
  transform: rotate(-3.5deg);
  transform-origin: right center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.welcome-cta { display: flex; flex-direction: column; gap: 8px; }
.welcome-cta .btn-primary { box-shadow: 0 10px 34px rgba(16, 185, 129, 0.32); }
.proof-row {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  color: rgba(242, 245, 243, 0.62);
  font-size: var(--t-13); font-weight: 500;
}
.proof-row li { display: inline-flex; align-items: center; gap: 5px; }
.proof-row svg { color: #34d399; }

/* Paper mock form (also used on step 4 preview) */
.mock-form {
  position: relative;
  width: min(100%, 306px);
  margin: 0 auto;
  background: #fbfaf5;
  color: #0d1512;
  border-radius: 14px;
  padding: 18px 18px 16px;
  transform: rotate(-3.2deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.mock-form::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(13, 21, 18, 0.08);
}
.mock-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  padding-bottom: 8px; border-bottom: 2px solid #0d1512;
}
.mock-kicker { font-size: 8px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #5c6962; }
.mock-title { font-family: var(--font-display); font-size: 19px; line-height: 1; letter-spacing: -0.03em; font-weight: 700; margin-top: 4px; }
.mock-form-no { font-size: 7px; text-align: right; color: #7b857e; line-height: 1.4; }
.mock-field { display: flex; flex-direction: column; gap: 1px; padding: 7px 0 5px; border-bottom: 1px solid #d9d5c7; }
.mock-field span { font-size: 7px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7b857e; }
.mock-field .ink { font-family: var(--font-hand); font-size: 17px; line-height: 1; color: #1e3a8a; }
.mock-field .ink.big { font-size: 19px; }
.mock-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-check { display: flex; align-items: center; gap: 6px; padding: 4px 0; color: #1e3a8a; }
.mock-box { width: 11px; height: 11px; border: 1.5px solid #1e3a8a; border-radius: 2px; position: relative; flex-shrink: 0; }
.mock-box::after { content: '✓'; position: absolute; left: 0; top: -5px; font-size: 14px; font-weight: 700; transform: rotate(-8deg); }
.mock-check .ink { font-family: var(--font-hand); font-size: 15px; }
.mock-sign { padding-top: 8px; }
.mock-sign span { font-size: 7px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7b857e; }
.mock-sign .ink { font-family: var(--font-hand); font-size: 21px; color: #1e3a8a; display: block; border-bottom: 1px solid #c9c3b2; line-height: 1.2; }
.mock-stamp {
  position: absolute; right: 14px; bottom: 12px;
  border: 1.5px solid #0b6b4f; color: #0b6b4f; border-radius: 4px;
  padding: 2px 6px; font-family: var(--font-hand); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-6deg);
}

/* ---- Later steps ------------------------------------------------------- */
.welcome-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 7.4vw, 38px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 6px 0 6px;
}
.welcome-step .hint { display: flex; align-items: center; gap: 5px; }
.welcome-step .hint svg { flex-shrink: 0; }

.hand-preview { padding: 18px 20px 16px; overflow: visible; margin-top: 6px; }
.hand-preview .hand-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: #7b857e; margin-top: 10px; }
.hand-preview .hand-label:first-child { margin-top: 0; }
.hand-line { font-size: clamp(24px, 6.8vw, 30px); line-height: 1.1; margin-top: 2px; }
.hand-sign { font-size: clamp(26px, 7vw, 32px); line-height: 1.1; margin-top: 2px; border-bottom: 1px solid #c9c3b2; padding-bottom: 2px; }
.hand-stamp { position: absolute; right: -6px; top: -12px; }
.paper.hand-preview { position: relative; }

.ready-mark {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin: 18px auto 2px;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 8%, transparent);
  animation: ready-pop var(--dur-3) var(--ease) both;
}
@keyframes ready-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.start-card { display: flex; flex-direction: column; gap: 8px; }
.start-card h2 { font-size: var(--t-24); margin-top: 2px; }
.start-card .btn-block + .btn-block { margin-top: 2px; }

@media (min-width: 900px) {
  .welcome-flow.is-hero .flow-head { max-width: 960px; margin: 0 auto; width: 100%; }
  .welcome-hero {
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    padding: 40px 24px 72px;
  }
  .welcome-hero .eyebrow, .welcome-h1, .welcome-lead, .welcome-cta, .proof-row { grid-column: 1; }
  .hero-art { grid-column: 2; grid-row: 1 / span 5; margin: 0; padding: 20px 20px 40px; position: relative; }
  /* The art column is narrow next to the sidebar at ~900-1100px: shrink the card
     and keep the note in flow under it so neither overlaps nor clips. */
  .mock-form { width: min(360px, 100%); }
  .hero-note { margin: 10px 0 0 auto; font-size: 28px; max-width: none; white-space: nowrap; }
  .welcome-step { max-width: 720px; }
}
