/* The early-access page (/join), loaded after legal.css. The sign-up form and the Ready to yap? card are copies of the
   home page's own styles (index.astro): keep them in step when those change. Below them: the little chat that shows a
   yap turning into a resume line, and the steps. */

/* ---- Fields: the app's UI kit (src/components/ui) ---- */
.label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.control {
  width: 100%; min-height: 52px; padding: 10px 14px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--paper);
  font: inherit; font-size: 17px; color: var(--ink);
  box-shadow: inset 0 2px 0 0 rgba(23, 19, 43, 0.06);
}
.control::placeholder { color: var(--ink-faint); }
.control:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(107, 59, 255, 0.25); }
.control[aria-invalid="true"] { border-color: var(--tomato); }

/* ---- Sign-up ---- */
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.signup-field { flex: 1 1 260px; min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-error { margin-top: 8px; color: #c2361b; font-weight: 600; font-size: 15px; }
.next-steps { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--ink-soft); }
.next-steps li { display: inline-flex; align-items: center; gap: 6px; }
.next-steps .icon { color: var(--violet); width: 18px; height: 18px; }
.signup-legal { margin-top: 10px; font-size: 14px; color: var(--ink-faint); }
.signup-legal a { color: var(--ink-soft); text-underline-offset: 2px; }
.signup-legal a:hover { color: var(--violet-dark); }
.signup-done {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border: 2px solid var(--ink); border-radius: var(--radius-chunky); background: var(--mint-soft); box-shadow: var(--shadow-chunky);
}
.signup-done[hidden] { display: none; }
.signup-done:focus { outline: none; }
.signup-done h3 { font-size: 22px; font-weight: 800; }
.signup-done p { color: var(--ink-soft); margin-top: 2px; }
.motion .signup-done:not([hidden]) { animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ---- The hero: the form sits under the lede ---- */
.join-hero .p-hero-copy { gap: 18px; }
.join-hero [data-signup-slot] { max-width: 600px; }

/* ---- A yap, turning into a resume line: the words on the left, the chat on the right ---- */
.yap-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 56px; align-items: center; }
.yap-copy .band-intro { max-width: 460px; }
.chat { display: grid; gap: 16px; }
.chat .say { max-width: 560px; }
.you { justify-self: end; max-width: min(520px, 88%); padding: 12px 16px; border: 2px solid var(--ink); border-radius: 18px 18px 4px 18px; background: var(--violet); color: #fff; box-shadow: var(--shadow-chunky-sm); font-weight: 600; line-height: 1.45; }
.you-who { display: block; margin-bottom: 2px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #d8ccff; }
.line-card { margin-top: 8px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: var(--radius-chunky); background: var(--sun); box-shadow: var(--shadow-chunky-lg); transform: rotate(-1deg); }
.line-card .ba-label { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.line-card p { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.3; letter-spacing: -0.01em; }
.line-card small { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ---- How it works: four cards with the home page's doodles ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.steps .control-card { transform: rotate(var(--tilt, 0deg)); transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) { .steps .control-card:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--shadow-chunky-lg); } }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.steps .tone-violet .step-num { color: #e4dbff; }
.steps .control-card.tone-sun { --tone: var(--sun-soft); }
.steps .control-card.tone-mint { --tone: var(--mint-soft); }
.steps .control-card.tone-pink { --tone: var(--pink-soft); }

.more-link { margin-top: 26px; font-weight: 600; }

/* ---- Last call: Ready to yap? beside a guide to read while you wait ---- */
.ctas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px; align-items: stretch; }
.join-card, .wait-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 40px; border: 2px solid var(--ink); border-radius: 26px; }
.join-card { background: var(--paper); box-shadow: var(--shadow-chunky-lg); }
.wait-card { background: var(--violet); color: #fff; box-shadow: 8px 8px 0 0 var(--ink); }
.join-card h2, .wait-card h2 { font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; padding-right: 104px; }
.cta-lede { font-size: 18px; color: var(--ink-soft); }
.wait-card .cta-lede { color: #f2edff; padding-right: 72px; } /* clear of the doodle */
.cta-doodle { position: absolute; top: 28px; right: 28px; width: 88px; height: 88px; }
.wait-card .btn { margin-top: auto; align-self: flex-end; } /* forward action on the right, at the foot of the card */
.join-card [data-signup-slot] { margin-top: 8px; }
.join-card .cta-lede { padding-right: 104px; } /* clear of the coach */
.join-card .signup-field { flex-basis: 200px; } /* keeps the box and its button on one line in the narrower column */
/* The coach hovers a little, like the app's EmptyState doodle (animate-float). */
.join-coach { position: absolute; top: 24px; right: 24px; animation: hover 3.2s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

@media (max-width: 920px) {
  .yap-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .signup-field { flex-basis: 100%; }
  .wait-card .cta-lede { padding-right: 0; }
  .signup-row .btn, .wait-card .btn { width: 100%; }
  .join-card, .wait-card { padding: 30px 22px; }
  .join-card h2, .wait-card h2, .join-card .cta-lede { padding-right: 76px; }
  .join-coach { width: 72px; height: 72px; top: 20px; right: 18px; }
  .cta-doodle { width: 64px; height: 64px; top: 22px; right: 18px; }
  .you { max-width: 92%; }
}
