/* ══════════════════════════════════════════════════════════════
   signup.css — "raw public" tier (sister of the landing page).
   Inherits the landing palette/type; NOT the platform or public.css.
   Shared by /signup/index.php and /signup/verify.php.
   ══════════════════════════════════════════════════════════════ */
:root {
    --teal:          #5a7699;
    --teal-deep:     #4a6582;
    --teal-grad-1:   #6fa2b7;
    --teal-pill:     #f0f4f5;
    --teal-border:   #c5dde0;
    --ink:           #2b3a3d;
    --ink-soft:      #545454;
    --ink-mid:       #6f7a7c;
    --ink-mute:      #888;
    --ink-faint:     #aaa;
    --hair:          #eef0f1;
    --bg:            #f4f6f7;
    --accent-green:  #3a7a4a;
    --accent-red:    #b5524c;
    --shadow-tile:   0 1px 3px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.02);
    --shadow-tile-h: 0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03);
    --shadow-pop:    0 20px 60px rgba(40,60,70,.10), 0 8px 24px rgba(40,60,70,.06);
    --radius-card:   14px;
    --radius-tile:   10px;
    --radius-pill:   999px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(circle at 85% 8%,  rgba(90,145,153,.10) 0%, transparent 55%),
        radial-gradient(circle at 8% 60%,  rgba(90,145,153,.06) 0%, transparent 50%);
    pointer-events: none;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; display: block; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; user-select: none; }

.su-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar ─────────────────────────────────────────────── */
.su-top-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.su-top {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; gap: 24px;
}
.su-brand { display: inline-flex; align-items: center; gap: 12px; }
.su-brand .brand-logo-mask {
    position: relative; overflow: hidden; display: inline-block; width: 40px; height: 40px;
    margin: -1px 2px 0 0; background: linear-gradient(135deg, #6f90b7, #33414f);
    mask: url(/assets/images/logo_clear.png) center / contain no-repeat;
    -webkit-mask: url(/assets/images/logo_clear.png) center / contain no-repeat;
}
.su-brand .brand-logo-mask::after {
    content: ''; position: absolute; inset: -20%;
    background: linear-gradient(315deg, transparent 36%, rgba(255,255,255,.68) 49%, rgba(155,185,216,.58) 52%, transparent 64%);
    opacity: 0; transform: translate3d(72%, 72%, 0); pointer-events: none;
}
.su-brand .brand-logo-mask.is-animating::after { animation: nivensaLogoGlint 1.85s linear both; }
@keyframes nivensaLogoGlint {
    0%   { opacity: 0; transform: translate3d(72%, 72%, 0); }
    12%  { opacity: .78; }
    72%  { opacity: .78; }
    100% { opacity: 0; transform: translate3d(-72%, -72%, 0); }
}
.su-brand .brand-word { font-weight: 400; font-size: 18px; letter-spacing: 5px; color: var(--ink-soft); }
.su-top .su-signin { font-size: 13px; color: var(--ink-mid); }
.su-top .su-signin a { font-weight: 500; }

/* ── Headline ────────────────────────────────────────────── */
.su-head { text-align: center; max-width: 620px; margin: 26px auto 30px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; background: var(--teal-pill); color: var(--teal);
    border: 1px solid var(--teal-border); border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
}
.eyebrow .material-symbols-outlined { font-size: 14px; }
.su-head h1 {
    margin: 16px 0 12px; font-weight: 200;
    font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.5px; color: var(--ink);
}
.su-head h1 strong { font-weight: 400; color: var(--teal-deep); }
.su-head p { font-size: 16px; color: var(--ink-mute); margin: 0; }

/* ── Production launch gate ─────────────────────────────── */
.su-launch-gate {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px;
    margin: 0 0 28px; padding: 24px 26px; background: #fff; border: 1px solid var(--teal-border);
    border-radius: var(--radius-card); box-shadow: var(--shadow-pop);
}
.launch-icon {
    width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--teal-grad-1), var(--teal-deep));
    box-shadow: 0 4px 14px rgba(90,118,153,.24);
}
.launch-icon .material-symbols-outlined { font-size: 28px; }
.launch-copy h2 { margin: 8px 0 5px; color: var(--ink); font-size: 24px; font-weight: 400; letter-spacing: -.25px; }
.launch-copy p { margin: 0; max-width: 560px; color: var(--ink-mid); font-size: 13px; }
.launch-actions { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.launch-actions .btn { width: 100%; padding: 12px 16px; font-size: 13px; }
.su-form-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.su-form-fields[disabled] .plan-opt { cursor: default; }
.su-form-fields[disabled] input { cursor: not-allowed; }
.is-launch-preview #su-submit { opacity: .72; }

/* ── Layout: form card + side rail ───────────────────────── */
.su-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 28px; align-items: start; margin-bottom: 70px; }
.su-card {
    background: #fff; border: 1px solid var(--hair); border-radius: var(--radius-card);
    box-shadow: var(--shadow-pop); padding: 34px 34px 30px;
}
.su-section-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 600;
    color: var(--ink-mid); margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.su-section-label .step {
    width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
}
.su-section + .su-section { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--hair); }

/* ── Plan chooser ────────────────────────────────────────── */
.plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-opt {
    position: relative; cursor: pointer; display: block;
    border: 1.5px solid var(--hair); border-radius: var(--radius-tile);
    padding: 14px 12px; background: #fafbfb; transition: border-color .15s, background .15s, box-shadow .15s;
}
.plan-opt:hover { border-color: var(--teal-border); background: #fff; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt.is-sel { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(90,118,153,.10); }
.plan-opt .pname { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.plan-opt .pprice { font-size: 13px; color: var(--ink-mute); margin-top: 3px; }
.plan-opt .pprice b { color: var(--ink); font-weight: 600; font-size: 17px; }
.plan-opt .pmeta { font-size: 11px; color: var(--ink-faint); margin-top: 5px; line-height: 1.3; }
.plan-opt .ptick { position: absolute; top: 10px; right: 10px; color: var(--teal); font-size: 18px; opacity: 0; transition: opacity .15s; }
.plan-opt.is-sel .ptick { opacity: 1; }
.plan-ent { font-size: 12px; color: var(--ink-mute); margin-top: 12px; text-align: center; }

/* ── Fields ──────────────────────────────────────────────── */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field > label { font-size: 12px; font-weight: 500; color: var(--ink-soft); letter-spacing: .2px; }
.field > label em { color: var(--teal); font-style: normal; }
.field input {
    font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--ink);
    background: #fafbfb; border: 1px solid var(--hair); border-radius: 9px; padding: 12px 14px; width: 100%;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus { outline: none; background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(90,118,153,.12); }
.field input.bad { border-color: var(--accent-red); background: #fdf6f6; }
.field .hint { font-size: 11px; color: var(--ink-faint); }
.field .hint.err { color: var(--accent-red); }
.pw-rules { font-size: 11px; color: var(--ink-faint); margin: 2px 0 0; line-height: 1.5; }

/* ── Inert billing panel ─────────────────────────────────── */
.billing-inert { position: relative; }
.billing-inert .bi-note {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; color: var(--ink-mid); background: #eef7f0; border: 1px solid #c8e0cd;
    border-radius: 9px; padding: 10px 12px; margin-bottom: 14px;
}
.billing-inert .bi-note .material-symbols-outlined { font-size: 17px; color: var(--accent-green); flex-shrink: 0; }
.billing-inert fieldset { border: 0; margin: 0; padding: 0; opacity: .55; pointer-events: none; filter: grayscale(.2); }
.billing-inert .bi-tag {
    position: absolute; top: -9px; right: 8px; font-size: 9px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--ink-mute); background: #fff; border: 1px solid var(--hair);
    border-radius: 999px; padding: 3px 9px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 24px; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 500;
    letter-spacing: .3px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s; white-space: nowrap;
}
.btn .material-symbols-outlined { font-size: 18px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 2px rgba(90,145,153,.20); width: 100%; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; box-shadow: 0 4px 14px rgba(90,145,153,.28); transform: translateY(-1px); }
.btn-primary[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal-border); }
.btn-ghost:hover { background: var(--teal-pill); border-color: var(--teal); color: var(--teal-deep); }

.su-submit-wrap { margin-top: 24px; }
.su-status { font-size: 13px; margin: 12px 0 0; line-height: 1.45; text-align: center; }
.su-status.ok  { color: var(--accent-green); }
.su-status.err { color: var(--accent-red); }
.su-legal { font-size: 11px; color: var(--ink-faint); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.cf-turnstile { margin-top: 16px; }
#website { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Side rail ───────────────────────────────────────────── */
.su-rail { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius-card); box-shadow: var(--shadow-tile); padding: 26px 26px; }
.su-rail h3 { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--ink); }
.su-rail ul { list-style: none; margin: 0; padding: 0; }
.su-rail li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.su-rail li .material-symbols-outlined { font-size: 18px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.su-rail .rail-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--ink-mute); line-height: 1.6; }

/* ── Success / result states ─────────────────────────────── */
.su-result { max-width: 560px; margin: 30px auto 80px; }
.su-result .su-card { text-align: center; padding: 46px 40px 40px; }
.su-result .res-icon {
    width: 68px; height: 68px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.su-result .res-icon .material-symbols-outlined { font-size: 38px; font-variation-settings: 'FILL' 1; }
.res-icon.ok   { background: #e6f7f0; } .res-icon.ok .material-symbols-outlined   { color: var(--accent-green); }
.res-icon.warn { background: #fbeede; } .res-icon.warn .material-symbols-outlined { color: #a8703f; }
.res-icon.err  { background: #f7e6ec; } .res-icon.err .material-symbols-outlined  { color: var(--accent-red); }
.su-result h1 { margin: 0 0 12px; font-weight: 300; font-size: 28px; letter-spacing: -.3px; color: var(--ink); }
.su-result p { margin: 0 auto 8px; font-size: 15px; color: var(--ink-mute); max-width: 420px; line-height: 1.6; }
.su-result .res-actions { margin-top: 24px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.su-result .btn { width: auto; }
.su-result .res-email { font-weight: 600; color: var(--ink-soft); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 880px) {
    .su-top-wrap { padding: 0 22px; }
}
@media (max-width: 860px) {
    .su-grid { grid-template-columns: 1fr; }
    .su-rail { order: -1; }
    .su-launch-gate { grid-template-columns: auto minmax(0, 1fr); }
    .launch-actions { grid-column: 1 / -1; flex-direction: row; }
}
@media (max-width: 540px) {
    .plan-row { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .su-card { padding: 26px 20px; }
    .su-launch-gate { grid-template-columns: 1fr; padding: 22px 20px; text-align: center; }
    .launch-icon { margin: 0 auto; }
    .launch-actions { grid-column: auto; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
    .su-brand .brand-logo-mask.is-animating::after { animation: none; }
}
