/* Public Developers page (/developers/). Loaded after landing.css, so it reuses
   the site tokens (--purple-primary etc.), the .container and the .btn classes.
   External stylesheet: production CSP forbids inline styles. */

/* The site header is fixed (about 105px), so the hero clears it. */
.dev-hero {
    padding: 8.25rem 0 3.5rem;
    background: var(--gradient-subtle);
}
.dev-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    align-items: center;
}
.dev-hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--text-primary);
}
.dev-lead {
    margin: 1.25rem 0 0;
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--text-tertiary);
    max-width: 34rem;
}
.dev-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.dev-fine { margin: 0.9rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--text-tertiary); }
.dev-fine a { color: var(--purple-dark); }

/* Code panel: dark in the light page, as in the docs. */
.dev-code {
    background: #15122b;
    color: #ece9ff;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid #2d2852;
    box-shadow: 0 18px 40px rgba(21, 18, 43, 0.25);
    min-width: 0;
}
.dev-code-bar {
    padding: 0.55rem 1rem;
    background: #1d1938;
    border-bottom: 1px solid #2d2852;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9c97c9;
}
.dev-code-bar-response { border-top: 1px solid #2d2852; }
.dev-status { color: #46e0a1; font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; margin-right: 0.6rem; }
.dev-code pre {
    margin: 0;
    padding: 0.95rem 1rem;
    overflow: auto;
    font: 400 0.8rem/1.65 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dev-code pre code { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.dev-code-json { max-height: 16rem; }
.dev-code .k { color: #b4acff; }
.dev-code .s { color: #f0cfa8; }
.dev-code .m { color: #46e0a1; }
.dev-code .o { color: #8ec5ff; }

/* Waitlist band */
.dev-waitlist {
    background: var(--purple-ultra-light);
    padding: 3.5rem 0;
    scroll-margin-top: 6rem;
}
.dev-waitlist-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
}
.dev-waitlist h2, .dev-section h2, .dev-final h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 0.9rem;
}
.dev-waitlist-copy p { color: var(--text-secondary); line-height: 1.65; margin: 0 0 0.8rem; max-width: 30rem; }

.dev-form-wrap {
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.12);
}
.dev-field { margin-bottom: 1.1rem; }
.dev-field label, .dev-check label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.4rem; }
.dev-optional { font-weight: 500; font-size: 0.8rem; color: var(--text-tertiary); margin-left: 0.3rem; }
.dev-field input[type="email"], .dev-field input[type="text"], .dev-field textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1.5px solid var(--border-emphasis);
    border-radius: 0.65rem;
    font: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
}
.dev-field textarea { resize: vertical; min-height: 5rem; }
.dev-field input:focus, .dev-field textarea:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px var(--purple-glow);
}
.dev-field input[aria-invalid="true"] { border-color: var(--red-error); }
.dev-field-error, .dev-error-summary { color: #B42318; font-size: 0.88rem; margin: 0.4rem 0 0; }
.dev-error-summary { margin: 0 0 1rem; font-weight: 600; }
.dev-check { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 1.25rem; }
.dev-check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--purple-primary); flex: none; }
.dev-check label { font-weight: 500; margin: 0; }
.dev-submit { width: 100%; justify-content: center; font-family: inherit; }

/* Honeypot: off-screen for people, still in the DOM for bots. */
.dev-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dev-joined h3 { margin: 0 0 0.5rem; font-size: 1.3rem; font-weight: 800; color: #067647; }
.dev-joined p { margin: 0 0 1rem; color: var(--text-secondary); line-height: 1.6; }

/* Sections */
.dev-section { padding: 4rem 0; }
.dev-section-tint { background: var(--bg-secondary); }
.dev-sub { color: var(--text-tertiary); margin: 0; line-height: 1.6; }

.dev-uses { margin-top: 1.5rem; max-width: 52rem; }
.dev-use {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    gap: 0.4rem 2.5rem;
    padding: 1.35rem 0;
    border-top: 1px solid var(--border-default);
}
.dev-use:last-child { border-bottom: 1px solid var(--border-default); }
.dev-use h3 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.dev-use p { margin: 0; color: var(--text-tertiary); line-height: 1.65; }

.dev-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.dev-checks { list-style: none; margin: 0; padding: 0; }
.dev-checks li {
    position: relative;
    padding: 0.7rem 0 0.7rem 2rem;
    border-bottom: 1px solid var(--border-default);
    color: var(--text-secondary);
    line-height: 1.55;
}
.dev-checks li:first-child { padding-top: 0; }
.dev-checks li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.95rem;
    width: 0.9rem;
    height: 0.5rem;
    border-left: 2.5px solid var(--green-success);
    border-bottom: 2.5px solid var(--green-success);
    transform: rotate(-45deg);
}
.dev-checks li:first-child::before { top: 0.25rem; }

/* A real sequence, so it is numbered. */
.dev-steps { list-style: none; counter-reset: step; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.dev-steps li { counter-increment: step; position: relative; padding-top: 3rem; }
.dev-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--purple-ultra-light);
    color: var(--purple-dark);
    display: grid;
    place-items: center;
    font-weight: 800;
}
.dev-steps h3 { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 700; }
.dev-steps p { margin: 0; color: var(--text-tertiary); line-height: 1.65; }

.dev-faq { max-width: 46rem; }
.dev-faq-item { border-top: 1px solid var(--border-default); padding: 0.2rem 0; }
.dev-faq-item:last-of-type { border-bottom: 1px solid var(--border-default); }
.dev-faq-item summary { cursor: pointer; padding: 1rem 0; font-weight: 700; list-style: none; position: relative; padding-right: 1.75rem; }
.dev-faq-item summary::-webkit-details-marker { display: none; }
.dev-faq-item summary::after { content: '+'; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.3rem; font-weight: 500; color: var(--purple-primary); }
.dev-faq-item[open] summary::after { content: '\2212'; }
.dev-faq-item p { margin: 0 0 1.1rem; color: var(--text-tertiary); line-height: 1.65; }
.dev-faq-item a { color: var(--purple-dark); }

.dev-final { background: var(--purple-primary); color: #fff; padding: 3.5rem 0; text-align: center; }
.dev-final h2 { color: #fff; }
.dev-final p { margin: 0 0 1.25rem; color: rgba(255, 255, 255, 0.88); }
.dev-final-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1.25rem; margin: 0; }
.dev-btn-light { background: #fff; color: var(--purple-dark); }
.dev-btn-light:hover { background: var(--purple-ultra-light); }
.dev-final-link { color: #fff; font-weight: 600; text-underline-offset: 0.2em; }

.dev-hero a:focus-visible, .dev-form-wrap a:focus-visible, .dev-final a:focus-visible, .dev-faq-item summary:focus-visible {
    outline: 3px solid var(--purple-primary);
    outline-offset: 3px;
    border-radius: 6px;
}
.dev-final a:focus-visible { outline-color: #fff; }

@media (max-width: 900px) {
    .dev-hero { padding: 7.5rem 0 2.5rem; }
    .dev-hero-grid, .dev-waitlist-grid, .dev-split { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .dev-steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .dev-use { grid-template-columns: minmax(0, 1fr); }
    .dev-section { padding: 3rem 0; }
    .dev-form-wrap { padding: 1.35rem; }
}

/* Centred layout: every section is one centred column. Code and form fields
   stay left-aligned inside their cards, which is how people read them. */
.dev-hero-grid, .dev-waitlist-grid, .dev-split { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; justify-items: center; text-align: center; }
.dev-lead { margin-left: auto; margin-right: auto; }
.dev-hero-actions, .dev-final-actions { justify-content: center; }
.dev-hero-copy { max-width: 44rem; }
.dev-code { width: 100%; max-width: 44rem; text-align: left; }
.dev-waitlist-copy p { margin-left: auto; margin-right: auto; }
.dev-form-wrap { width: 100%; max-width: 34rem; text-align: left; }
.dev-joined { text-align: center; }
.dev-section h2 { text-align: center; }
.dev-sub { max-width: 34rem; margin-left: auto; margin-right: auto; }

.dev-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 64rem; margin: 2rem auto 0; }
.dev-use { display: block; text-align: center; padding: 1.5rem 0 0; border-top: 1px solid var(--border-default); }
.dev-use:last-child { border-bottom: 0; }
.dev-use h3 { margin: 0 0 0.5rem; }

.dev-checks { width: 100%; max-width: 34rem; text-align: center; }
.dev-checks li, .dev-checks li:first-child { padding: 0.9rem 0; }
.dev-checks li::before, .dev-checks li:first-child::before {
    position: static;
    display: block;
    margin: 0 auto 0.55rem;
    transform: rotate(-45deg) translate(0, -2px);
}
.dev-checks li:last-child { border-bottom: 0; }

.dev-steps { text-align: center; max-width: 64rem; margin-left: auto; margin-right: auto; }
.dev-steps li::before { left: 50%; transform: translateX(-50%); }

.dev-faq { margin-left: auto; margin-right: auto; }
.dev-faq-item summary { text-align: center; padding-left: 1.75rem; }
.dev-faq-item p { text-align: center; }

@media (max-width: 900px) {
    .dev-uses { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .dev-use { padding: 1.35rem 0; }
}
