/* ============================================================
   Geolist Wholesale — gw.css
   join.geolist.co.uk
   All class names prefixed with .gw- to avoid conflicts.
   No framework. No build step. Pure CSS.
   ============================================================ */

/* ---------------------------------------------------------- Custom properties */
:root {
    --gw-navy:        #1C2B39;
    --gw-navy-light:  #243547;
    --gw-teal:        #00AECC;
    --gw-teal-dark:   #0092AA;
    --gw-pink:        #E84393;
    --gw-white:       #FFFFFF;
    --gw-off-white:   #F5F7FA;
    --gw-border:      #E2E8F0;
    --gw-text:        #1C2B39;
    --gw-text-muted:  #64748B;
    --gw-text-light:  #94A3B8;
    --gw-success:     #10B981;
    --gw-warning:     #F59E0B;
    --gw-error:       #EF4444;
    --gw-radius:      10px;
    --gw-radius-sm:   6px;
    --gw-shadow:      0 2px 16px rgba(0,0,0,.07);
    --gw-shadow-md:   0 4px 24px rgba(0,0,0,.10);
    --gw-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gw-header-h:    64px;
}

/* ---------------------------------------------------------- Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--gw-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gw-text);
    background: var(--gw-off-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--gw-teal); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }

/* ---------------------------------------------------------- Layout */
.gw-main { flex: 1; }

.gw-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gw-container--narrow {
    max-width: 720px;
}

/* ---------------------------------------------------------- Header */
.gw-header {
    background: var(--gw-navy);
    height: var(--gw-header-h);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.gw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.gw-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.gw-logo      { height: 36px; width: auto; }

.gw-header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.gw-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    border-radius: var(--gw-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.gw-nav-link:hover,
.gw-nav-link:focus-visible {
    background: rgba(255,255,255,.08);
    color: var(--gw-white);
    text-decoration: none;
}

.gw-nav-link--cta {
    background: var(--gw-teal);
    color: var(--gw-white);
    margin-left: 0.5rem;
}

.gw-nav-link--cta:hover,
.gw-nav-link--cta:focus-visible {
    background: var(--gw-teal-dark);
    color: var(--gw-white);
}

.gw-nav-link--muted {
    color: rgba(255,255,255,.4);
    font-size: 0.8125rem;
}

.gw-nav-link--muted:hover { color: rgba(255,255,255,.7); }

/* ---------------------------------------------------------- Footer */
.gw-footer {
    background: var(--gw-navy);
    color: rgba(255,255,255,.6);
    margin-top: auto;
}

.gw-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
}

.gw-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255,255,255,.8);
    font-weight: 600;
    font-size: 0.9rem;
}

.gw-footer-icon { opacity: .8; }
.gw-footer-name { color: rgba(255,255,255,.8); }

.gw-footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gw-footer-link {
    color: rgba(255,255,255,.5);
    font-size: 0.875rem;
    transition: color 0.15s;
}

.gw-footer-link:hover { color: var(--gw-teal); text-decoration: none; }

.gw-footer-partner { display: flex; align-items: center; }
.gw-os-logo { height: 42px; width: auto; opacity: .85; }
.gw-os-logo-sm { height: 36px; width: auto; opacity: .85; }

.gw-footer-base {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1rem 0;
}

.gw-footer-legal {
    font-size: 0.75rem;
    color: rgba(255,255,255,.3);
    text-align: center;
    padding: 0 1.5rem;
}

/* ---------------------------------------------------------- Split layout (register) */
.gw-split-layout {
    display: flex;
    min-height: calc(100vh - var(--gw-header-h));
}

.gw-split-left {
    flex: 0 0 48%;
    background: var(--gw-navy);
    display: flex;
    align-items: center;
    padding: 4rem 3.5rem;
}

.gw-split-left-content { max-width: 480px; }

.gw-split-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gw-teal);
    margin-bottom: 1.25rem;
}

.gw-split-headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gw-white);
    margin-bottom: 2rem;
}

.gw-split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.gw-split-partner { margin-top: 2.5rem; }

/* ---------------------------------------------------------- Center layout */
.gw-center-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1.5rem;
    min-height: calc(100vh - var(--gw-header-h) - 120px);
}

/* ---------------------------------------------------------- Account layout */
.gw-account-layout {
    padding: 3rem 0 4rem;
}

.gw-page-header {
    margin-bottom: 2rem;
}

.gw-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gw-text);
}

.gw-page-subtitle {
    color: var(--gw-text-muted);
    margin-top: 0.25rem;
}

.gw-account-footer-links {
    text-align: center;
    margin-top: 2rem;
}

/* ---------------------------------------------------------- Cards */
.gw-card {
    background: var(--gw-white);
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    box-shadow: var(--gw-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gw-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--gw-border);
    background: #FAFBFC;
}

.gw-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gw-text);
}

.gw-card-body {
    padding: 1.75rem;
}

.gw-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ---------------------------------------------------------- Form card */
.gw-form-card {
    background: var(--gw-white);
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius);
    box-shadow: var(--gw-shadow-md);
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 480px;
}

.gw-form-card--narrow { max-width: 420px; }

.gw-form-card--success {
    border-top: 4px solid var(--gw-teal);
    text-align: center;
}

.gw-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gw-form-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gw-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.gw-form-subtitle {
    font-size: 0.9rem;
    color: var(--gw-text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.gw-form-switch {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gw-text-muted);
}

.gw-form-terms {
    font-size: 0.8rem;
    color: var(--gw-text-light);
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ---------------------------------------------------------- Form elements */
.gw-form { display: flex; flex-direction: column; gap: 1.25rem; }

.gw-form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.gw-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gw-text);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.gw-label-link {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gw-teal);
}

.gw-input {
    width: 100%;
    height: 44px;
    padding: 0 0.875rem;
    border: 1.5px solid var(--gw-border);
    border-radius: var(--gw-radius-sm);
    font-family: var(--gw-font);
    font-size: 0.9375rem;
    color: var(--gw-text);
    background: var(--gw-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.gw-input:focus {
    border-color: var(--gw-teal);
    box-shadow: 0 0 0 3px rgba(0,174,204,.14);
}

.gw-input::placeholder { color: var(--gw-text-light); }

.gw-input-wrap {
    position: relative;
}

.gw-input-wrap .gw-input {
    padding-right: 2.75rem;
}

.gw-toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--gw-text-light);
    line-height: 1;
    display: flex;
    align-items: center;
}

.gw-toggle-pw:hover { color: var(--gw-teal); }

/* ---------------------------------------------------------- Buttons */
.gw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--gw-radius-sm);
    font-family: var(--gw-font);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.gw-btn:focus-visible {
    outline: 3px solid var(--gw-teal);
    outline-offset: 2px;
}

.gw-btn--full { width: 100%; }

.gw-btn--primary {
    background: var(--gw-teal);
    color: var(--gw-white);
    border-color: var(--gw-teal);
}

.gw-btn--primary:hover {
    background: var(--gw-teal-dark);
    border-color: var(--gw-teal-dark);
    text-decoration: none;
    color: var(--gw-white);
    box-shadow: 0 4px 12px rgba(0,174,204,.28);
}

.gw-btn--secondary {
    background: transparent;
    color: var(--gw-teal);
    border-color: var(--gw-teal);
}

.gw-btn--secondary:hover {
    background: rgba(0,174,204,.06);
    text-decoration: none;
    color: var(--gw-teal);
}

.gw-btn--ghost {
    background: transparent;
    color: var(--gw-text-muted);
    border-color: var(--gw-border);
}

.gw-btn--ghost:hover {
    background: var(--gw-off-white);
    color: var(--gw-text);
    text-decoration: none;
}

/* ---------------------------------------------------------- Alerts */
.gw-alert {
    border-radius: var(--gw-radius-sm);
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.gw-alert p { margin: 0; }
.gw-alert p + p { margin-top: 0.25rem; }

.gw-alert--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.gw-alert--success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

/* ---------------------------------------------------------- Status badges */
.gw-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.gw-status--active  { background: #D1FAE5; color: #065F46; }
.gw-status--trial   { background: #DBEAFE; color: #1E40AF; }
.gw-status--warning { background: #FEF3C7; color: #92400E; }
.gw-status--inactive{ background: #F3F4F6; color: #6B7280; }
.gw-status--pending { background: #EDE9FE; color: #5B21B6; }

/* ---------------------------------------------------------- Definition list (account) */
.gw-definition-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--gw-border);
    border-radius: var(--gw-radius-sm);
    overflow: hidden;
}

.gw-definition-row {
    display: flex;
    align-items: baseline;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--gw-border);
    gap: 1rem;
}

.gw-definition-row:last-child { border-bottom: none; }

.gw-definition-term {
    flex: 0 0 180px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gw-text-muted);
}

.gw-definition-desc {
    font-size: 0.9rem;
    color: var(--gw-text);
    word-break: break-all;
}

.gw-monospace { font-family: 'Courier New', monospace; font-size: 0.8125rem; }

/* ---------------------------------------------------------- Feature list */
.gw-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.gw-feature-list--card {
    margin-bottom: 0;
}

.gw-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: rgba(255,255,255,.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.gw-feature-list--card .gw-feature-item {
    color: var(--gw-text);
}

.gw-feature-icon { flex-shrink: 0; margin-top: 2px; }

/* ---------------------------------------------------------- Trial badge */
.gw-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232,67,147,.12);
    border: 1px solid rgba(232,67,147,.25);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 0;
}

.gw-trial-badge strong { color: var(--gw-white); }

/* ---------------------------------------------------------- Success / warning icons */
.gw-success-icon,
.gw-warning-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gw-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ---------------------------------------------------------- Links */
.gw-link { color: var(--gw-teal); font-weight: 500; }
.gw-link:hover { color: var(--gw-teal-dark); }

.gw-link--muted {
    color: var(--gw-text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

.gw-link--muted:hover { color: var(--gw-text); }

/* ---------------------------------------------------------- Focus visible */
:focus-visible {
    outline: 3px solid var(--gw-teal);
    outline-offset: 2px;
}

/* ---------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .gw-split-layout {
        flex-direction: column;
        min-height: auto;
    }

    .gw-split-left {
        flex: none;
        padding: 2.5rem 1.5rem;
    }

    .gw-split-left-content { max-width: 100%; }

    .gw-split-right {
        padding: 2rem 1.5rem;
        justify-content: stretch;
    }

    .gw-split-right .gw-form-card {
        max-width: 100%;
    }

    .gw-split-headline {
        font-size: 1.625rem;
    }
}

@media (max-width: 640px) {
    .gw-header-nav .gw-nav-link--muted { display: none; }

    .gw-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .gw-definition-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .gw-definition-term { flex: none; }

    .gw-center-layout { padding: 2rem 1rem; }

    .gw-form-card { padding: 1.75rem 1.25rem; }

    .gw-card-actions { flex-direction: column; }
}
