@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url("/fonts/roboto-v51-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url("/fonts/roboto-v51-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("/fonts/nunito-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Default /render — figma-aligned white canvas + Roboto */

:root {
    --go-bg: #eef2f9;
    --go-bg-soft: #f8fafc;
    --go-surface: #ffffff;
    --go-surface-2: #f0f4fc;
    --go-border: rgba(8, 78, 221, 0.1);
    --go-text: #1a2332;
    --go-muted: #5a6578;
    --go-blue: #084edd;
    --go-blue-deep: #232979;
    --go-accent: #084edd;
    --go-accent-dim: #232979;
    --go-danger: #c62828;
    --go-radius: 14px;
    --go-header-h: 56px;
    --go-footer-h: 76px;
    --go-safe-bottom: env(safe-area-inset-bottom, 0px);
    --go-safe-top: env(safe-area-inset-top, 0px);
    --go-shadow-sm: 0 1px 2px rgba(26, 35, 50, 0.06);
    --go-shadow-md: 0 8px 28px rgba(26, 35, 50, 0.08);
    /* Figma 1_landing V1 — text (and header lang) */
    --go-landing-headline: #111827;
    --go-landing-body-blue: #1e3a8a;
    --go-landing-brand-text: #000000;
    --go-landing-link-hover: #172554;
    /*
     * Mobile fluid root (body.is-mobile): vw + dvh so short phones (e.g. SE) scale rem
     * with vh-anchored layouts; tweak coefficients together if Figma reference changes.
     */
    --go-mobile-root-min: 14px;
    --go-mobile-root-max: 18px;
    --go-mobile-root-pref: calc(3.5vw + 0.35dvh);
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html.theme-go {
    font-size: clamp(15px, 2.8vw, 17px);
}

html.theme-go body {
    margin: 0;
    min-height: 100dvh;
    background: #ffffff;
    color: var(--go-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

html.theme-go body.is-mobile {
    font-size: clamp(var(--go-mobile-root-min), var(--go-mobile-root-pref), var(--go-mobile-root-max));
}

/* Short viewports: slightly tighter root to reduce scroll pressure with vh layouts */
@media (max-height: 700px) {
    html.theme-go body.is-mobile {
        font-size: clamp(13px, calc(3.2vw + 0.28dvh), 17px);
    }
}

html.theme-go a {
    color: var(--go-blue);
}

html.theme-go .go-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: var(--go-safe-top);
    background: #ffffff;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

html.theme-go .go-header {
    flex: 0 0 var(--go-header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: 1rem;
}

html.theme-go .go-header__spacer {
    /* fills the middle column so back + lang stay at the edges */
}

/* Back button — icon-only */
html.theme-go .go-header__back {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--go-blue);
    font: inherit;
    cursor: pointer;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

html.theme-go .go-header__back-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--go-blue);
    display: block;
}

/* Invisible cell — same footprint as back button (error page has no back) */
html.theme-go .go-header__back-placeholder {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

/* ─── Language selector (disclosure: toggle + menu, opens downward) ───────── */

html.theme-go .go-header {
    overflow: visible;
}

html.theme-go .go-lang-select {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    align-self: center;
    flex-shrink: 0;
    z-index: 30;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0 0.2rem;
}

html.theme-go .go-lang-select__toggle {
    appearance: none;
    border: none;
    background: transparent;
    border-radius: 8px;
    height: 2.2rem;
    min-width: 4.5rem;
    padding: 0 0.35rem 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
}

html.theme-go .go-lang-select__toggle:hover {
    color: var(--go-landing-body-blue);
}

html.theme-go .go-lang-select__current {
    color: inherit;
}

html.theme-go .go-lang-select__caret {
    font-size: 0.65rem;
    line-height: 1;
    color: #084edd;
    transition: transform 0.15s ease-out;
}

html.theme-go .go-lang-select__toggle[aria-expanded="true"] .go-lang-select__caret {
    transform: rotate(180deg);
}

html.theme-go .go-lang-select__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: -0.2rem;
    right: -0.2rem;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    margin: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.25);
    padding: 0.25rem 0;
    z-index: 40;
}

html.theme-go .go-lang-select__menu[hidden] {
    display: none !important;
}

html.theme-go .go-lang-select__option {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.75rem 0 1.125rem;
    line-height: 2.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    border-top: 1px solid #dae2e6;
}

html.theme-go .go-lang-select__option:first-child {
    border-top: none;
}

html.theme-go .go-lang-select__option:hover {
    color: var(--go-landing-body-blue);
    text-decoration: none;
}

html.theme-go .go-lang-select__option[aria-selected="true"] {
    color: var(--go-landing-body-blue);
    font-weight: 600;
}

/* ─── Main / Page system ─────────────────────────────────────────────────── */

html.theme-go .go-main {
    flex: 1;
    padding: 1.25rem 1rem 0.75rem;
    max-width: 40rem;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
}

html.theme-go .go-page {
    display: none;
}

html.theme-go .go-page.is-active {
    display: block;
    animation: goFade 0.28s ease-out;
}

/* Landing (page0): main + page fill viewport so content fits without scroll */
html.theme-go .go-main:has(#page0.is-active) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0.5rem 1rem 0;
}

html.theme-go #page0.go-page.is-active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: goFade 0.28s ease-out;
}

/* Stretch landing so .go-zero fills available height — pins .go-zero__bottom to the bottom of main */
html.theme-go #page0.go-page.is-active > #page0Landing {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Match .go-start-kyc-gate[hidden]: [hidden] must win over the flex rule above (otherwise landing stays visible). */
html.theme-go #page0.go-page.is-active > #page0Landing[hidden] {
    display: none !important;
}

/* Result (page3): main + page fill viewport — same flex chain as page0 for embedded success/failed */
html.theme-go .go-main:has(#page3.is-active) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0.5rem 1rem 0;
}

html.theme-go #page3.go-page.is-active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: goFade 0.28s ease-out;
}

/* ─── Unified error page (sorry.html) — same shell as landing, no footer bar ───────── */

html.theme-go .go-main--error {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0.5rem 1rem 0;
    max-width: 40rem;
    margin: 0 auto;
    width: 100%;
    background: #ffffff;
}

/* Mirrors .go-zero (landing) outer padding — v2: vh anchors vs viewport (icon bottom 20vh, title +3vh, copy top 50vh) */
html.theme-go .go-error {
    --go-error-viewport-offset: calc(var(--go-safe-top) + var(--go-header-h));
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: calc(100dvh - var(--go-error-viewport-offset));
}

/* Mirrors .go-zero__title-wrap horizontal + vertical padding */
html.theme-go .go-error__center {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.75rem;
}

html.theme-go .go-error__icon {
    position: absolute;
    top: max(0px, calc(20vh - var(--go-error-viewport-offset) - 5rem));
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
}

html.theme-go .go-error__icon-svg {
    width: 5rem;
    height: 5rem;
    display: block;
}

html.theme-go .go-error__title {
    position: absolute;
    top: calc(23vh - var(--go-error-viewport-offset));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: calc(100% - 1.5rem);
    max-width: 22rem;
    box-sizing: border-box;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 2.7rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--go-landing-headline);
    line-height: 1.2;
}

html.theme-go .go-error__copy {
    position: absolute;
    top: calc(50vh - var(--go-error-viewport-offset));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.5rem);
    max-width: 22rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html.theme-go .go-error__message {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--go-landing-body-blue);
    line-height: 1.2;
    max-width: 22rem;
}

html.theme-go .go-error__hint {
    margin: 0;
    font-size: 0.92rem;
    color: var(--go-muted);
    max-width: 22rem;
}

/* Mirrors .go-zero__bottom (gap + padding-bottom; CTA pinned like landing) */
html.theme-go .go-error__bottom {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding-bottom: 0.25rem;
}

html.theme-go .go-error__bottom .btn--block {
    width: 100%;
    max-width: none;
}

/* ─── Reauth failed (reauth-failed.html) — vh anchors aligned with .go-error (icon bottom 20vh, title 23vh, copy 50vh) ─ */

html.theme-go .go-main--reauth-failed {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0.5rem 1rem 0;
    max-width: 40rem;
    margin: 0 auto;
    width: 100%;
    background: #ffffff;
}

html.theme-go .go-reauth {
    --go-error-viewport-offset: calc(var(--go-safe-top) + var(--go-header-h));
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: calc(100dvh - var(--go-error-viewport-offset));
}

html.theme-go .go-reauth__center {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0rem;
}

html.theme-go .go-reauth__icon {
    position: absolute;
    top: max(0px, calc(20vh - var(--go-error-viewport-offset) - 5rem));
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
}

html.theme-go .go-reauth__icon-svg {
    width: 5rem;
    height: 5rem;
    display: block;
}

html.theme-go .go-reauth__title {
    position: absolute;
    top: calc(23vh - var(--go-error-viewport-offset));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: calc(100% - 1.5rem);
    max-width: 22rem;
    box-sizing: border-box;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--go-landing-headline);
    line-height: 1.2;
}

html.theme-go .go-reauth__copy {
    position: absolute;
    top: calc(50vh - var(--go-error-viewport-offset));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.5rem);
    max-width: 22rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html.theme-go .go-reauth__message {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--go-landing-body-blue);
    line-height: 1.2;
    max-width: 22rem;
}

html.theme-go .go-reauth__hint-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 22rem;
    text-align: left;
    margin-top: 5vh;
}

html.theme-go .go-reauth__hint-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    color: var(--go-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

html.theme-go .go-reauth__hint-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

html.theme-go .go-reauth__hint {
    margin: 0;
    flex: 1;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--go-muted);
}

html.theme-go .go-reauth__bottom {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding-bottom: 0.25rem;
}

html.theme-go .go-reauth__bottom .btn--block {
    width: 100%;
    max-width: none;
}

/* ─── Age verification success (success.html) + failed (failed.html) — same shell as sorry ─ */

html.theme-go .go-main--success,
html.theme-go .go-main--failed {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0.5rem 1rem 0;
    max-width: 40rem;
    margin: 0 auto;
    width: 100%;
    background: #ffffff;
}

/* Age verification success outcome (success.html) — Figma v2 vh anchors + colors */
html.theme-go .go-success--vh {
    --go-error-viewport-offset: calc(var(--go-safe-top) + var(--go-header-h));
    position: relative;
    min-height: calc(100dvh - var(--go-error-viewport-offset));
}

html.theme-go .go-success--vh .go-success__center {
    justify-content: flex-start;
}

html.theme-go .go-success--vh .go-success__icon {
    position: absolute;
    top: max(0px, calc(20vh - var(--go-error-viewport-offset) - 5rem));
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
}

html.theme-go .go-success--vh .go-success__svg--status {
    width: 5rem;
    height: 5rem;
    display: block;
}

html.theme-go .go-success--vh .go-success__title {
    position: absolute;
    top: calc(23vh - var(--go-error-viewport-offset));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: calc(100% - 1.5rem);
    max-width: 22rem;
    box-sizing: border-box;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #101828;
    line-height: 1.2;
}

html.theme-go .go-success--vh .go-success__body {
    position: absolute;
    top: calc(50vh - var(--go-error-viewport-offset));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.5rem);
    max-width: 22rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html.theme-go .go-success--vh .go-success__message {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00338D;
    line-height: 1.2;
    max-width: 22rem;
}

/* Dismiss / footnote copy — shared typography (standalone + embedded) */
html.theme-go .go-success__footnote,
html.theme-go .go-failed__footnote {
    margin: 0;
    width: calc(100% - 1.5rem);
    max-width: 22rem;
    box-sizing: border-box;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    color: #98A2B3;
    text-align: center;
}

html.theme-go .go-success--vh .go-success__footnote,
html.theme-go .go-failed--vh .go-failed__footnote {
    position: absolute;
    top: auto;
    bottom: calc(3vh + var(--go-safe-bottom));
    left: 50%;
    transform: translateX(-50%);
}

/* Age verification failed outcome (failed.html) — Figma v2 vh anchors + colors (match go-success--vh) */
html.theme-go .go-failed--vh {
    --go-error-viewport-offset: calc(var(--go-safe-top) + var(--go-header-h));
    position: relative;
    min-height: calc(100dvh - var(--go-error-viewport-offset));
}

html.theme-go .go-failed--vh .go-failed__center {
    justify-content: flex-start;
}

html.theme-go .go-failed--vh .go-failed__icon {
    position: absolute;
    top: max(0px, calc(20vh - var(--go-error-viewport-offset) - 5rem));
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
}

html.theme-go .go-failed--vh .go-failed__svg--status {
    width: 5rem;
    height: 5rem;
    display: block;
}

html.theme-go .go-failed--vh .go-failed__title {
    position: absolute;
    top: calc(23vh - var(--go-error-viewport-offset));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: calc(100% - 1.5rem);
    max-width: 22rem;
    box-sizing: border-box;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #101828;
    line-height: 1.2;
}

html.theme-go .go-failed--vh .go-failed__body {
    position: absolute;
    top: calc(50vh - var(--go-error-viewport-offset));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.5rem);
    max-width: 22rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html.theme-go .go-failed--vh .go-failed__message {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00338D;
    line-height: 1.2;
    max-width: 22rem;
}

/* Start KYC intro (start-kyc.html, render-ok gate) — flex column: stack / mid band / CTA */
html.theme-go .go-main--start-kyc {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
}

html.theme-go main.go-main--start-kyc {
    padding: 0.5rem 1rem 0;
}

html.theme-go .go-start-kyc-gate {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

html.theme-go .go-start-kyc-gate[hidden] {
    display: none !important;
}

html.theme-go .go-start-kyc-gate__surface {
    flex: 1 1 auto;
    min-height: 0;
}

html.theme-go .go-start-kyc__center {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: calc(3vh + var(--go-safe-bottom));
    box-sizing: border-box;
    --go-error-viewport-offset: calc(var(--go-safe-top) + var(--go-header-h));
    /* Figma v2: 1-4-2-1_Post_Selfie / 1-1_summary screens */
    --go-start-kyc-navy: #00338d;
    --go-start-kyc-mid-gray: #4b5563;
    --go-start-kyc-cta: #004ce3;
    --go-start-kyc-disclaimer-bg: #eef3fb;
    --go-start-kyc-disclaimer-border: rgba(0, 51, 141, 0.14);
}

html.theme-go .go-start-kyc__stack {
    flex-shrink: 0;
    padding: max(0px, calc(20vh - var(--go-error-viewport-offset))) 0.25rem 0;
    box-sizing: border-box;
    text-align: left;
}

/* Headline: Figma navy, bold, left — smaller than landing hero (multi-line body intro) */
html.theme-go .go-start-kyc__intro {
    margin: 0;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--go-start-kyc-navy);
}

html.theme-go .go-start-kyc__list {
    list-style: none;
    margin: 3vh 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3vh;
}

html.theme-go .go-start-kyc__list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
}

/* Icon box: same footprint as reauth hint (viewfinder drawn inside SVG) */
html.theme-go .go-start-kyc__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    /* Figma 1-4-2-1: icon + viewfinder = medium-light blue (not headline navy) */
    color: var(--go-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html.theme-go .go-start-kyc__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

html.theme-go .go-start-kyc__list-text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--go-start-kyc-navy);
}

/* Center band: gray — fills space between stack and footer; text centered in that band */
html.theme-go .go-start-kyc__mid {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 0;
    width: 70%;
    max-width: 100%;
    padding: 0 0.25rem;
    box-sizing: border-box;
    text-align: center;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--go-start-kyc-mid-gray);
}

/* Disclaimer + CTA: stack below mid band (bottom inset via .go-start-kyc__center padding-bottom) */
html.theme-go .go-start-kyc__cta-footer {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

html.theme-go .go-start-kyc__bottom {
    box-sizing: border-box;
}

/* Bottom inset is on .go-start-kyc__center (padding-bottom) — do not stack global .go-primary-cta margin-bottom */
html.theme-go .go-start-kyc__cta-footer .go-primary-cta {
    margin-bottom: 0;
}

/* AFTER variant: light blue-gray panel (flows above CTA inside .go-start-kyc__cta-footer) */
html.theme-go .go-start-kyc__disclaimer {
    box-sizing: border-box;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    color: var(--go-start-kyc-navy);
    background: var(--go-start-kyc-disclaimer-bg);
    border-radius: var(--go-radius);
    padding: 0.85rem 1rem;
    border: 1px solid var(--go-start-kyc-disclaimer-border);
}

/* Solid CTA blue from Figma (not global gradient) */
html.theme-go .go-start-kyc__bottom .btn--primary,
html.theme-go .go-start-kyc__form .btn--primary {
    background: var(--go-start-kyc-cta);
    background-image: none;
    border-color: rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
    font-weight: 700;
}

html.theme-go .go-start-kyc__bottom .btn--primary:hover:not(:disabled),
html.theme-go .go-start-kyc__bottom .btn--primary:active:not(:disabled),
html.theme-go .go-start-kyc__form .btn--primary:hover:not(:disabled),
html.theme-go .go-start-kyc__form .btn--primary:active:not(:disabled) {
    background: #003db8;
    background-image: none;
    filter: brightness(1.03);
}

html.theme-go .go-start-kyc__form {
    margin: 0;
}

html.theme-go .go-success,
html.theme-go .go-failed {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

html.theme-go .go-success__center,
html.theme-go .go-failed__center {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.75rem;
    gap: 0;
}

html.theme-go .go-success__hero {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-bottom: 1.5rem;
    animation: goFade 0.35s ease-out;
}

html.theme-go .go-success__svg--status,
html.theme-go .go-failed__svg--status {
    width: 5rem;
    height: 5rem;
    display: block;
}

html.theme-go .go-success__title,
html.theme-go .go-failed__title {
    margin: 0 0 2rem;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--go-landing-headline);
    line-height: 1.2;
    max-width: 22rem;
}

html.theme-go .go-success__message,
html.theme-go .go-failed__message {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--go-landing-body-blue);
    line-height: 1.2;
    max-width: 22rem;
}

html.theme-go .go-success__bottom {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding-bottom: 0.25rem;
}

html.theme-go .go-success__bottom .btn--block {
    width: 100%;
    max-width: none;
}

@keyframes goFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

html.theme-go .go-footer {
    flex: 0 0 calc(var(--go-footer-h) + var(--go-safe-bottom));
    padding: 0.85rem 1rem calc(0.85rem + var(--go-safe-bottom));
    border-top: 1px solid var(--go-border);
    background: #ffffff;
    box-shadow: 0 -4px 24px rgba(26, 35, 50, 0.06);
    position: sticky;
    bottom: 0;
    z-index: 20;
}

html.theme-go .go-footer[hidden] {
    display: none !important;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

html.theme-go .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 17px;
    font: inherit;
    font-weight: 600;
    padding: 0.7rem 1.1rem;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-position 0.35s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}

html.theme-go .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

html.theme-go .btn--primary {
    background-image: linear-gradient(90deg, var(--go-blue-deep) 0%, var(--go-blue) 40%, var(--go-blue));
    background-position: 100%;
    background-size: 200% auto;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    font-size: 1.3rem;
}

html.theme-go .btn--primary:hover:not(:disabled),
html.theme-go .btn--primary:active:not(:disabled) {
    background-position: 0;
}

html.theme-go .btn--ghost {
    background: var(--go-surface);
    color: var(--go-blue);
    border-color: var(--go-border);
    box-shadow: var(--go-shadow-sm);
}

html.theme-go .btn--ghost:hover {
    background: var(--go-surface-2);
}

html.theme-go .btn--block {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
}

html.theme-go .btn--link {
    background: none;
    border: none;
    color: var(--go-blue);
    padding: 0.5rem 0;
    font-weight: 600;
}

/* ─── Landing page (page 0) — .go-zero ──────────────────────────────────── */
/*
 * Top: whitelabel stack (optional logo / name / welcome).
 * Middle: .go-zero__title-wrap flex:grow — headline centered V+H in that band.
 * Bottom: .go-zero__bottom groups action + legal + CTA (margin-top: auto; anchored as a stack).
 */

html.theme-go .go-zero {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Logo + brand + welcome: compact stack; small gap after logo (mockup) */
html.theme-go .go-zero__brand-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

/*
 * Whitelabel logo area — ~18–20% viewport height, logo centered V+H, aspect ratio preserved.
 * Not a grey placeholder: white box only so the image sits on the same surface as the page.
 */
html.theme-go .go-zero__logo-wrap {
    /* clamp keeps min size on short viewports, targets ~19vh without a px cap that shrinks on tall phones */
    height: clamp(100px, 19vh, 24vh);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    margin: 0;
    margin-bottom: 0.5rem;
}

html.theme-go .go-zero__logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Whitelabel company name — optional (Thymeleaf if brandName); centered */
html.theme-go .go-zero__brand {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: var(--go-landing-brand-text);
    background: #ffffff;
    padding: 0rem;
    margin: 0;
}

/* Whitelabel Company message — optional, max 4 lines */
html.theme-go .go-zero__welcome {
    font-size: 0.95rem;
    margin: 0;
    padding: 0.65rem 1rem;
    color: var(--go-landing-brand-text);
    font-weight: 400;
    background: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/*
 * Main headline — flex:grow; centers "Age verification / required" in the band between
 * whitelabel block and the bottom stack (action + legal + CTA), V+H.
 */
html.theme-go .go-zero__title-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.75rem;
}

html.theme-go .go-zero__title {
    margin: 0;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 2.8rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--go-landing-headline);
    line-height: 1.15;
}

/* Bottom stack: action + legal + button — margin-top auto pins to bottom when .go-zero fills viewport height */
html.theme-go .go-zero__bottom {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding-bottom: 0;
}

/* Message about action — extra space below before the legal info box (figma) */
html.theme-go .go-zero__action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0 0 2.7rem 0;
}

html.theme-go .go-zero__action-icon {
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
    object-fit: contain;
}

html.theme-go .go-zero__action-text {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--go-landing-body-blue);
    line-height: 1.2;
}

/* Info / legal box — light grey container, blue copy, bold blue links (left-aligned, figma) */
html.theme-go .go-zero__legal {
    font-size: 0.85rem;
    color: var(--go-landing-body-blue);
    border-radius: 17px;
    padding: 0.5rem 1rem;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

html.theme-go .go-zero__legal p {
    margin: 0;
    color: var(--go-landing-body-blue);
    font-weight: 400;
}

html.theme-go .go-zero__legal a {
    color: var(--go-landing-body-blue);
    font-weight: 700;
    text-decoration: none;
}

html.theme-go .go-zero__legal a:hover {
    color: var(--go-landing-link-hover);
    text-decoration: none;
}

/* Verify my age button — full width inside bottom stack */
html.theme-go .go-zero__bottom .btn--block {
    width: 100%;
    max-width: none;
}

/* Primary full-width CTA — landing "Verify my age", error "Close", etc. */
html.theme-go .go-primary-cta {
    height: 3.8rem;
    box-sizing: border-box;
    margin-bottom: 3vh;
}

/* Landing only: CTA sits at screen bottom with 3vh inset (+ safe area under home indicator) */
html.theme-go .go-zero__bottom .go-primary-cta {
    margin-bottom: calc(3vh + var(--go-safe-bottom));
}

/* ─── Step cards (page 1) ─────────────────────────────────────────────────── */

html.theme-go .go-steps__intro {
    margin: 0 0 1rem;
    color: var(--go-muted);
    font-size: 0.98rem;
}

html.theme-go .go-step-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

html.theme-go .go-step-card {
    background: var(--go-surface);
    border: 1px solid var(--go-border);
    border-radius: var(--go-radius);
    padding: 1.15rem 1.2rem;
    box-shadow: var(--go-shadow-sm);
}

html.theme-go .go-step-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--go-text);
}

html.theme-go .go-step-card ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--go-muted);
    font-size: 0.93rem;
}

/* ─── Capture page (page 2) ───────────────────────────────────────────────── */

html.theme-go .go-capture__intro {
    margin-bottom: 0.85rem;
}

html.theme-go .go-capture__intro .muted {
    color: var(--go-muted);
    font-size: 0.92rem;
}

html.theme-go .go-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html.theme-go .go-capture__mobile-pending {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3rem;
    padding: 0.5rem 0 1rem;
}

html.theme-go .go-capture__mobile-pending .go-capture__mobile-pending__spinner {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

html.theme-go .go-loader {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--go-muted);
    margin: 0.5rem 0 1rem;
    font-size: 0.92rem;
}

html.theme-go .go-loader__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid rgba(8, 78, 221, 0.15);
    border-top-color: var(--go-blue);
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

html.theme-go .go-capture__frame-wrap {
    border-radius: var(--go-radius);
    overflow: hidden;
    background: #0d1117;
    border: 1px solid var(--go-border);
    box-shadow: var(--go-shadow-md);
}

html.theme-go .doc-iframe--desktop-wrap {
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
}

html.theme-go .doc-iframe--mobile-wrap {
    min-height: min(70dvh, 520px);
}

html.theme-go .doc-iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    display: block;
    background: #000;
}

html.theme-go .doc-iframe--desktop {
    min-height: 400px;
}

html.theme-go .doc-iframe--mobile {
    min-height: 70dvh;
}

html.theme-go body.is-iframe-fullscreen .go-header,
html.theme-go body.is-iframe-fullscreen .go-footer {
    display: none;
}

html.theme-go body.is-iframe-fullscreen .go-main {
    max-width: none;
    padding: 0;
}

html.theme-go body.is-iframe-fullscreen .doc-iframe--mobile-wrap {
    min-height: 100dvh;
    border-radius: 0;
}

html.theme-go body.is-iframe-fullscreen .doc-iframe--mobile {
    min-height: 100dvh;
}

html.theme-go .go-capture__qr-wrap {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    padding: 15px;
    border: 3px solid lightgray;
    border-radius: 12px;
    text-align: center;
}

html.theme-go .go-capture__phone-waiting {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

html.theme-go .go-capture__phone-waiting.visible {
    display: flex;
}

html.theme-go .go-capture__phone-waiting__animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@keyframes go-capture-ldio-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

html.theme-go .go-capture__mobile-animation {
    margin: 0 auto;
    position: relative;
    width: 158px;
    height: 318px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    box-shadow: 0 10px 45px rgba(8, 78, 221, 0.4);
    border-radius: 24px;
    transform: scale(0.72);
    transform-origin: top center;
    margin-bottom: calc(-1 * 318px * (1 - 0.72));
}

html.theme-go .go-capture__mobile-animation__spinner-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    display: inline-block;
    overflow: hidden;
}

html.theme-go .go-capture__mobile-animation__spinner {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

html.theme-go .go-capture__mobile-animation__spinner div {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 4px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: go-capture-ldio-spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: content-box;
}

html.theme-go .go-capture__phone-waiting__text {
    margin: 0;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 600;
}

html.theme-go .go-capture__phone-waiting__cancel {
    font-size: 15.4px;
    color: #1e4fd6;
}

html.theme-go .go-capture__complete {
    margin-top: 1.1rem;
}

/* ─── Response / carousel ─────────────────────────────────────────────────── */

html.theme-go .go-response {
    margin-top: 0.75rem;
}

html.theme-go .go-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--go-radius);
    border: 1px solid var(--go-border);
    background: var(--go-surface);
    box-shadow: var(--go-shadow-sm);
}

html.theme-go .go-carousel__track {
    display: flex;
    gap: 0.5rem;
    padding: 0.55rem;
}

html.theme-go .go-carousel__slide {
    flex: 0 0 72%;
    max-width: 280px;
}

html.theme-go .go-carousel__slide img {
    width: 100%;
    border-radius: 10px;
    display: block;
    cursor: zoom-in;
    background: #eef2f9;
}

/* ─── Wizard page3 generic completion (capture-result-generic) — scoped so standalone success.html is not overridden ─ */

html.theme-go #page3.go-page .go-success:not(.go-success--vh) {
    text-align: center;
}

html.theme-go #page3.go-page .go-success:not(.go-success--vh) .go-success__icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
}

html.theme-go .go-checkmark__circle {
    stroke: var(--go-blue);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.55s ease-out forwards;
}

html.theme-go .go-checkmark__tick {
    stroke: var(--go-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeTick 0.4s 0.35s ease-out forwards;
}

@keyframes strokeCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeTick {
    to {
        stroke-dashoffset: 0;
    }
}

html.theme-go #page3.go-page .go-success:not(.go-success--vh) .go-success__title {
    margin: 0 0 0.5rem;
    font-size: 2.7rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

html.theme-go #page3.go-page .go-success__msg {
    margin: 0;
    color: var(--go-muted);
    font-size: 1.02rem;
}

html.theme-go #page3.go-page .go-success--failed .go-checkmark__circle,
html.theme-go #page3.go-page .go-success--failed .go-checkmark__tick {
    stroke: #c62828;
}

/* ─── Lightbox ────────────────────────────────────────────────────────────── */

html.theme-go .go-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 20, 30, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

html.theme-go .go-lightbox[hidden] {
    display: none !important;
}

html.theme-go .go-lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    font-size: 2rem;
    line-height: 1;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
}

html.theme-go .go-lightbox img {
    max-width: 100%;
    max-height: 90dvh;
    border-radius: 10px;
    box-shadow: var(--go-shadow-md);
}

/* ─── Landing index.html (static page, shares theme-go) ──────────────────── */

html.theme-go main {
    max-width: 42rem;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

html.theme-go main h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--go-text);
}

html.theme-go main code {
    font-size: 0.88em;
    background: var(--go-surface-2);
    padding: 0.12em 0.35em;
    border-radius: 6px;
    border: 1px solid var(--go-border);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    html.theme-go .go-main {
        padding-inline: 0.9rem;
    }

    html.theme-go .go-main:has(#page0.is-active) {
        padding: 0rem 1.5rem 0;
    }

    html.theme-go .go-main:has(#page3.is-active) {
        padding: 0rem 1.5rem 0;
    }

    /* Error page main: same horizontal padding as landing page0 on narrow viewports */
    html.theme-go .go-main.go-main--error {
        padding: 0rem 1.5rem 0;
    }

    html.theme-go .go-main.go-main--success,
    html.theme-go .go-main.go-main--failed {
        padding: 0rem 1.5rem 0;
    }

    html.theme-go main.go-main--start-kyc {
        padding: 0rem 1.5rem 0;
    }

    html.theme-go .go-carousel__slide {
        flex-basis: 85%;
    }

    html.theme-go .go-lang-select__toggle {
        min-width: 4.2rem;
    }

    html.theme-go .go-main.go-main--download {
        padding: 0;
    }
}

/* ─── Download landing (GET /download) ───────────────────────────────────── */

html.theme-go body.go-download {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 38%, #eef1fb 100%);
    font-family: "Nunito", "Roboto", system-ui, sans-serif;
}

html.theme-go body.go-download .go-shell {
    position: relative;
    overflow: hidden;
    background: transparent;
}

html.theme-go body.go-download .go-header {
    background: transparent;
}

html.theme-go .go-download__blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

html.theme-go .go-download__blob {
    position: absolute;
    border-radius: 50%;
}

html.theme-go .go-download__blob--top {
    width: min(68vw, 28rem);
    height: min(68vw, 28rem);
    top: -8%;
    right: -22%;
    background: #E8F1FF;
}

html.theme-go .go-download__blob--bottom {
    width: min(54vw, 20rem);
    height: min(54vw, 20rem);
    top: 68%;
    right: -8%;
    background: #F5F8FE;
}

html.theme-go body.go-download .go-header,
html.theme-go body.go-download .go-main {
    position: relative;
    z-index: 1;
}

html.theme-go .go-main.go-main--download {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem 3rem;
    background: transparent;
    max-width: none;
}

html.theme-go .go-download__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 26rem;
}

html.theme-go .go-download__logo {
    width: min(72vw, 18rem);
    height: auto;
    margin: 0 0 5rem;
}

html.theme-go .go-download__headline {
    margin: 0;
    color: var(--go-blue);
    font-family: "Nunito", "Roboto", system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

html.theme-go .go-download__cta {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

html.theme-go .go-download__subtitle {
    margin: 0;
    color: var(--go-muted);
    font-size: clamp(1.6rem, 3.6vw, 1.05rem);
    font-weight: 500;
}

html.theme-go .go-download__badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2rem;
}

html.theme-go .go-download__badge {
    display: block;
    line-height: 0;
}

html.theme-go .go-download__badge img {
    display: block;
    width: min(50vw, 14rem);
    height: auto;
}

@media (min-width: 768px) {
    html.theme-go .go-download__blob--top {
        width: 32rem;
        height: 32rem;
        top: -8%;
        right: -22%;
    }

    html.theme-go .go-download__blob--bottom {
        width: 24rem;
        height: 24rem;
        top: 64%;
        right: -8%;
    }

    html.theme-go .go-download__content {
        max-width: 32rem;
    }

    html.theme-go .go-download__logo {
        width: 18rem;
        margin-bottom: 2.75rem;
    }

    html.theme-go .go-download__headline {
        font-size: 2rem;
    }

    html.theme-go .go-download__cta {
        margin-top: 2.75rem;
    }

    html.theme-go .go-download__badge img {
        width: 11.5rem;
    }
}

/* ─── GoodID GO dedicated-partner variant ─────────────────────────────────── */

/* Same decorative circles as the download page (go-download__blobs). */
html.theme-go .go-shell--partner-blobs {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(to bottom right, #ffffff 0%, #E8F0FF 100%);
}

html.theme-go .go-shell--partner-blobs .go-download__blobs {
    z-index: -1;
}

html.theme-go .go-shell--partner-blobs .go-download__blob {
    pointer-events: none;
}

html.theme-go .go-shell--partner-blobs .go-header,
html.theme-go .go-shell--partner-blobs .go-main,
html.theme-go .go-shell--partner-blobs .go-main.go-main--success,
html.theme-go .go-shell--partner-blobs .go-main.go-main--failed,
html.theme-go .go-shell--partner-blobs .go-main.go-main--reauth-failed,
html.theme-go .go-shell--partner-blobs .go-footer {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Header logo (start screen): sits in the middle grid cell, left-aligned next to Back */
html.theme-go .go-header__logo {
    justify-self: start;
    height: 2rem;
    width: auto;
    display: block;
}

/* Partner start screen shares the landing flex column */
html.theme-go .go-zero--partner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    text-align: center;
}

/* Covers the shell until setup vs reauth landing is known (envelope + validate). */
html.theme-go .go-partner-start-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

html.theme-go .go-partner-start-gate[hidden] {
    display: none !important;
}

html.theme-go .go-partner-start-gate__spinner {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

html.theme-go .go-partner-start__center {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    padding-top: 4vh;
}

html.theme-go .go-partner-start__center--reauth {
    margin-bottom: 20vh;
}

html.theme-go .go-partner-start__icon {
    width: 7.5rem;
    height: 7.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 90px;
}

html.theme-go .go-partner-start__icon img {
    width: 65%;
    height: 65%;
    display: block;
    margin-left: 8%;
}

html.theme-go .go-partner-start__title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--go-blue);
}

/* White rounded card holding the two capability rows (mockup) */
html.theme-go .go-partner-start__list {
    list-style: none;
    margin: 5vh 0 0 0;
    padding: 0.5rem 1.15rem;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(8, 78, 221, 0.08);
    display: flex;
    flex-direction: column;
}

html.theme-go .go-partner-start__list[hidden] {
    display: none !important;
}

html.theme-go .go-partner-start__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 1.3rem 0;
    text-align: left;
}

/* Divider between the two rows */
html.theme-go .go-partner-start__item + .go-partner-start__item {
    border-top: 1px solid rgba(8, 78, 221, 0.12);
}

html.theme-go .go-partner-start__item-icon {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    padding: 0.7rem;
    border-radius: 90px;
    background-color: #EAF1FF;
    align-items: center;
    justify-content: center;
}

html.theme-go .go-partner-start__item-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

html.theme-go .go-partner-start__item-text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--go-blue);
}

/* CTA + legal pinned to the bottom, mirroring .go-zero__bottom */
html.theme-go .go-partner-start__bottom {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    padding-bottom: 0;
}

html.theme-go .go-partner-start__bottom .go-primary-cta {
    margin-bottom: calc(1vh + var(--go-safe-bottom));
}

/* Partner success copy: emphasised congrats + lighter descriptive note */
html.theme-go .go-success__body--partner {
    gap: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

html.theme-go .go-success__message--strong {
    color: var(--go-blue);
    font-size: 1.6rem;
}

html.theme-go .go-success__message--sub,
html.theme-go .go-success--vh .go-success__message--sub {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.35;
}

html.theme-go #kycCloseBtn {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Partner result Close: pin to viewport bottom (success--vh is already 100dvh, so flow margin would sit below the fold). */
html.theme-go .go-shell--partner-blobs #kycCloseBtn {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(3vh + var(--go-safe-bottom));
    width: auto;
    max-width: 38rem;
    margin: 0 auto;
    z-index: 10;
}

@media (max-width: 767px) {
    html.theme-go .go-shell--partner-blobs #kycCloseBtn {
        left: 1.5rem;
        right: 1.5rem;
    }
}
