/* =====================================================================
   DIGISPUR SOLUTIONS - brand styles for public pages
   (landing, sign in, register, password reset).
   Hand-written: the app's Tailwind build is precompiled, so these pages
   use their own "dg-" classes. Units are px because Bootstrap 3 sets the
   root font size to 10px.
   ===================================================================== */

:root {
    --dg-navy-950: #050D21;
    --dg-navy-900: #0B1F4B;
    --dg-navy-800: #102B63;
    --dg-blue-700: #163D82;
    --dg-blue-600: #1E4FA3;
    --dg-blue-500: #2F66C8;
    --dg-blue-100: #E6EEFB;
    --dg-green-600: #0E8A45;
    --dg-green-500: #12A150;
    --dg-green-100: #E3F6EB;
    --dg-red-600: #B5122B;
    --dg-red-500: #D7263D;
    --dg-ink: #0F172A;
    --dg-ink-2: #334155;
    --dg-muted: #64748B;
    --dg-line: #E2E8F0;
    --dg-surface: #F5F7FB;
    --dg-white: #FFFFFF;
    --dg-radius: 14px;
    --dg-font: 'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', 'Segoe UI Variable Text', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

html.dg-public, html.dg-public body {
    background: var(--dg-surface) !important;
    min-height: 100%;
}
.dg-public body, .dg-public {
    font-family: var(--dg-font);
    color: var(--dg-ink);
    -webkit-font-smoothing: antialiased;
}
.dg-public h1, .dg-public h2, .dg-public h3, .dg-public h4 { color: inherit; font-family: var(--dg-font); }
.dg-public a { text-decoration: none; }

/* ---------------- Logo ---------------- */
.dg-logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.dg-logo svg { flex-shrink: 0; }
.dg-logo__text { display: inline-flex; flex-direction: column; gap: 4px; }
.dg-logo__word {
    font-weight: 800; letter-spacing: -0.02em;
    font-size: calc(var(--dg-logo-size) * 0.56);
    color: var(--dg-blue-600);
}
.dg-logo__tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.32em;
    font-size: calc(var(--dg-logo-size) * 0.22);
    color: var(--dg-navy-900);
}
.dg-logo__flag {
    display: inline-block; width: 16px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--dg-red-500) 0 50%, var(--dg-green-500) 50% 100%);
}
.dg-logo--dark .dg-logo__word { color: #fff; }
.dg-logo--dark .dg-logo__tag { color: rgba(255,255,255,.72); }

/* ---------------- Split auth layout ---------------- */
.dg-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.dg-auth--wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }

.dg-brand {
    position: relative; overflow: hidden; color: #fff;
    padding: 48px 64px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    background:
        radial-gradient(900px 500px at 110% -10%, rgba(215,38,61,.28), transparent 60%),
        radial-gradient(800px 520px at -10% 110%, rgba(18,161,80,.30), transparent 60%),
        radial-gradient(700px 500px at 60% 40%, rgba(47,102,200,.35), transparent 65%),
        linear-gradient(160deg, var(--dg-navy-950) 0%, var(--dg-navy-900) 55%, #07163A 100%);
}
/* faint grid */
.dg-brand::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 80%);
}
/* Kenyan flag edge */
.dg-brand::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
    background: linear-gradient(180deg, #111 0 30%, #fff 30% 32%, var(--dg-red-500) 32% 68%, #fff 68% 70%, var(--dg-green-500) 70% 100%);
    opacity: .9;
}
.dg-brand > * { position: relative; z-index: 1; }

.dg-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: .01em;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(6px);
}
.dg-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dg-green-500); box-shadow: 0 0 0 4px rgba(18,161,80,.22); }

.dg-brand__headline {
    margin: 22px 0 16px; font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; color: #fff;
}
.dg-brand__headline em {
    font-style: normal;
    background: linear-gradient(90deg, #7FE3A6, #FFFFFF 60%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dg-brand__lead { max-width: 520px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.76); margin: 0; }

.dg-features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.dg-features li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: rgba(255,255,255,.9); }
.dg-features__icon {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #8FE6B3;
}
.dg-features__icon svg { width: 20px; height: 20px; }

.dg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dg-tile {
    padding: 14px 16px; border-radius: 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.dg-tile__value { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.dg-tile__label { margin-top: 2px; font-size: 12.5px; color: rgba(255,255,255,.64); }
.dg-brand__foot { font-size: 13px; color: rgba(255,255,255,.55); }

/* right side */
.dg-panel {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 72px 32px 40px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(30,79,163,.07), transparent 70%),
        radial-gradient(500px 300px at 0% 100%, rgba(18,161,80,.06), transparent 70%),
        var(--dg-surface);
}
.dg-panel__top {
    position: absolute; top: 20px; left: 28px; right: 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.dg-panel__top-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.dg-panel__foot { margin-top: 26px; font-size: 13px; color: var(--dg-muted); text-align: center; }

.dg-card {
    width: 100%; max-width: 460px;
    background: var(--dg-white); border-radius: 22px;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 60px -24px rgba(11,31,75,.28);
    padding: 40px 40px 34px;
}
.dg-card--wide { max-width: 900px; padding: 32px; }
.dg-card__logo { margin-bottom: 26px; }
.dg-card__title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--dg-ink); }
.dg-card__subtitle { margin: 6px 0 26px; font-size: 15px; color: var(--dg-muted); }

/* fields */
.dg-field { margin-bottom: 18px; }
.dg-field__label {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--dg-ink-2);
}
.dg-field__label a { font-weight: 600; color: var(--dg-green-600); }
.dg-field__label a:hover { color: var(--dg-green-500); text-decoration: underline; }
.dg-input { position: relative; }
.dg-input__icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: #94A3B8; pointer-events: none;
}
.dg-input input {
    width: 100%; height: 52px; padding: 0 46px 0 46px;
    font-size: 15px; font-weight: 500; color: var(--dg-ink);
    background: #FBFCFE; border: 1.5px solid var(--dg-line); border-radius: 12px;
    outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
    box-shadow: none;
}
.dg-input input::placeholder { color: #94A3B8; font-weight: 500; }
.dg-input input:focus { background: #fff; border-color: var(--dg-blue-500); box-shadow: 0 0 0 4px rgba(47,102,200,.14); }
.dg-input--error input { border-color: var(--dg-red-500); background: #FFF7F8; }
.dg-input--error input:focus { box-shadow: 0 0 0 4px rgba(215,38,61,.14); }
.dg-input__toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; color: #64748B; cursor: pointer;
}
.dg-input__toggle:hover { background: #F1F5F9; color: var(--dg-ink); }
.dg-input__toggle svg { width: 20px; height: 20px; }
.dg-error { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--dg-red-600); }

.dg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; }
.dg-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--dg-ink-2); margin: 0; }
.dg-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--dg-green-600); cursor: pointer; }

/* buttons */
.dg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
    font-family: var(--dg-font); font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
    transition: transform .12s, box-shadow .15s, background .15s, color .15s;
}
.dg-btn svg { width: 18px; height: 18px; transition: transform .15s; }
.dg-btn:hover svg { transform: translateX(3px); }
.dg-btn:active { transform: translateY(1px); }
.dg-btn--block { width: 100%; }
.dg-btn--primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--dg-blue-600) 0%, var(--dg-navy-900) 100%);
    box-shadow: 0 10px 24px -10px rgba(11,31,75,.65), inset 0 1px 0 rgba(255,255,255,.14);
}
.dg-btn--primary:hover { background: linear-gradient(135deg, var(--dg-blue-500) 0%, var(--dg-navy-800) 100%); }
.dg-btn--primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(47,102,200,.3); }
.dg-btn--green { color: #fff !important; background: linear-gradient(135deg, var(--dg-green-500), var(--dg-green-600)); box-shadow: 0 10px 24px -12px rgba(14,138,69,.7); }
.dg-btn--green:hover { filter: brightness(1.06); }
.dg-btn--outline { color: var(--dg-navy-900) !important; background: #fff; border: 1.5px solid var(--dg-line); }
.dg-btn--outline:hover { border-color: var(--dg-blue-500); color: var(--dg-blue-600) !important; }
.dg-btn--ghost-light { color: #fff !important; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.dg-btn--ghost-light:hover { background: rgba(255,255,255,.16); }
.dg-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

.dg-divider {
    display: flex; align-items: center; gap: 14px; margin: 26px 0 18px;
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #94A3B8;
}
.dg-divider::before, .dg-divider::after { content: ''; flex: 1; height: 1px; background: var(--dg-line); }

.dg-link { font-weight: 700; color: var(--dg-blue-600); }
.dg-link:hover { color: var(--dg-blue-500); text-decoration: underline; }
.dg-toplink { font-size: 14px; font-weight: 600; color: var(--dg-ink-2); padding: 8px 12px; border-radius: 10px; }
.dg-toplink:hover { background: #fff; color: var(--dg-blue-600); }

.dg-alert {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; margin-bottom: 18px; border-radius: 12px;
    font-size: 14px; font-weight: 600;
}
.dg-alert--success { background: var(--dg-green-100); color: var(--dg-green-600); }
.dg-alert--error { background: #FDECEF; color: var(--dg-red-600); }

/* language selector on light backgrounds */
.dg-lang summary {
    list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--dg-ink-2);
    padding: 8px 12px; border-radius: 10px;
}
.dg-lang summary::-webkit-details-marker { display: none; }
.dg-lang summary:hover { background: #fff; }
.dg-lang ul { right: 0; }

/* register wizard (jquery.steps) in brand colours */
.dg-public .wizard > .steps > ul > li { margin-bottom: 8px; }
.dg-public .wizard > .steps a, .dg-public .wizard > .steps a:hover, .dg-public .wizard > .steps a:active {
    border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 14px; margin: 0 6px 0 0;
}
.dg-public .wizard > .steps .current a, .dg-public .wizard > .steps .current a:hover, .dg-public .wizard > .steps .current a:active {
    background: linear-gradient(135deg, var(--dg-blue-600), var(--dg-navy-900)); color: #fff;
}
.dg-public .wizard > .steps .done a, .dg-public .wizard > .steps .done a:hover, .dg-public .wizard > .steps .done a:active {
    background: var(--dg-green-100); color: var(--dg-green-600);
}
.dg-public .wizard > .steps .disabled a, .dg-public .wizard > .steps .disabled a:hover {
    background: #F1F5F9; color: #94A3B8;
}
.dg-public .wizard > .content { background: #fff !important; border-radius: 14px; min-height: 0; margin: 10px 0; }
.dg-public .wizard > .actions a, .dg-public .wizard > .actions a:hover, .dg-public .wizard > .actions a:active {
    background: linear-gradient(135deg, var(--dg-blue-600), var(--dg-navy-900)); border-radius: 10px;
    padding: 10px 22px; font-weight: 700; color: #fff;
}
.dg-public .wizard > .actions .disabled a, .dg-public .wizard > .actions .disabled a:hover {
    background: #E2E8F0; color: #94A3B8;
}
.dg-public .wizard .form-control {
    height: 42px; border-radius: 10px; border: 1.5px solid var(--dg-line); box-shadow: none; font-size: 14px;
}
.dg-public .wizard .form-control:focus { border-color: var(--dg-blue-500); box-shadow: 0 0 0 3px rgba(47,102,200,.14); }
.dg-public .wizard textarea.form-control { height: auto; }
.dg-public .wizard .input-group-addon { border-radius: 10px 0 0 10px; border: 1.5px solid var(--dg-line); border-right: 0; background: #F8FAFC; color: #64748B; }
.dg-public .wizard .input-group .form-control:last-child { border-radius: 0 10px 10px 0; }
.dg-public .wizard label { font-size: 13px; font-weight: 700; color: var(--dg-ink-2); }
.dg-public .wizard h3, .dg-public .wizard legend { color: var(--dg-ink); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .dg-brand { padding: 40px; }
    .dg-brand__headline { font-size: 38px; }
}
@media (max-width: 960px) {
    .dg-auth, .dg-auth--wide { grid-template-columns: 1fr; }
    .dg-brand { display: none; }
    .dg-panel { padding: 88px 16px 32px; }
    .dg-card { padding: 30px 22px 26px; border-radius: 18px; }
    .dg-card--wide { padding: 18px 14px; }
}

/* =====================================================================
   Landing page
   ===================================================================== */
.dg-landing { background: #fff; }
.dg-nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 16px 48px;
    background: rgba(5,13,33,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.dg-nav__links { display: flex; align-items: center; gap: 6px; }
.dg-nav__link { color: rgba(255,255,255,.78); font-size: 14.5px; font-weight: 600; padding: 9px 14px; border-radius: 10px; }
.dg-nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.dg-nav .dg-lang summary { color: rgba(255,255,255,.78); }
.dg-nav .dg-lang summary:hover { background: rgba(255,255,255,.08); }

.dg-hero {
    position: relative; overflow: hidden; color: #fff;
    padding: 96px 48px 120px;
    background:
        radial-gradient(1100px 600px at 100% 0%, rgba(215,38,61,.22), transparent 60%),
        radial-gradient(1000px 640px at 0% 100%, rgba(18,161,80,.26), transparent 60%),
        radial-gradient(900px 560px at 55% 35%, rgba(47,102,200,.38), transparent 65%),
        linear-gradient(165deg, var(--dg-navy-950), var(--dg-navy-900) 60%, #07163A);
}
.dg-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%);
}
.dg-hero__inner {
    position: relative; z-index: 1; max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.dg-hero__title { margin: 22px 0 18px; font-size: 58px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.dg-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, #7FE3A6, #fff 70%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dg-hero__lead { max-width: 560px; margin: 0 0 32px; font-size: 18.5px; line-height: 1.6; color: rgba(255,255,255,.76); }
.dg-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dg-hero__trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: rgba(255,255,255,.68); }
.dg-hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.dg-hero__trust svg { width: 18px; height: 18px; color: #7FE3A6; }

/* product preview */
.dg-preview {
    position: relative; border-radius: 22px; padding: 18px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
    backdrop-filter: blur(8px);
}
.dg-preview__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.dg-preview__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dg-preview__bar i:nth-child(1) { background: #D7263D; }
.dg-preview__bar i:nth-child(2) { background: #F2C14E; }
.dg-preview__bar i:nth-child(3) { background: #12A150; }
.dg-preview__card { background: #fff; color: var(--dg-ink); border-radius: 16px; padding: 18px 20px; }
.dg-preview__card + .dg-preview__card { margin-top: 12px; }
.dg-preview__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dg-preview__label { font-size: 12.5px; font-weight: 600; color: var(--dg-muted); }
.dg-preview__value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.dg-preview__value--green { color: var(--dg-green-600); }
.dg-preview__bar-track { margin-top: 10px; height: 8px; border-radius: 8px; background: #EEF2F7; overflow: hidden; }
.dg-preview__bar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--dg-blue-600), var(--dg-green-500)); }
.dg-preview__agents { display: grid; gap: 10px; margin-top: 4px; }
.dg-preview__agent { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; }
.dg-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: #fff;
}
.dg-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.dg-badge--green { background: var(--dg-green-100); color: var(--dg-green-600); }
.dg-badge--blue { background: var(--dg-blue-100); color: var(--dg-blue-600); }
.dg-badge--red { background: #FDECEF; color: var(--dg-red-600); }
.dg-preview__float {
    position: absolute; left: -28px; bottom: -22px;
    background: #fff; color: var(--dg-ink); border-radius: 14px; padding: 12px 16px;
    box-shadow: 0 20px 40px -16px rgba(0,0,0,.45);
    display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700;
}

/* sections */
.dg-section { padding: 96px 48px; }
.dg-section--tint { background: var(--dg-surface); }
.dg-section__inner { max-width: 1200px; margin: 0 auto; }
.dg-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dg-green-600); }
.dg-section__title { margin: 10px 0 12px; font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; color: var(--dg-ink); }
.dg-section__lead { max-width: 640px; margin: 0; font-size: 17px; line-height: 1.6; color: var(--dg-muted); }
.dg-center { text-align: center; }
.dg-center .dg-section__lead { margin: 0 auto; }

.dg-industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.dg-industry {
    padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--dg-line);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dg-industry:hover { transform: translateY(-3px); border-color: rgba(30,79,163,.3); box-shadow: 0 18px 40px -24px rgba(11,31,75,.4); }
.dg-industry__icon {
    width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.dg-industry__icon svg { width: 24px; height: 24px; }
.dg-industry h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.dg-industry p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--dg-muted); }

.dg-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.dg-feature { padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--dg-line); }
.dg-feature__icon {
    width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--dg-blue-100); color: var(--dg-blue-600); margin-bottom: 16px;
}
.dg-feature__icon--green { background: var(--dg-green-100); color: var(--dg-green-600); }
.dg-feature__icon--red { background: #FDECEF; color: var(--dg-red-600); }
.dg-feature__icon svg { width: 22px; height: 22px; }
.dg-feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.dg-feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--dg-muted); }

.dg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; counter-reset: dgstep; }
.dg-step { position: relative; padding: 28px 26px 26px; border-radius: 18px; background: #fff; border: 1px solid var(--dg-line); }
.dg-step::before {
    counter-increment: dgstep; content: counter(dgstep);
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px;
    font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--dg-blue-600), var(--dg-navy-900));
}
.dg-step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.dg-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--dg-muted); }
.dg-step code { font-family: inherit; font-weight: 700; color: var(--dg-ink); background: var(--dg-surface); padding: 1px 6px; border-radius: 6px; }

.dg-cta {
    position: relative; overflow: hidden; max-width: 1200px; margin: 0 auto;
    border-radius: 28px; padding: 56px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(215,38,61,.3), transparent 60%),
        radial-gradient(600px 320px at 0% 100%, rgba(18,161,80,.35), transparent 60%),
        linear-gradient(135deg, var(--dg-navy-900), var(--dg-blue-700));
}
.dg-cta h2 { margin: 0 0 8px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.dg-cta p { margin: 0; font-size: 17px; color: rgba(255,255,255,.78); }

.dg-footer { padding: 36px 48px; border-top: 1px solid var(--dg-line); background: #fff; }
.dg-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--dg-muted); }

@media (max-width: 1080px) {
    .dg-hero__inner { grid-template-columns: 1fr; }
    .dg-hero__title { font-size: 46px; }
    .dg-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dg-grid-3, .dg-steps { grid-template-columns: 1fr; }
    .dg-preview__float { left: 12px; }
}
@media (max-width: 720px) {
    .dg-nav { padding: 12px 16px; }
    .dg-nav__links .dg-nav__link--hide-sm { display: none; }
    .dg-hero { padding: 64px 16px 80px; }
    .dg-hero__title { font-size: 36px; }
    .dg-section { padding: 64px 16px; }
    .dg-section__title { font-size: 30px; }
    .dg-industries { grid-template-columns: 1fr; }
    .dg-cta { padding: 32px 22px; border-radius: 20px; }
    .dg-footer { padding: 28px 16px; }
    .dg-tiles { grid-template-columns: 1fr; }
}

/* Keep the brand panel in view while long forms (register) scroll. */
@media (min-width: 961px) {
    .dg-auth .dg-brand { position: sticky; top: 0; height: 100vh; }
}

/* Keep button and nav labels on one line */
.dg-btn, .dg-nav__link, .dg-toplink { white-space: nowrap; }
@media (max-width: 420px) {
    .dg-nav .dg-logo__tag { display: none; }
    .dg-nav .dg-nav__link { display: none; }
    .dg-nav .dg-btn--sm { padding: 0 12px; }
}

/* ---------- Clean white fields (no grey fill) ---------- */
.dg-input input {
    background: #FFFFFF !important;
    border: 1.5px solid #D5DEEA !important;
    color: #0F172A !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.04) !important;
}
.dg-input input::placeholder { color: #8A97AB !important; font-weight: 500; }
.dg-input input:hover { border-color: #AFC2DE !important; }
.dg-input input:focus {
    border-color: #1E4FA3 !important;
    box-shadow: 0 0 0 4px rgba(30,79,163,.12) !important;
}
.dg-input__icon { color: #1E4FA3 !important; opacity: .75; }
.dg-input input:focus ~ .dg-input__icon, .dg-input:focus-within .dg-input__icon { opacity: 1; }
.dg-input--error input { background: #FFFFFF !important; border-color: #D7263D !important; }
.dg-input__toggle { color: #1E4FA3; }
.dg-input__toggle:hover { background: #F0F5FD; color: #163D82; }
/* Stop the browser's autofill from painting fields yellow/grey */
.dg-input input:-webkit-autofill,
.dg-input input:-webkit-autofill:hover,
.dg-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #0F172A !important;
    caret-color: #0F172A;
}

/* ---------- Checkbox: white box, green when ticked ---------- */
.dg-check input[type="checkbox"] {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; margin: 0; flex-shrink: 0; cursor: pointer;
    border: 1.5px solid #B8C4D6; border-radius: 6px; background: #FFFFFF;
    display: inline-grid; place-content: center;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.dg-check input[type="checkbox"]::before {
    content: ''; width: 10px; height: 10px; transform: scale(0); transition: transform .12s;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background: #FFFFFF;
}
.dg-check input[type="checkbox"]:checked { background: #12A150; border-color: #12A150; }
.dg-check input[type="checkbox"]:checked::before { transform: scale(1); }
.dg-check input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 4px rgba(18,161,80,.18); outline: none; }

/* Platform-owner note on public pages */
.dg-note {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
    background: #F0F5FD; color: #163D82; font-size: 13.5px; font-weight: 600; line-height: 1.5;
}
.dg-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
