/* platform/assets/start.css - the public "Create your school" wizard */
:root { --st-ink: #1a2342; --st-muted: #5b6479; --st-line: rgba(26,35,66,.12); --st-bg: #fbf8f3; --st-accent: #2346c4; }
body.st-body { background: var(--st-bg); color: var(--st-ink); font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif; min-height: 100vh; }
.st-edge { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.st-header { position: sticky; top: 0; z-index: 10; background: rgba(251,248,243,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--st-line); }
.st-header .st-edge { height: 72px; display: flex; align-items: center; }
.st-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--st-ink); font-weight: 700; font-size: 18px; }
.st-brand-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); display: inline-flex; align-items: center; justify-content: center; color: var(--st-accent); font-size: 22px; }
.st-main { padding-top: clamp(20px, 5vw, 48px); padding-bottom: 120px; }
.st-wrap { max-width: 640px; margin: 0 auto; }
.st-h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; margin-bottom: .5rem; }
.st-lead { color: var(--st-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.st-card { background: #fff; border: 1px solid var(--st-line); border-radius: 18px; padding: clamp(18px, 4vw, 30px); box-shadow: 0 10px 30px -18px rgba(26,35,66,.35); }
.st-h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.st-note { color: var(--st-muted); margin-top: -.5rem; }
.st-progress-head { display: flex; justify-content: space-between; font-size: .85rem; color: var(--st-muted); margin-bottom: 6px; }
.st-progress { height: 6px; border-radius: 999px; background: #eef0f6; overflow: hidden; margin-bottom: 22px; }
.st-progress-bar { height: 100%; background: linear-gradient(90deg, #2346c4, #5d7cf0); border-radius: 999px; transition: width .35s ease; }
.st-themes { display: flex; gap: 10px; flex-wrap: wrap; }
.st-theme { display: flex; align-items: center; gap: 8px; border: 1px solid var(--st-line); border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; }
.st-theme input { position: absolute; opacity: 0; pointer-events: none; }
.st-theme:has(input:checked) { border-color: var(--st-accent); box-shadow: 0 0 0 3px rgba(35,70,196,.15); }
.st-swatch { width: 26px; height: 26px; border-radius: 50%; display: inline-block; }
.st-summary { border: 1px solid var(--st-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; background: #fafbff; }
.st-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .92rem; }
.st-summary span { color: var(--st-muted); }
.st-summary strong { text-align: right; word-break: break-word; }
.st-code { letter-spacing: .5em; font-weight: 700; text-align: center; max-width: 260px; }
.st-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.st-actions .btn-primary { min-width: 180px; border-radius: 999px; }
.st-actions .btn-outline-secondary { border-radius: 999px; }
.st-error { margin: 16px 0 0; }
.st-stages { list-style: none; padding: 0; margin: 18px 0; }
.st-stage { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--st-line); color: var(--st-muted); }
.st-stage-done { color: var(--st-ink); }
.st-stage-now { color: var(--st-ink); font-weight: 600; }
.st-stage-icon { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef0f6; flex: 0 0 28px; }
.st-stage-done .st-stage-icon { background: #16a34a; color: #fff; }
.st-ready-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 18px; }
.st-ready-title { font-weight: 800; font-size: 1.2rem; margin-bottom: 6px; }
.st-foot { color: var(--st-muted); font-size: .85rem; padding-bottom: 24px; }
@media (max-width: 575.98px) {
  /* Back / Continue stay reachable above the phone keyboard */
  .st-actions { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--st-line); z-index: 20; }
  .st-actions .btn-primary { flex: 1; min-width: 0; }
}
/* 2026-10-24: three steps - folded "Colours and logo", the first term filled in on Confirm */
.st-more { border: 1px solid var(--st-line); border-radius: 12px; padding: 10px 14px; margin-top: 4px; }
.st-more > summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.st-more[open] > summary { margin-bottom: 4px; }
.st-term { border: 1px solid var(--st-line); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; background: #fafbff; }
.st-term-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .92rem; }
.st-term-k { color: var(--st-muted); margin-right: 6px; }
.st-term-dates { color: var(--st-muted); }
.st-term-edit { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--st-line); }
/* the footer stays at the very bottom of the window, one slim line */
body.st-body { display: flex; flex-direction: column; min-height: 100dvh; }
.st-main { flex: 1 0 auto; padding-bottom: 40px; }
.st-foot { flex-shrink: 0; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--st-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.st-foot a { color: var(--st-muted); text-decoration: none; }
@media (max-width: 575.98px) { .st-main { padding-bottom: 96px; } .st-foot { justify-content: center; padding-bottom: 84px; } }
/* 2026-10-24 demo fixes: larger picture code, one password box with an eye */
.st-captcha-img { border: 1px solid var(--st-line); border-radius: 10px; max-width: 100%; height: auto; }
#captcha { text-transform: uppercase; letter-spacing: .2em; font-weight: 600; font-size: 1.1rem; }
#st_progress_title .bi-stars { color: #16a34a; }

/* ===== v2 (owner, 2026-10-24): an elegant wizard =====================================
   soft glow behind, a frosted card, a 3-dot stepper, calm 50px fields with a blue focus
   ring, pill buttons, quieter helper boxes. Only styles (plus data-current on #st_wizard). */
body.st-body { background:
    radial-gradient(900px 480px at 12% -8%, rgba(93,124,240,.16), transparent 60%),
    radial-gradient(760px 420px at 100% 0%, rgba(242,182,50,.14), transparent 60%),
    var(--st-bg); background-attachment: fixed; }
.st-h1 { letter-spacing: -.015em; }
.st-lead strong { color: var(--st-ink); }
.st-card { position: relative; border-radius: 26px; padding: clamp(20px, 4.5vw, 38px); border: 1px solid rgba(255,255,255,.8);
  /* no backdrop-filter here: it would make the card the frame of the phone action bar
     (position: fixed), which then sat over the last fields instead of the screen bottom */
  background: linear-gradient(170deg, rgba(255,255,255,.97), rgba(255,255,255,.9));
  box-shadow: 0 1px 2px rgba(26,35,66,.05), 0 30px 70px -36px rgba(26,35,66,.45); }

/* stepper: the old label + bar stay for screen readers and start.js */
.st-progress-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-progress { height: 3px; margin: 0 0 26px; background: #eef0f6; }
.st-stepper { list-style: none; display: flex; justify-content: space-between; gap: 8px; margin: 0 0 14px; padding: 0; }
.st-stepper li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: #98a0b3; white-space: nowrap; }
.st-stepper li span { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; background: #eef0f6; color: #8a92a6; transition: background .25s, color .25s, box-shadow .25s; }
.st-stepper li + li { justify-content: center; }
.st-stepper li:last-child { justify-content: flex-end; }
#st_wizard[data-current="1"] .st-stepper li:nth-child(1),
#st_wizard[data-current="2"] .st-stepper li:nth-child(-n+2),
#st_wizard[data-current="3"] .st-stepper li { color: var(--st-ink); }
#st_wizard[data-current="1"] .st-stepper li:nth-child(1) span,
#st_wizard[data-current="2"] .st-stepper li:nth-child(2) span,
#st_wizard[data-current="3"] .st-stepper li:nth-child(3) span { background: var(--st-accent); color: #fff; box-shadow: 0 0 0 5px rgba(35,70,196,.14); }
#st_wizard[data-current="2"] .st-stepper li:nth-child(1) span,
#st_wizard[data-current="3"] .st-stepper li:nth-child(-n+2) span { background: #16a34a; color: #fff; }

/* headings and text */
.st-h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 3vw, 1.7rem); letter-spacing: -.01em; margin-bottom: 1.1rem; }
.st-note { margin-top: -.6rem; margin-bottom: 1.2rem; font-size: .95rem; }
.st-card .form-label { font-size: .84rem; font-weight: 600; color: #3b4459; margin-bottom: 7px; }
.st-card .form-text { font-size: .8rem; color: #7a8296; margin-top: 6px; }

/* fields */
.st-card .form-control, .st-card .form-select { height: 50px; border-radius: 14px; border: 1px solid #e1e5ee; background-color: #f8f9fc; color: var(--st-ink);
  font-size: 1rem; padding: 0 16px; box-shadow: inset 0 1px 2px rgba(26,35,66,.04); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.st-card .form-control-lg { height: 56px; font-size: 1.1rem; }
.st-card .form-control::placeholder { color: #a3aabb; }
.st-card .form-control:focus, .st-card .form-select:focus { background-color: #fff; border-color: var(--st-accent); box-shadow: 0 0 0 4px rgba(35,70,196,.12); }
.st-card .form-control[type=file] { height: auto; padding: 11px 14px; }
.st-card .form-control.is-invalid { border-color: #dc3545; background-color: #fff8f8; }
.st-card .input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.st-card .input-group > .input-group-text, .st-card .input-group > .btn { height: 50px; border: 1px solid #e1e5ee; border-left: 0; border-radius: 0 14px 14px 0;
  background: #eef1f8; color: #4b5568; font-weight: 600; padding: 0 16px; }
.st-card .input-group > .btn:hover { background: #e3e8f3; color: var(--st-ink); }
.st-card .input-group:focus-within > .input-group-text, .st-card .input-group:focus-within > .btn { border-color: var(--st-accent); }

/* optional colours and logo */
.st-more { border-radius: 16px; border: 1px dashed #d6dbe6; background: rgba(248,249,252,.7); padding: 12px 16px; }
.st-more > summary { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--st-ink); }
.st-more > summary::-webkit-details-marker { display: none; }
.st-more > summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #dfe3ec; font-weight: 700; color: var(--st-accent); flex: 0 0 22px; }
.st-more[open] > summary::before { content: "\2212"; }
.st-theme { background: #fff; border-color: #e1e5ee; padding: 7px 14px 7px 7px; font-weight: 600; font-size: .9rem; transition: border-color .15s, box-shadow .15s; }
.st-theme:hover { border-color: #c9d0e0; }

/* confirm step */
.st-summary, .st-term { border-radius: 16px; border: 1px solid #e6e9f1; background: #f8f9fc; padding: 12px 16px; }
.st-summary div + div { border-top: 1px dashed #e3e7ef; }
.st-term-edit .form-control, .st-term-edit .form-select { height: 46px; }
.st-captcha-img { border-radius: 14px; border-color: #e1e5ee; background: #fff; }
.st-code { height: 64px !important; font-size: 1.6rem !important; letter-spacing: .45em; max-width: 300px; text-align: center; }
#st_code_sent { border-radius: 12px; }

/* buttons */
.st-actions { margin-top: 28px; align-items: center; }
.st-actions .btn { height: 52px; border-radius: 999px; font-weight: 600; padding: 0 26px; }
.st-actions .btn-primary { min-width: 200px; border: 0; background: linear-gradient(135deg, #2346c4, #4a6ae6);
  box-shadow: 0 14px 28px -14px rgba(35,70,196,.85), inset 0 1px 0 rgba(255,255,255,.2); transition: transform .15s, box-shadow .15s, filter .15s; }
.st-actions .btn-primary::after { content: "\2192"; margin-left: 10px; display: inline-block; transition: transform .15s; }
.st-actions .btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 18px 32px -14px rgba(35,70,196,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.st-actions .btn-primary:hover::after { transform: translateX(3px); }
.st-actions .btn-primary:disabled { filter: grayscale(.3); opacity: .7; transform: none; }
.st-actions .btn-outline-secondary { border-color: #d9dee8; color: #4b5568; background: #fff; }
.st-actions .btn-outline-secondary:hover { background: #f3f5f9; color: var(--st-ink); border-color: #c9d0e0; }
.st-error { border-radius: 14px; }

/* setting up / ready */
.st-stage { border-bottom-style: solid; border-color: #eef0f6; padding: 12px 0; }
.st-stage-icon { width: 32px; height: 32px; flex-basis: 32px; }
.st-stage-now .st-stage-icon { background: rgba(35,70,196,.1); color: var(--st-accent); }
.st-ready-box { border-radius: 18px; padding: 22px; }
.st-ready-box .btn-success { border-radius: 999px; padding: 12px 26px; font-weight: 600; box-shadow: 0 14px 28px -14px rgba(22,163,74,.8); }

@media (max-width: 575.98px) {
  .st-stepper li { font-size: 0; gap: 0; }
  .st-stepper li span { font-size: .85rem; }
  .st-actions { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .st-actions .btn { height: 50px; }
  .st-actions .btn-primary { min-width: 0; }
}
/* step 3 picture code: label + round refresh, the picture box beside a clean input */
.st-captcha-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.st-captcha-new { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #dfe3ec; background: #fff; color: #5b6479; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: transform .35s, color .15s; }
.st-captcha-new:hover { color: var(--st-ink); transform: rotate(90deg); }
.st-captcha-row { display: flex; gap: 12px; align-items: stretch; }
.st-captcha-box { flex: 1 1 50%; min-width: 0; height: 64px; border-radius: 14px; border: 1px solid #e1e5ee; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.st-captcha-box .st-captcha-img { border: 0; border-radius: 0; width: 100%; height: 100%; object-fit: contain; }
.st-card .st-captcha-row .form-control { flex: 1 1 50%; min-width: 0; height: 64px; text-align: center; letter-spacing: .3em; background: #fff; }
/* picture code v2: cream paper like the schools' sign-in code (owner's sample) */
.st-captcha-box { background: #f6f1e4; border-color: rgba(120,100,60,.2); box-shadow: inset 0 1px 3px rgba(80,60,20,.08); cursor: pointer; padding: 4px 8px; }
.st-card .st-captcha-row .form-control { font-size: 1.35rem; font-weight: 700; letter-spacing: .5em; padding-left: calc(16px + .5em); text-transform: uppercase; border-color: #dfe3ec; }
.st-card .st-captcha-row .form-control::placeholder { color: #a3aabb; letter-spacing: .5em; }
.st-captcha-new { width: 28px; height: 28px; font-size: 13px; }
.st-captcha-box .st-captcha-img { background: transparent; }
@media (max-width: 575.98px) { .st-actions .btn { white-space: nowrap; font-size: 1rem; padding: 0 18px; } .st-actions .btn-primary::after { margin-left: 6px; } }
/* phones: the pinned Back / Continue bar never hides a field - the page scrolls past it and a
   focused field (also one the browser jumps to) stops above it */
@media (max-width: 575.98px) {
  html { scroll-padding-bottom: 110px; }
  .st-main { padding-bottom: 120px; }
  .st-card { margin-bottom: 8px; }
  .st-actions { box-shadow: 0 -8px 24px -16px rgba(26,35,66,.35); }
}
/* picture code v3 (owner): a compact row, not the full card width */
.st-captcha-row { max-width: 340px; gap: 10px; }
.st-captcha-box { flex: 0 0 160px; height: 52px; border-radius: 12px; }
.st-card .st-captcha-row .form-control { flex: 1 1 auto; height: 52px; border-radius: 12px; font-size: 1.15rem; letter-spacing: .4em; padding-left: calc(12px + .4em); }
.st-captcha-row { max-width: 440px; } /* the input gets the extra width (owner) */
/* the code input looks and focuses like every other field (owner) */
.st-card .st-captcha-row .form-control { background-color: #f8f9fc; border-color: #e1e5ee; box-shadow: inset 0 1px 2px rgba(26,35,66,.04); }
.st-card .st-captcha-row .form-control:focus { background-color: #fff; border-color: var(--st-accent); box-shadow: 0 0 0 4px rgba(35,70,196,.12); outline: 0; }
.st-card .st-captcha-row .form-control.is-invalid { border-color: #dc3545; background-color: #fff8f8; } /* red when missing, like the other fields */
/* the emailed 6-digit code: a field the size of the others, not a big box (owner) */
.st-card .form-control.st-code { height: 52px !important; max-width: 240px; font-size: 1.2rem !important; letter-spacing: .35em; padding-left: calc(16px + .35em); border-radius: 14px; }
.st-card .form-control.st-code::placeholder { letter-spacing: .35em; color: #a3aabb; }
#st_resend { font-size: .9rem; }
/* the subscription fees on the Confirm step (TENANCY/lib/BILLING_LIB.php) */
.st-fee { display: flex; gap: 10px; align-items: flex-start; border-radius: 16px; border: 1px solid #dbe4ff; background: #f3f6ff; padding: 12px 16px; margin-bottom: 16px; font-size: .9rem; color: #1e3a8a; line-height: 1.5; }
.st-fee i { color: #2346c4; margin-top: 2px; }
