/* ============================================================
   Onboarding choice screen — artboard 06. No outer card: a bare,
   centered moment on fog. Eyebrow + serif welcome + two equal
   white tiles (copilot first, with the RECOMMENDED banner) and a
   muted skip line.
   ============================================================ */

.onb-wrap{
  max-width:720px; margin:0 auto; padding:120px 24px 80px;
  display:flex; flex-direction:column; align-items:center; gap:32px;
}

.onb-head{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; }
.onb-eyebrow{
  font-family:var(--mono); font-size:11px; font-weight:500; line-height:14px;
  color:var(--ink-3); text-transform:uppercase; letter-spacing:0.16em; margin:0;
}
.onb-head h1{
  font-family:var(--serif); font-size:42px; font-weight:500;
  letter-spacing:-0.015em; line-height:48px; margin:0;
}
.onb-head p{ font-size:15px; line-height:22px; color:var(--ink-3); margin:0; }

/* Entrance: head, tiles, and skip line ease up into place on first paint. Base
   state stays visible (opacity returns to 1 at 100%) so a no-animation
   environment never strands content — reduced-motion shortens it to ~instant. */
.onb-head, .onb-choice, .onb-skip{ animation:onb-rise .5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.onb-choice{ animation-delay:.06s; }
.onb-skip{ animation-delay:.12s; }
@keyframes onb-rise{
  from{ opacity:0; transform:translateY(10px); }
  to{   opacity:1; transform:translateY(0); }
}

.onb-choice{ display:grid; grid-template-columns:1fr 1fr; gap:20px; align-self:stretch; }
@media (max-width:640px){ .onb-choice{ grid-template-columns:1fr; } }
/* The demo tile is a <button> wrapped in a <form> (button_to); the copilot tile
   is a bare <a>. The grid stretches the form, so flex it to pass that height down
   to its button — equal tile heights regardless of copy length. */
.onb-choice > form{ display:flex; }

.onb-tile{
  display:flex; flex-direction:column; align-items:stretch; gap:14px;
  border:1px solid var(--rule-2); border-radius:var(--radius-lg); padding:28px;
  cursor:pointer; text-align:left; background:var(--surface); width:100%;
  position:relative; transition:transform .14s ease;
}
/* Hover fill + lift-shadow crossfade via opacity (compositor) instead of
   background/box-shadow (paint). The translate lift stays S-tier transform;
   border color snaps. */
.onb-tile::after{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:var(--surface-2); box-shadow:var(--shadow-1);
  opacity:0; transition:opacity .14s ease; pointer-events:none; z-index:-1;
}
.onb-tile:hover::after{ opacity:1; }
.onb-tile:hover{ border-color:var(--rule-3); transform:translateY(-2px); }
.onb-tile:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
/* While a choice is submitting, the demo button locks (see submit_lock_controller). */
.onb-tile:disabled{ opacity:.55; cursor:default; }
.onb-tile:disabled:hover{ border-color:var(--rule-2); transform:none; }
.onb-tile:disabled:hover::after{ opacity:0; }

/* Full-inner-width RECOMMENDED banner — copilot tile only. */
.onb-rec{
  display:flex; align-items:center; height:20px; padding:0 8px;
  background:var(--accent-soft); border-radius:10px;
  font-family:var(--mono); font-size:9.5px; font-weight:600; line-height:12px;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--accent);
}

.onb-tile-icon{
  display:grid; place-items:center; width:40px; height:40px; flex:0 0 auto;
  border-radius:10px; color:var(--accent); background:var(--accent-soft);
  transition:transform .14s ease;
}
.onb-tile:hover .onb-tile-icon{ transform:scale(1.04); }

.onb-tile-body{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.onb-tile .t{ font-size:17px; font-weight:600; letter-spacing:-0.01em; line-height:22px; color:var(--ink); }
.onb-tile .d{ font-size:13.5px; line-height:20px; color:var(--ink-3); }

.onb-tile-cue{
  display:inline-flex; align-items:center; gap:6px; margin-top:2px;
  font-family:var(--sans); font-size:13px; font-weight:600; line-height:16px;
  color:var(--accent);
}
.onb-tile .onb-arrow{ transition:transform .14s ease; }
.onb-tile:hover .onb-arrow{ transform:translateX(3px); }

.onb-skip{ margin:0; display:flex; align-items:center; gap:8px; font-size:13px; line-height:16px; }
.onb-skip a{ color:var(--accent); font-weight:500; }
.onb-skip a:hover{ color:var(--accent-ink); }
.onb-skip a:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
.onb-skip .later{ color:var(--ink-4); }

@media (prefers-reduced-motion: reduce){
  .onb-head, .onb-choice, .onb-skip{ animation-duration:0.01ms; }
  .onb-tile, .onb-tile-icon, .onb-arrow{ transition:none; }
  .onb-tile:hover{ transform:none; }
  .onb-tile:hover .onb-tile-icon{ transform:none; }
  .onb-tile:hover .onb-arrow{ transform:none; }
}
