/* =============================================================================
   Burbank Developer Portal — styles
   Visual language ported from https://burbank.dev/ (Wix theme)
     * Brand deep teal-navy #003852 (primary surface — header)
     * Brand fill #004C6B for primary CTA, accent blue #226BB5 for links/eyebrow
     * Brand burgundy #AD3C50 + mid-light #809CA9 as supporting accents
     * Near-white page (#FAFAFA), dark text (#352F36)
     * Readex Pro from Google Fonts, with Avenir / Helvetica fallback
   ============================================================================= */

:root {
    --bg:                #FAFAFA;
    --card:              #FFFFFF;
    --dark:              #352F36;
    --dark-2:            #2A2329;
    --text:              #352F36;
    --text-muted:        #6B6470;
    --border:            #ECEFEE;
    --brand-blue:        #003852;
    --brand-blue-fill:   #004C6B;
    --brand-blue-accent: #226BB5;
    --brand-mid:         #406A7D;
    --brand-mid-light:   #809CA9;
    --brand-burgundy:    #AD3C50;
    --brand-disabled:    #BFCDD4;
    --error:             #FF4040;
    --success:           #1B7A3F;
    --radius:            12px;
    --radius-sm:         8px;
    --shadow:            0 1px 2px rgba(53, 47, 54, 0.04),
                         0 8px 24px rgba(53, 47, 54, 0.06);
    --shadow-elev:       0 1px 2px rgba(53, 47, 54, 0.06),
                         0 24px 48px rgba(0, 56, 82, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Readex Pro', 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--brand-blue-accent);
    text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
    outline: 2px solid var(--brand-blue-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

code {
    font-family: 'JetBrains Mono', Consolas, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.92em;
    background: var(--border);
    padding: 1px 6px;
    border-radius: 4px;
}

/* ---- header -------------------------------------------------------------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    background: var(--brand-blue);
    color: #FAFAFA;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    height: 37px;
}
.site-logo img {
    height: 37px;
    width: auto;
    display: block;
}
/* Fallback if the logo image hasn't been uploaded yet — the alt text gets
   styled as a wordmark in white. */
.site-logo img[alt]:not([src*="."]),
.site-logo img:not([src]) {
    font-family: 'Readex Pro', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: #FAFAFA;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
}
.site-nav a {
    color: #FAFAFA;
    opacity: 0.85;
    transition: opacity .2s;
}
.site-nav a:hover {
    opacity: 1;
    text-decoration: none;
}

/* ---- hero ---------------------------------------------------------------- */

.hero {
    background:
        radial-gradient(1200px 480px at 80% -10%, rgba(34, 107, 181, 0.14), transparent 60%),
        radial-gradient(900px 480px at -10% 110%, rgba(0, 76, 107, 0.10), transparent 60%),
        var(--bg);
    padding: 64px 32px 96px;
    min-height: calc(100vh - 220px);
}
.hero-inner {
    max-width: 760px;
    margin: 0 auto;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-blue-accent);
    margin: 0 0 12px;
}
.hero h1 {
    font-family: 'Readex Pro', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    margin: 0 0 18px;
    color: var(--dark);
    letter-spacing: -0.01em;
}
.lede {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 0 36px;
}

/* ---- form card ----------------------------------------------------------- */

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-elev);
    margin-bottom: 36px;
}
.form-card h2 {
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}
.field {
    margin-bottom: 18px;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.field input[type="email"],
.field input[type="text"] {
    width: 100%;
    font: inherit;
    font-size: 16px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
    outline: none;
    border-color: var(--brand-blue-accent);
    box-shadow: 0 0 0 3px rgba(34, 107, 181, 0.18);
}
.field input:invalid:not(:placeholder-shown) {
    border-color: var(--error);
}
.hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0 0;
}

/* ---- buttons ------------------------------------------------------------- */

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #FAFAFA;
    background: var(--brand-blue-fill);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s, transform .05s;
    min-height: 48px;
}
.primary:hover {
    background: var(--brand-blue);
    text-decoration: none;
}
.primary:active { transform: translateY(1px); }
.primary:focus-visible {
    outline: 3px solid rgba(34, 107, 181, 0.4);
    outline-offset: 2px;
}
.primary:disabled {
    background: var(--brand-disabled);
    cursor: not-allowed;
}
.primary.download {
    background: var(--brand-blue-fill);
}
.primary.download:hover { background: var(--brand-blue); }

/* Secondary download — the SDK button sits below the cert button. */
.primary.download.secondary {
    margin-top: 10px;
    background: var(--card);
    color: var(--brand-blue);
    border: 1px solid var(--border);
}
.primary.download.secondary:hover {
    background: var(--bg);
    color: var(--brand-blue);
}

.primary[aria-busy="true"] .label { opacity: 0.6; }
.primary .spinner { display: none; }
.primary[aria-busy="true"] .spinner { display: inline-block; }

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #FAFAFA;
    animation: spin 0.7s linear infinite;
}
.loading .spinner {
    border-color: rgba(34, 107, 181, 0.25);
    border-top-color: var(--brand-blue-accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- status messages ----------------------------------------------------- */

.status {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--text-muted);
    min-height: 20px;
}
.status.success { color: var(--success); }
.status.error   { color: var(--error); font-weight: 500; }

.hidden { display: none !important; }

/* ---- verify page result -------------------------------------------------- */

.loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 15px;
}
.kv {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 24px;
    row-gap: 10px;
    margin: 0 0 22px;
}
.kv dt {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: center;
}
.kv dd {
    margin: 0;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 14px;
    color: var(--dark);
    word-break: break-all;
}
.cta {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.cta .primary { width: 100%; }
.cta .hint { text-align: center; margin-top: 10px; }

/* ---- bullets ------------------------------------------------------------- */

.bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.bullets li {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-blue-accent);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-muted);
}
.bullets li strong { color: var(--dark); font-weight: 600; }
.bullets li:nth-child(2) { border-left-color: var(--brand-burgundy); }
.bullets li:nth-child(3) { border-left-color: var(--brand-mid-light); }

/* ---- footer -------------------------------------------------------------- */

.site-footer {
    text-align: center;
    padding: 28px 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}
.site-footer a { color: var(--text-muted); }

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 600px) {
    .site-header   { padding: 14px 18px; gap: 12px; }
    .site-nav      { gap: 16px; font-size: 14px; }
    .hero          { padding: 40px 18px 64px; }
    .form-card     { padding: 22px; }
    .kv            { grid-template-columns: 1fr; row-gap: 4px; }
    .kv dt         { margin-top: 8px; }
}
