/* ==========================================================================
   CPAx — Coming Soon
   Design: Apple-grade minimalism, SciEncephalon AI brand system
   ========================================================================== */

:root {
    --sci-blue:   #0076a3;
    --sci-cyan:   #00c2e8;
    --sci-navy:   #1a2744;
    --sci-white:  #ffffff;
    --sci-gray:   #f8fafc;
    --sci-muted:  #94a3b8;
    --sci-hair:   rgba(26, 39, 68, 0.08);
    --sci-soft:   rgba(26, 39, 68, 0.55);

    --font-brand:   'Audiowide', system-ui, sans-serif;
    --font-tagline: 'Quicksand', system-ui, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

    --ease-apple:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 999px;

    --max-width: 1200px;
    --gutter: clamp(20px, 4vw, 48px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--sci-navy);
    background: #ffffff;
    line-height: 1.55;
    overflow-x: hidden;
    min-height: 100vh;
    font-feature-settings: "ss01", "cv11";
}

img, svg, object { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.inline-link {
    background: linear-gradient(135deg, var(--sci-blue), var(--sci-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    position: relative;
    transition: opacity 0.25s var(--ease-apple);
}

.inline-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, var(--sci-blue), var(--sci-cyan));
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: left;
    transition: opacity 0.3s var(--ease-apple), transform 0.3s var(--ease-apple);
}

.inline-link:hover::after {
    opacity: 0.7;
    transform: scaleX(1);
}

.inline-link--muted {
    -webkit-text-fill-color: var(--sci-muted);
    background: none;
    font-weight: 500;
}

.inline-link--muted:hover {
    -webkit-text-fill-color: var(--sci-navy);
}

.inline-logo-link {
    display: inline-flex;
    align-items: center;
    vertical-align: -0.35em;
    margin: 0 0.05em;
    padding: 2px 3px;
    border-radius: 8px;
    transition: background 0.25s var(--ease-apple), transform 0.25s var(--ease-apple);
}

.inline-logo-link:hover {
    background: rgba(0, 194, 232, 0.08);
    transform: translateY(-1px);
}

.inline-logo {
    height: 1.6em;
    width: auto;
    display: block;
    pointer-events: none; /* let clicks pass through the <object> to the parent <a> */
}

/* ---------- Background canvas ---------- */
#neural-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(0, 194, 232, 0.10), transparent 60%),
        radial-gradient(900px 600px at 10% 40%, rgba(0, 118, 163, 0.06), transparent 55%),
        radial-gradient(900px 600px at 90% 80%, rgba(26, 39, 68, 0.05), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 50%, #ffffff 100%);
}

/* ---------- Top nav ---------- */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px var(--gutter);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--sci-hair);
}

.topnav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.22em;
}

.topnav-mark {
    font-family: var(--font-brand);
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--sci-blue), var(--sci-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topnav-mark-accent {
    color: var(--sci-navy);
    -webkit-text-fill-color: var(--sci-navy);
}

.topnav-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sci-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sci-cyan);
    box-shadow: 0 0 0 0 rgba(0, 194, 232, 0.45);
    animation: pulse 2.4s var(--ease-smooth) infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 194, 232, 0.45); }
    50%      { box-shadow: 0 0 0 8px rgba(0, 194, 232, 0); }
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal 1.1s var(--ease-apple) forwards;
}

.delay-1 { animation-delay: 0.10s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.40s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.70s; }
.delay-6 { animation-delay: 0.90s; }

@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    padding: 120px var(--gutter) 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-inner {
    max-width: 920px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sci-soft);
    margin-bottom: 40px;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--sci-hair);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s var(--ease-apple);
    text-decoration: none;
}

.eyebrow-badge:hover {
    border-color: rgba(0, 194, 232, 0.35);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -8px rgba(0, 118, 163, 0.25);
}

.eyebrow-badge-logo {
    height: 52px;
    width: auto;
    display: block;
    pointer-events: none; /* let clicks pass through the <object> to the parent <a> */
}

.eyebrow-sep {
    width: 22px;
    height: 1px;
    background: var(--sci-hair);
}

.logo-wrap {
    width: min(540px, 92%);
    margin-bottom: 56px;
}

.logo {
    width: 100%;
    height: auto;
    pointer-events: none;
}

.headline {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--sci-navy);
    margin-bottom: 28px;
}

.headline-accent {
    background: linear-gradient(135deg, var(--sci-blue) 0%, var(--sci-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.subhead {
    font-family: var(--font-tagline);
    font-weight: 500;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.55;
    color: var(--sci-soft);
    max-width: 640px;
    margin: 0 auto 56px;
}

/* ---------- Notify form ---------- */
.notify {
    width: 100%;
    max-width: 460px;
    margin: 0 auto 40px;
}

.notify-field {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--sci-hair);
    border-radius: var(--radius-pill);
    box-shadow:
        0 1px 2px rgba(26, 39, 68, 0.03),
        0 20px 60px -20px rgba(0, 118, 163, 0.15);
    transition: all 0.4s var(--ease-apple);
    backdrop-filter: blur(10px);
}

.notify-field:focus-within {
    border-color: rgba(0, 194, 232, 0.4);
    box-shadow:
        0 0 0 4px rgba(0, 194, 232, 0.10),
        0 1px 2px rgba(26, 39, 68, 0.03),
        0 30px 80px -20px rgba(0, 118, 163, 0.25);
    transform: translateY(-1px);
}

.notify-field input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 12px 20px;
    outline: none;
    color: var(--sci-navy);
    letter-spacing: -0.005em;
}

.notify-field input::placeholder {
    color: var(--sci-muted);
}

.notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--sci-blue), var(--sci-cyan));
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease-apple);
    white-space: nowrap;
}

.notify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px -5px rgba(0, 118, 163, 0.45);
}

.notify-btn:active {
    transform: translateY(0);
}

.notify-btn-icon {
    transition: transform 0.3s var(--ease-apple);
}

.notify-btn:hover .notify-btn-icon {
    transform: translateX(3px);
}

.notify-meta {
    font-size: 0.8rem;
    color: var(--sci-muted);
    margin-top: 14px;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.notify-meta.success {
    color: var(--sci-blue);
    font-weight: 500;
}

.notify-meta.error {
    color: #c2410c;
}

/* ---------- Launching tag ---------- */
.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 8px 18px;
    background: rgba(26, 39, 68, 0.04);
    border: 1px solid var(--sci-hair);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.coming-soon-label {
    color: var(--sci-muted);
    text-transform: uppercase;
}

.coming-soon-value {
    color: var(--sci-navy);
    font-weight: 500;
}

/* ---------- Hero scroll indicator ---------- */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sci-muted);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--sci-muted), transparent);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--sci-cyan));
    animation: scrollDown 2.4s var(--ease-smooth) infinite;
}

@keyframes scrollDown {
    0%   { top: -40px; }
    100% { top: 40px; }
}

/* ---------- Pillars ---------- */
.pillars {
    padding: 120px var(--gutter);
    position: relative;
}

.pillars-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--sci-hair);
    border: 1px solid var(--sci-hair);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 100px -40px rgba(26, 39, 68, 0.1);
}

.pillar {
    padding: 56px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    text-align: left;
    transition: background 0.5s var(--ease-apple);
}

.pillar:hover {
    background: rgba(255, 255, 255, 1);
}

.pillar-figure {
    font-family: var(--font-brand);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1;
    background: linear-gradient(135deg, var(--sci-blue), var(--sci-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.pillar-unit,
.pillar-plus {
    font-size: 0.55em;
    opacity: 0.8;
    margin-left: 2px;
}

.pillar-label {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--sci-navy);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.pillar-caption {
    font-size: 0.88rem;
    color: var(--sci-soft);
    line-height: 1.5;
}

/* ---------- Promise / philosophy ---------- */
.promise {
    padding: 120px var(--gutter);
    text-align: center;
}

.promise-inner {
    max-width: 880px;
    margin: 0 auto;
}

.promise-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sci-muted);
    margin-bottom: 28px;
}

.promise-text {
    font-family: var(--font-tagline);
    font-weight: 500;
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--sci-navy);
}

.promise-accent {
    display: block;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--sci-blue), var(--sci-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* ---------- Footer ---------- */
footer {
    padding: 56px var(--gutter) 40px;
    border-top: 1px solid var(--sci-hair);
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(10px);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 8px 14px;
    margin: -8px -14px;
    border-radius: 14px;
    transition: background 0.3s var(--ease-apple), transform 0.3s var(--ease-apple);
}

.footer-brand:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.footer-logo {
    height: 56px;
    width: auto;
    display: block;
    pointer-events: none; /* clicks pass through to the parent <a> */
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-name {
    font-family: var(--font-brand);
    font-size: 0.9rem;
    color: var(--sci-navy);
    letter-spacing: 0.02em;
}

.footer-tag {
    font-family: var(--font-tagline);
    font-size: 0.82rem;
    color: var(--sci-muted);
    letter-spacing: 0.01em;
}

.footer-legal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--sci-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.footer-sep {
    opacity: 0.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .pillars-inner {
        grid-template-columns: 1fr;
    }

    .pillar {
        padding: 40px 28px;
    }

    .eyebrow-sep {
        display: none;
    }

    .eyebrow {
        flex-direction: column;
        gap: 8px;
    }

    .notify-field {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 10px;
    }

    .notify-btn {
        border-radius: var(--radius-md);
        justify-content: center;
        padding: 14px 22px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-scroll {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-text {
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .dot,
    .hero-scroll-line::before {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Form page — notify.html + thanks.html
   ========================================================================== */

.topnav-back {
    opacity: 0.6;
    transition: opacity 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
}

.topnav-brand:hover .topnav-back {
    opacity: 1;
    transform: translateX(-2px);
}

.form-main {
    padding: 120px var(--gutter) 80px;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.form-shell {
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--sci-hair);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 64px);
    box-shadow:
        0 2px 4px rgba(26, 39, 68, 0.02),
        0 40px 120px -40px rgba(0, 118, 163, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: reveal 1s var(--ease-apple) forwards;
    opacity: 0;
    transform: translateY(14px);
}

.form-head {
    text-align: center;
    margin-bottom: 48px;
}

.form-head .eyebrow {
    margin-bottom: 24px;
}

.form-headline {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(1.9rem, 4.4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--sci-navy);
    margin-bottom: 16px;
}

.form-subhead {
    font-family: var(--font-tagline);
    font-weight: 500;
    font-size: clamp(0.98rem, 1.4vw, 1.1rem);
    color: var(--sci-soft);
    max-width: 480px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
}

.field {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-half {
    grid-column: span 1;
}

.field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sci-navy);
    letter-spacing: -0.005em;
}

.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.field-hint {
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--sci-muted);
    letter-spacing: 0;
}

.field-hint--block {
    margin-top: 4px;
}

.field-action {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sci-blue);
    letter-spacing: 0.01em;
    transition: color 0.2s var(--ease-apple);
    padding: 0;
}

.field-action:hover {
    color: var(--sci-cyan);
}

.field input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--sci-hair);
    border-radius: 12px;
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--sci-navy);
    letter-spacing: -0.005em;
    outline: none;
    transition: all 0.25s var(--ease-apple);
}

.field input::placeholder {
    color: var(--sci-muted);
}

.field input:focus {
    border-color: rgba(0, 194, 232, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 194, 232, 0.12);
}

/* Native-enforced invalid state (after user has touched the field or tried to submit) */
.field input:user-invalid,
.field-error,
.field input.field-error {
    border-color: rgba(194, 65, 12, 0.55);
    box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.10);
}

/* Red asterisk on required field labels */
.field label .req {
    color: #c2410c;
    margin-left: 2px;
    font-weight: 600;
}

/* ---------- Custom validation popup (SE-branded, replaces browser's native) ---------- */
.field-popover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-top: 10px;
    padding: 6px 14px 6px 6px;
    background: #ffffff;
    border: 1px solid rgba(194, 65, 12, 0.35);
    border-radius: 999px;
    box-shadow:
        0 6px 16px -4px rgba(26, 39, 68, 0.18),
        0 2px 4px rgba(26, 39, 68, 0.04);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sci-navy);
    letter-spacing: -0.005em;
    animation: field-popover-in 0.28s var(--ease-spring) both;
    max-width: 100%;
}

.field-popover-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(26, 39, 68, 0.08);
}

.field-popover-msg {
    line-height: 1.3;
}

@keyframes field-popover-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* States grid error state */
.states-error {
    outline: 1px solid rgba(194, 65, 12, 0.4);
    outline-offset: 6px;
    border-radius: 12px;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 6px;
}

.chip {
    padding: 9px 6px;
    border: 1px solid var(--sci-hair);
    border-radius: 10px;
    background: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sci-soft);
    letter-spacing: 0.04em;
    transition: all 0.2s var(--ease-apple);
    text-align: center;
}

.chip:hover {
    border-color: rgba(0, 194, 232, 0.35);
    color: var(--sci-navy);
    transform: translateY(-1px);
}

.chip--on {
    background: linear-gradient(135deg, var(--sci-blue), var(--sci-cyan));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px -4px rgba(0, 118, 163, 0.4);
}

.chip--on:hover {
    color: #ffffff;
}

.form-actions {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.form-submit {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    position: relative;
}

.form-submit.is-loading {
    opacity: 0.75;
    cursor: progress;
}

.form-submit.is-loading .notify-btn-icon {
    animation: submit-spin 0.9s linear infinite;
}

.form-submit.is-error {
    background: linear-gradient(135deg, #c2410c, #ea580c);
}

.form-submit:disabled {
    pointer-events: none;
}

@keyframes submit-spin {
    to { transform: rotate(360deg); }
}

.form-privacy {
    font-size: 0.78rem;
    color: var(--sci-muted);
    letter-spacing: 0.01em;
    text-align: center;
    transition: color 0.25s var(--ease-apple);
}

.form-privacy.success {
    color: var(--sci-blue);
    font-weight: 500;
}

.form-privacy.error {
    color: #c2410c;
    font-weight: 500;
}

/* ---------- Thanks page ---------- */
.thanks-shell {
    width: 100%;
    max-width: 640px;
    text-align: center;
    padding: clamp(40px, 5vw, 72px);
}

.thanks-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sci-blue), var(--sci-cyan));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px -15px rgba(0, 118, 163, 0.45);
    animation: check-in 0.8s var(--ease-spring) 0.2s both;
}

@keyframes check-in {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

.thanks-headline {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--sci-navy);
    margin-bottom: 16px;
}

.thanks-subhead {
    font-family: var(--font-tagline);
    font-weight: 500;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--sci-soft);
    max-width: 440px;
    margin: 0 auto 40px;
}

.thanks-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--sci-blue);
    transition: gap 0.25s var(--ease-apple), color 0.2s var(--ease-apple);
}

.thanks-link:hover {
    color: var(--sci-cyan);
    gap: 12px;
}

/* ---------- Form page responsive ---------- */
@media (max-width: 620px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-half {
        grid-column: span 1;
    }

    .field,
    .form-actions {
        grid-column: span 1;
    }

    .form-main {
        padding-top: 100px;
    }
}

