/* Ryra onboarding arm "split" (20 Nov 2026): Peekly-style split sign-up card in Ryra's day-sky theme.
   Loaded after horizon.css; same flow, same API calls. Auth screens = card with the sky panel on the left;
   other steps = the same card without the sky panel. */
@font-face { font-family: "Plus Jakarta Sans"; src: url(/home-assets/b/jakarta-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root, [data-theme="light"] { --bg: #E3F2FF; --ink: #0B0F1A; --ink-2: rgba(11, 15, 26, .64); --ink-3: rgba(11, 15, 26, .5); --blue: #2359FF; --sc-gap: clamp(16px, 4.5vh, 52px); }
html { background: linear-gradient(180deg, #4FBFFF 0%, #7FD1FF 24%, #B4E4FF 48%, #DCF2FF 72%, #EAF6FF 100%) fixed; }
body { background: transparent; }
.sky { display: none !important; }

/* page clouds (real Ryra pixel clouds, slow drift) */
.pg-clouds { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pg-clouds i, .sc__art i { position: absolute; display: block; background: var(--img) no-repeat 0 0 / 100% 100%; image-rendering: pixelated;
  width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); will-change: transform;
  animation: sc-drift var(--d, 60s) ease-in-out var(--o, 0s) infinite alternate; }
.ca { --img: url(/__theme/media/hc/px/px-cloud-a.png); --w: 48; --h: 22; }
.cb { --img: url(/__theme/media/hc/px/px-cloud-b.png); --w: 34; --h: 19; }
.cc { --img: url(/__theme/media/hc/px/px-cloud-c.png); --w: 27; --h: 16; }
@keyframes sc-drift { from { transform: translateX(calc(var(--x, 30px) * -1)); } to { transform: translateX(var(--x, 30px)); } }

/* the card */
.sc { position: relative; z-index: 2; width: min(1180px, calc(100% - 48px)); margin: var(--sc-gap) auto; padding: 10px;
  min-height: min(780px, calc(100vh - 2 * var(--sc-gap))); min-height: min(780px, calc(100dvh - 2 * var(--sc-gap)));
  display: grid; grid-template-columns: 1fr 1.06fr; border-radius: 34px;
  background: rgba(255, 255, 255, .38); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 40px 90px -40px rgba(18, 64, 160, .5), 0 2px 0 rgba(255, 255, 255, .6) inset;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sc__art { position: relative; overflow: hidden; border-radius: 26px 0 0 26px;
  background: linear-gradient(180deg, #3AAEFF 0%, #6EC6FF 30%, #A9DFFF 58%, #DDF2FF 82%, #F2FAFF 100%); }
.sc__logo { position: absolute; z-index: 3; top: 46px; left: 50%; transform: translateX(-50%); height: 30px; width: auto; }
.sc__tag { position: absolute; z-index: 3; top: 92px; left: 0; right: 0; margin: 0; text-align: center; font: 600 15px/1.4 "Plus Jakarta Sans", Inter, sans-serif; color: rgba(11, 15, 26, .62); }
.sc__art .spark { position: absolute; width: 4px; height: 4px; background: #fff; box-shadow: 4px 0 #fff, -4px 0 #fff, 0 4px #fff, 0 -4px #fff; opacity: .9; animation: sc-tw 2.6s steps(2) infinite; }
@keyframes sc-tw { 50% { opacity: .2; } }
.sc__main { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 0 26px 26px 0; min-width: 0; }

/* the stage inside the card */
.sc__main .stage { flex: 1; min-height: 0; padding: 64px clamp(24px, 5vw, 76px) 48px; place-items: center; }
.sc__main .view { max-width: 420px; }
[data-scene="auth"] .top { display: none; }
.sc__main .back { position: absolute; top: 22px; left: 24px; z-index: 4; color: var(--ink-2); }

/* type + controls */
[data-scene="auth"] h1 { font: 700 clamp(30px, 3vw, 36px)/1.1 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -.035em; }
[data-scene="auth"] .lead { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.sc .actions { margin: 28px 0 0; max-width: none; gap: 10px; }
.sc .btn { min-height: 52px; border-radius: 14px; font: 600 15.5px/1 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -.01em; }
.btn--google { background: #fff; color: var(--ink); border: 1px solid rgba(11, 15, 26, .14) !important; box-shadow: 0 1px 2px rgba(11, 15, 26, .05); }
.btn--google:hover { background: #F7F9FD; border-color: rgba(11, 15, 26, .22) !important; }
.btn--primary { background: linear-gradient(180deg, #3D6DFF 0%, #2359FF 100%); color: #fff; box-shadow: 0 12px 26px -12px rgba(35, 89, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(35, 89, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary .chev { width: 16px !important; height: 16px !important; margin-left: -2px; transition: transform .2s; }
.btn--primary:hover .chev { transform: translateX(3px); }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(11, 15, 26, .1); }
.sp-form { text-align: left; }
.flab { display: block; margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sc .field { min-height: 52px; margin: 0; max-width: none; padding: 0 16px; border-radius: 14px; background: #F4F6FA; border: 1px solid rgba(11, 15, 26, .08); }
.sc .field input { height: 50px; font-size: 15.5px; }
.sc .field:focus-within { background: #fff; border-color: rgba(35, 89, 255, .55); box-shadow: 0 0 0 4px rgba(35, 89, 255, .12) !important; }
.sp-form .pwrules { justify-content: flex-start; margin: 8px 0 0; font-size: 12.5px; }
.sp-form .btn--primary { margin-top: 20px; }
.fgl { margin: 8px 0 0; text-align: right; font-size: 13.5px; }
.fgl button { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.sc .small { margin-top: 18px; font-size: 14px; }
.sc .small button { color: var(--blue); font-weight: 600; text-decoration: none; }
.sc .legal { margin-top: 14px; font-size: 12px; }
.sc .err { min-height: 18px; margin-top: 10px; font-size: 13.5px; }

/* non-auth steps: same card, no sky panel */
html:not([data-scene="auth"]) .sc { grid-template-columns: 1fr; }
html:not([data-scene="auth"]) .sc__art { display: none; }
html:not([data-scene="auth"]) .sc__main { border-radius: 26px; }
html:not([data-scene="auth"]) .sc__main .stage { padding-top: 88px; }
html:not([data-scene="auth"]) .sc__main .view { max-width: 660px; }

/* phone: sky banner on top, form below */
@media (max-width: 760px) {
  :root { --sc-gap: 8px; }
  .sc { width: calc(100% - 16px); grid-template-columns: 1fr; grid-template-rows: 150px auto; padding: 6px; border-radius: 28px; min-height: calc(100dvh - 16px); }
  .sc__art { border-radius: 22px 22px 0 0; }
  .sc__logo { top: 30px; height: 26px; }
  .sc__tag { top: 70px; font-size: 13.5px; }
  .sc__art i { --s: 2.4 !important; }
  .sc__main { border-radius: 0 0 22px 22px; }
  html:not([data-scene="auth"]) .sc { grid-template-rows: auto; }
  .sc__main .stage { padding: 34px 20px 28px; }
  .sc__main .back { top: 12px; left: 14px; }
  [data-scene="auth"] .sc__main .stage { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .pg-clouds i, .sc__art i, .sc__art .spark { animation: none; } }
/* fit: fields as wide as the Google button, tight gap under OR */
.sc .stack, .sc .sp-form { max-width: none; margin: 0; gap: 0; }
.sc .field--plain { max-width: none; }
.sc .sp-form .flab:first-child { margin-top: 6px; }
.sc .small { margin-top: 10px; }

/* ===== owner 23 Nov: the whole card fits in one screen at every size, no scrolling ===== */
/* the card's top margin leaked through <body> (margin collapsing) and added ~40px of scroll on every screen */
body { display: flow-root; }
/* shorter laptop screens: less air around and inside the card */
@media (min-width: 761px) and (max-height: 820px) {
  :root { --sc-gap: 16px; }
  .sc__main .stage { padding: 44px clamp(24px, 5vw, 76px) 24px; }
}
/* very short screens (desktop + phone): tighter spacing, slightly shorter controls; text and 15.5px inputs unchanged */
@media (max-height: 760px) {
  [data-scene="auth"] h1 { font-size: 28px; }
  [data-scene="auth"] .lead { margin-top: 6px; }
  .sc .actions { margin-top: 16px; }
  .or { margin: 12px 0 2px; }
  .flab { margin: 10px 0 5px; }
  .sc .sp-form .flab:first-child { margin-top: 4px; }
  .sc .field { min-height: 46px; }
  .sc .field input { height: 44px; }
  .sc .btn { min-height: 46px; }
  .sp-form .btn--primary { margin-top: 14px; }
  .sc .err { min-height: 14px; margin-top: 6px; }
  .sc .small { margin-top: 6px; }
  .sc .legal { margin-top: 8px; }
}
@media (min-width: 761px) and (max-height: 700px) {
  :root { --sc-gap: 12px; }
  .sc__main .stage { padding: 36px clamp(24px, 5vw, 76px) 16px; }
  .sc__main .back { top: 12px; }
}
/* short phones: smaller sky banner (logo only) */
@media (max-width: 760px) and (max-height: 760px) {
  .sc { grid-template-rows: 84px auto; }
  .sc__logo { top: 26px; height: 24px; }
  .sc__tag { display: none; }
  .sc__main .stage, [data-scene="auth"] .sc__main .stage { padding: 32px 18px 14px; }
  .sc__main .back { top: 8px; }
}
/* very short phones (≤680px tall, e.g. 360×640) */
@media (max-width: 760px) and (max-height: 680px) {
  .sc { grid-template-rows: 60px auto; }
  .sc__logo { top: 17px; height: 22px; }
  .sc__main .stage, [data-scene="auth"] .sc__main .stage { padding-top: 28px; }
  [data-scene="auth"] h1 { font-size: 26px; }
}

/* owner 23 Nov: iPhone Safari zooms the whole page in when a field under 16px is tapped (the card then spilled off the
   right edge after typing the email). Phone-size screens: 16px text in every field. */
@media (max-width: 760px) {
  .field input, .sc .field input, input[type=email], input[type=password], input[type=text], input:not([type]) { font-size: 16px !important; }
}

/* owner 23 Nov (phone): no blue tap flash on options/buttons; an odd last option sits centred under the row above */
html { -webkit-tap-highlight-color: transparent; }
@media (max-width: 760px) {
  .opts, .opts--3, .opts--4 { display: flex; flex-wrap: wrap; justify-content: center; }
  .opts > .opt { flex: 0 0 calc(50% - 5px); min-width: 0; box-sizing: border-box; }
}
