/* join.css: opening an account with Pedro (join.html). The page is Pedro's stage (the Ultron /
 * JARVIS look of the app's voice screen): near-black, a faint grid, HUD corners, his sphere on top.
 * --sa / --sb are the look's two colours, set on :root by join.js from Assets/js/pedro-stage.js.
 * Reduced motion: everything shows at once, nothing slides (foot of the file).
 */
:root { --sa: 255,156,56; --sb: 255,224,178; --ob-ink: #F4F1EA; --ob-dim: rgba(236,246,255,.62); }

.ob-body { margin: 0; min-height: 100vh; min-height: 100svh; background: #02060c; color: var(--ob-ink); overflow-x: hidden; }
.ob-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(var(--sa), .14), transparent 70%),
    linear-gradient(rgba(var(--sa), .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(var(--sa), .035) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(ellipse at 50% 40%, #07101d 0%, #02060c 72%);
  transition: background .6s ease;
}
.ob-bg i { position: absolute; width: 38px; height: 38px; border: 0 solid rgba(var(--sa), .42); }
.ob-bg .tl { top: max(14px, env(safe-area-inset-top)); left: 14px; border-width: 1px 0 0 1px; }
.ob-bg .tr { top: max(14px, env(safe-area-inset-top)); right: 14px; border-width: 1px 1px 0 0; }
.ob-bg .bl { bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; border-width: 0 0 1px 1px; }
.ob-bg .br { bottom: max(14px, env(safe-area-inset-bottom)); right: 14px; border-width: 0 1px 1px 0; }

.ob-app {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom));
}

/* ── Top: back, progress, language ── */
.ob-top { display: flex; align-items: center; gap: 14px; height: 48px; flex: none; }
.ob-icon {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: rgba(var(--sb), .9); border: 1px solid rgba(var(--sa), .26); background: rgba(3, 10, 20, .55);
  transition: border-color .2s, background .2s;
}
.ob-icon:hover { border-color: rgba(var(--sa), .6); background: rgba(var(--sa), .08); }
.ob-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ob-back[hidden] { display: grid; visibility: hidden; }
.ob-progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(var(--sa), .15); overflow: hidden; }
.ob-progress i {
  display: block; height: 100%; width: var(--p, 0%); border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--sa), .55), rgb(var(--sa))); box-shadow: 0 0 12px rgba(var(--sa), .7);
  transition: width .7s cubic-bezier(.2, .7, .2, 1);
}
.ob-lang {
  display: flex; gap: 6px; align-items: center; padding: 11px 13px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(var(--sa), .26); background: rgba(3, 10, 20, .55);
  font: 600 11px/1 var(--sans); letter-spacing: .14em; color: rgba(var(--sb), .45);
}
.ob-lang b { font-weight: 700; transition: color .2s; }
.ob-lang b.is-on { color: rgb(var(--sa)); }
.ob-sound[hidden] { display: none; }
.ob-sound .off { display: none; }
.ob-sound.is-off .on { display: none; }
.ob-sound.is-off .off { display: block; }
.ob-sound.is-off { color: rgba(var(--sb), .45); }

/* ── Pedro's sphere ── */
.ob-main { flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 0; padding-top: 6px; }
.ob-orb {
  width: 112px; height: 112px; flex: none;
  transition: width .8s cubic-bezier(.2, .7, .2, 1), height .8s cubic-bezier(.2, .7, .2, 1);
}
.ob-orb canvas { display: block; width: 100%; height: 100%; }
.ob-app[data-type="intro"] .ob-orb, .ob-app[data-type="done"] .ob-orb { width: min(70vw, 300px); height: min(70vw, 300px); }
/* The summary is the longest screen: a smaller sphere leaves the card room. */
.ob-app[data-type="summary"] .ob-orb { width: 84px; height: 84px; }
.ob-app[data-type="summary"] .ob-body-a { margin-top: 18px; }

/* ── A step ── */
.ob-step { position: relative; width: 100%; flex: 1; display: grid; padding: 0; } /* a <section>: cpi-elite.css pads every section */
.ob-s {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 6px;
  opacity: 0; transform: translateX(26px);
}
.ob-s.from-left { transform: translateX(-26px); }
.ob-s.is-in { opacity: 1; transform: none; transition: opacity .45s ease .06s, transform .6s cubic-bezier(.2, .7, .2, 1) .06s; }
.ob-s.is-leaving { opacity: 0; transform: translateX(-26px); transition: opacity .22s ease, transform .3s ease; pointer-events: none; }
.ob-s.is-leaving.to-right { transform: translateX(26px); }

.ob-q {
  margin: 4px 0 0; font-family: var(--sans); font-weight: 600; letter-spacing: -.025em; color: var(--ob-ink);
  font-size: clamp(30px, 8.4vw, 44px); line-height: 1.07;
}
.ob-q em {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  font-size: 1.14em; line-height: 1.02; color: rgb(var(--sa)); text-shadow: 0 0 26px rgba(var(--sa), .35);
}
.ob-app[data-type="intro"] .ob-q, .ob-app[data-type="done"] .ob-q { font-size: clamp(34px, 9.6vw, 52px); margin-top: -8px; }
/* The words roll up into place, one after another. */
.rw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.rw > span { display: inline-block; transform: translateY(108%); opacity: 0; }
.ob-s.is-in .rw > span { transform: none; opacity: 1; transition: transform .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), opacity .5s ease var(--d, 0s); }
.ob-s.is-landed .rw { overflow: visible; }  /* clipped only while rising, so the italic line's glow is not cut into boxes */

.ob-body-a { width: 100%; margin-top: 26px; }

/* Answers */
.ob-opts { display: grid; gap: 10px; }
.ob-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 12px 14px 12px 12px;
  border-radius: 18px; text-align: left; cursor: pointer; color: var(--ob-ink); font: 500 15.5px/1.35 var(--sans);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  border: 1px solid rgba(var(--sa), .18);
  opacity: 0; transform: translateY(14px);
  transition: border-color .2s, background .2s, box-shadow .25s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.ob-s.is-in .ob-opt {
  opacity: 1; transform: none;
  transition: opacity .5s ease var(--d), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d), border-color .2s, background .2s, box-shadow .25s;
}
.ob-opt:hover { border-color: rgba(var(--sa), .5); background: rgba(var(--sa), .07); }
.ob-opt:active { transform: scale(.985); }
.ob-opt:focus-visible { outline: 2px solid rgb(var(--sa)); outline-offset: 2px; }
.ob-opt[aria-checked="true"] {
  border-color: rgb(var(--sa)); background: rgba(var(--sa), .13);
  box-shadow: 0 0 0 1px rgba(var(--sa), .45), 0 12px 32px -14px rgba(var(--sa), .6);
}
.ob-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--sa), .1); color: rgb(var(--sa)); }
.ob-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ob-ico:empty { display: none; }
.ob-opt-t { flex: 1; }
.ob-tick {
  width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(var(--sa), .35); transition: background .2s, border-color .2s, transform .25s;
}
.ob-tick svg { width: 14px; height: 14px; fill: none; stroke: #0b0703; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.ob-opt[aria-checked="true"] .ob-tick { background: rgb(var(--sa)); border-color: rgb(var(--sa)); transform: scale(1.08); }
.ob-opt[aria-checked="true"] .ob-tick svg { opacity: 1; }
.ob-s-single .ob-opt .ob-tick { border-radius: 50%; }

/* Text fields */
.ob-field {
  display: block; text-align: left; padding: 13px 18px 14px; border-radius: 18px; cursor: text;
  border: 1px solid rgba(var(--sa), .3); background: rgba(3, 10, 20, .6);
  transition: border-color .2s, box-shadow .25s;
}
.ob-field:focus-within { border-color: rgb(var(--sa)); box-shadow: 0 0 0 4px rgba(var(--sa), .12), 0 0 34px -10px rgba(var(--sa), .6); }
.ob-field-l { display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--sb), .62); }
.ob-field input {
  width: 100%; margin-top: 9px; border: 0; outline: 0; background: transparent; color: #fff;
  font: 400 22px/1.3 var(--sans); caret-color: rgb(var(--sa)); padding: 0;
}
.ob-field input::placeholder { color: rgba(255, 255, 255, .26); }
.ob-err { min-height: 18px; margin: 8px 0 0; font-size: 13px; color: #ff9f8a; text-align: left; }
.ob-consent { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: rgba(236, 246, 255, .52); }
.ob-consent a { color: rgba(var(--sb), .9); text-decoration: underline; text-underline-offset: 2px; }

/* The code: one real input under six boxes */
.ob-code { position: relative; cursor: text; }
.ob-code input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: 0; z-index: 1; }
.ob-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ob-boxes i {
  height: 62px; border-radius: 14px; display: grid; place-items: center; font: 500 26px/1 var(--sans); font-style: normal; color: #fff;
  border: 1px solid rgba(var(--sa), .28); background: rgba(3, 10, 20, .6); transition: border-color .2s, box-shadow .2s;
}
.ob-boxes i.is-on { border-color: rgb(var(--sa)); box-shadow: 0 0 0 3px rgba(var(--sa), .14); animation: ob-caret 1.1s ease-in-out infinite; }
.ob-boxes.is-long { gap: 6px; }  /* eight digits on a phone */
.ob-boxes.is-long i { height: 56px; font-size: 22px; border-radius: 12px; }
@keyframes ob-caret { 50% { box-shadow: 0 0 0 3px rgba(var(--sa), .04); } }
.ob-sent { margin: 12px 0 0; font-size: 13px; color: rgba(236, 246, 255, .55); }
.ob-code-links { margin-top: 12px; display: flex; gap: 10px; justify-content: center; color: rgba(236, 246, 255, .35); }

.ob-link {
  background: none; border: 0; padding: 4px 2px; cursor: pointer; color: rgba(var(--sb), .85);
  font: 500 13px/1.3 var(--sans); text-decoration: underline; text-underline-offset: 3px;
}
.ob-link:hover { color: rgb(var(--sa)); }
.ob-signin { margin-top: 22px; }

/* The summary card */
.ob-sum {
  border-radius: 22px; padding: 4px 18px; text-align: left;
  border: 1px solid rgba(var(--sa), .26); background: linear-gradient(180deg, rgba(var(--sa), .09), rgba(3, 10, 20, .65));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ob-row {
  display: grid; grid-template-columns: 24px 1fr auto; column-gap: 12px; row-gap: 2px; align-items: start;
  padding: 10px 0; border-bottom: 1px solid rgba(var(--sa), .12); opacity: 0; transform: translateY(10px);
}
.ob-row:last-child { border-bottom: 0; }
.ob-s.is-in .ob-row { opacity: 1; transform: none; transition: opacity .5s ease var(--d), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d); }
.ob-row-tick { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--sa), .16); }
.ob-row-tick svg { width: 13px; height: 13px; fill: none; stroke: rgb(var(--sa)); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.ob-s.is-in .ob-row-tick svg { stroke-dashoffset: 0; transition: stroke-dashoffset .5s ease calc(var(--d) + .25s); }
.ob-row-k { font: 600 10.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--sb), .6); }
.ob-row-v { grid-column: 2; font: 500 15px/1.4 var(--sans); color: var(--ob-ink); }
.ob-row.is-key .ob-row-v { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 23px; color: rgb(var(--sa)); line-height: 1.15; }
.ob-edit { grid-column: 3; grid-row: 1 / span 2; align-self: center; background: none; border: 0; cursor: pointer; font: 500 12px var(--sans); color: rgba(var(--sb), .7); text-decoration: underline; text-underline-offset: 3px; }

.ob-why {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; cursor: pointer;
  background: none; border: 0; color: rgba(var(--sb), .72); font: 500 13px var(--sans); transition: color .2s, background .2s;
}
.ob-why svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ob-why:hover { color: rgb(var(--sa)); background: rgba(var(--sa), .08); }

/* ── Bottom: Pedro's line, Ask Pedro, the button ── */
.ob-foot {
  position: sticky; bottom: 0; z-index: 2; flex: none; display: flex; flex-direction: column; gap: 12px;
  padding-top: 18px; margin-top: 12px; background: linear-gradient(180deg, rgba(2, 6, 12, 0), #02060c 18px);
}
.ob-say { display: flex; align-items: flex-start; gap: 12px; min-height: 50px; }
/* "Tap to hear Pedro": browsers keep a page silent until a tap, so the first line is offered, not forced. */
.ob-hear {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(var(--sa), .55); background: rgba(var(--sa), .12); color: rgb(var(--sb)); font: 600 12.5px var(--sans);
  box-shadow: 0 0 0 0 rgba(var(--sa), .45); animation: ob-hear 2.2s ease-out infinite;
}
.ob-hear[hidden] { display: none; }
.ob-hear svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ob-hear { 0% { box-shadow: 0 0 0 0 rgba(var(--sa), .45); } 70% { box-shadow: 0 0 0 10px rgba(var(--sa), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--sa), 0); } }
.ob-say-t { flex: 1; margin: 0; font: 400 15.5px/1.55 var(--sans); color: rgba(236, 246, 255, .94); }
.sw { opacity: 0; border-radius: 5px; padding: 1px 2px; margin: 0 -2px; transition: opacity .28s ease, color .25s ease, background .25s ease, box-shadow .25s ease; }
.sw.on { opacity: 1; }
.sw.now { color: #140c02; background: rgb(var(--sa)); box-shadow: 0 0 16px rgba(var(--sa), .65); }
.ob-ask {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(var(--sa), .36); background: rgba(var(--sa), .08); color: rgb(var(--sb)); font: 600 12px var(--sans);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.ob-ask svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.ob-ask:hover { background: rgba(var(--sa), .16); border-color: rgba(var(--sa), .7); box-shadow: 0 0 18px -6px rgba(var(--sa), .8); }
.ob-next {
  width: 100%; height: 56px; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(180deg, rgb(var(--sb)), rgb(var(--sa))); color: #170e02;
  font: 700 15px var(--sans); letter-spacing: .02em; box-shadow: 0 14px 32px -14px rgba(var(--sa), .85);
  transition: opacity .25s, transform .15s, box-shadow .25s;
}
.ob-next[hidden] { display: none; }
.ob-next:disabled { opacity: .3; box-shadow: none; cursor: default; }
.ob-next:active:not(:disabled) { transform: scale(.985); }
.ob-next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ob-next.is-busy .ob-next-t::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: ob-dots 1.2s steps(4) infinite; }
@keyframes ob-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.ob-alt { align-self: center; padding: 4px; font: 600 13px var(--sans); color: rgba(var(--sb), .85); text-decoration: underline; text-underline-offset: 3px; }
.ob-alt[hidden] { display: none; }

/* ── Ask Pedro: a sheet over the sign-up ── */
.ob-sheet { position: fixed; inset: 0; z-index: 50; }
.ob-sheet[hidden] { display: none; }
.ob-sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .58); opacity: 0; transition: opacity .3s ease; }
.ob-sheet.is-open .ob-sheet-scrim { opacity: 1; }
.ob-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; height: min(80svh, 700px);
  display: flex; overflow: hidden; border-radius: 26px 26px 0 0; background: #050b16;
  border: 1px solid rgba(var(--sa), .26); border-bottom: 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .85), 0 0 44px -12px rgba(var(--sa), .35);
  transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .7, .2, 1);
}
.ob-sheet.is-open .ob-sheet-panel { transform: none; }
html.ob-lock, html.ob-lock body { overflow: hidden; }

/* ── Pedro's screen after sign-up ── */
.ob-chat { position: fixed; inset: 0; z-index: 60; background: #02060c; opacity: 0; transform: scale(1.02); transition: opacity .45s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.ob-chat[hidden] { display: none; }
.ob-chat.is-open { opacity: 1; transform: none; }

/* ── The preview note ── */
.ob-preview {
  position: fixed; z-index: 70; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%);
  width: min(540px, calc(100% - 24px)); display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px 10px 14px;
  border-radius: 14px; border: 1px solid rgba(var(--sa), .45); background: rgba(34, 22, 6, .94); color: rgb(var(--sb));
  font: 500 12px/1.5 var(--sans); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
}
.ob-preview[hidden] { display: none; }
.ob-preview-t { flex: 1; }
.ob-preview-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(var(--sa), .15); color: rgb(var(--sb)); font-size: 18px; line-height: 1; cursor: pointer; }
.ob-noscript { position: relative; z-index: 2; max-width: 480px; margin: 40vh auto 0; text-align: center; color: var(--ob-dim); }
.ob-noscript a { color: rgb(var(--sa)); }

/* ── Larger screens: the same column, a little more air ── */
@media (min-width: 900px) {
  .ob-app { max-width: 600px; padding-top: 28px; }
  .ob-orb { width: 128px; height: 128px; }
  .ob-app[data-type="intro"] .ob-orb, .ob-app[data-type="done"] .ob-orb { width: 330px; height: 330px; }
  .ob-q { font-size: 46px; }
  .ob-app[data-type="intro"] .ob-q, .ob-app[data-type="done"] .ob-q { font-size: 56px; }
  .ob-bg i { width: 56px; height: 56px; }
  .ob-app[data-step="goals"] .ob-opts { grid-template-columns: 1fr 1fr; }
}
@media (max-height: 700px) {
  .ob-orb { width: 88px; height: 88px; }
  .ob-app[data-type="intro"] .ob-orb, .ob-app[data-type="done"] .ob-orb { width: min(56vw, 220px); height: min(56vw, 220px); }
  .ob-opt { min-height: 54px; padding-top: 9px; padding-bottom: 9px; }
  .ob-body-a { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-s, .ob-s.from-left, .ob-s.is-in, .ob-s.is-leaving { transition: none; transform: none; }
  .rw > span, .ob-opt, .ob-row { opacity: 1; transform: none; transition: none; }
  .ob-row-tick svg { stroke-dashoffset: 0; transition: none; }
  .sw { opacity: 1; transition: none; }
  .ob-orb, .ob-progress i, .ob-sheet-panel, .ob-sheet-scrim, .ob-chat { transition: none; }
  .ob-boxes i.is-on { animation: none; }
  .ob-hear { animation: none; }
}
