/* =====================================================================
   signup.html only. Shared rules live in assets/css/styles.css.

   Colours: tokens only, no new hues. Two deliberate exceptions, both
   saffron already in the palette expressed at an alpha styles.css does
   not tokenise: the selected-card shadow `0 18px 44px -14px rgba(240,
   125,26,.34)` and the OTP focus ring `0 0 0 3px rgba(240,125,26,.18)`
   (= --saffron-500 at 34% and 18%). Reported for promotion into tokens.
   Type: --fs-* tokens, plus a few one-off sizes the scale does not carry
   (11.5px eyebrow, 12.5px, 13px, 15px, 17px, 20px OTP digit). Also
   reported.

   NOTE: `.otp`, `.otp-timer`, `.auth-link` and `.auth-safety` below are
   duplicated verbatim in assets/css/pages/login.css (sections 5, 4 and
   6). Edit both, or promote them into styles.css as one `.otp` component.
   ===================================================================== */

/* ---------- 1. Slim header variant ----------------------------------
   The sign-up screen is a task, not a browse, so the utility bar and the
   marketing announcement are dropped on this page only. The nav, the
   drawer and every link inside the sync markers stay untouched. */
.util-bar,
.announce{display:none!important}

/* ---------- 2. Hero ------------------------------------------------- */
.page-hero--signup{padding-block:clamp(2rem,1.6rem + 2vw,3.25rem) clamp(2.25rem,1.8rem + 2.4vw,3.5rem)}
.page-hero--signup .page-hero__inner{grid-template-columns:minmax(0,1fr)}
@media (min-width:900px){
  .page-hero--signup .page-hero__inner{grid-template-columns:minmax(0,1.24fr) minmax(0,.76fr)}
}
.page-hero--signup h1{max-width:18ch}

/* Brand card: the mark the client supplied, on the white surface its white
   Devanagari "kar" needs. Sits opposite the heading on wide screens. */
.signup-hero__aside{min-width:0}
.brand-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);
  box-shadow:var(--sh-md);padding:clamp(20px,2.2vw,28px);
  display:flex;flex-direction:column;gap:var(--sp-5);align-items:flex-start;
}
/* styles.css:144 gives every img an --ink-50 placeholder ground. The mark is a
   true cutout (the corners of both the .webp and the .png are fully
   transparent), so that placeholder shows through as a pale square unless it
   is cleared, exactly as `.brand`, `.footer__brand img` and login's
   `.auth__logo img` clear it. Cleared, the mark sits straight on the white
   card and needs no frame. */
.brand-card__logo{
  display:block;width:clamp(180px,20vw,244px);height:auto;margin-inline:auto;
  background:none;
}
.brand-card__tag{display:flex;gap:14px;align-items:stretch;width:100%}
.brand-card__tag p{
  margin:0;font-family:var(--font-head);font-size:clamp(1rem,.95rem + .35vw,1.125rem);
  line-height:1.45;color:var(--heading);font-weight:500;
}
.brand-card__tag b{color:var(--saffron-700);font-weight:700}
.brand-card__note{margin:0;font-size:var(--fs-sm);color:var(--text-muted);line-height:1.6}
.brand-card__switch{
  margin:0;width:100%;padding-top:var(--sp-4);border-top:1px solid var(--line-soft);
  font-size:var(--fs-sm);color:var(--text-muted);
}
.brand-card__switch a{font-weight:600;color:var(--forest-700)}
@media (max-width:899.98px){
  .brand-card{flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--sp-4) var(--sp-6)}
  .brand-card__logo{margin-inline:0;width:clamp(132px,28vw,190px)}
  .brand-card__tag{width:auto}
  .brand-card__note{flex:1 1 260px}
  .brand-card__switch{padding-top:var(--sp-3)}
}
@media (max-width:559.98px){
  /* On a phone the hero should hand over to the wizard quickly, so the card
     keeps the mark, the tagline and the log-in route and drops the rest. */
  .brand-card{gap:var(--sp-4)}
  .brand-card__note{display:none}
}
.signup-hero__trust{
  display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-5);margin:var(--sp-6) 0 0;padding:0;list-style:none;
}
.signup-hero__trust li{
  display:flex;gap:8px;align-items:center;margin:0;
  font-size:var(--fs-sm);font-weight:600;color:var(--ink-700);
}
.signup-hero__trust svg{width:17px;height:17px;color:var(--forest-600);flex:none}

/* ---------- 3. Wizard shell ------------------------------------------ */
.wiz-layout{display:grid;gap:clamp(24px,3vw,48px);grid-template-columns:minmax(0,1fr);align-items:start}
@media (min-width:1024px){ .wiz-layout{grid-template-columns:minmax(0,1.32fr) minmax(0,.68fr)} }

/* step indicator */
.wiz-steps{
  list-style:none;margin:0 0 clamp(24px,3vw,40px);padding:0;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-2);
}
.wiz-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;text-align:center}
.wiz-step::before{
  content:"";position:absolute;top:17px;left:calc(-50% + 20px);right:calc(50% + 20px);height:2px;
  background:var(--line-strong);
}
.wiz-step:first-child::before{display:none}
.wiz-step__num{
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none;position:relative;z-index:1;
  /* --text-subtle (#7C857B) is 3.82:1 on white, under AA at these sizes.
     --text-muted (#5C655C) is 6.05:1 and reads the same. The token itself is
     too light site-wide; raising it is reported for styles.css. */
  border:2px solid var(--line-strong);background:#fff;color:var(--text-muted);
  font-family:var(--font-head);font-weight:700;font-size:14px;line-height:1;
  transition:background var(--dur-fast),border-color var(--dur-fast),color var(--dur-fast);
}
.wiz-step__num svg{width:17px;height:17px}
.wiz-step__label{font-size:12.5px;font-weight:600;color:var(--text-muted);line-height:1.35}
.wiz-step.is-done .wiz-step__num{background:var(--forest-600);border-color:var(--forest-600);color:#fff}
.wiz-step.is-done+.wiz-step::before,
.wiz-step.is-current::before{background:var(--forest-400)}
.wiz-step.is-done .wiz-step__label{color:var(--forest-700)}
.wiz-step.is-current .wiz-step__num{
  background:var(--saffron-500);border-color:var(--saffron-500);color:var(--ink-900);box-shadow:var(--sh-saffron);
}
.wiz-step.is-current .wiz-step__label{color:var(--heading)}
@media (max-width:479.98px){
  .wiz-step__label{font-size:11px}
  .wiz-step__num{width:32px;height:32px;font-size:13px}
  .wiz-step::before{top:15px;left:calc(-50% + 18px);right:calc(50% + 18px)}
}

.wiz-panel[hidden]{display:none}
.wiz-panel__head{margin-bottom:var(--sp-6)}
.wiz-panel__head h2,
.wiz-panel__head h3{margin-bottom:var(--sp-2);font-size:clamp(1.375rem,1.2rem + .9vw,1.875rem)}
.wiz-panel__head p{margin:0}

/* ---------- 4. Role picker cards -------------------------------------- */
.roles{display:grid;gap:clamp(14px,1.8vw,20px);grid-template-columns:minmax(0,1fr)}
@media (min-width:640px){ .roles{grid-template-columns:repeat(2,minmax(0,1fr))} }
/* Each account role is a radio, not a <button>: a button may only contain
   phrasing content, and wrapping the whole card in one gave every card a 150
   character accessible name. A radio group also models "pick exactly one of
   three" correctly, where three independent aria-pressed toggles did not.
   A <label> has the same phrasing-only content model as a button and these
   cards hold a <p> and a <ul>, so the label is not wrapped round the card
   either. It is an empty overlay stretched across the card, carrying the short
   name in an .sr-only span, which keeps the markup valid, keeps each radio's
   name to four words and still lets a click anywhere on the card pick the role.
   The partner card stays an <a>: it is a link off the page, not a choice. */
.role-card{
  position:relative;text-align:left;width:100%;height:100%;cursor:pointer;
  display:flex;flex-direction:column;gap:var(--sp-3);
  background:var(--surface);border:1.5px solid var(--line);border-radius:var(--r-xl);
  padding:clamp(18px,2vw,24px);box-shadow:var(--sh-xs);font-family:inherit;
  transition:transform var(--dur-fast) var(--ease-hover),box-shadow var(--dur-fast) var(--ease-hover),border-color var(--dur-fast);
}
.role-card__radio{
  position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}
/* The hit area. No z-index on purpose: a positioned element already paints over
   the card's static content, and leaving it at auto lets .role-card::after (the
   selected tick, positioned and later in paint order) stay on top of it. */
.role-card__hit{
  position:absolute;inset:0;cursor:pointer;border-radius:inherit;
}
.role-card:hover{transform:translateY(-3px);box-shadow:var(--sh-lg);border-color:var(--saffron-200)}
/* The hidden radio cannot show a focus ring of its own, so the card carries it.
   :focus-within is the guaranteed floor; where :has() is available the ring is
   narrowed to keyboard focus, so a mouse click does not leave one behind. */
.role-card:focus-within{outline:3px solid var(--focus);outline-offset:2px}
@supports selector(:has(*)){
  .role-card:focus-within{outline:none}
  .role-card:has(.role-card__radio:focus-visible){outline:3px solid var(--focus);outline-offset:2px}
}
/* `.is-selected` is set by the change handler so the card still marks itself
   in a browser without :has(); the :has() rule keeps it correct if the radio
   is ever toggled outside that handler. */
.role-card.is-selected,
.role-card:has(.role-card__radio:checked){border-color:var(--saffron-500);box-shadow:0 18px 44px -14px rgba(240,125,26,.34)}
.role-card.is-selected::after,
.role-card:has(.role-card__radio:checked)::after{
  content:"";position:absolute;top:14px;right:14px;width:22px;height:22px;border-radius:50%;
  background:var(--saffron-500);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23121712' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;
}
.role-card__top{display:flex;align-items:center;gap:var(--sp-3);padding-right:var(--sp-8)}
.role-card__icon{
  width:46px;height:46px;border-radius:var(--r-md);display:grid;place-items:center;flex:none;
  background:var(--saffron-50);color:var(--saffron-700);
}
.role-card__icon svg{width:22px;height:22px}
.role-card__icon--green{background:var(--forest-50);color:var(--forest-600)}
.role-card__name{font-family:var(--font-head);font-size:17px;font-weight:600;color:var(--heading);line-height:1.3}
/* --text-subtle fails AA at these sizes; see the note on .wiz-step__num. */
.role-card__who{font-size:var(--fs-xs);color:var(--text-muted);display:block;margin-top:2px;font-weight:500}
.role-card p{margin:0;font-size:var(--fs-sm);color:var(--text-muted);line-height:1.6;text-wrap:pretty}
.role-card ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.role-card li{display:flex;gap:8px;margin:0;font-size:13px;color:var(--ink-700);line-height:1.5}
.role-card li svg{width:15px;height:15px;color:var(--forest-500);flex:none;margin-top:3px}
.role-card__free{margin-top:auto;padding-top:var(--sp-3);border-top:1px solid var(--line-soft);font-size:var(--fs-xs);color:var(--text-muted);text-wrap:pretty}
.role-card__free b{color:var(--forest-700)}

/* The partner card is an anchor: same shape, no pressed state, and it carries
   its own arrow link instead of a tick, because it leaves the page. It sits as
   the fourth cell of the 2x2 grid rather than spanning, so the row of account
   roles never leaves a hole beside Training Institute. */
.role-card--link{text-decoration:none;color:inherit;background:var(--surface-2);border-style:dashed}
.role-card--link:hover{border-style:solid;border-color:var(--forest-300);background:var(--surface)}
.role-card--link .role-card__free{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2)}
.role-card--link .link-arrow{font-size:var(--fs-sm)}

/* ---------- 5. Role forms --------------------------------------------- */
.wiz-chosen{
  display:flex;flex-wrap:wrap;gap:var(--sp-3);align-items:center;justify-content:space-between;
  margin-bottom:var(--sp-6);padding:12px 14px;border-radius:var(--r-md);
  border:1px solid var(--saffron-200);background:var(--saffron-50);
}
.wiz-chosen p{margin:0;font-size:var(--fs-sm);color:var(--ink-700)}
.wiz-chosen b{color:var(--saffron-800)}

.wiz-form[hidden]{display:none}
.wiz-group{margin:0;padding:0;border:0;min-width:0}
.wiz-group+.wiz-group{margin-top:var(--sp-8);padding-top:var(--sp-8);border-top:1px solid var(--line-soft)}
.wiz-group__legend{
  padding:0;margin:0 0 var(--sp-4);font-family:var(--font-body);font-size:11.5px;font-weight:700;
  /* --text-subtle fails AA at 11.5px; see the note on .wiz-step__num. */
  letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);
}
.wiz-actions{
  display:flex;flex-wrap:wrap;gap:var(--sp-3);align-items:center;justify-content:space-between;
  margin-top:var(--sp-8);padding-top:var(--sp-6);border-top:1px solid var(--line-soft);
}
.wiz-actions .btn{flex:1 1 auto}
@media (min-width:560px){ .wiz-actions .btn{flex:0 0 auto} }
.wiz-actions__hint{margin:0;font-size:var(--fs-sm);color:var(--text-muted);flex:1 1 220px}

/* resume upload */
.upload{
  display:flex;gap:var(--sp-3);align-items:center;cursor:pointer;
  border:1.5px dashed var(--line-strong);border-radius:var(--r-md);background:var(--ink-50);
  padding:14px 16px;transition:border-color var(--dur-fast),background var(--dur-fast);
}
.upload:hover{border-color:var(--saffron-400);background:var(--saffron-50)}
.upload:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.upload__input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.upload__icon{
  width:40px;height:40px;border-radius:var(--r-md);flex:none;display:grid;place-items:center;
  background:var(--saffron-100);color:var(--saffron-800);
}
.upload__icon svg{width:20px;height:20px}
.upload__body{display:flex;flex-direction:column;gap:2px;min-width:0}
.upload__body b{font-size:var(--fs-sm);color:var(--ink-800);font-weight:600}
.upload__meta{font-size:13px;color:var(--text-muted);line-height:1.5}

/* ---------- 6. OTP verify step ----------------------------------------- */
/* .otp, .otp-timer, .auth-link and .auth-safety are shared components
   (styles.css section 18). Nothing to declare here. */
.verify-to{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin:0 0 var(--sp-5);font-size:var(--fs-sm);color:var(--text-muted)}
.verify-to b{color:var(--ink-800);font-variant-numeric:tabular-nums}

/* ---------- 7. Success state -------------------------------------------- */
.wiz-done__card{display:flex;flex-direction:column;gap:var(--sp-5);align-items:flex-start;text-align:left}
.wiz-done__card .form-success__icon{margin:0}
.wiz-done__card h2,
.wiz-done__card h3{margin:0;font-size:clamp(1.375rem,1.2rem + .9vw,1.75rem)}
.wiz-done__card p{margin:0}
.next-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-4);width:100%}
.next-steps li{display:flex;gap:var(--sp-3);margin:0}
.next-steps__num{
  width:30px;height:30px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:var(--saffron-500);color:var(--ink-900);
  font-family:var(--font-head);font-weight:700;font-size:13px;line-height:1;box-shadow:var(--sh-inset-top);
}
.next-steps b{display:block;color:var(--ink-800);font-size:var(--fs-sm);font-weight:600;margin-bottom:2px}
.next-steps__body{font-size:var(--fs-sm);color:var(--text-muted);line-height:1.55;min-width:0}

/* safety strip reused from the login screen */

/* ---------- 8. Sidebar rail --------------------------------------------- */
.rail{display:flex;flex-direction:column;gap:clamp(16px,2vw,20px)}
@media (min-width:1024px){ .rail{position:sticky;top:calc(var(--header-h) + 20px)} }
.rail__card{display:flex;flex-direction:column;gap:var(--sp-4)}
.rail__card h2,.rail__card h3{margin:0;font-size:var(--fs-h4)}
.rail-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-4)}
.rail-list li{display:flex;gap:11px;margin:0;font-size:var(--fs-sm);line-height:1.55;color:var(--text-muted)}
.rail-list b{display:block;color:var(--ink-800);font-weight:600;margin-bottom:2px}
.rail-list__icon{
  width:32px;height:32px;border-radius:var(--r-sm);flex:none;display:grid;place-items:center;
  background:var(--forest-50);color:var(--forest-600);
}
.rail-list__icon svg{width:16px;height:16px}
.rail__quote blockquote{margin:0;font-size:15px;line-height:1.6;color:var(--ink-700);text-wrap:pretty}
.rail__quote figcaption{display:flex;align-items:center;gap:10px;margin-top:var(--sp-4);padding-top:var(--sp-4);border-top:1px solid var(--line-soft);font-size:var(--fs-xs);color:var(--text-muted)}
.rail__quote figcaption b{display:block;color:var(--ink-800);font-size:13px}

/* ---------- 8b. Talk-to-us strip ------------------------------------------
   Sits under the wizard rather than in the rail: at step one the role cards
   are short, and a fourth rail card left a tall empty column beside them. */
.talk-strip{
  display:grid;gap:var(--sp-5) clamp(20px,3vw,40px);grid-template-columns:minmax(0,1fr);
  margin-top:clamp(28px,3.4vw,48px);padding:clamp(20px,2.4vw,30px);
  border:1px solid var(--line);border-radius:var(--r-xl);background:var(--surface-2);
  align-items:center;
}
@media (min-width:900px){
  .talk-strip{grid-template-columns:minmax(0,.86fr) minmax(0,1.5fr) auto}
}
.talk-strip h3{margin:0 0 var(--sp-2);font-size:var(--fs-h4)}
.talk-strip p{margin:0;font-size:var(--fs-sm);color:var(--text-muted);line-height:1.6}
/* auto-fit, not a breakpoint: between 900 and 1180 the middle column is too
   narrow for two names and "Business Development Manager" broke over four lines. */
.talk-strip__people{
  list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-4);
  grid-template-columns:repeat(auto-fit,minmax(232px,1fr));
}
.talk-strip__people li{display:flex;gap:11px;margin:0;font-size:var(--fs-sm);line-height:1.5}
.talk-strip__people b{display:block;color:var(--ink-800);font-weight:600;margin-bottom:2px}
.talk-strip__people a{color:var(--forest-700);font-weight:600;font-variant-numeric:tabular-nums}
.talk-strip__actions{display:flex;flex-wrap:wrap;gap:var(--sp-3)}

/* ---------- 9. After-signup band ----------------------------------------- */
.after{display:grid;gap:clamp(16px,2vw,24px);grid-template-columns:minmax(0,1fr)}
@media (min-width:640px){ .after{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:1024px){ .after{grid-template-columns:repeat(4,minmax(0,1fr))} }
.after .feature-tile{height:100%}

/* ---------- 10. First-week band ------------------------------------------ */
.fw-media{position:relative}
.fw-media img{
  width:100%;border-radius:var(--r-xl);box-shadow:var(--sh-lg);object-fit:cover;aspect-ratio:4/3;
}
.fw-chip{position:absolute;left:clamp(12px,2vw,20px);bottom:clamp(12px,2vw,20px);max-width:calc(100% - 24px)}
@media (max-width:399.98px){
  .fw-chip{font-size:12px;padding:7px 11px}
}

/* ---------- 11. Safety band ----------------------------------------------
   LOCAL OVERRIDE. styles.css sets `.feature-tile p{color:var(--text-muted)}`
   after `.section--dark p`, and at equal specificity the later rule wins, so
   a feature tile on the dark band renders its body copy in dark ink on dark
   green (about 1.6:1). Reported for a fix in styles.css. */


.safety-foot{
  display:flex;gap:12px;align-items:flex-start;margin:clamp(20px,2.6vw,32px) 0 0;
  border:1px solid rgba(245,151,61,.42);background:rgba(240,125,26,.1);border-radius:var(--r-lg);
  padding:var(--sp-5);font-size:var(--fs-sm);line-height:1.65;
}
.safety-foot svg{width:20px;height:20px;color:var(--saffron-300);flex:none;margin-top:2px}

/* ---------- 12. FAQ band -------------------------------------------------- */

@media (min-width:1024px){
  .faq-layout{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}
  .faq-aside{position:sticky;top:calc(var(--header-h) + 24px)}
}

.faq-aside h3{margin:0;font-size:var(--fs-h4)}
.faq-aside p{margin:0}
.faq-aside hr{margin:var(--sp-2) 0}

