/* =========================================================
   ShineStudio V3 - mobile-core.css
   Universal mobile fixes + through-line + branded liveliness.
   Loads AFTER tokens.css and v3-dashboard.css, BEFORE m-*.css.
   Desktop stays as designed; this mostly governs <= 820px,
   plus a few all-size polish items (through-line, sparkles,
   bigger BEFORE/AFTER, coral emphasis).
   ========================================================= */

/* ---- safety: never allow sideways scroll ---- */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { min-width: 0; }

/* ---- coral HIGHLIGHTER-MARKER on the key promise (all sizes) ---- */
.hl-coral {
  color: var(--ink); font-weight: 800;
  background: linear-gradient(180deg, transparent 56%, rgba(250,88,75,.40) 56%);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* the hero promise sits on its OWN line, a touch bigger (not too big) */
.np-hero .sub .hl-coral { display: inline-block; margin-top: 12px; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.25; }

/* ---- trust line (a ShineOn product) ---- */
.trust-line { margin: 16px auto 0; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.trust-line .spark { width: 12px; height: 12px; }

/* ---- connector above the final CTA (links Q&A -> Request access).
   Anchored on .wrap because the eyebrow was removed (same trick as .np-andy). ---- */
.np-final > .wrap::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: -40px; width: 2px; height: 30px;
  background: repeating-linear-gradient(180deg, var(--coral) 0 4px, transparent 4px 9px); opacity: .55;
}
.np-final > .wrap::after {
  content: ""; position: absolute; left: 50%; top: -48px; transform: translateX(-50%);
  width: 13px; height: 13px; background: var(--coral); opacity: .8;
  -webkit-mask: var(--spark-url) center/contain no-repeat; mask: var(--spark-url) center/contain no-repeat;
}
@media (max-width: 600px) { .np-final > .wrap::before { top: -34px; height: 24px; } .np-final > .wrap::after { top: -42px; } }

/* ---- mobile-short copy: full on desktop, short on phones ---- */
.s-mini, .m-mini { display: none; }
.more-toggle, .more-btn { display: none; }
@media (max-width: 760px) { .s-full { display: none; } .s-mini { display: inline; } }
@media (max-width: 820px) { .m-full { display: none; } .m-mini { display: inline; } }

/* ---- bigger BEFORE / AFTER words (all sizes) ---- */
.flow-tag .bigword { font-size: clamp(40px, 6vw, 52px); margin-bottom: 8px; }

/* ---- studio feature lines: clean, no mid-phrase breaks ---- */
.studio-feats li { align-items: flex-start; gap: 11px; line-height: 1.45; }
.studio-feats li .spark { margin-top: 6px; }
.studio-feats li > span { text-wrap: pretty; }

/* =========================================================
   THROUGH-LINE - a dotted coral spine connects every section
   ========================================================= */
.np-sec { position: relative; overflow: clip; }
.np-sec > .wrap { position: relative; z-index: 1; }
.np-head { position: relative; }
.np-head::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: -40px; width: 2px; height: 30px;
  background: repeating-linear-gradient(180deg, var(--coral) 0 4px, transparent 4px 9px);
  opacity: .55;
}
.np-head::after {
  content: ""; position: absolute; left: 50%; top: -48px; transform: translateX(-50%);
  width: 13px; height: 13px; background: var(--coral); opacity: .8;
  -webkit-mask: var(--spark-url) center/contain no-repeat; mask: var(--spark-url) center/contain no-repeat;
}
@media (max-width: 600px) { .np-head::before { top: -34px; height: 24px; } .np-head::after { top: -42px; width: 12px; height: 12px; } }

/* the Meet-the-Creator section has no .np-head, so the spine broke before it.
   Draw the same stitch above its card (anchored on .wrap, since .np-andy-card is overflow:hidden). */
.np-andy > .wrap::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: -40px; width: 2px; height: 30px;
  background: repeating-linear-gradient(180deg, var(--coral) 0 4px, transparent 4px 9px);
  opacity: .55;
}
.np-andy > .wrap::after {
  content: ""; position: absolute; left: 50%; top: -48px; transform: translateX(-50%);
  width: 13px; height: 13px; background: var(--coral); opacity: .8;
  -webkit-mask: var(--spark-url) center/contain no-repeat; mask: var(--spark-url) center/contain no-repeat;
}
@media (max-width: 600px) { .np-andy > .wrap::before { top: -34px; height: 24px; } .np-andy > .wrap::after { top: -42px; width: 12px; height: 12px; } }

/* =========================================================
   BACKGROUND LIVELINESS - faint sparkle motifs (all sizes)
   Scoped to sections that don't already use ::before/::after.
   ========================================================= */
/* shared sparkle base - scattered + varied, no two alike (hand-placed feel) */
#how::before, #parallel::before, #parallel::after, #compare::before, #proven::before,
#proven::after, #studio::before, #roadmap::before, #faq::before, #faq::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  -webkit-mask: var(--spark-url) center/contain no-repeat; mask: var(--spark-url) center/contain no-repeat;
}
#how::before      { width: 190px; height: 190px; right: -40px;  top: 80px;     background: var(--coral);  opacity: .11; }
#parallel::before { width: 250px; height: 250px; left: -110px;  top: 140px;    background: var(--violet); opacity: .08; }
#parallel::after  { width: 92px;  height: 92px;  right: -22px;  bottom: 80px;  background: var(--gold);   opacity: .10; }
#compare::before  { width: 124px; height: 124px; right: -18px;  bottom: 110px; background: var(--coral);  opacity: .13; }
#proven::before   { width: 162px; height: 162px; left: -44px;   top: 50px;     background: var(--lime);   opacity: .11; }
#proven::after    { width: 78px;  height: 78px;  right: -10px;  top: 220px;    background: var(--coral);  opacity: .09; }
#studio::before   { width: 220px; height: 220px; right: -90px;  bottom: 26px;  background: var(--violet); opacity: .09; }
#roadmap::before  { width: 134px; height: 134px; left: -28px;   top: 90px;     background: var(--coral);  opacity: .11; }
#faq::before      { width: 178px; height: 178px; right: -46px;  top: 56px;     background: var(--gold);   opacity: .10; }
#faq::after       { width: 98px;  height: 98px;  left: -30px;   bottom: 60px;  background: var(--violet); opacity: .09; }
/* hero gets a soft warm lift + room for floating sparkles */
.np-hero { position: relative; }
.np-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(58% 46% at 50% 4%, rgba(255,255,255,.55), transparent 72%);
}
.np-hero > .wrap { position: relative; z-index: 1; }
.np-hero .spark-float { z-index: 0; opacity: .3; animation: none; }

/* =========================================================
   NAV on mobile - hide the crowding CTA button, move it to menu
   ========================================================= */
.navcta { display: none; }
@media (max-width: 760px) {
  .nav-right .btn-coral { display: none; }
  .nav-links.open .navcta {
    display: block; background: var(--coral); color: #fff; text-align: center;
    padding: 13px 18px; border-radius: var(--r-pill); font-weight: 700;
  }
  .nav-links.open .navcta:hover { color: #fff; }
}

/* =========================================================
   MOBILE LAYOUT FIXES (<= 820px)
   ========================================================= */
@media (max-width: 820px) {
  /* hero */
  .np-hero { padding: 116px 0 48px; }
  .np-hero h1 { font-size: clamp(34px, 9vw, 52px); line-height: 1.04; }
  .np-hero .sub { font-size: 17px; }

  /* ----- dashboard window: contain it, wrap the top bar ----- */
  .np-window { position: relative; margin-top: 30px; border-radius: 16px; box-shadow: 0 20px 50px rgba(27,29,51,.3); padding-bottom: 112px; }
  .np-topbar { flex-wrap: wrap; row-gap: 10px; column-gap: 9px; padding: 12px 13px; }
  .np-dots { display: none; }
  .np-title { flex: 1 1 auto; font-size: 13px; }
  .np-sched { font-size: 11px; padding: 5px 11px; }
  .np-clock { margin-left: 0; font-size: 12px; padding: 5px 11px; }
  .np-replay { flex: 1 0 100%; justify-content: center; padding: 11px; font-size: 13px; }

  /* board base: ONE fixed-height contained rectangle, just like desktop.
     It never grows while the animation runs; the flexible column clips
     internally. Each version chooses which column flexes (see m-*.css). */
  .pipe-board { display: flex; flex-direction: column; gap: 10px; padding: 12px; height: 560px; overflow: hidden; }
  .pipe-col { flex: 0 0 auto; min-height: 0; overflow: hidden; }
  #apSlot, #midSlot { overflow: hidden; -webkit-mask: none; mask: none; }
  #pubSlot { overflow: hidden; -webkit-mask: none; mask: none; }

  /* stats: keep 3 compact columns, not stacked */
  .pipe-stats { grid-template-columns: repeat(3, 1fr); }
  .pipe-stats .ps { padding: 14px 9px; border-left: 1px solid #2A2D4A; border-top: none; }
  .pipe-stats .ps:first-child { border-left: none; }
  .pipe-stats .ps .psv { font-size: 21px; }
  .pipe-stats .ps .psl { font-size: 10.5px; }

  /* morning banner = floating toast in reserved dark space (zero layout shift) */
  .np-morning {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6;
    max-height: none; height: auto; padding: 14px 16px; border-radius: 14px; gap: 12px;
    transform: translateY(14px); opacity: 0; pointer-events: none;
    transition: transform .5s var(--ease), opacity .45s var(--ease);
  }
  .np-window.morning .np-morning { transform: none; opacity: 1; }
  .np-morning .mt b { font-size: 14px; line-height: 1.3; }
  .np-morning .mt span { font-size: 12px; }

  /* ----- big dark-box "By morning": scale down so it matches the rest ----- */
  .np-parallel { padding: 28px 20px; }
  .np-parallel .pl-big { font-size: clamp(32px, 10vw, 44px); line-height: .94; }
  .np-parallel .pl-big small { font-size: 12px; margin-top: 8px; }
  .np-parallel .pl-lead { font-size: 17px; line-height: 1.45; }
  .np-parallel .pl-row { margin-top: 22px; padding-top: 22px; gap: 14px; }
  .np-parallel .pl-item b { font-size: 14px; }
  .np-parallel .pl-item span { font-size: 13px; }

  /* ----- comparison: clean short green bar (with icon) + external label ----- */
  .mchart { padding: 22px 18px 24px; }
  .mbar-row { grid-template-columns: 92px 1fr; gap: 11px; }
  .mbar-name { font-size: 13px; }
  .mbar-track { height: 42px; gap: 10px; }
  .mbar-fill.byhand b { font-size: 15px; }
  .mbar-fill.studio { width: auto; padding: 0 18px; }
  .mbar-fill.studio .msym { width: 18px; height: 18px; }
  .mbar-out { font-size: 15px; }

  /* the big "versus" numbers */
  .vs-num { font-size: clamp(52px, 15vw, 72px); }

  /* studio shots stack cleanly */
  .studio-shots { gap: 12px; }
  .shot.tool img { height: 190px; }

  /* andy: shorter photo on mobile */
  .np-andy-photo, .np-andy-photo img.andy-img { min-height: 300px; }
  .np-andy-body { padding: 30px 24px; }

  /* sections breathe, but stay connected (tighter gaps) */
  .np-sec { padding: 38px 0; }
  .np-final { padding: 44px 16px; }
  .np-final .wrap { padding: 34px 22px; border-radius: var(--r-lg); }
  .np-hero { padding: 116px 0 32px; }
}

@media (max-width: 560px) {
  .studio-shots { grid-template-columns: 1fr; }
  .shot.wide { grid-column: auto; }
  .shot.tool img { height: 210px; }
  .np-andy-body .stats { gap: 18px; }
  .grandfather { padding: 30px 24px; }
  .grandfather .gf-cta, .grandfather .gf-cta .btn { width: 100%; }
}

/* =========================================================
   BEFORE / AFTER - stacked, clean, short copy on mobile.
   Before collapses to 4 steps with a "See all 10 steps" expander
   (proves how long the grind is). After shows all 3 steps.
   ========================================================= */
@media (max-width: 760px) {
  .flow2 { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .flow-card { padding: 22px 20px; border-radius: 20px; }
  .flow-head { margin-bottom: 2px; }
  .flow-tag { font-size: 11px; letter-spacing: .12em; }
  .flow-tag .bigword { font-size: 34px; margin-bottom: 4px; }
  .flow-card h3 { font-size: 19px; margin: 8px 0 16px; }

  /* BEFORE list: clean, collapses to 4 with a view-more */
  .bsteps::before { display: none; }
  .bsteps li { font-size: 14px; gap: 12px; padding: 7px 0; line-height: 1.35; }
  .bsteps li .bn { width: 23px; height: 23px; font-size: 11px; }
  .bsteps li:nth-child(n+6) { color: var(--ink-body); opacity: 1; }
  .bsteps li:nth-child(n+5) { display: none; }
  .more-toggle:checked ~ .bsteps li { display: flex; }
  .more-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; cursor: pointer;
    font-size: 13px; font-weight: 800; letter-spacing: .03em; color: var(--coral-deep);
    background: var(--coral-tint); border-radius: var(--r-pill); padding: 9px 16px;
  }
  .more-btn::after {
    content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px;
  }
  .more-toggle:checked ~ .more-btn::after { transform: rotate(-135deg); margin-top: 2px; }
  .more-btn .more-close { display: none; }
  .more-toggle:checked ~ .more-btn .more-open { display: none; }
  .more-toggle:checked ~ .more-btn .more-close { display: inline; }
  .give-up { padding-top: 18px; gap: 11px; }
  .give-up .gt { font-size: 13.5px; line-height: 1.4; }

  /* AFTER: all 3 steps, clean and roomy */
  .asteps { gap: 10px; }
  .astep { padding: 16px; gap: 14px; border-radius: 15px; }
  .astep .ai { width: 46px; height: 46px; border-radius: 13px; }
  .astep .ai svg { width: 24px; height: 24px; }
  .astep .at b { font-size: 17px; }
  .astep .at span { font-size: 13px; line-height: 1.4; }
  .flow-relief { font-size: 14px; margin-top: 16px; gap: 8px; }
}

/* =========================================================
   DO THE MATH - keep the versus side by side on mobile
   ========================================================= */
@media (max-width: 760px) {
  .vs { grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 32px; }
  .vs-card { padding: 24px 12px; border-radius: 18px; }
  .vs-label { font-size: 9.5px; letter-spacing: .08em; }
  .vs-num { font-size: clamp(46px, 16.5vw, 70px); line-height: .88; margin-top: 10px; }
  .vs-num .u { display: block; font-size: .32em; margin-top: 6px; font-style: italic; }
  .vs-sub { font-size: 12.5px; margin-top: 12px; line-height: 1.4; }
  .vs-x { font-size: 15px; align-self: center; }
}

/* =========================================================
   ROADMAP - a clean vertical journey flow on mobile
   ========================================================= */
@media (max-width: 820px) {
  .jflow { flex-direction: column; gap: 0; margin-top: 34px; }
  .jflow .jnode { width: 100%; min-height: 0; padding: 20px 18px; }
  .jflow .jarrow { width: auto; height: 24px; margin: 4px 0; transform: rotate(90deg); }
  .jnode .jt { font-size: 17px; }
  .jnode .jtag { margin-top: 10px; padding-top: 0; }
  .jnode.locked { min-height: 120px; }
}

/* =========================================================
   STUDIO BONUS - one picture per point (all sizes)
   ========================================================= */
.studio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.scard { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-sm); display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.scard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.scard img { width: 100%; height: 200px; object-fit: cover; object-position: top center; display: block; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.scard figcaption { padding: 18px 18px 20px; font-size: 14.5px; color: var(--ink-body); line-height: 1.5; }
.scard figcaption b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink); font-variation-settings: var(--fr-sub); margin-bottom: 6px; }
@media (max-width: 820px) {
  .studio-cards { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .scard img { height: 210px; }
}
