/* ============================================================================
   Codemynt — public site design system
   ----------------------------------------------------------------------------
   Software product company look and feel: product-marketing structure, the
   real product UI carrying the hero, feature grids, and a proper multi-column
   footer. Flat colour throughout — no gradients anywhere.

   Type has three roles:
     Plus Jakarta Sans  display  — headings, product voice
     Inter              body     — the workhorse
     JetBrains Mono     data     — keys, domains, labels, code

   Colour carries meaning: indigo is brand and action, green only ever means
   verified, amber only ever means attention, red only ever means failure.
   ============================================================================ */

:root {
    --ink:         #0B1220;
    --ink-2:       #131C2E;
    --body:        #384765;
    --muted:       #5F6E86;
    --faint:       #8896AB;

    --paper:       #FFFFFF;
    --surface:     #F6F8FB;
    --surface-2:   #EDF1F7;
    --line:        #E3E9F1;
    --line-strong: #CDD7E4;

    --brand:       #2A3990;
    --brand-ink:   #1E2A6B;
    --brand-wash:  #EEF1F9;
    --brand-line:  #C6CFEA;

    --ok:          #0E7C5A;
    --ok-wash:     #E4F2EC;
    --warn:        #8A5A08;
    --warn-wash:   #F8EFDA;
    --bad:         #A32C1E;
    --bad-wash:    #F8E3DF;

    --display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sans:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --wrap: 1180px;
    --wrap-narrow: 900px;

    --r-sm: 6px;
    --r: 10px;
    --r-lg: 14px;

    /* Elevation is soft and neutral — product surfaces, not drop shadows. */
    --sh-1: 0 1px 2px rgba(11, 18, 32, .05);
    --sh-2: 0 1px 3px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .05);
    --sh-3: 0 2px 6px rgba(11, 18, 32, .07), 0 24px 56px rgba(11, 18, 32, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 600; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11.5px; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand);
}
.label {
    font-family: var(--mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--faint);
}
.num { font-variant-numeric: tabular-nums; }

/* ================================ buttons ================================ */
.btn-c {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--sans);
    font-size: 15px; font-weight: 600; line-height: 1;
    padding: 13px 20px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-c i { font-size: 15px; }
.btn-c:disabled, .btn-c[disabled] { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary-c { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--sh-1); }
.btn-primary-c:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }

.btn-outline-c { background: var(--paper); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--sh-1); }
.btn-outline-c:hover { background: var(--surface); border-color: var(--faint); color: var(--ink); }

.btn-ghost-c { background: transparent; color: var(--body); }
.btn-ghost-c:hover { background: var(--surface-2); color: var(--ink); }

.btn-on-ink { background: #fff; color: var(--ink); border-color: #fff; }
.btn-on-ink:hover { background: #E4EAF3; border-color: #E4EAF3; color: var(--ink); }
.btn-on-ink-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-on-ink-outline:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.55); color: #fff; }

/* ============================== status pills ============================== */
.pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 100px;
    background: var(--surface-2); color: var(--muted);
}
.pill i { font-size: 11px; }
.pill-ok   { background: var(--ok-wash);    color: var(--ok); }
.pill-warn { background: var(--warn-wash);  color: var(--warn); }
.pill-bad  { background: var(--bad-wash);   color: var(--bad); }
.pill-brand{ background: var(--brand-wash); color: var(--brand); }

/* ============================== nav / brand ============================== */
.nav-c, .navbar, .doc-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
    height: 68px; display: flex; align-items: center; gap: 28px;
}
.navbar-container, .doc-nav-inner {
    max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand-c, .navbar-brand, .doc-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark, .brand-icon, .doc-brand-mark {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 8px;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; overflow: hidden;
}
.brand-mark img, .brand-icon img, .doc-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text, .doc-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name, .doc-brand-name {
    font-family: var(--display); font-size: 16.5px; font-weight: 800;
    color: var(--ink); letter-spacing: -.025em;
}
.brand-sub, .doc-brand-sub {
    font-family: var(--mono); font-size: 9.5px; font-weight: 500;
    letter-spacing: .13em; text-transform: uppercase; color: var(--faint);
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 13px; border-radius: var(--r-sm);
    font-size: 14.5px; font-weight: 500; color: var(--body);
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links i { font-size: 14px; color: var(--faint); }
.nav-links a:hover i { color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.nav-actions .btn-c { padding: 10px 17px; font-size: 14.5px; }

.navbar-back, .doc-back {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px; border-radius: var(--r-sm);
    border: 1px solid var(--line-strong); background: var(--paper);
    color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: var(--sh-1);
    transition: background-color .15s ease, border-color .15s ease;
}
.navbar-back:hover, .doc-back:hover { background: var(--surface); border-color: var(--faint); color: var(--ink); }

.nav-toggle {
    display: none; margin-left: auto;
    width: 40px; height: 40px; align-items: center; justify-content: center;
    background: var(--paper); border: 1px solid var(--line-strong);
    border-radius: var(--r-sm); color: var(--ink); font-size: 19px; cursor: pointer;
}
.nav-mobile { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 14px 24px 20px; }
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-mobile a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-sm); color: var(--body); font-weight: 500; }
.nav-mobile a:hover { background: var(--surface-2); color: var(--ink); }
.nav-mobile i { color: var(--faint); width: 18px; }
.nav-mobile-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 940px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
}

/* ================================ sections ================================ */
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-surface { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--muted); }

/* ================================== hero ================================== */
.hero-c {
    padding: 76px 0 84px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px; align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-copy h1 {
    font-size: clamp(34px, 4.8vw, 54px);
    font-weight: 800; letter-spacing: -.032em;
    margin-bottom: 18px;
}
.hero-copy .lede { font-size: 18px; line-height: 1.65; color: var(--muted); margin-bottom: 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; font-size: 14.5px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points i { color: var(--ok); font-size: 15px; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

/* ---- Signature element: the product itself, rendered as a real console ----
   A software company shows the software. This is the licence console as a
   customer sees it — window chrome, a licence row, its activated domains. */
.app {
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--paper);
    box-shadow: var(--sh-3);
    overflow: hidden;
}
.app-chrome {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.app-dots { display: flex; gap: 6px; }
.app-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.app-url {
    flex: 1;
    font-family: var(--mono); font-size: 11.5px; color: var(--muted);
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 100px; padding: 4px 12px;
    text-align: center;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-body { padding: 20px; }

.app-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-bottom: 14px; margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.app-title { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); }

.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.app-stat { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; background: var(--paper); }
.app-stat .n {
    font-family: var(--display); font-size: 21px; font-weight: 800;
    color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.app-stat .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

.app-row {
    border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 14px; margin-bottom: 10px; background: var(--paper);
}
.app-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-row-name { font-family: var(--display); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.app-row-key {
    font-family: var(--mono); font-size: 12px; color: var(--muted);
    letter-spacing: .02em; margin-top: 3px;
}
.app-meta { display: flex; gap: 20px; padding-top: 11px; border-top: 1px dashed var(--line); }
.app-meta div { display: flex; flex-direction: column; gap: 2px; }
.app-meta .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.app-meta .v { font-size: 13.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.app-domains { display: flex; flex-direction: column; gap: 6px; }
.app-domain {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface);
    font-family: var(--mono); font-size: 12.5px; color: var(--ink);
}
.app-domain i { color: var(--ok); font-size: 13px; }
.app-domain .free { color: var(--faint); }
.app-domain.open { border-style: dashed; background: var(--paper); }
.app-domain.open i { color: var(--faint); }

/* =============================== feature grid =============================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card-c {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card-c:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.card-icon {
    width: 42px; height: 42px; border-radius: var(--r-sm);
    background: var(--brand-wash); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; margin-bottom: 16px;
}
.card-c h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card-c p { font-size: 14.8px; color: var(--muted); line-height: 1.62; }

/* ================================= steps ================================= */
/* Numbered because activation genuinely is a sequence — the order is what the
   reader needs. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step-c {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r); padding: 24px;
    position: relative;
}
.step-c::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    letter-spacing: .1em; color: var(--brand);
    margin-bottom: 14px;
}
.step-c h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step-c p { font-size: 14.8px; color: var(--muted); }

/* =============================== module cards =============================== */
/* Catalogue filters — segmented control, the standard product-catalogue affordance. */
.filters {
    display: inline-flex; gap: 4px; flex-wrap: wrap;
    padding: 4px; margin-bottom: 26px;
    background: var(--surface-2); border-radius: 100px;
}
.filter {
    font-family: var(--sans); font-size: 14px; font-weight: 600;
    color: var(--muted); background: transparent;
    border: 0; border-radius: 100px; padding: 8px 16px; cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.filter:hover { color: var(--ink); }
.filter.active { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }

.modules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px)  { .modules-grid { grid-template-columns: minmax(0, 1fr); } }

.module-card {
    display: flex; flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.module-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }

/* Module art is authored at 3:2. Contain, never cover — cover was cropping
   the top off every screenshot. */
.module-image-inner {
    aspect-ratio: 3 / 2;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.module-image { width: 100%; height: 100%; object-fit: contain; }
.module-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--line-strong); font-size: 40px;
}

.module-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.module-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500; color: var(--muted);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 100px; padding: 3px 10px;
}
.module-tag i { color: var(--ok); font-size: 11px; }

.modules-empty {
    grid-column: 1 / -1; text-align: center;
    padding: 56px 24px;
    border: 1px dashed var(--line-strong); border-radius: var(--r);
    background: var(--surface);
}
.modules-empty i { font-size: 34px; color: var(--line-strong); }
.modules-empty h3 { font-size: 17px; margin: 14px 0 6px; }
.modules-empty p { font-size: 14.5px; color: var(--muted); }

.module-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.module-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.module-name { font-size: 17px; font-weight: 700; }
.module-price {
    font-family: var(--display); font-size: 18px; font-weight: 800;
    color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.module-description { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.module-actions { display: flex; gap: 9px; margin-top: auto; }
.module-actions .btn-c { flex: 1; padding: 11px 14px; font-size: 14px; }

/* ================================= CTA band ================================= */
.cta-band { background: var(--ink); padding: 72px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: #9FADC4; font-size: 17px; max-width: 34em; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }

/* ================================== forms ================================== */
.field { margin-bottom: 18px; }
.field-label, .form-label {
    display: block;
    font-size: 13.5px; font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}
.field-input, .form-input, .form-control {
    width: 100%;
    font-family: var(--sans); font-size: 15px;
    color: var(--ink); background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input::placeholder, .form-input::placeholder, .form-control::placeholder { color: var(--faint); }
.field-input:focus, .form-input:focus, .form-control:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-wash);
}
.field-input.is-invalid, .form-input.is-invalid, .form-control.is-invalid { border-color: var(--bad); }
.field-input.is-invalid:focus, .form-input.is-invalid:focus { box-shadow: 0 0 0 3px var(--bad-wash); }

.field-error, .invalid-feedback, .error-message {
    display: block; font-size: 13px; color: var(--bad); margin-top: 6px;
}
.error-message:empty { display: none; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.field-group { position: relative; }
.field-group .field-input, .field-group .form-input { padding-right: 44px; }
.field-affix {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 0; cursor: pointer;
    color: var(--faint); font-size: 16px; border-radius: var(--r-sm);
}
.field-affix:hover { color: var(--ink); background: var(--surface-2); }

.check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--body); cursor: pointer; }
.check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

/* Six-digit verification code entry. */
.code-input {
    font-family: var(--mono) !important;
    font-size: 30px !important;
    font-weight: 500;
    text-align: center;
    letter-spacing: .38em;
    text-indent: .38em;
    padding: 16px 14px !important;
}

/* ================================ auth pages ================================ */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 44px 24px; }

.auth-card {
    width: 100%; max-width: 440px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-2);
    overflow: hidden;
}
.auth-card-wide { max-width: 600px; }

.auth-head { padding: 28px 30px 22px; border-bottom: 1px solid var(--line); }
.auth-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.028em; margin-bottom: 6px; }
.auth-head p { font-size: 14.8px; color: var(--muted); }

.auth-body { padding: 26px 30px 30px; }

.auth-foot {
    padding: 16px 30px; border-top: 1px solid var(--line);
    background: var(--surface); text-align: center;
    font-size: 14.5px; color: var(--muted);
}
.auth-foot a { font-weight: 600; }

.auth-divider {
    display: flex; align-items: center; gap: 12px; margin: 20px 0;
    font-family: var(--mono); font-size: 10.5px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-aside { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 20px; font-size: 14px; }

.auth-note {
    max-width: 440px; margin: 18px auto 0;
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13.5px; color: var(--muted);
}
.auth-note i { color: var(--ok); font-size: 15px; margin-top: 2px; }

/* Registration progress — four real steps, so the numbers mean something. */
.steps-bar { display: flex; align-items: flex-start; position: relative; margin-bottom: 28px; }
.progress-line { position: absolute; top: 15px; left: 12%; right: 12%; height: 2px; background: var(--line); }
.progress-line-fill { height: 100%; width: 0; background: var(--brand); transition: width .35s ease; }
.steps-bar .step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; z-index: 1; }
.step-circle {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper); border: 2px solid var(--line);
    font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--faint);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.step-label { font-size: 12px; font-weight: 500; color: var(--faint); }
.steps-bar .step.active .step-circle { border-color: var(--brand); background: var(--brand); color: #fff; }
.steps-bar .step.active .step-label { color: var(--ink); font-weight: 600; }
.steps-bar .step.completed .step-circle { border-color: var(--ok); background: var(--ok); color: #fff; }
.steps-bar .step.completed .step-label { color: var(--body); }

.step-content { display: none; }
.step-content.active { display: block; }

/* Password strength — colour is the only signal that changes, no gradient. */
.strength-track { height: 4px; background: var(--surface-2); border-radius: 100px; overflow: hidden; margin-top: 9px; }
.strength-fill { height: 100%; width: 0; border-radius: 100px; transition: width .25s ease, background-color .25s ease; }
.strength-fill.strength-weak   { background: var(--bad); }
.strength-fill.strength-medium { background: #B8791A; }
.strength-fill.strength-good   { background: #2E7CB8; }
.strength-fill.strength-strong { background: var(--ok); }
.strength-text { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 6px; }

.requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin-top: 12px; }
@media (max-width: 480px) { .requirements { grid-template-columns: minmax(0, 1fr); } }
.requirement { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }
.requirement i { font-size: 13px; }
.requirement.met { color: var(--ok); }

.countdown-timer { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.resend-button {
    background: none; border: 0; padding: 0;
    font-family: var(--sans); font-size: 13.5px; font-weight: 600;
    color: var(--brand); cursor: pointer;
}
.resend-button:disabled { color: var(--faint); cursor: not-allowed; }

.recaptcha-hidden, .send-button-hidden { display: none !important; }

/* ================================= alerts ================================= */
.alert-c {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: var(--surface);
    font-size: 14.5px; margin-bottom: 18px;
}
.alert-c i { margin-top: 2px; flex-shrink: 0; }
.alert-c.ok   { background: var(--ok-wash);   border-color: transparent; color: var(--ok); }
.alert-c.bad  { background: var(--bad-wash);  border-color: transparent; color: var(--bad); }
.alert-c.warn { background: var(--warn-wash); border-color: transparent; color: var(--warn); }
.alert-c.info { background: var(--brand-wash); border-color: transparent; color: var(--brand-ink); }
.alert-c ul { margin: 0; padding-left: 18px; }

/* ============================ content / policy ============================ */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 17px; color: var(--muted); max-width: 46em; }

.prose { font-size: 16px; line-height: 1.75; color: var(--body); }
.prose h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.prose h3 { font-size: 17.5px; font-weight: 700; margin: 26px 0 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; }
.prose li { margin-bottom: 7px; }
.prose a { font-weight: 500; }
.prose code {
    font-family: var(--mono); font-size: .88em;
    background: var(--surface-2); color: var(--ink);
    padding: 2px 6px; border-radius: 4px;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.table-scroll { overflow-x: auto; }

.content-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r); padding: 32px;
}
@media (max-width: 620px) { .content-card { padding: 22px; } }

/* --------- standalone content pages (about, legal, policies) --------- */
.main-content { max-width: var(--wrap-narrow); margin: 0 auto; padding: 34px 24px 64px; }

.policy-card, .about-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r); padding: 30px;
}
.about-card { margin-bottom: 18px; }
.about-card h3 { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.about-card h3 i { color: var(--brand); font-size: 17px; }
.about-card p { margin-bottom: 12px; }
.about-card p:last-child { margin-bottom: 0; }

.last-updated {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    color: var(--muted); background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 12px; border-radius: 100px; margin-bottom: 26px;
}

.policy-section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); }
.policy-section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.policy-section h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.policy-section h2 i { color: var(--brand); font-size: 17px; }
.policy-section h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 8px; }
.policy-section p { margin-bottom: 12px; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul, .policy-section ol { padding-left: 20px; margin-bottom: 12px; }
.policy-section li { margin-bottom: 6px; }
.policy-section a { text-decoration: underline; text-underline-offset: 2px; }

/* Scoped to the content shell so it never collides with the marketing
   `.section` rhythm, which uses generous vertical padding instead. */
.main-content .section { padding: 0; margin-bottom: 34px; }
.section-header { margin-bottom: 20px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    letter-spacing: .13em; text-transform: uppercase; color: var(--brand);
    margin-bottom: 10px;
}
.section-title { font-size: 25px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
.section-subtitle { font-size: 16px; color: var(--muted); max-width: 62ch; }

.mv-grid, .values-grid, .stats-grid, .tech-grid { display: grid; gap: 16px; }
.mv-grid     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tech-grid   { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 780px) {
    .mv-grid, .values-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mv-card, .value-card, .stat-card, .tech-item {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r); padding: 22px;
    transition: border-color .15s ease;
}
.mv-card:hover, .value-card:hover, .tech-item:hover { border-color: var(--line-strong); }
.mv-card h3, .value-card h3 { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.mv-card h3 i, .value-card h3 i { color: var(--brand); }
.mv-card p, .value-card p { font-size: 14.8px; color: var(--muted); }

.value-icon {
    width: 40px; height: 40px; border-radius: var(--r-sm);
    background: var(--brand-wash); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 14px;
}
/* Flat tints, never gradients. */
.value-icon.blue   { background: var(--brand-wash); color: var(--brand); }
.value-icon.green  { background: var(--ok-wash);    color: var(--ok); }
.value-icon.orange { background: var(--warn-wash);  color: var(--warn); }
.value-icon.purple { background: var(--surface-2);  color: var(--body); }

.stat-card { text-align: center; padding: 20px 14px; }
.stat-number {
    font-family: var(--display); font-size: 27px; font-weight: 800;
    color: var(--ink); letter-spacing: -.03em; line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.tech-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.tech-item i { color: var(--brand); font-size: 17px; }

.cta-section {
    background: var(--ink); border-radius: var(--r);
    padding: 36px 28px; text-align: center; margin-top: 8px;
}
.cta-section h2 { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.cta-section p { color: #9BAAC2; margin-bottom: 22px; font-size: 16px; }
.cta-buttons { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-primary, .cta-section .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: var(--r-sm);
    font-size: 15px; font-weight: 600;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease;
}
.cta-section .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-section .btn-primary:hover { background: #E4EAF3; color: var(--ink); }
.cta-section .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-section .btn-secondary:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.55); color: #fff; }

@media (max-width: 620px) { .policy-card, .about-card { padding: 22px; } }

/* ================================= footer ================================= */
.foot { background: var(--ink); color: #93A3BC; padding: 56px 0 0; }
.foot a { color: #93A3BC; font-size: 14.5px; }
.foot a:hover { color: #fff; }
.foot-grid {
    display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
    gap: 40px; padding-bottom: 44px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot-brand .brand-mark { background: rgba(255,255,255,.1); }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-sub { color: #6E7F9A; }
.foot-about { font-size: 14.5px; line-height: 1.65; color: #93A3BC; max-width: 32em; }

.foot-col h4 {
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    color: #6E7F9A; margin-bottom: 14px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.foot-social { display: flex; gap: 8px; margin-top: 18px; }
.foot-social a {
    width: 34px; height: 34px; border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); color: #93A3BC; font-size: 15px;
    transition: background-color .15s ease, color .15s ease;
}
.foot-social a:hover { background: rgba(255,255,255,.13); color: #fff; }

.foot-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    padding: 20px 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    font-size: 13.5px; color: #6E7F9A;
}
.foot-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom a { font-size: 13.5px; }

/* Compact single-line footer used on the standalone pages. */
.footer { background: var(--ink-2); color: #93A3BC; padding: 26px 24px; text-align: center; font-size: 14px; }
.footer a { color: #93A3BC; }
.footer a:hover { color: #fff; }
.footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ================================= motion ================================= */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================== documentation ==============================
   The guides page. Same tokens as the rest of the site; the numbered cards
   are legitimate here because installation genuinely runs in order.
   ========================================================================== */
.cp-docs-page { max-width: var(--wrap-narrow); margin: 0 auto; padding: 44px 24px 72px; }

.cp-docs-header { margin-bottom: 30px; }
.cp-docs-header .eyebrow { display: block; margin-bottom: 12px; }
.cp-docs-header h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.cp-docs-header p { font-size: 17px; color: var(--muted); max-width: 58ch; }

/* Section nav sticks under the site nav (64px) so it stays reachable. */
.cp-docs-nav {
    position: sticky; top: 64px; z-index: 20;
    display: flex; gap: 4px; flex-wrap: wrap;
    padding: 10px 0 12px; margin-bottom: 26px;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.cp-docs-nav a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 100px;
    font-size: 14px; font-weight: 500; color: var(--muted);
    transition: background-color .15s ease, color .15s ease;
}
.cp-docs-nav a i { font-size: 14px; }
.cp-docs-nav a:hover { background: var(--surface-2); color: var(--ink); }
.cp-docs-nav a.active { background: var(--brand); color: #fff; }
.cp-docs-nav a.active i { color: #fff; }

.cp-docs-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r); margin-bottom: 20px;
    overflow: hidden; scroll-margin-top: 130px;
}
.cp-docs-card-header {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 24px;
    background: var(--surface); border-bottom: 1px solid var(--line);
}
.cp-docs-card-header h2 { font-size: 18px; font-weight: 700; }
.cp-step-num {
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: var(--r-sm);
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 13px; font-weight: 500;
}
.cp-docs-card-body { padding: 24px; font-size: 15.5px; line-height: 1.72; }
.cp-docs-card-body > p:first-child { margin-top: 0; }
.cp-docs-card-body p { margin-bottom: 14px; }
.cp-docs-card-body p:last-child { margin-bottom: 0; }
.cp-docs-card-body h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.cp-docs-card-body h3:first-child { margin-top: 0; }

/* Ordered instructions, numbered by CSS so the markup stays clean. */
.cp-steps-list { list-style: none; counter-reset: cpstep; margin: 0 0 16px; padding: 0; }
.cp-steps-list li {
    counter-increment: cpstep;
    position: relative; padding-left: 32px; margin-bottom: 10px;
}
.cp-steps-list li::before {
    content: counter(cpstep);
    position: absolute; left: 0; top: 3px;
    width: 21px; height: 21px; border-radius: 50%;
    background: var(--brand-wash); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 11px; font-weight: 500;
}
/* Unordered variants opt out via inline counter-reset/increment: none. */
.cp-steps-list li[style*="counter-increment: none"]::before,
.cp-steps-list[style*="counter-reset: none"] li::before {
    content: "\2022"; background: transparent; color: var(--faint); font-size: 16px;
}

.cp-code-block {
    font-family: var(--mono); font-size: 13px; line-height: 1.7;
    background: var(--ink); color: #C9D6E8;
    border-radius: var(--r-sm); padding: 16px 18px;
    margin-bottom: 16px; overflow-x: auto;
    white-space: pre;
}
.cp-code-comment { color: #7A8AA3; }
.cp-code-key { color: #8FB8F0; }
.cp-code-string { color: #8FD3B0; }

.cp-info-box, .cp-warn-box {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 14px 16px; border-radius: var(--r-sm);
    margin-bottom: 16px; font-size: 14.5px; line-height: 1.65;
}
.cp-info-box { background: var(--brand-wash); color: var(--brand-ink); }
.cp-warn-box { background: var(--warn-wash); color: var(--warn); }
.cp-info-box i, .cp-warn-box i { font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.cp-info-box strong, .cp-warn-box strong { color: inherit; }

.cp-badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.cp-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500;
    padding: 5px 11px; border-radius: 100px;
    background: var(--surface-2); color: var(--body);
}
.cp-badge.blue   { background: var(--brand-wash); color: var(--brand); }
.cp-badge.green  { background: var(--ok-wash);    color: var(--ok); }
.cp-badge.purple { background: var(--surface-2);  color: var(--body); }

.cp-docs-cta {
    background: var(--ink); border-radius: var(--r);
    padding: 34px 28px; text-align: center; margin-top: 10px;
}
.cp-docs-cta h3 { color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 9px; }
.cp-docs-cta p { color: #9BAAC2; font-size: 15.5px; margin-bottom: 20px; }
.cp-docs-cta a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--r-sm);
    background: #fff; color: var(--ink);
    font-size: 15px; font-weight: 600;
    transition: background-color .15s ease;
}
.cp-docs-cta a:hover { background: #E4EAF3; color: var(--ink); }

.doc-foot {
    background: var(--ink-2); color: #93A3BC;
    padding: 24px; text-align: center; font-size: 14px;
}
.doc-foot a { color: #93A3BC; }
.doc-foot a:hover { color: #fff; }

@media (max-width: 620px) {
    .cp-docs-page { padding: 30px 20px 52px; }
    .cp-docs-card-body { padding: 20px; }
    .cp-docs-nav { top: 0; }
}

/* ------- aliases and extras carried over from the legacy page markup ------- */
.terms-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
@media (max-width: 620px) { .terms-card { padding: 22px; } }

.terms-section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); }
.terms-section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.terms-section h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.terms-section h2 i { color: var(--brand); font-size: 17px; }
.terms-section h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 8px; }
.terms-section p { margin-bottom: 12px; }
.terms-section p:last-child { margin-bottom: 0; }
.terms-section ul, .terms-section ol { padding-left: 20px; margin-bottom: 12px; }
.terms-section li { margin-bottom: 6px; }
.terms-section a { text-decoration: underline; text-underline-offset: 2px; }

/* Pulled-out clause the reader must not skim past. */
.highlight-box {
    background: var(--brand-wash);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 14px 18px; margin: 16px 0;
    font-size: 15px; color: var(--brand-ink);
}
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box strong { color: var(--brand-ink); }

.cookie-table {
    width: 100%; border-collapse: collapse;
    margin: 12px 0 20px; font-size: 14.5px;
    display: block; overflow-x: auto; white-space: nowrap;
}
.cookie-table th, .cookie-table td {
    text-align: left; padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
}
.cookie-table th {
    font-family: var(--mono); font-size: 10.5px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
    background: var(--surface); border-bottom-color: var(--line-strong);
}
.cookie-table tr:last-child td { border-bottom: 0; }

/* Mission and vision read as a matched pair, distinguished by accent only. */
.mv-card.mission .value-icon, .mv-card.mission h3 i { color: var(--brand); }
.mv-card.vision  .value-icon, .mv-card.vision  h3 i { color: var(--ok); }
.mv-card.vision  .value-icon { background: var(--ok-wash); }

/* Button loading state — the register flow injects this while a step runs. */
.spinner-border {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
