/* Sign-up page (devise/registrations/new): a split screen on wide screens (a form alone
   below 1100px). The left half is an
   illustration of the product's one trick (the loupe catching a risky post), drawn in
   `em` so the whole stage scales with its panel (1em = 1/52 of the panel's width). The
   right half is the form. Everything is scoped under .su because stylesheet_link_tag :app
   loads this file on every page. Markup: app/views/devise/registrations/new.html.erb. */

.su { --g-dk: #2A2A2A; --g: #0A0A0A; --g-lt: #BDBDBD; --coral: #FF3B1D; --coral-lt: #FF6A50;
  display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: var(--color-paper); }
@media (min-width: 1100px) { .su { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); } }

/* ---------- the illustration ---------- */
.su-art { display: none; position: relative; overflow: hidden; color: #FFFFFF; padding: 40px clamp(32px, 4.6vw, 72px) 44px;
  background:
    radial-gradient(circle at 78% 22%, rgba(159, 205, 182, .22), rgba(159, 205, 182, 0) 46%),
    radial-gradient(circle at 12% 96%, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 50%),
    var(--g-dk); }
/* the logo's lens ring, huge and faint, running off the corner */
.su-art::before, .su-art::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.su-art::before { width: 820px; height: 820px; right: -380px; top: -300px; border: 56px solid rgba(255, 255, 255, .035); }
.su-art::after { width: 420px; height: 420px; right: -170px; top: -60px; border: 1px solid rgba(255, 255, 255, .09); }
@media (min-width: 1100px) { .su-art { display: flex; } }

.su-art-in { position: relative; z-index: 1; container-type: inline-size; width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }
@media (min-width: 1100px) { .su-art-in { min-height: calc(100dvh - 84px); } }

.su-logo { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: #fff; text-decoration: none; }
.su-logo .pl-wordmark { font-size: 22px; }
.su-pitch { margin: 36px 0 0; max-width: 15em; font: 600 clamp(28px, 3.1vw, 42px)/1.06 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.su-pitch span { color: var(--g-lt); }

/* the stage: 52 x 42 em */
.su-stage { position: relative; width: 52em; max-width: 100%; height: 42em; margin: 30px 0 0; font-size: calc(100cqw / 52); }
.su-eg { margin: 6px 0 0; font: 400 11px/1.4 var(--font-mono); letter-spacing: .02em; color: rgba(255, 255, 255, .5); }

.su-post { position: absolute; left: 0; top: 0; width: 29em; height: 38em; border-radius: 2em; overflow: hidden; background: #1A1A1A;
  box-shadow: 0 3em 5em -2.4em rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); }
.su-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.su-post::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .78)); }
.su-plat { position: absolute; z-index: 1; top: 1.5em; left: 1.5em; display: inline-flex; align-items: center; gap: .5em; padding: .35em .9em; border-radius: 999px; background: rgba(0, 0, 0, .45); font: 600 1.15em/1.3 var(--font-body); color: #fff; }
.su-plat::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; }
.su-time { position: absolute; z-index: 1; top: 1.7em; right: 1.6em; font: 500 1.05em var(--font-mono); color: rgba(255, 255, 255, .9); }
.su-cap { position: absolute; z-index: 1; left: 1.8em; right: 1.8em; bottom: 2.1em; margin: 0; font: 600 1.5em/1.3 var(--font-body); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.su-cap b { display: block; margin-bottom: .2em; font-size: .78em; font-weight: 600; opacity: .85; }
.su-cap mark, .su-glass-text mark { padding: 0 .28em; border-radius: .28em; background: var(--coral); color: #fff; text-shadow: none; box-shadow: 0 0 0 .16em rgba(229, 96, 63, .35); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* the loupe: a thick barrel rim, a bevel, a glint, the verdict engraved around the rim */
.su-loupe { position: absolute; left: 15.5em; top: 21.6em; width: 20em; height: 20em; animation: su-loupe .9s .35s cubic-bezier(.2, .8, .2, 1) both; }
.su-glass { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 2.6em solid #0A0A0A; background: #1A1A1A; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 .2em #3A3A3A, 0 0 0 .6em rgba(10, 10, 10, .15), 0 2.6em 4.4em -1.4em rgba(0, 0, 0, .65); }
.su-glass-bg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(1px) saturate(1.1); }
.su-glass::after { content: ""; position: absolute; inset: 0; background: rgba(20, 18, 16, .45); }
.su-glass-text { position: relative; z-index: 1; margin: 0; padding: 0 1.4em; text-align: center; white-space: normal; text-wrap: balance; font: 600 1.15em/1.25 var(--font-body); letter-spacing: -.015em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.su-glass-text span { display: block; margin-bottom: .35em; font: 500 .62em var(--font-mono); letter-spacing: .02em; color: rgba(255, 255, 255, .72); }
.su-flare { position: absolute; z-index: 2; inset: 2.6em; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 .15em rgba(255, 255, 255, .5), inset 0 0 1.8em rgba(10, 10, 10, .3);
  background: radial-gradient(circle at 27% 24%, rgba(255, 255, 255, .9) 0 2.5%, rgba(255, 255, 255, .45) 6%, rgba(255, 255, 255, 0) 24%),
              linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .26) 40%, rgba(255, 255, 255, .06) 47%, rgba(255, 255, 255, 0) 53%); }
.su-bezel { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.su-bezel text { font: 500 8.6px var(--font-mono); text-transform: uppercase; letter-spacing: .13em; }
.su-bz-top { fill: var(--coral-lt); }
.su-bz-bot { fill: rgba(255, 255, 255, .82); }

/* the verdict card, as in the app */
.su-card { position: absolute; left: 27em; top: 5.2em; width: 17.8em; padding: 1.5em 1.6em 1.6em; border-radius: 1.6em; background: #0A0A0A; color: #FFFFFF; font-size: 1.15em; line-height: 1.45;
  box-shadow: 0 3em 5em -2em rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); animation: su-rise .8s .75s cubic-bezier(.2, .8, .2, 1) both; }
.su-card-top { display: flex; align-items: center; gap: .6em; }
.su-card-top b { font-weight: 700; color: #fff; }
.su-sev { padding: .15em .65em; border-radius: 999px; background: var(--coral-lt); color: #0A0A0A; font: 600 .82em var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.su-card-why { margin: .8em 0 0; color: rgba(255, 255, 255, .78); font-size: .95em; }
.su-card-next { display: flex; flex-wrap: wrap; align-items: center; gap: .7em; margin-top: 1em; padding-top: 1em; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .88em; color: rgba(255, 255, 255, .72); }
.su-card-btn { padding: .4em .85em; border-radius: .6em; background: #FFFFFF; color: #0A0A0A; font-weight: 600; }

/* the clear ones: the point is that most posts need nothing from you */
.su-clear { position: absolute; display: flex; align-items: center; gap: .8em; padding: .95em 1.3em .95em 1.1em; border-radius: 999px; background: #FFFFFF; color: #5E5E5E; font-size: 1.05em; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 1.6em 2.6em -1.4em rgba(0, 0, 0, .55); animation: su-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.su-clear i { flex: none; position: relative; width: 1.7em; height: 1.7em; border-radius: 50%; background: #F0F0F0; }
.su-clear i::after { content: ""; position: absolute; left: .55em; top: .4em; width: .45em; height: .8em; border: solid #0A0A0A; border-width: 0 .18em .18em 0; transform: rotate(45deg); }
.su-clear b { color: #0A0A0A; font-weight: 600; margin-right: .3em; }
.su-clear-1 { left: 33.5em; top: 23em; animation-delay: 1.05s; }
.su-clear-2 { left: 34.5em; top: 28.3em; animation-delay: 1.25s; }

@keyframes su-loupe { from { opacity: 0; transform: scale(.82) translate(-1em, -1em); } to { opacity: 1; transform: none; } }
@keyframes su-rise { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .su-loupe, .su-card, .su-clear { animation: none; } }

/* what happens next */
.su-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: auto 0 0; padding: 28px 0 0; list-style: none; }
.su-stage + .su-eg + .su-steps { margin-top: 36px; }
.su-steps li { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .66); }
.su-steps b { font-size: 14px; font-weight: 600; line-height: 1.25; color: #fff; }
.su-step-n { margin-bottom: 4px; font: 500 12px var(--font-mono); color: var(--g-lt); }

/* ---------- the form ---------- */
.su-form { display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 1100px) { .su-form { min-height: 100dvh; } }

.su-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 14px; color: var(--color-ink-soft); }
.su-bar p { margin: 0; }
.su-bar a { color: var(--color-signal); font-weight: 600; text-decoration: none; }
.su-bar a:hover { text-decoration: underline; }
.su-bar-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--color-ink) !important; }
.su-bar-logo .pl-wordmark { font-size: 20px; }
@media (min-width: 1100px) { .su-bar { justify-content: flex-end; padding: 24px 40px; } .su-bar-logo { display: none; } }

.su-form-in { width: 100%; max-width: 420px; margin: auto; padding: 16px 20px 40px; }
.su-form-in h1 { margin: 0; font: 600 clamp(30px, 3vw, 38px)/1.08 var(--font-display); letter-spacing: -.035em; }
.su-sub { margin: 10px 0 26px; font-size: 15px; color: var(--color-ink-soft); }

.su-free { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; padding: 14px 16px; border: 1px solid var(--color-line-strong); border-radius: 14px; background: var(--color-surface);
  font-size: 13.5px; line-height: 1.4; color: var(--color-ink-soft); text-decoration: none; transition: border-color .15s, transform .15s; }
.su-free b { display: block; margin-bottom: 1px; font-size: 14px; font-weight: 600; color: var(--color-ink); }
.su-free svg { flex: none; color: var(--color-signal); transition: transform .15s; }
.su-free:hover { border-color: var(--color-ink); }
.su-free:hover svg { transform: translateX(3px); }

.su-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 18px 20px; font-size: 12.5px; color: var(--color-ink-faint); }
.su-foot p { margin: 0; }
.su-foot nav { display: flex; gap: 16px; }
.su-foot a { color: inherit; text-decoration: none; }
.su-foot a:hover { color: var(--color-ink); }
@media (min-width: 1100px) { .su-foot { padding: 20px 40px; } }
