/* ==========================================================================
   Start your 14-day trial — split layout: guided form + live workspace preview
   ========================================================================== */
.s-nav { position: sticky; top: 0; z-index: 40; background: rgba(7, 6, 26, 0.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.s-nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 14px; }
.s-nav .back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.s-nav .back:hover { color: #fff; }
.s-nav .back svg { width: 14px; height: 14px; transform: scaleX(-1); }
html[dir='rtl'] .s-nav .back svg { transform: none; }
.s-end { display: flex; align-items: center; gap: 12px; }

.s-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: calc(100vh - 68px); }
@media (max-width: 1000px) { .s-wrap { grid-template-columns: 1fr; } }

.s-form { padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 72px) 60px; }
.s-form-in { max-width: 520px; margin-inline: auto; }
.s-form h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.035em; margin-top: 16px; }
html[dir='rtl'] .s-form h1 { letter-spacing: 0; line-height: 1.25; }
.s-form .lead { font-size: 16.5px; margin-top: 12px; }

.stepper { display: flex; gap: 8px; margin-top: 30px; }
.stepper .st { flex: 1; }
.stepper .st i { display: block; height: 4px; border-radius: 99px; background: var(--line-2); overflow: hidden; position: relative; }
.stepper .st i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--indigo-2), var(--peri)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
html[dir='rtl'] .stepper .st i::after { transform-origin: right; }
.stepper .st.done i::after, .stepper .st.cur i::after { transform: scaleX(1); }
.stepper .st.cur i::after { opacity: 0.85; }
.stepper .st span { display: block; margin-top: 9px; font-size: 12.5px; color: var(--faint); font-weight: 500; }
.stepper .st.cur span, .stepper .st.done span { color: var(--ink-2); }
.stepper .st span b { font-family: var(--mono); font-weight: 500; color: var(--peri); margin-inline-end: 6px; }

.s-step { margin-top: 30px; animation: fadein 0.45s var(--ease); }
.s-step[hidden] { display: none; }
.s-step .fgrid { gap: 18px 14px; }
.slug-field { display: flex; align-items: center; height: 52px; border-radius: 13px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); padding-inline: 14px; font-family: var(--mono); font-size: 15px; direction: ltr; transition: border-color 0.2s, box-shadow 0.2s; }
.slug-field:focus-within { border-color: var(--peri); box-shadow: 0 0 0 4px rgba(159, 171, 254, 0.14); }
.slug-field .pre, .slug-field .suf { color: var(--muted); white-space: nowrap; }
.slug-field input { flex: 1; min-width: 40px; background: none; border: 0; outline: none; color: #fff; font: inherit; font-weight: 500; text-align: end; }
.slug-field input::placeholder { color: var(--faint); }
.field.err .slug-field { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12); }
.slug-state { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-top: 8px; min-height: 20px; color: var(--muted); }
.slug-state svg { width: 15px; height: 15px; flex: none; }
.slug-state.ok { color: var(--mint); }
.slug-state.bad { color: var(--rose); }
.slug-state .spinner { width: 13px; height: 13px; border-color: rgba(159, 171, 254, 0.3); border-top-color: var(--peri); }
.slug-state button { background: none; border: 0; color: var(--peri); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

.pw { position: relative; }
.pw .input { padding-inline-end: 48px; }
.pw .eye { position: absolute; inset-inline-end: 8px; top: 8px; width: 34px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw .eye:hover { color: #fff; background: var(--glass); }
.pw .eye svg { width: 18px; height: 18px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.meter i { height: 4px; border-radius: 99px; background: var(--line-2); transition: background 0.25s; }
.meter[data-s='1'] i:nth-child(-n+1) { background: var(--rose); }
.meter[data-s='2'] i:nth-child(-n+2) { background: var(--amber); }
.meter[data-s='3'] i:nth-child(-n+3) { background: #a3e635; }
.meter[data-s='4'] i { background: var(--mint); }
.rules { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--faint); }
.rules span { display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s; }
.rules span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rules span.ok { color: var(--mint); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches span { display: block; width: 38px; height: 38px; border-radius: 12px; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset; transition: transform 0.2s var(--ease), border-color 0.2s; }
.swatches input:checked + span { border-color: #fff; transform: scale(1.08); box-shadow: 0 0 0 3px rgba(159, 171, 254, 0.35); }
.swatches input:focus-visible + span { outline: 2px solid var(--peri); outline-offset: 3px; }
.swatches .custom { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; border: 1px dashed var(--line-2); display: grid; place-items: center; position: relative; }
.swatches .custom input[type='color'] { position: absolute; inset: -8px; width: 60px; height: 60px; opacity: 0; cursor: pointer; pointer-events: auto; }
.swatches .custom svg { width: 16px; height: 16px; color: var(--muted); pointer-events: none; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--indigo); }
.consent a { color: var(--peri); }
.s-actions { display: flex; gap: 12px; margin-top: 30px; }
.s-actions .btn-primary { flex: 1; }
.s-foot { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.s-foot span { display: inline-flex; align-items: center; gap: 6px; }
.s-foot svg { width: 14px; height: 14px; color: var(--mint); }

/* ---------- live preview ---------- */
.s-prev { position: relative; overflow: hidden; border-inline-start: 1px solid var(--line); background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107, 99, 255, 0.28), transparent 70%), radial-gradient(ellipse 60% 50% at 80% 100%, rgba(94, 234, 212, 0.08), transparent 70%), var(--bg-2); padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); }
.s-prev::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(159, 171, 254, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 171, 254, 0.06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); pointer-events: none; }
.s-prev-in { position: sticky; top: 100px; max-width: 640px; margin-inline: auto; }
.prev-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.prev-label .eyebrow { font-size: 11.5px; }
.prev-label .live { font-family: var(--mono); font-size: 11px; color: var(--mint); display: inline-flex; align-items: center; gap: 6px; }
.prev-label .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 1.8s infinite; }
@media (max-width: 1000px) {
  .s-prev { border-inline-start: 0; border-top: 1px solid var(--line); order: -1; padding-block: 28px; }
  .s-prev-in { position: static; }
  .ws-body { min-height: 0 !important; }
  .included { display: none; }
}

.ws { --brand: #1d194c; border-radius: 18px; overflow: hidden; background: #f6f7fc; color: #1a1942; border: 1px solid rgba(159, 171, 254, 0.35); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 80px -30px rgba(107, 99, 255, 0.55); }
.ws-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding-inline: 14px; background: #e9ebf6; border-bottom: 1px solid #dcdff0; }
.ws-bar .dots i { background: #c9cce3; opacity: 1; }
.ws-url { flex: 1; max-width: 360px; margin-inline: auto; height: 26px; border-radius: 8px; background: #fff; border: 1px solid #dcdff0; display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: #6b6e9e; direction: ltr; overflow: hidden; white-space: nowrap; padding-inline: 8px; }
.ws-url svg { width: 11px; height: 11px; color: #16a34a; flex: none; }
.ws-url b { color: #1a1942; font-weight: 600; transition: color 0.2s; }
.ws-body { display: grid; grid-template-columns: 170px 1fr; min-height: 420px; }
.ws-side { background: #fff; border-inline-end: 1px solid #e6e8f5; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.ws-co { display: flex; align-items: center; gap: 9px; padding: 4px 6px 14px; border-bottom: 1px solid #eef0fa; margin-bottom: 8px; }
.ws-av { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; transition: background 0.3s; }
.ws-co b { font-size: 12.5px; display: block; line-height: 1.2; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 104px; transition: color 0.3s; }
.ws-co small { font-size: 10px; color: #8a8cb5; }
.ws-nav { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 11.5px; color: #55588a; }
.ws-nav svg { width: 14px; height: 14px; }
.ws-nav.on { background: var(--brand); color: #fff; transition: background 0.3s; }
.ws-main { padding: 18px; min-width: 0; }
.ws-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ws-top h4 { font-size: 17px; letter-spacing: -0.02em; color: #1a1942; }
.ws-top p { font-size: 11.5px; color: #7a7ca8; margin-top: 2px; }
.trial { font-size: 10.5px; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, white); border-radius: 99px; padding: 5px 10px; white-space: nowrap; transition: color 0.3s, background 0.3s; }
.ws-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ws-kpi { background: #fff; border: 1px solid #e8eaf6; border-radius: 11px; padding: 10px; }
.ws-kpi small { font-size: 10px; color: #8a8cb5; }
.ws-kpi b { display: block; font-size: 15px; margin-top: 2px; color: #1a1942; }
.ws-card { margin-top: 12px; background: #fff; border: 1px solid #e8eaf6; border-radius: 12px; padding: 12px 14px; }
.ws-card h5 { margin: 0 0 8px; font-size: 12px; color: #1a1942; display: flex; justify-content: space-between; }
.ws-card h5 span { font-weight: 500; color: #8a8cb5; font-size: 11px; }
.ws-task { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 11.5px; color: #45487a; border-bottom: 1px solid #f1f2fb; }
.ws-task:last-child { border-bottom: 0; }
.ws-task i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #cfd2ea; flex: none; display: grid; place-items: center; }
.ws-task.done i { background: var(--brand); border-color: var(--brand); transition: background 0.3s; }
.ws-task.done i::after { content: ''; width: 6px; height: 3px; border-inline-start: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.ws-task em { margin-inline-start: auto; font-style: normal; font-size: 10px; color: var(--brand); font-weight: 600; }
.ws-btn { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--brand); padding: 8px 12px; border-radius: 9px; transition: background 0.3s; }
@media (max-width: 560px) { .ws-body { grid-template-columns: 1fr; } .ws-side { display: none; } .ws-kpis { grid-template-columns: 1fr 1fr; } .ws-kpis .ws-kpi:nth-child(3) { display: none; } }

.included { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.included div { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.included svg { width: 16px; height: 16px; color: var(--mint); flex: none; }

/* ---------- provisioning overlay ---------- */
.prov { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 30%, rgba(107, 99, 255, 0.35), transparent 60%), rgba(5, 4, 20, 0.96); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.prov.open { opacity: 1; pointer-events: auto; }
.prov-card { width: 100%; max-width: 560px; text-align: center; }
.prov-logo { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.prov-logo img { width: 84px; height: 84px; border-radius: 22px; position: relative; z-index: 1; }
.prov-logo::before, .prov-logo::after { content: ''; position: absolute; inset: -14px; border-radius: 32px; border: 1px solid rgba(159, 171, 254, 0.5); animation: ringout 2.2s var(--ease) infinite; }
.prov-logo::after { animation-delay: 1.1s; }
@keyframes ringout { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
.prov h2 { font-size: clamp(26px, 4vw, 36px); margin-top: 30px; letter-spacing: -0.03em; }
html[dir='rtl'] .prov h2 { letter-spacing: 0; line-height: 1.3; }
.prov .sub { color: var(--muted); margin-top: 8px; font-family: var(--mono); font-size: 13.5px; direction: ltr; }
.prov-list { list-style: none; padding: 0; margin: 32px auto 0; max-width: 420px; text-align: start; display: grid; gap: 4px; }
.prov-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; color: var(--faint); font-size: 15px; transition: color 0.3s, background 0.3s; }
.prov-list li .ic { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.prov-list li .ic svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.4); transition: all 0.3s var(--ease); }
.prov-list li.run { color: #fff; background: var(--glass); }
.prov-list li.run .ic { border-color: var(--peri); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.prov-list li.ok { color: var(--ink-2); }
.prov-list li.ok .ic { border-color: var(--mint); background: rgba(94, 234, 212, 0.12); color: var(--mint); }
.prov-list li.ok .ic svg { opacity: 1; transform: none; }
.prov-err { margin-top: 24px; }

.ready { display: none; }
.prov.done .building { display: none; }
.prov.done .ready { display: block; animation: rise 0.7s var(--ease) both; }
.ready .ok-ic { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(94, 234, 212, 0.12); border: 1px solid rgba(94, 234, 212, 0.5); color: var(--mint); box-shadow: 0 0 60px -10px rgba(94, 234, 212, 0.7); }
.ready .ok-ic svg { width: 38px; height: 38px; }
.ready h2 { margin-top: 26px; }
.ws-ticket { margin: 28px auto 0; max-width: 480px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--glass); text-align: start; overflow: hidden; }
.ws-ticket .row2 { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px dashed var(--line-2); font-size: 14px; align-items: center; }
.ws-ticket .row2:last-child { border-bottom: 0; }
.ws-ticket .row2 span { color: var(--muted); font-size: 13px; }
.ws-ticket .row2 b { font-weight: 500; font-family: var(--mono); font-size: 13.5px; direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.copy { flex: none; border: 1px solid var(--line-2); background: none; color: var(--peri); border-radius: 8px; font-size: 11.5px; padding: 3px 8px; cursor: pointer; font-family: var(--font); }
.ready .btn { margin-top: 26px; }
.ready .hint { margin-top: 14px; font-size: 13px; color: var(--faint); }
.ready .links { margin-top: 18px; display: flex; justify-content: center; gap: 18px; font-size: 14px; }
.ready .links a { color: var(--peri); }
