/* /onboarding offer page: the trial offer and the email first, a demo one tap away, then the card on a Mac.
   Tokens, buttons and tags come from /brand.css, app windows from /brand-app.css, section layouts (quotes,
   try-a-job, workflows, FAQ, sticky CTA) from /home.css.
   Built by scripts/onboarding/build.py. Phone first: most visitors arrive from an ad in an in-app browser. */

[hidden]{display:none!important}

/* top bar: logo and sign-in only, so the page has one thing to do */
.ob-top{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 var(--gutter)}
.ob-logo img{display:block;height:19px;width:auto}
.ob-signin{font-size:13px;color:var(--ink2);padding:12px 0 12px 12px}
.ob-signin:hover{color:var(--ink)}

/* hero: copy and the start card on the left, the demo panel on the right */
.ob-hero{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:56px;align-items:center;min-height:max(720px,100vh);padding:88px var(--gutter) 56px}
.ob-copy{position:relative;z-index:2}
.ob-hero h1{font-size:34px;line-height:1.12;letter-spacing:-.03em;margin-top:14px}
.ob-sub{font-size:16px;line-height:1.5;color:var(--ink2);margin-top:12px}

/* demo: a panel beside the form on wide screens. At 1099px and below it opens over the page instead
   (media query at the end). Before a click the panel shows the reel's first frame with a play button. */
.ob-stage{--dm-h:max(520px,min(640px,72vh));position:relative;height:var(--dm-h);border:1px solid var(--line);border-radius:var(--r-surface);background:var(--app-card);overflow:hidden}
.dm-head,.dm-bar,.dm-side b,.dm-side span{display:none}
.dm-rest{appearance:none;border:0;position:absolute;inset:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--app-card);color:var(--ink);font:400 15px var(--sans);cursor:pointer}
.dm-rest small{font-size:13px;color:var(--ink2)}
.dm-poster{position:relative;height:66%;aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:#000}
.dm-poster img{width:100%;height:100%;object-fit:cover;display:block}
.dm-poster::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.45)}
.dm-play{position:absolute;left:50%;top:50%;z-index:1;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:#fff;color:#050505;display:grid;place-items:center}
.dm-play svg{width:20px;height:20px}
.dm-run{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;height:100%;padding:22px}
.dm[data-state="rest"] .dm-run{visibility:hidden}
.dm[data-state="run"] .dm-rest{display:none}
.dm-chat{display:flex;flex-direction:column;gap:14px;min-height:0;overflow-y:auto;scrollbar-width:none}
.dm-chat::-webkit-scrollbar{display:none}
.dm-chat>*{flex:none}
.dm-card{padding:12px;border:1px solid var(--line);border-radius:var(--r-surface);background:var(--app-well);display:flex;flex-direction:column;gap:10px}
.dm-label{font-size:12px;color:var(--ink2)}
.dm-thumbs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.dm-thumbs img,.dm-more{width:100%;height:auto;aspect-ratio:9/16;border-radius:4px;object-fit:cover;display:block;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s}
.dm-more{display:grid;place-items:center;background:var(--app-card);border:1px solid var(--line);font-size:11px;color:var(--ink2)}
.dm-thumbs [data-on]{opacity:1;transform:none}
.dm-prog{height:3px;border-radius:2px;background:var(--line);overflow:hidden}
.dm-prog i{display:block;height:100%;width:0;background:var(--teal-light);transition:width 1.05s linear}
.dm-cap{font-size:12.5px;color:var(--ink2);min-height:19px}
.dm-cap span,.dm-user{opacity:0;transition:opacity .3s}
.dm-cap span[data-on],.dm-user[data-on]{opacity:1}
.dm-user{align-self:flex-end;max-width:88%;padding:10px 12px;border-radius:10px 10px 2px 10px;background:var(--ink);color:#050505;font-size:14px;line-height:1.4;min-height:40px}
.dm-user:not([data-on]){display:none}
.dm-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.dm-steps li{display:none;grid-template-columns:16px minmax(0,1fr);gap:9px;align-items:start}
.dm-steps li[data-s]{display:grid}
.dm-steps b{display:block;font-weight:400;font-size:14px;color:var(--ink)}
.dm-steps p{font-size:12.5px;color:var(--ink2);margin-top:2px}
.dm-steps svg{display:none;margin-top:4px;color:var(--teal-light)}
.dm-spin{display:block;width:13px;height:13px;margin-top:4px;border-radius:50%;border:1.5px solid var(--line-strong);border-top-color:var(--ink);animation:dm-spin .8s linear infinite}
.dm-steps li[data-s="done"] .dm-spin{display:none}
.dm-steps li[data-s="done"] svg{display:block}
.dm-beats{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.dm-beats i{font-style:normal;font-size:11.5px;padding:3px 7px;border-radius:var(--r-tag);border:1px solid var(--line-strong);color:var(--ink);opacity:0;transition:opacity .25s}
.dm-beats i[data-on]{opacity:1}
@keyframes dm-spin{to{transform:rotate(360deg)}}
/* the reel has its own slot, sized from the panel's height: visible while the steps run, filled at the end */
.dm-final{display:flex;flex-direction:column;gap:10px}
.dm-slot{position:relative;height:calc(var(--dm-h) - 88px);width:calc((var(--dm-h) - 88px) * 9 / 16);border-radius:10px;border:1px dashed var(--line-strong);display:grid;place-items:center;font-size:12.5px;color:var(--ink3);overflow:hidden}
.dm-slot video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;opacity:0;transition:opacity .35s}
.dm-final[data-on] .dm-slot{border-color:transparent}
.dm-final[data-on] .dm-slot video{opacity:1}
.dm-side{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dm-side button{appearance:none;height:34px;border-radius:var(--r-control);border:1px solid var(--line-strong);background:transparent;color:var(--ink);font:400 12.5px var(--sans);cursor:pointer}
.dm-side button:hover{background:rgba(255,255,255,.06)}
@media (prefers-reduced-motion:reduce){.dm-spin{animation:none}.dm-prog i,.dm-thumbs img,.dm-more,.dm-slot video{transition:none}}

/* start card: Mac app v2 graphite card with recessed inputs */
.ob-card{margin-top:22px;padding:18px;background:var(--app-card);border:1px solid var(--line);border-radius:var(--r-surface);box-shadow:var(--app-card-shadow);scroll-margin-top:72px}
.ob-card [data-view]{display:none}
.ob-card[data-state="email"] [data-view="email"],
.ob-card[data-state="mac"] [data-view="mac"],
.ob-card[data-state="when"] [data-view="when"],
.ob-card[data-state="nomac"] [data-view="nomac"],
.ob-card[data-state="handoff"] [data-view="handoff"],
.ob-card[data-state="pay"] [data-view="pay"],
.ob-card[data-state="reactivate"] [data-view="reactivate"],
.ob-card[data-state="waitlist"] [data-view="waitlist"],
.ob-card[data-state="signin"] [data-view="signin"],
.ob-card[data-state="done"] [data-view="done"]{display:block}
.ob-card h2{font-size:22px;line-height:1.25;letter-spacing:-.02em}
.ob-card h2+p{font-size:14px;line-height:1.5;color:var(--ink2);margin-top:6px}
.ob-form{display:flex;flex-direction:column;gap:10px}
.ob-card h2~.ob-form,.ob-card h2~.ob-pay{margin-top:16px}
.ob-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* 16px text stops iOS zooming the page on focus; 48px rows are easy thumb targets */
.ob-input{width:100%;height:48px;padding:0 14px;background:var(--app-well);border:1px solid var(--line-strong);border-radius:var(--r-control);color:var(--ink);font:400 16px var(--sans);outline:none;transition:border-color .2s}
.ob-input::placeholder{color:var(--ink3)}
.ob-input:focus{border-color:rgba(255,255,255,.55)}
.ob-cta.wf-btn{width:100%;height:48px;font-size:15px}
.ob-err{min-height:0;font-size:13px;line-height:1.4;color:var(--danger)}
.ob-err:empty{display:none}
/* the second button opens the demo; the line above the form appears once the reel is playing */
.ob-watch{margin-top:10px}
.ob-watch svg{flex:none}
.ob-ask{font-size:15px;line-height:1.4;color:var(--ink);margin-bottom:12px}
.ob-note{font-size:13px;line-height:1.5;color:var(--ink3);margin-top:10px}
.ob-note a,.ob-linkbtn{color:var(--ink2);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.25)}
.ob-linkbtn{appearance:none;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.ob-note a:hover,.ob-linkbtn:hover{color:var(--ink)}
html:not(.on-phone) [data-phone]{display:none!important}
html.on-phone [data-mac]{display:none!important}

/* not on a Mac: the Mac question, when they will next be at it, and getting the link there */
.ob-kicker{font-size:13px;line-height:1.4;color:var(--ink2);margin-bottom:8px}
.ob-kicker-gap{margin-top:18px}
.ob-lede{font-size:14px;line-height:1.5;color:var(--ink2);margin-top:6px}
.ob-yn{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.ob-yn .wf-btn{height:56px;font-size:16px}
.ob-two{list-style:none;margin:14px 0 0;padding:0;border:1px solid var(--line);border-radius:var(--r-control);background:var(--app-well)}
.ob-two li{display:grid;grid-template-columns:44px 1fr;gap:10px;padding:10px 12px;font-size:13.5px;line-height:1.45;color:var(--ink2)}
.ob-two li+li{border-top:1px solid var(--line)}
.ob-two b{font-weight:500;color:var(--teal-light)}
.ob-opts{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.ob-opt{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:0 14px;border-radius:var(--r-control);border:1px solid var(--line-strong);background:transparent;color:var(--ink);font:400 15px var(--sans);text-align:left;cursor:pointer}
.ob-opt:hover,.ob-days button:hover,.ob-chips button:hover{background:rgba(255,255,255,.06)}
.ob-opt span{font-size:12.5px;color:var(--ink2);white-space:nowrap}
.ob-opt:disabled,.ob-days button:disabled{opacity:.45;cursor:not-allowed}
.ob-days,.ob-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ob-days button,.ob-chips button{appearance:none;height:40px;padding:0 14px;border-radius:var(--r-control);border:1px solid var(--line-strong);background:transparent;color:var(--ink);font:400 14px var(--sans);cursor:pointer}
.ob-chips button[aria-pressed="true"]{border-color:#fff;background:var(--app-selected)}
.ob-share{display:flex;flex-direction:column;gap:10px;margin-top:16px}

/* card step: who is signing up, what happens when, then the card */
.ob-who{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:13px;color:var(--ink2)}
.ob-who span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ob-tl{list-style:none;margin:14px 0 0;padding:0;border:1px solid var(--line);border-radius:var(--r-control);background:var(--app-well)}
.ob-tl li{display:grid;grid-template-columns:72px 1fr;gap:10px;padding:10px 12px;font-size:13px;line-height:1.45;color:var(--ink2)}
.ob-tl li+li{border-top:1px solid var(--line)}
.ob-tl b{font-weight:500;color:var(--ink)}
.ob-pay{display:flex;flex-direction:column;gap:12px}
.ob-pe{min-height:120px}
.ob-pe-ph{display:grid;place-items:center;min-height:150px;border:1px dashed var(--line-strong);border-radius:var(--r-control);font-size:13px;color:var(--ink3);text-align:center;padding:12px}
.ob-secure{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--ink3)}

/* waitlist picker */
.ob-seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ob-seg label{display:flex;align-items:center;justify-content:center;height:44px;border:1px solid var(--line);border-radius:var(--r-control);font-size:14px;color:var(--ink2);cursor:pointer}
.ob-seg input{position:absolute;opacity:0;pointer-events:none}
.ob-seg input:checked+span{color:var(--ink)}
.ob-seg label:has(input:checked){border-color:#fff;background:var(--app-selected)}

/* success */
.ob-next{list-style:none;margin:16px 0 0;padding:0;counter-reset:n;display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:1.5;color:var(--ink2)}
.ob-next li{counter-increment:n;display:grid;grid-template-columns:24px 1fr;gap:10px}
.ob-next li::before{content:counter(n);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--app-well);border:1px solid var(--line-strong);font-size:12px;color:var(--ink)}
.ob-next b{font-weight:500;color:var(--ink)}
.ob-done-cta{margin-top:16px}

/* proof row and sections below the hero reuse home.css; these trim the gaps for a single-purpose page */
.ob-proof{display:flex;justify-content:center;padding:0 var(--gutter)}
.ob-sell .quotes{margin-top:28px}
.ob-sell .tryjob{margin-top:112px}
.ob-sell section.ucs{padding-top:112px}
.ob-sell .uc{margin-bottom:72px}
.ob-sell .uc-sk:empty{display:none}
.ob-steps{display:grid;grid-template-columns:300px 1fr;gap:64px;margin:40px var(--gutter) 0}
.ob-steps h3{font-size:22px;line-height:1.25}
.ob-steps ol{list-style:none;margin:0;padding:0;max-width:720px;counter-reset:s}
.ob-steps li{counter-increment:s;display:grid;grid-template-columns:28px 1fr;gap:14px;padding:16px 0;border-top:1px solid var(--line)}
.ob-steps li:last-child{border-bottom:1px solid var(--line)}
.ob-steps li::before{content:counter(s);font-size:13px;color:var(--ink3);padding-top:2px}
.ob-steps b{display:block;font-weight:400;font-size:15px;color:var(--ink)}
.ob-steps span{display:block;font-size:14px;line-height:1.55;color:var(--ink2);margin-top:2px}
.ob-sell section.faq{margin-top:112px}
.ob-final{margin:112px var(--gutter) 0;padding:48px 24px;text-align:center;border:1px solid var(--line);border-radius:var(--r-surface);background:var(--glass)}
.ob-final h2{font-size:28px;line-height:1.2}
.ob-final p{font-size:15px;color:var(--ink2);margin-top:8px}
.ob-final .wf-btn{margin-top:20px;height:44px;padding:0 22px;font-size:15px}
.ob-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;margin-top:72px;padding:24px var(--gutter) 28px;border-top:1px solid var(--line);font-size:12px;color:var(--ink3)}
.ob-foot nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.ob-foot a:hover{color:var(--ink)}

/* after the trial starts (or on sign-in) the page is only the card */
body[data-mode="focus"] .ob-sell,body[data-mode="focus"] .ob-lead,body[data-mode="focus"] .sticky-cta{display:none}
body[data-mode="focus"] .ob-hero{grid-template-columns:minmax(0,460px);justify-content:center;min-height:100vh}
body[data-mode="focus"] .ob-stage{display:none}
body[data-mode="focus"] .ob-card{margin-top:0}

/* narrow screens: one column, and the demo opens over the page with the email bar pinned under it */
@media (max-width:1099px){
  .ob-hero{grid-template-columns:1fr;gap:0;min-height:auto;padding:72px var(--gutter) 0}
  .ob-copy{max-width:520px}
  .ob-stage{display:none;position:fixed;inset:0;z-index:60;height:auto;border:0;border-radius:0;background:var(--bg);flex-direction:column}
  .dm[data-state="run"]{display:flex}
  body[data-demo="open"]{overflow:hidden}
  .dm-rest{display:none}
  .dm-head{flex:none;display:flex;align-items:center;justify-content:space-between;box-sizing:content-box;height:46px;padding:env(safe-area-inset-top,0px) 10px 0;border-bottom:1px solid var(--line)}
  .dm-head span{font-size:13px;color:var(--ink2)}
  .dm-head button{appearance:none;background:none;border:0;padding:10px;font:400 14px var(--sans);color:var(--ink2);cursor:pointer}
  .dm-run{flex:1;min-height:0;display:flex;flex-direction:column;gap:14px;width:100%;max-width:560px;height:auto;margin:0 auto;padding:14px 16px 18px;overflow-y:auto}
  .dm-run>*{flex:none}
  .dm-chat{overflow:visible}
  .dm-card{background:var(--app-card)}
  .dm-final{display:none;flex-direction:row;gap:12px;align-items:flex-start}
  .dm-final[data-on]{display:flex}
  .dm-slot{flex:none;width:min(56%,260px);height:auto;aspect-ratio:9/16;border:0}
  .dm-side{flex:1;display:flex;flex-direction:column;gap:8px;font-size:12.5px;line-height:1.4;color:var(--ink2)}
  .dm-side b{display:block;font-weight:400;font-size:14px;color:var(--ink)}
  .dm-side span{display:block}
  .dm-side button{height:40px;font-size:13.5px}
  .dm-bar{flex:none;display:flex;flex-direction:column;gap:7px;padding:10px 12px calc(12px + env(safe-area-inset-bottom,0px));background:var(--app-card);border-top:1px solid var(--line-strong)}
  .dm-bar-h{font-size:14px;color:var(--ink);text-align:center}
  .dm-bar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%;max-width:560px;margin:0 auto}
  .dm-bar .ob-input,.dm-bar .wf-btn{height:46px}
  .dm-bar .wf-btn{padding:0 14px;font-size:14px}
  .dm-bar .ob-note{margin-top:0;text-align:center;font-size:12px}
  .dm-bar .ob-err{text-align:center}
}
@media (max-width:900px){
  .ob-hero h1{font-size:30px;margin-top:12px}
  .ob-sub{font-size:15px}
  .ob-card{margin-top:18px;padding:16px}
  .ob-sell .quotes{margin-top:20px}
  .ob-sell .tryjob,.ob-sell section.faq{margin-top:80px}
  .ob-sell section.ucs{padding-top:80px}
  .ob-proof{margin-top:40px;justify-content:flex-start}
  .ob-steps{grid-template-columns:1fr;gap:16px;margin-top:8px}
  .ob-final{margin-top:80px;padding:36px 20px}
  .ob-foot{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  body[data-mode="focus"] .ob-hero{min-height:auto;padding-bottom:48px}
  /* on a phone the card step gets the whole screen: no headline above it */
  body[data-card="pay"] .ob-lead{display:none}
  body[data-card="pay"] .ob-card{margin-top:0}
}
@media (min-width:901px){.ob-proof{margin-top:8px}}
