/* ================================================================
   ABC Role Select — ARTBUILD OS
   Single-purpose onboarding screen. Premium glass, no nav/tabs.
   Class prefix: .ars
   ================================================================ */

.ars {
  --ars-bg:        #0a0d13;
  --ars-bg-2:      #0d1119;
  --ars-text:      #eaeef6;
  --ars-muted:     #93a0b5;
  --ars-dim:       #6b7689;

  --ars-orange:    #f97316;
  --ars-orange-2:  #fb923c;
  --ars-green:     #22c55e;

  --ars-font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ars-font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --ars-radius:    18px;
  --ars-radius-sm: 12px;

  min-height: 100vh;
  width: auto;
  max-width: none !important;
  margin-left: calc(var(--wp--style--root--padding-left, 0px) * -1);
  margin-right: calc(var(--wp--style--root--padding-right, 0px) * -1);
  overflow-x: clip;

  display: flex;
  align-items: center;

  background:
    radial-gradient(900px 600px at 12% -10%, rgba(249, 115, 22, .10), transparent 60%),
    radial-gradient(700px 520px at 92% 8%, rgba(56, 189, 248, .07), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(34, 197, 94, .06), transparent 60%),
    var(--ars-bg);

  color: var(--ars-text);
  font-family: var(--ars-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;

  padding: 56px 0;
}

.ars *,
.ars *::before,
.ars *::after { box-sizing: border-box; }

.ars ul { margin: 0; padding: 0; list-style: none; }
.ars h1, .ars h2, .ars p { margin: 0; }

.ars :focus-visible {
  outline: 2px solid var(--ars-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.ars-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.ars-i { flex: none; }

/* ---------------------------------------------------------------- */
/* Glass primitive — same recipe as the landing page                */
/* ---------------------------------------------------------------- */

.ars-glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 24px 48px -24px rgba(0, 0, 0, .6);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, border-color .28s ease;
}

.ars-glass::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--glow, rgba(249, 115, 22, .25)), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  opacity: .5;
  transition: opacity .3s ease;
  pointer-events: none;
}

.ars-glass:hover::before { opacity: .8; }

/* ---------------------------------------------------------------- */
/* Heading                                                           */
/* ---------------------------------------------------------------- */

.ars-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}
.ars-head__title {
  font-family: var(--ars-font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: .01em;
}
.ars-head__lead {
  margin-top: 12px;
  color: var(--ars-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- */
/* Form / grid                                                       */
/* ---------------------------------------------------------------- */

.ars-form { display: flex; flex-direction: column; gap: 32px; }

.ars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ---------------------------------------------------------------- */
/* Role card                                                         */
/* ---------------------------------------------------------------- */

.ars-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--ars-radius);
  cursor: pointer;
}

.ars-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ars-card__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(var(--glow-rgb, 249, 115, 22), .22), rgba(var(--glow-rgb, 249, 115, 22), .05));
  border: 1px solid rgba(var(--glow-rgb, 249, 115, 22), .3);
}
.ars-card__emoji { font-size: 24px; line-height: 1; }

.ars-card__title {
  font-family: var(--ars-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
}

.ars-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ars-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ars-muted);
  line-height: 1.4;
}
.ars-card__check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(var(--glow-rgb, 249, 115, 22), .16);
  border: 1px solid rgba(var(--glow-rgb, 249, 115, 22), .35);
  color: rgb(var(--glow-rgb, 249, 115, 22));
}

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */

.ars-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--ars-radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ars-btn--choose {
  margin-top: auto;
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  color: var(--ars-text);
}
.ars-btn--choose:hover {
  background: rgba(var(--glow-rgb, 249, 115, 22), .14);
  border-color: rgba(var(--glow-rgb, 249, 115, 22), .4);
  color: rgb(var(--glow-rgb, 249, 115, 22));
}

.ars-btn--save {
  background: var(--ars-green);
  color: #fff;
  min-height: 52px;
  padding: 0 32px;
  font-size: 15px;
}
.ars-btn--save:hover { background: #16a34a; transform: translateY(-1px); }
.ars-btn--save:disabled {
  background: rgba(255, 255, 255, .06);
  color: var(--ars-dim);
  cursor: not-allowed;
  transform: none;
}

.ars-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ars-submit-row__hint {
  font-size: 12.5px;
  color: var(--ars-dim);
}

/* ---------------------------------------------------------------- */
/* Selected state                                                    */
/* ---------------------------------------------------------------- */

.ars-card.is-selected {
  border-color: var(--glow-border, rgba(249, 115, 22, .5));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .08) inset,
    0 28px 56px -24px rgba(0, 0, 0, .65),
    0 0 0 2px var(--glow-border, rgba(249, 115, 22, .4));
}
.ars-card.is-selected::before { opacity: .9; }
.ars-card.is-selected .ars-btn--choose {
  background: rgb(var(--glow-rgb, 249, 115, 22));
  border-color: rgb(var(--glow-rgb, 249, 115, 22));
  color: #fff;
}
.ars-card.is-selected .ars-card__head::after {
  content: "Selected";
  margin-left: auto;
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--glow-rgb, 249, 115, 22), .18);
  border: 1px solid rgba(var(--glow-rgb, 249, 115, 22), .4);
  color: rgb(var(--glow-rgb, 249, 115, 22));
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- */
/* Reveal on scroll (mirrors landing page behaviour)                 */
/* ---------------------------------------------------------------- */

[data-ars-reveal] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-ars-reveal].is-visible > * { opacity: 1; transform: none; }
[data-ars-reveal].is-visible > *:nth-child(2) { transition-delay: .05s; }
[data-ars-reveal].is-visible > *:nth-child(3) { transition-delay: .1s; }
[data-ars-reveal].is-visible > *:nth-child(4) { transition-delay: .15s; }

.ars.no-js [data-ars-reveal] > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ars *, .ars *::before, .ars *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  [data-ars-reveal] > * { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- */
/* Responsive                                                         */
/* ---------------------------------------------------------------- */

@media (max-width: 860px) {
  .ars-grid { grid-template-columns: 1fr; }
  .ars-card { padding: 22px; }
}

@media (max-width: 600px) {
  .ars { padding: 32px 0; }
  .ars-container { padding: 0 16px; }
  .ars-head { margin-bottom: 28px; }
  .ars-head__title { font-size: 24px; }
  .ars-head__lead { font-size: 14px; }

  .ars-card { padding: 20px; gap: 16px; }
  .ars-card__icon { width: 46px; height: 46px; }
  .ars-card__emoji { font-size: 21px; }
  .ars-card__title { font-size: 17px; }

  .ars-btn--choose { width: 100%; }
  .ars-btn--save { width: 100%; }

  /* Prevent iOS auto-zoom on any future form fields */
  .ars input, .ars select, .ars textarea { font-size: 16px; }
}

/* ---------------------------------------------------------------- */
/* Twenty Twenty-Five neutralization                                 */
/* ---------------------------------------------------------------- */

.is-layout-constrained > .ars,
.entry-content > .ars,
.is-layout-constrained > p:has(> .ars),
.entry-content > p:has(> .ars) {
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.is-layout-constrained > p:has(> .ars),
.entry-content > p:has(> .ars) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.has-global-padding > .ars.alignfull {
  margin-left: calc(var(--wp--style--root--padding-left) * -1);
  margin-right: calc(var(--wp--style--root--padding-right) * -1);
}

body:has(#ars-role-select) { overflow-x: clip; }
