/* =====================================================================================
   The guided demo.

   Built for a stand: a phone in a hand, an iPad on a table, a laptop, or a large screen
   on a wall — the same page, no separate mobile build. Two things carry that:

     · every size is fluid (clamp on type and spacing), so there is no breakpoint where
       the layout is merely "not broken" rather than considered;
     · the product itself is rendered at a desktop logical size inside the frame and
       scaled to fit whatever space is left. Things drawn ON the product (the spotlight
       and the pointer) live inside that scaled box; the words live outside it.

   The palette is the demo site's own: --accent #0030DB, ink #0B1635, and the brand
   gradient #00A6FF -> #0030DB -> #7F5CFC.
   ===================================================================================== */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url('/assets/fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url('/assets/fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url('/assets/fonts/Inter-Bold.woff2') format('woff2'); }

:root {
  --ink:#0B1635; --ink-2:#4A5878; --ink-3:#7C89A6;
  --page:#F6F7F9; --surface:#FFFFFF; --hairline:#E4E7EC;
  --accent:#0030DB; --accent-deep:#0021A0; --accent-tint:#EEF2FF;
  --cyan:#00A6FF; --violet:#7F5CFC;
  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--accent) 58%, var(--violet) 100%);
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow-1: 0 1px 2px rgba(11,22,53,.06);
  --shadow-2: 0 18px 44px -22px rgba(11,22,53,.30);
  --shadow-3: 0 40px 90px -40px rgba(11,22,53,.45);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ink); color: var(--ink);
  overflow: hidden; overscroll-behavior: none;
}
img { display: block; max-width: 100%; }
button, a { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* =====================================================================================
   views
   ===================================================================================== */
#app { position: fixed; inset: 0; }
.view { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .42s var(--ease), visibility .42s; }
#app[data-view='attract'] .view-attract,
#app[data-view='pick']    .view-pick,
#app[data-view='tour']    .view-tour,
#app[data-view='end']     .view-end { opacity: 1; visibility: visible; pointer-events: auto; }

/* =====================================================================================
   1 · attract
   ===================================================================================== */
.view-attract, .view-end {
  background:
    radial-gradient(120vw 80vh at 15% -10%, rgba(0,166,255,.16), transparent 60%),
    radial-gradient(90vw 70vh at 95% 105%, rgba(127,92,252,.18), transparent 62%),
    linear-gradient(170deg, #FFFFFF 0%, #F4F6FB 55%, #EEF2FF 100%);
  background-color: #F6F7F9; color: var(--ink);
  display: flex; flex-direction: column;
  padding: calc(var(--sat) + 22px) calc(var(--sar) + 22px) calc(var(--sab) + 18px) calc(var(--sal) + 22px);
}
.sky { position: absolute; inset: 0; overflow: hidden; }
.sky canvas { width: 100%; height: 100%; display: block; }
.a-head { position: relative; z-index: 2; }
.a-logo { height: clamp(26px, 3.4vmin, 38px); width: auto; }
.a-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: min(94vw, 1180px); }
.a-eyebrow { margin: 0 0 clamp(14px, 2.4vmin, 22px); font-size: clamp(12px, 1.5vmin, 15px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.a-title { margin: 0; font-weight: 700; letter-spacing: -.035em; font-size: clamp(38px, 7.6vmin, 96px); line-height: 1.02; max-width: 13ch; text-wrap: balance; }
.a-sub { margin: clamp(18px, 2.6vmin, 30px) 0 0; font-size: clamp(16px, 2.1vmin, 25px); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.a-hint { margin: clamp(14px, 2vmin, 20px) 0 0; font-size: clamp(12px, 1.4vmin, 15px); color: var(--ink-3); animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity:.45 } 50% { opacity:1 } }
.a-rail { position: relative; z-index: 2; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.a-rail-track { display: flex; gap: 10px; width: max-content; animation: slide 64s linear infinite; }
@keyframes slide { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.a-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-1); font-size: clamp(12px, 1.4vmin, 15px); color: var(--ink-2); font-weight: 500; }
.a-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* =====================================================================================
   controls
   ===================================================================================== */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 clamp(22px, 2.6vmin, 32px);
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff;
  font-size: clamp(16px, 1.9vmin, 20px); font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 16px 34px -14px rgba(0,48,219,.55); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  margin-top: clamp(24px, 3.4vmin, 40px); align-self: flex-start;
}
.cta:hover { transform: translateY(-2px); background: var(--accent-deep); }
.cta:active { transform: translateY(0); }
.cta.sm { min-height: 46px; padding: 0 20px; font-size: 16px; margin: 0; background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,48,219,.6); }
.cta.sm:hover { background: var(--accent-deep); }

.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid currentColor; color: inherit;
  font-size: 15px; font-weight: 500; opacity: .72; text-decoration: none; white-space: nowrap;
  transition: opacity .16s, background .16s;
}
.ghost:hover { opacity: 1; background: rgba(125,140,175,.12); }
.ghost.sm { min-height: 42px; padding: 0 15px; font-size: 14px; }
.ghost[disabled] { opacity: .3; pointer-events: none; }
.view-attract .ghost, .view-end .ghost { color: var(--ink-2); border-color: var(--hairline); }

.icon-b {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1px solid var(--hairline); color: var(--ink-2);
  transition: background .16s, color .16s, border-color .16s;
}
.icon-b:hover { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-tint); }

.c-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* =====================================================================================
   2 · chooser
   ===================================================================================== */
.view-pick { background: var(--page); display: flex; flex-direction: column; }
.p-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(var(--sat) + 14px) calc(var(--sar) + clamp(16px,3vw,40px)) 14px calc(var(--sal) + clamp(16px,3vw,40px));
  border-bottom: 1px solid var(--hairline); background: var(--surface);
}
.p-logo { height: 26px; width: auto; }
.p-head .ghost { color: var(--ink-2); border-color: var(--hairline); }
.p-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.p-inner { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4vmin, 52px) calc(var(--sar) + clamp(16px,3vw,40px)) calc(var(--sab) + 48px) calc(var(--sal) + clamp(16px,3vw,40px)); }
.p-lead { max-width: min(92vw, 720px); }
.p-title { margin: 0; font-size: clamp(27px, 4.6vmin, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; max-width: 18ch; }
.p-sub { margin: 12px 0 0; font-size: clamp(15px, 1.8vmin, 19px); color: var(--ink-2); line-height: 1.5; }
.seg { display: inline-flex; gap: 4px; margin: clamp(22px,3vmin,32px) 0 clamp(18px,2.6vmin,26px); padding: 4px; border-radius: 999px; background: #E8EBF2; }
.seg-b { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 600; transition: background .18s, color .18s, box-shadow .18s; }
.seg-b.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.grid { display: grid; gap: clamp(12px, 1.6vmin, 18px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.grid.is-hidden { display: none; }
.card {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  padding: clamp(18px, 2.4vmin, 26px);
  border: 1px solid var(--hairline); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  display: flex; flex-direction: column; gap: 10px; min-height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #CED6E6; }
.card:active { transform: translateY(0); }
.card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.card:hover::after { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.card-flag { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-name { margin: 0; font-size: clamp(18px, 2.1vmin, 21px); font-weight: 650; letter-spacing: -.015em; }
.card-tag { margin: 0; font-size: 13px; font-weight: 500; color: var(--accent); }
.card-blurb { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.card-foot b { color: var(--ink); font-weight: 650; }
.p-foot { margin: clamp(26px,3.4vmin,40px) 0 0; font-size: 13px; color: var(--ink-3); }

/* how would you like to see it */
.mode { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(11,22,53,.5); backdrop-filter: blur(4px); animation: fade .22s var(--ease); }
@keyframes fade { from { opacity: 0 } }
.mode-card { width: min(100%, 520px); padding: clamp(20px,3vmin,30px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-3); display: grid; gap: 10px; animation: rise .3s var(--ease); }
@keyframes rise { from { transform: translateY(14px); opacity: 0 } }
.mode-title { margin: 0 0 8px; font-size: clamp(22px,2.8vmin,28px); font-weight: 700; letter-spacing: -.024em; }
.mode-opt {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-align: left;
  padding: 16px 18px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--hairline); background: var(--surface);
  transition: border-color .16s, background .16s, transform .16s var(--ease);
}
.mode-opt:hover { border-color: #B9C6EA; transform: translateY(-1px); }
.mode-opt.is-primary { border-color: var(--accent); background: var(--accent-tint); }
.mode-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--accent); border: 1px solid var(--hairline); }
.mode-opt.is-primary .mode-ico { background: var(--accent); color: #fff; border-color: var(--accent); }
.mode-txt { display: grid; gap: 3px; }
.mode-txt b { font-size: 17px; font-weight: 650; }
.mode-txt span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.mode-rec { position: absolute; top: -10px; right: 14px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mode-back { justify-self: start; color: var(--ink-2); border-color: var(--hairline); margin-top: 4px; }

/* =====================================================================================
   3 · tour
   ===================================================================================== */
.view-tour { background: var(--page); display: flex; flex-direction: column; }

.t-head {
  flex: none; display: flex; align-items: center; gap: clamp(10px, 1.4vw, 16px);
  padding: calc(var(--sat) + 10px) calc(var(--sar) + 14px) 10px calc(var(--sal) + 14px);
  background: var(--surface); border-bottom: 1px solid var(--hairline);
}
.t-where { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.t-stream { font-size: clamp(14px,1.7vmin,17px); font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-count { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.t-mode { color: var(--ink-2); border-color: var(--hairline); opacity: 1; }

/* screens: dots while guided, labelled chips while exploring */
.t-steps { flex: 1; display: flex; align-items: center; gap: 6px; justify-content: flex-end; min-width: 0; overflow: hidden; }
.t-step { flex: 0 1 44px; height: 5px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: #DDE2EC; transition: background .2s, flex-basis .25s var(--ease); overflow: hidden; }
.t-step span { display: none; }
.t-step.is-done { background: #9FB2E8; }
.t-step.is-on { background: var(--accent); flex-basis: 76px; }
.is-explore .t-steps { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
.is-explore .t-steps::-webkit-scrollbar { display: none; }
.is-explore .t-step { flex: none; height: auto; padding: 8px 13px; border-radius: 999px; background: var(--page); border: 1px solid var(--hairline); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.is-explore .t-step span { display: inline; }
.is-explore .t-step.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.i-play { display: none; }
#tPlay[data-paused='1'] .i-pause { display: none; }
#tPlay[data-paused='1'] .i-play { display: block; }

.t-body { flex: 1; min-height: 0; display: flex; }

/* --- the product, scaled to fit ------------------------------------------------------ */
.stage {
  position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden;
  padding: clamp(10px, 1.6vmin, 22px);
  background: radial-gradient(60vw 40vh at 50% 0%, rgba(0,48,219,.05), transparent 70%), var(--page);
}
/* Centred by translate, not by the grid: a grid track sizes to the UNscaled box, so a
   scaled frame would sit off-centre on anything smaller than a laptop. */
.frame-wrap {
  position: absolute; left: 50%; top: 50%;
  width: 1280px; height: 800px;                          /* fit() sets the real size */
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-3); border: 1px solid rgba(11,22,53,.10);
  --k: 1;
}
#frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; pointer-events: none; }

/* everything below is drawn ON the product and scales with it */
.veil { position: absolute; inset: 0; background: rgba(11,22,53,.46); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.veil.is-on { opacity: 1; }

.spot {
  position: absolute; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 100000px rgba(11,22,53,.5), 0 0 0 3px rgba(0,48,219,.95), 0 0 0 10px rgba(0,48,219,.22);
  transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease), opacity .3s;
}
.spot.is-hidden { opacity: 0; }

.pointer { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transition: transform .9s var(--ease), opacity .3s; }
.pointer.is-hidden { opacity: 0; }
.pointer i {
  position: absolute; left: 0; top: 0; display: block;
  width: calc(22px / var(--k)); height: calc(22px / var(--k)); margin: calc(-11px / var(--k)) 0 0 calc(-11px / var(--k));
  border-radius: 50%; background: var(--accent); border: calc(3px / var(--k)) solid #fff;
  box-shadow: 0 calc(4px / var(--k)) calc(14px / var(--k)) rgba(0,48,219,.45);
}
.pointer i::after {
  content: ''; position: absolute; inset: calc(-6px / var(--k)); border-radius: 50%;
  border: calc(2px / var(--k)) solid var(--accent); animation: ping 1.6s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.7); opacity: .9 } 100% { transform: scale(2.2); opacity: 0 } }

/* while the guide drives, taps on the product move the guide on rather than clicking in */
.tap { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; }
.tap:focus { outline: none; }
.is-handed #frame { pointer-events: auto; }

/* --- the words ----------------------------------------------------------------------- */
.callout {
  position: absolute; z-index: 5; width: max-content; max-width: 340px;
  padding: 16px 18px 14px; border-radius: 16px;
  background: var(--surface); box-shadow: 0 24px 60px -20px rgba(11,22,53,.5), 0 0 0 1px rgba(11,22,53,.06);
  transition: left .45s var(--ease), top .45s var(--ease), opacity .25s, transform .25s var(--ease);
}
.callout.is-hidden { opacity: 0; pointer-events: none; transform: translateY(6px); }
.callout::before {
  content: ''; position: absolute; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg);
  box-shadow: -2px 2px 4px -2px rgba(11,22,53,.12);
}
.callout[data-side='right']::before  { left: -7px; top: calc(50% - 7px); }
.callout[data-side='left']::before   { right: -7px; top: calc(50% - 7px); transform: rotate(225deg); }
.callout[data-side='top']::before    { top: -7px; left: calc(50% - 7px); transform: rotate(135deg); }
.callout[data-side='bottom']::before { bottom: -7px; left: calc(50% - 7px); transform: rotate(-45deg); }
.callout[data-side='none']::before   { display: none; }
.callout[data-kind='intro'] { max-width: min(460px, 90%); padding: 22px 24px 18px; text-align: left; }
.co-k { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.co-h { margin: 0 0 8px; font-size: clamp(20px,2.4vmin,26px); font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.co-t { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.callout[data-kind='intro'] .co-t { font-size: 16px; color: var(--ink-2); }
.co-a { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.co-hint { font-size: 12.5px; color: var(--ink-3); }
.co-bar { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 3px; border-radius: 999px; background: #EEF0F5; overflow: hidden; }
.co-bar span { display: block; height: 100%; width: 0; background: var(--grad); }
.callout[data-kind='touch'] { border: 1.5px solid var(--accent); }
.callout[data-kind='touch'] .co-k::before { content: 'Your turn · '; }

.stage-load { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--page); color: var(--ink-3); font-size: 14px; font-weight: 500; transition: opacity .3s; pointer-events: none; }
.stage-load.is-gone { opacity: 0; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid #D8DEEA; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* the two pills: hand it over / take it back */
.pill {
  position: absolute; z-index: 5; bottom: clamp(14px, 2.2vmin, 24px);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(11,22,53,.88); color: #fff; backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-2);
  transition: opacity .25s, transform .25s var(--ease);
}
.pill-explore { left: clamp(14px, 2.2vmin, 24px); }
.pill-resume { left: 50%; transform: translateX(-50%); background: var(--accent); }
.is-handed .pill-explore, .stage:not(.is-handed) .pill-resume { opacity: 0; pointer-events: none; }
.is-explore .pill { display: none; }

/* --- the coach ----------------------------------------------------------------------- */
.coach { flex: none; width: clamp(320px, 26vw, 400px); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--hairline); padding-bottom: var(--sab); }
.is-explore .coach { display: none; }
.c-progress { flex: none; height: 3px; background: #E8EBF2; }
.c-progress-fill { display: block; height: 100%; width: 0; background: var(--grad); }
.c-main { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: clamp(18px, 2.4vmin, 26px); }
.c-title { margin: 0; font-size: clamp(20px, 2.5vmin, 26px); font-weight: 700; letter-spacing: -.024em; line-height: 1.14; }
.c-say { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.c-soon { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #FDF2E3; color: #8A4B08; font-size: 13px; line-height: 1.4; }

/* what we point at, as a list that fills in */
.beats { margin: clamp(16px,2.2vmin,22px) 0 0; display: grid; gap: 4px; }
.beat { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 8px 8px 8px 6px; border-radius: 12px; cursor: pointer; transition: background .18s; }
.beat:hover { background: var(--page); }
.beat-n { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--page); color: var(--ink-3); font-size: 11.5px; font-weight: 700; transition: background .2s, color .2s; }
.beat-n i { font-style: normal; }
.beat.is-on .beat-n { background: var(--accent); color: #fff; }
.beat.is-done .beat-n { background: var(--accent-tint); color: var(--accent); }
.beat.is-done .beat-n i { font-size: 0; }
.beat.is-done .beat-n::after { content: ''; width: 10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230030DB' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.beat-body { min-width: 0; }
.beat-label { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink-2); line-height: 1.35; transition: color .2s; }
.beat.is-on .beat-label { color: var(--ink); }
.beat.is-done .beat-label { color: var(--ink-3); }
.beat-text { display: none; margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.beat.is-on .beat-text { display: block; }
.beat.is-on { background: var(--page); }
.beat.is-touch .beat-label::after { content: 'your turn'; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }

.c-actions { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px clamp(18px,2.4vmin,26px) clamp(14px,2vmin,20px); border-top: 1px solid var(--hairline); }
.c-actions .ghost { color: var(--ink-2); border-color: var(--hairline); }
.c-actions #cNext { margin-left: auto; }

/* =====================================================================================
   4 · end
   ===================================================================================== */
.view-end { align-items: stretch; }
.e-body { position: relative; z-index: 2; margin: auto 0; max-width: min(94vw, 1100px); }
.e-title { margin: 0; font-size: clamp(30px, 6vmin, 62px); font-weight: 700; letter-spacing: -.032em; line-height: 1.08; max-width: 16ch; }
.e-title span { color: var(--accent); }
.e-sub { margin: 16px 0 0; font-size: clamp(15px, 1.9vmin, 20px); color: var(--ink-2); line-height: 1.5; }
.e-list { margin: clamp(20px,2.8vmin,30px) 0 0; display: grid; gap: 9px; }
.e-list li { display: flex; gap: 10px; align-items: center; font-size: clamp(14px,1.6vmin,16px); color: var(--ink); }
.e-list li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230030DB' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.e-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: clamp(26px,3.4vmin,40px); }
.e-actions .cta { margin: 0; }

/* =====================================================================================
   idle
   ===================================================================================== */
.idle { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(11,22,53,.55); backdrop-filter: blur(3px); }
.idle-card { width: min(92vw, 360px); padding: 26px; border-radius: 20px; text-align: center; background: var(--surface); box-shadow: var(--shadow-3); }
.idle-card p { margin: 0 0 18px; font-size: 20px; font-weight: 650; }
.idle-actions { display: flex; gap: 8px; justify-content: center; }
.idle-card .ghost { color: var(--ink-2); border-color: var(--hairline); }
.idle-bar { margin-top: 18px; height: 3px; border-radius: 999px; background: #E8EBF2; overflow: hidden; }
.idle-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }

/* =====================================================================================
   iPad and phone: the coach becomes a sheet under the product and carries the words
   ===================================================================================== */
@media (max-width: 1080px), (orientation: portrait) and (max-width: 1400px) {
  .t-body { flex-direction: column; }
  /* The product keeps the screen. The coach shrinks to one strip: where we are, which
     thing we are pointing at, back and next. The words float next to the spotlight,
     exactly as on a laptop. */
  .coach {
    width: auto; max-height: none; border-left: 0; border-top: 1px solid var(--hairline);
    display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px;
    padding: 0 clamp(12px,3vw,20px) calc(8px + var(--sab));
  }
  .c-progress { grid-column: 1 / -1; margin: 0 calc(-1 * clamp(12px,3vw,20px)); }
  .c-main { padding: 8px 0 0; overflow: hidden; min-width: 0; }
  .c-kicker { margin: 0; font-size: 10.5px; }
  .c-title { display: none; }
  .c-say, .c-soon { display: none; }
  .beats { margin: 2px 0 0; display: block; }
  .beat { display: none; }
  .beat.is-on { display: grid; grid-template-columns: 22px 1fr; padding: 0; background: none; }
  .beat.is-on .beat-text { display: none; }
  .beat.is-on .beat-label { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .beat.is-touch .beat-label::after { display: none; }
  .c-actions { border-top: 0; padding: 8px 0 0; gap: 6px; }
  .c-actions .ghost.sm { min-height: 40px; padding: 0 12px; }
  .c-actions .cta.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
  .stage { padding: 8px; }
  .callout { max-width: min(320px, 78vw); }
  .callout[data-kind='intro'] { max-width: min(440px, 88vw); }
  .co-t { font-size: 14.5px; }
  .pill { bottom: 10px; min-height: 38px; font-size: 13px; }
  .t-mode { display: none; }                         /* Explore is still on the end screen */
  .a-body { max-width: 94vw; }
}

@media (max-width: 640px) {
  .t-steps { display: none; }
  .callout { max-width: min(300px, 86vw); padding: 12px 14px 12px; }
  .callout .co-a { margin-top: 10px; }
  .t-head { gap: 8px; }
  .seg { width: 100%; }
  .seg-b { flex: 1; padding: 0 12px; }
  .cta, .ghost { min-height: 50px; }
  .mode-opt { grid-template-columns: 38px 1fr; padding: 14px; }
  .callout[data-kind='intro'] { max-width: 92%; padding: 16px 18px 14px; }
  .co-h { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .a-rail-track { animation: none; }
}

/* the guide opening a menu item: words only, no button, no clock */
.callout[data-kind='via'] .co-a, .callout[data-kind='via'] .co-bar, .callout[data-kind='via'] .co-k { display: none; }
.callout[data-kind='via'] { border: 1.5px solid var(--accent); }
.callout[data-kind='via'] .co-t { font-weight: 600; }
.e-actions .cta#eFull { background: var(--accent); color: #fff; }
