:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 8%;
    --border: 0 0% 92%;
    --card: 0 0% 98%;
    --card-foreground: 0 0% 10%;
    --muted: 210 6% 88%;
    --muted-foreground: 210 4% 35%;
    --primary: 210 15% 28%;
    --primary-foreground: 210 10% 98%;
    --accent: 210 8% 90%;
    --accent-foreground: 210 6% 18%;
    --ring: 210 15% 28%;
    --input: 0 0% 75%;
    --destructive: 0 72% 32%;
    --radius-sm: 0.1875rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5625rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
    font-size: 0.9375rem;
    line-height: 1.625;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid hsl(var(--border) / 0.4);
    margin-bottom: 0;
}

.nav-inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right .nav-link {
    display: none;
}

@media (min-width: 640px) {
    .nav-right .nav-link {
        display: inline-block;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.5rem;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: opacity 0.2s;
}

@media (min-width: 640px) {
    .logo-link {
        gap: 0.75rem;
    }
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    height: 1.75rem;
    width: 1.75rem;
    border-radius: 0.125rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .logo-img {
        height: 2rem;
        width: 2rem;
    }
}

.logo-text {
    display: none;
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
}

@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 640px) {
    .nav-links {
        display: flex;
        gap: 0.25rem;
    }
}

/* Hamburger button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.375rem;
    padding: 0;
    transition: background 0.2s;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: hsl(var(--foreground) / 0.05);
}

@media (min-width: 640px) {
    .hamburger-btn {
        display: none;
    }
}

.hamburger-bar {
    display: block;
    width: 1.25rem;
    height: 1px;
    background: hsl(var(--foreground));
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.2s;
    transform-origin: center;
}

.hamburger-btn.open .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
    border-top: 1px solid hsl(var(--border) / 0.4);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: hsl(var(--background) / 0.98);
}

.mobile-nav[hidden] {
    display: none;
}

@media (min-width: 640px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    display: block;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    background: hsl(var(--foreground) / 0.05);
    color: hsl(var(--foreground));
}

.mobile-nav-link.active {
    background: hsl(var(--foreground) / 0.05);
    font-weight: 500;
    color: hsl(var(--foreground));
}

.nav-link {
    display: inline-block;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    white-space: nowrap;
    outline: none;
}

.nav-link:focus-visible {
    outline: none;
}

@media (min-width: 640px) {
    .nav-link {
        padding: 0.375rem 0.75rem;
    }
}

.nav-link:hover {
    background: hsl(var(--foreground) / 0.05);
    color: hsl(var(--foreground));
}

.nav-link.active {
    background: hsl(var(--foreground) / 0.05);
    font-weight: 500;
    color: hsl(var(--foreground));
}

.container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
}

@media (min-width: 640px) {
    .container { padding: 4rem 1.5rem; }
}

@media (min-width: 768px) {
    .container { padding: 5rem 1.5rem; }
}

.container > header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.container > header h1 {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.tagline {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    letter-spacing: normal;
}


.upload-area {
    border: 1px dashed hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: hsl(var(--card) / 0.3);
}

.upload-area:hover, .upload-area.dragover {
    background: hsl(var(--foreground) / 0.02);
    border-color: hsl(var(--muted-foreground) / 0.3);
}

.upload-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.upload-area h2 {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.upload-area p {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.formats {
    margin-top: 1rem;
    font-size: 0.6875rem !important;
    color: hsl(var(--muted-foreground) / 0.6) !important;
    letter-spacing: 0.05em;
}

.hidden {
    display: none !important;
}

.btn-analyze {
    padding: 0.625rem 1.25rem;
    background: hsl(var(--foreground));
    border: 1px solid hsl(var(--foreground));
    border-radius: var(--radius-md);
    color: hsl(var(--background));
    font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-analyze:hover {
    background: hsl(var(--foreground) / 0.85);
}

.player-section {
    margin-bottom: 1.5rem;
}

.player-section audio {
    width: 100%;
    border-radius: var(--radius-md);
    outline: none;
}

.loading-card {
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: hsl(var(--card) / 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border) / 0.5);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid hsl(var(--border));
    border-top-color: hsl(var(--foreground));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

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

.loading-card h2 {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.loading-step {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.elapsed-timer {
    color: hsl(var(--muted-foreground) / 0.6);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    min-height: 1.1em;
}

.loading-eta {
    color: hsl(var(--muted-foreground) / 0.5);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    min-height: 1em;
    font-variant-numeric: tabular-nums;
}

.email-notify-box {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px dashed hsl(var(--border) / 0.7);
    border-radius: var(--radius-md);
    background: hsl(var(--card) / 0.3);
    text-align: left;
}

.email-notify-label {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 0.875rem;
}

.email-notify-row {
    display: flex;
    gap: 0.5rem;
}

.email-notify-row input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: var(--radius-md);
    background: hsl(var(--background));
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, sans-serif;
    outline: none;
    transition: border-color 0.15s;
}

.email-notify-row input[type="email"]:focus {
    border-color: hsl(var(--foreground) / 0.4);
}

.email-notify-row button {
    padding: 0.5rem 1rem;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.email-notify-row button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notify-email-status {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    line-height: 1.5;
}

.notify-email-status.success { color: hsl(152 40% 38%); }
.notify-email-status.error   { color: hsl(0 60% 45%); }

.loading-job-id {
    margin-top: 1.5rem;
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground) / 0.4);
    letter-spacing: 0.06em;
    font-family: 'Inter', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}

.error-card {
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: hsl(var(--card) / 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border) / 0.5);
}

.error-icon {
    font-size: 2rem;
    color: hsl(var(--muted-foreground) / 0.5);
    margin-bottom: 1rem;
}

.error-card h2 {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.error-message {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 2rem;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--border));
    font-size: 0.75rem;
    transition: color 0.2s;
}

.step.active {
    color: hsl(38 50% 42%);
}

.step.done {
    color: hsl(152 40% 38%);
}

.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--border));
    transition: background 0.2s;
}

.step.active .step-dot {
    background: hsl(38 50% 42%);
    animation: pulse 1.5s ease infinite;
}

.step.done .step-dot {
    background: hsl(152 40% 38%);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.verdict-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 5rem;
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--card) / 0.3);
}

.verdict-card.glassfolk {
    border-color: hsl(var(--border) / 0.5);
}

.verdict-card.adjacent {
    border-color: hsl(var(--border) / 0.5);
}

.verdict-card.not-glassfolk {
    border-color: hsl(var(--border) / 0.5);
}

.verdict-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--muted-foreground) / 0.4);
}

.verdict-song {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
    font-style: italic;
    word-break: break-word;
}

.verdict-card h2 {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-size: 1.875rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.confidence {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.summary {
    color: hsl(var(--foreground) / 0.8);
    font-size: 0.875rem;
    line-height: 1.625;
    max-width: 32rem;
    margin: 0 auto;
}

.section-label {
    font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.dimensions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 5rem;
}

.dimension-card {
    background: hsl(var(--card) / 0.3);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
}

.dimension-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.dimension-score {
    font-weight: 500;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.score-high { color: hsl(152 40% 38%); }
.score-mid { color: hsl(38 50% 42%); }
.score-low { color: hsl(0 30% 45%); }

.score-bar-bg {
    height: 3px;
    background: hsl(var(--border));
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.625rem;
}

.score-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
    background: hsl(var(--foreground) / 0.25);
}

.score-bar-fill.high { background: hsl(152 40% 38% / 0.6); }
.score-bar-fill.mid { background: hsl(38 50% 42% / 0.5); }
.score-bar-fill.low { background: hsl(0 30% 45% / 0.4); }

.dimension-weight {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground) / 0.6);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.dimension-reasoning {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
}

.mirror-test-section {
    margin-bottom: 5rem;
}

.mirror-test-text {
    background: hsl(var(--card) / 0.3);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    font-size: 0.8125rem;
    color: hsl(var(--foreground) / 0.8);
    line-height: 1.625;
}

.mirror-result {
    font-weight: 500;
    display: inline-block;
    margin-right: 0.375rem;
    color: hsl(var(--foreground));
}

.mirror-result.pass {
    color: hsl(152 40% 38%);
}

.mirror-result.fail {
    color: hsl(0 30% 45%);
}

.traits-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.traits-title-for { color: hsl(152 40% 38%); }
.traits-title-against { color: hsl(0 30% 45%); }

.traits-list {
    list-style: none;
    background: hsl(var(--card) / 0.3);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
}

.traits-list li {
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    color: hsl(var(--foreground) / 0.8);
    line-height: 1.5;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.traits-for li::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1px;
    background: hsl(var(--border));
    margin-top: 0.625rem;
    flex-shrink: 0;
}

.traits-against li::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1px;
    background: hsl(var(--border));
    margin-top: 0.625rem;
    flex-shrink: 0;
}

.coaching-tips {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 5rem;
}

.coaching-card {
    background: hsl(var(--card) / 0.3);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.coaching-card .coaching-area {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.coaching-card .coaching-issue {
    font-size: 0.8125rem;
    color: hsl(var(--foreground) / 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.625;
}

.coaching-card .coaching-suggestion {
    font-size: 0.8125rem;
    color: hsl(var(--foreground) / 0.8);
    margin-bottom: 0.5rem;
    line-height: 1.625;
}

.coaching-card .coaching-example {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
    font-style: italic;
}

.coaching-label {
    font-weight: 500;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-block;
    margin-right: 0.25rem;
    color: hsl(var(--muted-foreground) / 0.6);
}

.audio-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 5rem;
}

.audio-stat {
    background: hsl(var(--card) / 0.3);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.audio-stat .stat-value {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.audio-stat .stat-label {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground) / 0.6);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.transcription-section {
    margin-bottom: 5rem;
}

.transcription-text {
    background: hsl(var(--card) / 0.3);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
    font-style: italic;
    max-height: 200px;
    overflow-y: auto;
}

.btn-another {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius-md);
    color: hsl(var(--muted-foreground));
    font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.btn-another:hover {
    background: hsl(var(--foreground) / 0.05);
    color: hsl(var(--foreground));
}

.site-footer {
    border-top: 1px solid hsl(var(--border) / 0.4);
}

.footer-inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer-brand {
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
}

.footer-credit {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground) / 0.6);
}

.footer-credit a {
    color: hsl(var(--muted-foreground) / 0.6);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.footer-credit a:hover {
    opacity: 0.7;
}

@media (max-width: 640px) {
    .container { padding: 2rem 1.5rem; }
    header { margin-bottom: 3rem; }
    header h1 { font-size: 2.25rem; }
    .upload-area { padding: 2rem 1.25rem; }
    .traits-row { grid-template-columns: 1fr; }
    .progress-steps { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .audio-info { grid-template-columns: 1fr 1fr; }
    .dimensions-grid, .coaching-tips, .traits-row,
    .mirror-test-section, .transcription-section,
    .audio-info { margin-bottom: 3rem; }
    .verdict-card { margin-bottom: 3rem; }
    .logo-text { display: none; }
}

/* ---------------------------------------------------------------------------
   Registration CTA & Modal
   --------------------------------------------------------------------------- */

.registration-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius-lg);
    background: hsl(var(--card) / 0.3);
    margin-bottom: 5rem;
}

.registration-cta .reg-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: hsl(152 40% 38%);
    margin-bottom: 1rem;
}

.registration-cta h3 {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.registration-cta p {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reg-fee-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.fee-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: hsl(152 40% 38% / 0.08);
    color: hsl(152 40% 35%);
    border: 1px solid hsl(152 40% 38% / 0.2);
}

.fee-eth {
    font-size: 0.6875rem;
    color: hsl(var(--muted-foreground) / 0.6);
    font-style: italic;
}

.report-download-row {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-download-report {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid hsl(var(--border) / 0.7);
    border-radius: var(--radius-md);
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.btn-download-report:hover {
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
    background: hsl(var(--foreground) / 0.03);
}

.btn-register {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    border: 1px solid hsl(var(--foreground));
    border-radius: var(--radius-md);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.btn-register:hover {
    background: hsl(var(--foreground) / 0.85);
}

.not-qualified-note {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground) / 0.7);
    font-style: italic;
    text-align: center;
    margin-bottom: 3rem;
    padding: 1rem 1.5rem;
    border-left: 2px solid hsl(var(--border));
}

/* Share section */
.share-section {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 0.5rem;
    background: hsl(var(--foreground) / 0.025);
}
.share-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}
.share-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.share-link {
    font-size: 0.8125rem;
    font-family: ui-monospace, monospace;
    color: hsl(var(--foreground) / 0.7);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}
.share-link:hover { color: hsl(var(--foreground)); }
.share-copy-btn {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--foreground) / 0.05);
    color: hsl(var(--foreground) / 0.8);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.share-copy-btn:hover { background: hsl(var(--foreground) / 0.1); color: hsl(var(--foreground)); }

/* Modal overlay — full-page */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: hsl(var(--background));
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-overlay .site-nav {
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

.modal-box {
    background: transparent;
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    flex: 1;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: hsl(var(--foreground));
}

.modal-box .modal-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.modal-box h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-box .modal-desc {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form fields */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--foreground) / 0.8);
    margin-bottom: 0.375rem;
    letter-spacing: 0.02em;
}

.form-group label .req {
    color: hsl(var(--muted-foreground));
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: hsl(var(--primary));
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-divider {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid hsl(var(--border) / 0.4);
}

.form-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: hsl(var(--muted-foreground) / 0.7);
    margin-bottom: 1rem;
}

/* ---------- Info tooltip (?) ---------- */
.label-with-tip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.info-tip {
    position: relative;
    display: inline-flex;
}

.info-tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid hsl(var(--muted-foreground) / 0.4);
    background: transparent;
    color: hsl(var(--muted-foreground) / 0.7);
    font-size: 0.625rem;
    font-weight: 600;
    cursor: default;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.info-tip-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: hsl(var(--foreground) / 0.85);
    z-index: 100;
    box-shadow: 0 4px 16px hsl(0 0% 0% / 0.3);
    pointer-events: none;
}

.info-tip-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: hsl(var(--border));
}

.info-tip-popup dl {
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.info-tip-popup dt {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.05rem;
}

.info-tip-popup dd {
    margin: 0 0 0.2rem 0;
    color: hsl(var(--muted-foreground));
}

.info-tip:hover .info-tip-popup,
.info-tip-btn:focus + .info-tip-popup {
    display: block;
}

.form-hint {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground) / 0.7);
    margin-top: 0.375rem;
    line-height: 1.5;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin-top: 0.1875rem;
    accent-color: hsl(var(--foreground));
}

.form-checkbox label {
    font-size: 0.8125rem;
    color: hsl(var(--foreground) / 0.75);
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 400;
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.btn-submit:hover {
    background: hsl(var(--foreground) / 0.85);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-error {
    color: hsl(0 50% 50%);
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* Success page */
.success-page {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 36rem;
    margin: 0 auto;
}

.success-icon {
    font-size: 2.5rem;
    color: hsl(152 40% 38%);
    margin-bottom: 1rem;
}

.success-page h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: 2rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.success-body {
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
    line-height: 1.625;
}

.success-details {
    text-align: left;
    background: hsl(var(--card) / 0.3);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.success-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border) / 0.3);
    gap: 1rem;
}

.success-field:last-child {
    border-bottom: none;
}

.success-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--muted-foreground) / 0.6);
    flex-shrink: 0;
}

.success-value {
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    text-align: right;
}

.registry-id {
    font-family: monospace;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.success-note {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground) / 0.6);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .modal-box { padding: 1.75rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .registration-cta { margin-bottom: 3rem; }
}

/* Auth gate modal */
.auth-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: hsl(var(--background) / 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-gate-overlay.hidden {
    display: none;
}

.auth-gate-card {
    position: relative;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    max-width: 22rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px hsl(var(--foreground) / 0.08);
}

.auth-gate-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.15s, background 0.15s;
}

.auth-gate-close:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--foreground) / 0.06);
}

.auth-gate-eyebrow {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.auth-gate-heading {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.auth-gate-body {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.auth-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.auth-gate-btn-primary {
    display: block;
    padding: 0.625rem 1.25rem;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
}

.auth-gate-btn-primary:hover {
    opacity: 0.85;
}

.auth-gate-btn-secondary {
    display: block;
    padding: 0.625rem 1.25rem;
    border: 1px solid hsl(var(--border) / 0.6);
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: background 0.15s;
}

.auth-gate-btn-secondary:hover {
    background: hsl(var(--foreground) / 0.04);
}
