/* ========================================
   d{time} Landing Page — styles.css
   Code-inspired brand refresh
   ======================================== */

:root {
    --primary: #90c95b;
    --primary-light: #a7d97a;
    --primary-dark: #587c34;
    --primary-subtle: rgba(144, 201, 91, 0.1);
    --primary-subtle-2: rgba(144, 201, 91, 0.18);
    --accent: #4fb195;

    --text: #18201c;
    --text-secondary: #51605a;
    --text-tertiary: #7c8983;
    --bg: #eef3ea;
    --bg-alt: #e5ebe0;
    --white: #fbfcf8;
    --border: #ced7c7;
    --border-light: #dde5d8;
    --border-strong: #aebba7;

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --shadow: 0 6px 18px rgba(24, 32, 28, 0.05);
    --shadow-md: 0 12px 28px rgba(24, 32, 28, 0.07);
    --shadow-lg: 0 18px 40px rgba(24, 32, 28, 0.09);

    --nav-height: 80px;
    --nav-height-mobile: 74px;
    --brand-logo-nav-height: 45px;
    --brand-logo-nav-height-mobile: 38px;
    --brand-logo-footer-height: 40px;
    --brand-logo-footer-height-mobile: 36px;
    --auth-card-width: 468px;
    --auth-logo-max-width: 160px;

    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Avenir Next', 'Segoe UI', sans-serif;
    --font-code: 'SF Mono', 'Cascadia Code', 'Fira Mono', 'Roboto Mono', 'Consolas', monospace;
    --font: var(--font-sans);
    --container: 1120px;
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(180deg, rgba(251, 252, 248, 0.45), rgba(238, 243, 234, 0) 260px),
        repeating-conic-gradient(rgba(144, 201, 91, 0.045) 0% 25%, transparent 0% 50%) 0 0 / 48px 48px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(251, 252, 248, 0.96);
    border-bottom: 1px solid rgba(206, 215, 199, 0.72);
    transition: box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}

.nav.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: var(--nav-height);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    text-decoration: none;
    color: var(--text);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    flex: 0 0 auto;
    line-height: 0;
    min-height: 44px;
}

.nav-logo-icon {
    font-size: 24px;
}

.nav-logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
}

.brand-logo--nav {
    height: var(--brand-logo-nav-height);
}

.brand-logo--footer {
    height: var(--brand-logo-footer-height);
}

.footer-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
    min-height: 44px;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-auth-shell {
    list-style: none;
}

.nav-auth {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-auth--authenticated {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.88);
    border: 1px solid rgba(174, 187, 167, 0.82);
}

.nav-auth-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.nav-auth-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 177, 149, 0.16);
    flex: 0 0 auto;
}

.nav-auth-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.nav-auth-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-family: var(--font-code);
}

.nav-auth-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    max-width: 148px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-auth-signout,
.nav-auth-status {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-code);
}

.nav-auth-signout {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    cursor: pointer;
}

.nav-auth-signout:hover {
    color: var(--text);
}

.nav-auth--signed-out,
.nav-auth--loading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nav-auth-status {
    color: var(--text-tertiary);
}

.nav-auth-link {
    white-space: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--text);
    color: var(--white);
    border: 1px solid var(--text);
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(24, 32, 28, 0.08);
}

.nav-cta-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--text);
    color: var(--white);
    border-color: var(--text);
    box-shadow: 0 8px 20px rgba(24, 32, 28, 0.08);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 22px rgba(24, 32, 28, 0.1);
}

.btn-secondary {
    background: rgba(251, 252, 248, 0.85);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    background: rgba(144, 201, 91, 0.08);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    padding: 152px 0 92px;
    background:
        linear-gradient(180deg, rgba(144, 201, 91, 0.05), rgba(238, 243, 234, 0) 44%),
        linear-gradient(180deg, rgba(24, 32, 28, 0.015), rgba(24, 32, 28, 0));
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(251, 252, 248, 0.82);
    color: var(--text-secondary);
    border: 1px solid rgba(206, 215, 199, 0.9);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-code);
}

.hero-title {
    font-size: clamp(3.2rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.06em;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 11ch;
}

.highlight {
    color: var(--text);
    background: linear-gradient(180deg, transparent 62%, rgba(144, 201, 91, 0.18) 62%);
    border-radius: 0.18em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 0.04em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-auth-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-auth-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.hero-auth-link:hover {
    color: var(--text);
}

/* Dashboard Mock */
.dashboard-mock {
    background: rgba(251, 252, 248, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(174, 187, 167, 0.85);
    box-shadow: var(--shadow-md);
    padding: 28px;
    max-width: 480px;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.dashboard-mock::before {
    content: none;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.mock-title {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-code);
}

.mock-time {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
}

.mock-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mock-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(206, 215, 199, 0.82);
    border-radius: 12px;
    background: rgba(251, 252, 248, 0.82);
    overflow: hidden;
}

.mock-cat::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: var(--cat-color);
    opacity: 0.55;
    border-radius: 999px;
}

.mock-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 0 8px;
    height: 24px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-code);
    color: var(--text-secondary);
    background: rgba(229, 235, 224, 0.7);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.mock-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    z-index: 1;
    flex: 1;
}

.mock-cat-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    padding-right: 10px;
}

.mock-insight {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.mock-insight-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-code);
}

.mock-insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.mock-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--border-light);
    background: rgba(251, 252, 248, 0.7);
    color: var(--text-secondary);
    font-family: var(--font-code);
}

.tag-edu {
    background: rgba(251, 252, 248, 0.7);
    color: var(--text-secondary);
}

.tag-ent {
    background: rgba(251, 252, 248, 0.7);
    color: var(--text-secondary);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 62ch;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* ========================================
   Problem Section
   ======================================== */
.problem {
    background: var(--bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: rgba(251, 252, 248, 0.86);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--shadow);
}

.problem-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.problem-icon {
    min-width: 44px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-code);
    color: var(--text-secondary);
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(229, 235, 224, 0.6);
    border: 1px solid var(--border-light);
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

/* ========================================
   Public Leaderboard
   ======================================== */
.public-leaderboard {
    background:
        radial-gradient(circle at 18% 20%, rgba(144, 201, 91, 0.18), transparent 32%),
        linear-gradient(180deg, var(--bg), var(--bg-alt));
    overflow: hidden;
}

.public-leaderboard--page {
    min-height: calc(100vh - var(--nav-height));
    padding: calc(var(--nav-height) + 52px) 0 72px;
    display: flex;
    align-items: flex-start;
}

.public-leaderboard--page .container {
    width: 100%;
}

.leaderboard-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    gap: 36px;
    align-items: center;
}

.leaderboard-shell--standalone {
    display: block;
    max-width: 980px;
    margin: 0 auto;
}

.leaderboard-copy .section-title,
.leaderboard-copy .section-subtitle {
    text-align: left;
    margin-left: 0;
}

.leaderboard-subtitle {
    margin-bottom: 0;
}

.leaderboard-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.leaderboard-kicker::before {
    content: none;
}

.leaderboard-card {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(174, 187, 167, 0.86);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.leaderboard-card--large {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
}

.leaderboard-card::after {
    content: none;
}

.leaderboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.leaderboard-card-head h3 {
    font-size: 25px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.leaderboard-card-head h1 {
    margin: 4px 0 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    letter-spacing: -0.07em;
    line-height: 0.94;
}

.leaderboard-live-pill {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(144, 201, 91, 0.42);
    border-radius: 999px;
    background: rgba(144, 201, 91, 0.1);
    color: var(--primary-dark);
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.leaderboard-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    list-style: none;
}

.leaderboard-public-row,
.leaderboard-loading-row,
.leaderboard-empty-row {
    border: 1px solid rgba(206, 215, 199, 0.9);
    border-radius: 12px;
    background: rgba(251, 252, 248, 0.72);
}

.leaderboard-public-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
}

.leaderboard-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(144, 201, 91, 0.12);
    color: var(--primary-dark);
    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 800;
}

.leaderboard-person,
.leaderboard-score {
    display: grid;
    gap: 2px;
}

.leaderboard-person strong,
.leaderboard-score strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.2;
}

.leaderboard-person span,
.leaderboard-score span,
.leaderboard-footnote {
    color: var(--text-secondary);
    font-size: 12px;
}

.leaderboard-profile-link {
    display: grid;
    gap: 2px;
    color: inherit;
    text-decoration: none;
}

.leaderboard-profile-link:hover strong,
.leaderboard-profile-link:focus-visible strong {
    color: var(--primary-dark);
}

.leaderboard-profile-link:focus-visible {
    outline: 2px solid rgba(144, 201, 91, 0.65);
    outline-offset: 4px;
    border-radius: 8px;
}

.leaderboard-profile-link--disabled {
    cursor: default;
}

.leaderboard-score {
    min-width: 96px;
    text-align: right;
}

.leaderboard-score strong {
    color: var(--primary-dark);
    font-family: var(--font-code);
}

.leaderboard-loading-row,
.leaderboard-empty-row {
    padding: 18px;
    color: var(--text-secondary);
    font-size: 14px;
}

.leaderboard-footnote {
    margin-top: 16px;
    font-family: var(--font-code);
}

.profile-page-container {
    max-width: 820px;
}

.profile-shell {
    min-height: 260px;
}

.profile-card {
    border: 1px solid rgba(206, 215, 199, 0.9);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(144, 201, 91, 0.16), transparent 34%),
        rgba(251, 252, 248, 0.92);
    box-shadow: var(--shadow-soft);
    padding: clamp(24px, 4vw, 40px);
}

.profile-card-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.profile-card h2 {
    margin-top: 4px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.05em;
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(144, 201, 91, 0.14);
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
}

.profile-bio,
.profile-privacy-note {
    color: var(--text-secondary);
    line-height: 1.7;
}

.profile-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 4px;
}

.profile-socials a,
.profile-socials--empty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(100%, 320px);
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(174, 187, 167, 0.82);
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.72);
    color: var(--text);
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(24, 32, 28, 0.04);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-socials a::before {
    content: "↗";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(144, 201, 91, 0.14);
    color: var(--primary-dark);
    font-size: 11px;
    line-height: 1;
    flex: 0 0 auto;
}

.profile-socials a:hover,
.profile-socials a:focus-visible {
    border-color: rgba(88, 124, 52, 0.55);
    background: rgba(144, 201, 91, 0.1);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.profile-socials a:focus-visible {
    outline: 3px solid rgba(144, 201, 91, 0.22);
    outline-offset: 2px;
}

.profile-socials--empty {
    color: var(--text-tertiary);
    box-shadow: none;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.profile-stat {
    border: 1px solid rgba(206, 215, 199, 0.85);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
    padding: 16px;
}

.profile-stat span {
    display: block;
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-stat strong {
    display: block;
    margin-top: 6px;
    color: var(--primary-dark);
    font-size: 22px;
}

.secondary-link {
    display: inline-flex;
    margin-top: 20px;
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.problem-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Smart Categorization
   ======================================== */
.smart-cat {
    background: var(--white);
}

.cat-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 64px;
}

.cat-demo-site {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.cat-demo-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.cat-demo-domain {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.cat-demo-examples {
    padding: 8px 24px;
}

.cat-demo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.cat-demo-row:last-child {
    border-bottom: none;
}

.cat-demo-page {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
}

.cat-arrow {
    color: var(--text-tertiary);
    font-size: 14px;
}

.cat-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--tag-bg);
    color: var(--text);
    white-space: nowrap;
}

.categories-showcase {
    text-align: center;
}

.categories-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-chip {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    background: var(--chip-color);
    color: var(--text);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.category-chip:hover {
    background: rgba(251, 252, 248, 0.94);
}

/* ========================================
   Comparison Table
   ======================================== */
.comparison {
    background: var(--white);
}

/* ========================================
   Pricing
   ======================================== */
.pricing {
    background: linear-gradient(180deg, rgba(144, 201, 91, 0.04), rgba(238, 243, 234, 0.22) 38%, rgba(251, 252, 248, 0.78));
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: rgba(251, 252, 248, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.pricing-card-featured {
    background: rgba(251, 252, 248, 0.94);
    border-color: rgba(174, 187, 167, 0.95);
    box-shadow: var(--shadow);
}

.pricing-popular {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.96);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(24, 32, 28, 0.04);
    font-family: var(--font-code);
}

.pricing-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pricing-card h3 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.pricing-price {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--text);
    white-space: nowrap;
}

.pricing-price span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0;
}

.pricing-price-custom {
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    color: var(--text-secondary);
    letter-spacing: -0.3px;
    line-height: 1;
    margin-top: 4px;
}

.pricing-summary {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 34ch;
}

.pricing-features {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.pricing-features li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(144, 201, 91, 0.14);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.pricing-btn {
    width: 100%;
    margin-top: auto;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 600px;
}

.compare-table thead th {
    padding: 14px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.compare-table thead th:first-child {
    text-align: left;
}

.compare-table tbody td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.compare-name {
    text-align: left !important;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.compare-brand {
    font-weight: 700 !important;
    color: var(--primary) !important;
}

.compare-highlight {
    background: rgba(144, 201, 91, 0.06);
}

.compare-highlight td {
    border-bottom: none;
}

.compare-highlight td:first-child {
    border-radius: 8px 0 0 8px;
}

.compare-highlight td:last-child {
    border-radius: 0 8px 8px 0;
}

.compare-table-article {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
}

.compare-table-detail {
    min-width: 0;
    width: 100%;
    table-layout: auto;
}

.compare-table-detail thead th,
.compare-table-detail tbody td {
    text-align: center;
    vertical-align: top;
}

.compare-table-detail thead th {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: normal;
    padding: 12px 10px;
}

.compare-table-detail tbody td {
    line-height: 1.45;
    color: var(--text);
    padding: 12px 8px;
}

.compare-table-detail .compare-name {
    width: 24%;
    min-width: 180px;
    text-align: left !important;
    color: var(--text) !important;
}

.compare-table-detail th:not(:first-child),
.compare-table-detail td:not(:first-child) {
    width: 12.66%;
}

.compare-table-detail th:nth-child(2),
.compare-table-detail td:nth-child(2) {
    background: color-mix(in srgb, var(--primary-subtle) 74%, var(--white) 26%);
}

.compare-table-detail th:nth-child(2) {
    color: var(--primary-dark);
    font-weight: 800;
}

.compare-table-detail td:nth-child(2) .check.yes {
    background: rgba(144, 201, 91, 0.24);
    color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px rgba(88, 124, 52, 0.12);
}

.compare-table-detail td:nth-child(2) .check.no,
.compare-table-detail td:nth-child(2) .check.partial {
    box-shadow: inset 0 0 0 1px rgba(88, 124, 52, 0.1);
}

.article-section--wide {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0;
    transform: none;
}

.compare-section-title {
    max-width: 100%;
    margin-inline: 0;
    text-wrap: balance;
}

.competitor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
}

.competitor-card {
    margin: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    border: 1px solid color-mix(in srgb, var(--border) 78%, var(--primary) 22%);
    border-radius: 22px;
    background: color-mix(in srgb, var(--white) 84%, var(--primary-subtle) 16%);
}

.competitor-card img {
    display: block;
    width: 100%;
    height: 104px;
    object-fit: cover;
    object-position: top center;
    border-radius: 14px;
    background: var(--white);
}

.competitor-card-logo img {
    height: 62px;
    object-fit: contain;
    object-position: center;
    padding: 16px 20px;
}

.competitor-card figcaption {
    margin-top: 0;
    display: grid;
    gap: 8px;
}

.competitor-card figcaption strong {
    font-size: 18px;
    line-height: 1.2;
}

.competitor-card figcaption span {
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.check.yes {
    background: rgba(144, 201, 91, 0.15);
    color: var(--primary-dark);
}

.check.no {
    background: rgba(24, 32, 28, 0.05);
    color: var(--text-tertiary);
}

.check.partial {
    background: rgba(255, 193, 7, 0.15);
    color: #b8860b;
}

/* ========================================
   Use Cases / Personas
   ======================================== */
.use-cases {
    background: var(--bg);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.use-case-card {
    background: rgba(251, 252, 248, 0.86);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.use-case-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.use-case-icon {
    min-width: 56px;
    padding: 8px 14px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    border-radius: 999px;
    background: rgba(229, 235, 224, 0.6);
    border: 1px solid var(--border-light);
}

.use-case-icon-glyph {
    display: inline-block;
    transform: none;
    font-family: var(--font-code);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.use-cases-subtitle {
    margin-bottom: 42px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-family: var(--font-code);
}

.icon-student {
    transform: none;
}

.icon-worker {
    transform: none;
}

.icon-creator {
    transform: none;
}

.use-case-card h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.use-case-quote,
.use-case-intro,
.use-case-lead,
.use-case-cta {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.use-case-quote {
    max-width: 28ch;
    margin: 0 auto 14px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
}

.use-case-intro {
    max-width: 31ch;
    margin: 0 auto 16px;
}

.use-case-lead {
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.use-case-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 14px;
    width: 100%;
}

.use-case-list li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 27ch;
    margin: 0 auto;
}

.use-case-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
}

.use-case-cta {
    max-width: none;
    margin: auto auto 0;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .nav-container {
        padding: 0 18px;
    }

    .nav-menu {
        gap: 22px;
    }

    .nav-link {
        font-size: 14px;
    }

    .nav-cta-btn {
        padding: 8px 16px;
    }

    .use-case-cta {
        white-space: normal;
        max-width: 24ch;
    }
}

@media (max-width: 980px) {
    .nav-menu {
        gap: 18px;
    }

    .nav-link {
        font-size: 13px;
    }

    .nav-cta-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
    background: var(--bg);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(251, 252, 248, 0.86);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.feature-icon {
    min-width: 44px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-code);
    color: var(--text-secondary);
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(229, 235, 224, 0.6);
    border: 1px solid var(--border-light);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
    background: var(--white);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    max-width: 280px;
    padding: 0 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--text);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin-top: 28px;
    flex-shrink: 0;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    background: var(--bg);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary-dark);
}

.faq-icon {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--white);
}

.cta-box {
    text-align: center;
    background: linear-gradient(180deg, #1b221f, #151b18);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    border: 1px solid #2a3930;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(17, 24, 20, 0.16);
}

.cta-box::before {
    content: none;
}

.cta-box h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: var(--white);
}

.cta-box > p {
    font-size: 17px;
    color: rgba(251, 252, 248, 0.78);
    margin-bottom: 32px;
}

.cta-box .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 10px 22px rgba(17, 24, 20, 0.16);
}

.cta-box .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--text);
}

.cta-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

.cta-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #34463a;
    border-radius: 100px;
    font-size: 15px;
    font-family: var(--font);
    background: rgba(251, 252, 248, 0.96);
    outline: none;
    color: var(--text);
}

.cta-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(144, 201, 91, 0.12);
}

.cta-note {
    font-size: 13px;
    color: rgba(251, 252, 248, 0.54);
    margin-top: 16px;
}

.cta-note-secondary {
    color: rgba(251, 252, 248, 0.72);
    margin-top: 10px;
}

.cta-feedback {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
}

.cta-feedback--success {
    color: var(--primary-light);
}

.cta-feedback--error {
    color: #ffd4c7;
}

.cta-inline-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
}

.cta-inline-link:hover {
    color: var(--white);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid #24322a;
    background: #121915;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.footer-copy {
    font-size: 14px;
    color: rgba(251, 252, 248, 0.56);
}

/* ========================================
   SEO Pages And Blog
   ======================================== */
.page-hero {
    padding: 132px 0 72px;
    background: linear-gradient(180deg, rgba(144, 201, 91, 0.11), rgba(251, 252, 248, 0));
    border-bottom: 1px solid rgba(206, 215, 199, 0.8);
}

.page-hero-inner {
    max-width: 780px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-code);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.page-title {
    font-size: clamp(2.8rem, 5vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.7;
}

/* ========================================
   Login Page
   ======================================== */
.login-main {
    min-height: 100vh;
}

.auth-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 1000;
    width: min(calc(100% - 32px), 1040px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 12px 10px 16px;
    border: 1px solid rgba(174, 187, 167, 0.66);
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.76);
    box-shadow: 0 16px 42px rgba(24, 32, 28, 0.07);
    backdrop-filter: blur(18px);
}

.auth-nav-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.auth-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.auth-nav-links a:hover {
    color: var(--text);
    background: rgba(229, 235, 224, 0.7);
}

.auth-nav-links .auth-nav-primary {
    background: var(--text);
    color: var(--white);
}

.auth-nav-links .auth-nav-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.login-main--focused {
    padding-top: 0;
    background:
        radial-gradient(circle at 16% 24%, rgba(144, 201, 91, 0.2), transparent 27%),
        radial-gradient(circle at 78% 16%, rgba(79, 177, 149, 0.16), transparent 29%),
        linear-gradient(135deg, rgba(251, 252, 248, 0.92), rgba(229, 235, 224, 0.72)),
        var(--bg);
}

.auth-page-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 20%, var(--primary-subtle-2), transparent 30%),
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 32%),
        linear-gradient(145deg, color-mix(in srgb, var(--white) 92%, transparent), color-mix(in srgb, var(--bg-alt) 78%, transparent)),
        var(--bg);
}

body.auth-page-body > nav,
body.auth-page-body > .nav,
body.auth-page-body > .auth-nav,
body.auth-page-body > .account-nav {
    display: none !important;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--space-2xl) var(--space-lg);
}

.auth-page__shell {
    width: min(100%, var(--auth-card-width));
    display: grid;
    justify-items: center;
    gap: var(--space-lg);
}

.auth-page__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid color-mix(in srgb, var(--border-strong) 58%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--white) 76%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-page__logo {
    display: block;
    width: auto;
    height: var(--brand-logo-nav-height);
    max-width: var(--auth-logo-max-width);
}

.auth-page__card {
    width: 100%;
}

.auth-page__lede {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

.login-hero {
    padding-bottom: 52px;
}

.login-section--focused {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 118px 0 64px;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.84fr) minmax(380px, 468px);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    justify-content: center;
}

.auth-side-panel {
    display: grid;
    gap: 18px;
    max-width: 430px;
    padding: 10px 0;
}

.auth-side-kicker {
    width: fit-content;
    border: 1px solid rgba(174, 187, 167, 0.7);
    border-radius: 999px;
    padding: 8px 11px;
    color: var(--primary-dark);
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(251, 252, 248, 0.54);
}

.auth-side-panel h2 {
    max-width: 10ch;
    color: var(--text);
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.92;
}

.auth-side-panel p:not(.auth-side-kicker) {
    max-width: 38ch;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.auth-side-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.auth-side-list span {
    border: 1px solid rgba(174, 187, 167, 0.74);
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(251, 252, 248, 0.62);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;
}

.login-hero-grid,
.login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: start;
}

.login-grid--focused {
    align-items: center;
}

.login-grid--simple {
    max-width: 940px;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
}

.auth-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(174, 187, 167, 0.84);
    box-shadow: 0 14px 32px rgba(24, 32, 28, 0.06);
    width: min(100%, 468px);
    min-height: 570px;
}

.auth-page-intro {
    max-width: 520px;
}

.auth-session-kicker {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-code);
    color: var(--primary-dark);
}

.auth-value-title,
.auth-card h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
    margin-bottom: 14px;
}

.auth-value-copy,
.auth-card-header p,
.auth-session-copy {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.auth-card {
    padding: 32px 34px;
    background: rgba(251, 252, 248, 0.96);
}

.auth-card-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 18px;
    min-height: 82px;
}

.auth-card-header h1 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1;
    letter-spacing: -0.06em;
    min-height: 0.98em;
    white-space: nowrap;
}

body.auth-page-body .auth-page--login .auth-card-header h1 {
    letter-spacing: -0.035em;
    line-height: 1.04;
    white-space: normal;
    text-wrap: balance;
    word-spacing: 0.02em;
}

.auth-card-kicker {
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 20px;
    padding: 3px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: rgba(229, 235, 224, 0.58);
}

.auth-mode-tab {
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
}

.auth-mode-tab.active {
    background: var(--white);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(24, 32, 28, 0.06);
}

.auth-mode-tab:focus-visible {
    outline: 3px solid rgba(144, 201, 91, 0.28);
    outline-offset: 2px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-code);
    color: var(--text-secondary);
}

.auth-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: rgba(251, 252, 248, 0.98);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(144, 201, 91, 0.14);
}

.auth-submit,
.auth-google-btn {
    width: 100%;
    min-height: 48px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-code);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-google-btn {
    gap: 10px;
}

.google-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.92);
    border: 1px solid rgba(174, 187, 167, 0.82);
}

.auth-card-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-feedback {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.auth-feedback--error {
    color: #7d3b34;
    background: rgba(193, 134, 102, 0.12);
    border: 1px solid rgba(193, 134, 102, 0.24);
}

.auth-feedback--success {
    color: #234a3f;
    background: rgba(79, 177, 149, 0.12);
    border: 1px solid rgba(79, 177, 149, 0.22);
}

.desktop-callback-shell {
    justify-content: center;
}

.desktop-callback-card {
    min-height: 0;
    text-align: center;
}

.desktop-callback-card h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.07em;
    line-height: 0.96;
}

.desktop-callback-card p {
    color: var(--text-secondary);
}

.desktop-callback-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 4px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--text);
    color: var(--white);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.desktop-callback-button:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.auth-session-panel {
    margin-bottom: 22px;
    padding: 22px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(144, 201, 91, 0.22), transparent 42%),
        rgba(144, 201, 91, 0.1);
    border: 1px solid rgba(144, 201, 91, 0.24);
}

.auth-session-panel h3 {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.auth-session-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.auth-account-strip {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(251, 252, 248, 0.72);
    border: 1px solid rgba(174, 187, 167, 0.72);
}

.auth-account-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(79, 177, 149, 0.14);
    flex: 0 0 auto;
}

.auth-account-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.auth-account-email {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-account-status {
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   Account member page
   ======================================== */
.account-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 1000;
    width: min(calc(100% - 32px), 1120px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 12px 10px 16px;
    border: 1px solid rgba(174, 187, 167, 0.66);
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.82);
    box-shadow: 0 16px 42px rgba(24, 32, 28, 0.07);
    backdrop-filter: blur(18px);
}

.account-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.account-nav-brand span {
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-nav-links a,
.account-nav-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.account-nav-links a:hover,
.account-nav-links button:hover {
    color: var(--text);
    background: rgba(229, 235, 224, 0.7);
}

.account-nav-links button {
    background: var(--text);
    color: var(--white);
}

.account-nav-links button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.account-main {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 18%, rgba(144, 201, 91, 0.22), transparent 30%),
        radial-gradient(circle at 84% 14%, rgba(79, 177, 149, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(251, 252, 248, 0.94), rgba(229, 235, 224, 0.72)),
        var(--bg);
}

.account-hero {
    padding: 128px 0 72px;
}

.account-shell {
    max-width: 1040px;
}

.account-loading,
.account-welcome-card,
.account-panel {
    border: 1px solid rgba(174, 187, 167, 0.78);
    background: rgba(251, 252, 248, 0.88);
    box-shadow: var(--shadow-md);
}

.account-loading,
.account-loading {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 46px);
    border-radius: 24px;
    text-align: center;
}

.account-loading h1,
.account-welcome-card h1 {
    margin-bottom: 14px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.account-loading p,
.account-lede,
.account-panel p {
    color: var(--text-secondary);
}

.account-kicker,
.account-panel-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-dashboard {
    display: grid;
    gap: 22px;
}

.account-welcome-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 28px;
}

.account-welcome-card::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(144, 201, 91, 0.2);
}

.account-lede {
    max-width: 680px;
    font-size: 17px;
    line-height: 1.75;
}

.account-identity-row {
    width: fit-content;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(238, 243, 234, 0.82);
    border: 1px solid rgba(174, 187, 167, 0.72);
}

.account-identity-row span:last-child {
    display: grid;
    gap: 1px;
}

.account-identity-row strong {
    font-size: 14px;
}

.account-identity-row small {
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.account-panel {
    min-height: 220px;
    padding: 24px;
    border-radius: 22px;
}

.account-panel--primary {
    grid-column: span 2;
    background:
        linear-gradient(135deg, rgba(24, 32, 28, 0.94), rgba(63, 88, 51, 0.9)),
        var(--text);
    color: var(--white);
    border-color: rgba(24, 32, 28, 0.88);
}

.account-panel h2 {
    margin-bottom: 10px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.account-panel--primary p,
.account-panel--primary small,
.account-panel--primary .account-panel-label {
    color: rgba(251, 252, 248, 0.76);
}

.account-access-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.account-access-list span {
    border: 1px solid rgba(251, 252, 248, 0.2);
    border-radius: 999px;
    padding: 8px 10px;
    background: rgba(251, 252, 248, 0.1);
    color: rgba(251, 252, 248, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.account-meter {
    height: 9px;
    margin: 24px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.18);
}

.account-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-light);
}

.account-panel-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.account-plan-button {
    margin-top: 18px;
}

.account-plan-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.account-section {
    display: grid;
    gap: 18px;
    border: 1px solid rgba(174, 187, 167, 0.78);
    border-radius: 26px;
    background: rgba(251, 252, 248, 0.9);
    box-shadow: var(--shadow-md);
    padding: clamp(24px, 4vw, 34px);
    scroll-margin-top: 110px;
}

.account-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.account-section__head h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.account-section__head p {
    max-width: 42ch;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.account-section--profile .account-profile-form {
    max-width: 560px;
}

.account-section--leaderboard {
    background:
        radial-gradient(circle at right top, rgba(144, 201, 91, 0.2), transparent 42%),
        rgba(251, 252, 248, 0.9);
}

.account-leaderboard-card {
    overflow: hidden;
    border: 1px solid rgba(174, 187, 167, 0.76);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(251, 252, 248, 0.94), rgba(238, 243, 234, 0.76)),
        var(--white);
    box-shadow: 0 18px 44px rgba(24, 32, 28, 0.07);
}

.account-leaderboard-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(174, 187, 167, 0.54);
}

.account-leaderboard-card__head .account-panel-label {
    margin-bottom: 0;
}

.account-leaderboard-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(88, 124, 52, 0.18);
    border-radius: 999px;
    background: rgba(144, 201, 91, 0.14);
    color: var(--primary-dark);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-leaderboard-list {
    display: grid;
    gap: 0;
    list-style: none;
}

.account-leaderboard-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(110px, auto);
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid rgba(174, 187, 167, 0.42);
}

.account-leaderboard-row:last-child {
    border-bottom: 0;
}

.account-leaderboard-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(24, 32, 28, 0.92);
    color: var(--white);
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 900;
}

.account-leaderboard-person,
.account-leaderboard-score {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.account-leaderboard-person strong,
.account-leaderboard-score strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.25;
}

.account-leaderboard-person span,
.account-leaderboard-score span {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.account-leaderboard-person span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-leaderboard-score {
    justify-items: end;
    text-align: right;
}

.account-leaderboard-score strong {
    font-family: var(--font-code);
    font-size: 16px;
}

.account-leaderboard-empty {
    padding: 22px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.account-leaderboard-footnote {
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid rgba(174, 187, 167, 0.42);
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-leaderboard-notes {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-leaderboard-notes span {
    border: 1px solid rgba(174, 187, 167, 0.72);
    border-radius: 16px;
    background: rgba(238, 243, 234, 0.66);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    padding: 12px;
}

.account-profile-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.account-profile-form label {
    display: grid;
    gap: 7px;
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-profile-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(251, 252, 248, 0.96);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    padding: 12px 14px;
}

.account-profile-form input:disabled {
    color: var(--text-tertiary);
    background: rgba(229, 235, 224, 0.6);
}

.account-profile-form .btn {
    justify-self: start;
}

.account-profile-feedback {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.account-profile-feedback--success {
    color: var(--primary-dark);
}

.account-profile-feedback--error {
    color: #7d3b34;
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 820px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-panel--primary {
        grid-column: auto;
    }

    .account-section__head,
    .account-leaderboard-notes {
        grid-template-columns: 1fr;
    }

    .account-section__head {
        display: grid;
    }

    .account-leaderboard-row {
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: flex-start;
    }

    .account-leaderboard-score {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }

    .account-leaderboard-person span {
        white-space: normal;
    }

    .account-actions {
        flex-direction: column;
    }

    .account-actions .btn {
        width: 100%;
    }

    .account-nav {
        top: 12px;
        width: min(calc(100% - 24px), 560px);
        align-items: flex-start;
        border-radius: 24px;
        padding: 12px;
    }

    .account-nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .account-nav-links a,
    .account-nav-links button {
        min-height: 30px;
        padding: 0 10px;
        font-size: 12px;
    }

    .account-nav-brand img {
        height: 34px !important;
    }

    .account-hero {
        padding-top: 116px;
    }
}

/* ========================================
   Account member page
   ======================================== */
.account-nav {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 1000;
    width: min(calc(100% - 32px), 1120px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 12px 10px 16px;
    border: 1px solid rgba(174, 187, 167, 0.66);
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.82);
    box-shadow: 0 16px 42px rgba(24, 32, 28, 0.07);
    backdrop-filter: blur(18px);
}

.account-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.account-nav-brand span {
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-nav-links a,
.account-nav-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.account-nav-links a:hover,
.account-nav-links button:hover {
    color: var(--text);
    background: rgba(229, 235, 224, 0.7);
}

.account-nav-links button {
    background: var(--text);
    color: var(--white);
}

.account-nav-links button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.account-main {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 18%, rgba(144, 201, 91, 0.22), transparent 30%),
        radial-gradient(circle at 84% 14%, rgba(79, 177, 149, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(251, 252, 248, 0.94), rgba(229, 235, 224, 0.72)),
        var(--bg);
}

.account-hero {
    padding: 128px 0 72px;
}

.account-shell {
    max-width: 1040px;
}

.account-loading,
.account-welcome-card,
.account-panel {
    border: 1px solid rgba(174, 187, 167, 0.78);
    background: rgba(251, 252, 248, 0.88);
    box-shadow: var(--shadow-md);
}

.account-loading,
.account-loading {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 46px);
    border-radius: 24px;
    text-align: center;
}

.account-loading h1,
.account-welcome-card h1 {
    margin-bottom: 14px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.account-loading p,
.account-lede,
.account-panel p {
    color: var(--text-secondary);
}

.account-kicker,
.account-panel-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-family: var(--font-code);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-dashboard {
    display: grid;
    gap: 22px;
}

.account-welcome-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 28px;
}

.account-welcome-card::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(144, 201, 91, 0.2);
}

.account-lede {
    max-width: 680px;
    font-size: 17px;
    line-height: 1.75;
}

.account-identity-row {
    width: fit-content;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(238, 243, 234, 0.82);
    border: 1px solid rgba(174, 187, 167, 0.72);
}

.account-identity-row span:last-child {
    display: grid;
    gap: 1px;
}

.account-identity-row strong {
    font-size: 14px;
}

.account-identity-row small {
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.account-panel {
    min-height: 220px;
    padding: 24px;
    border-radius: 22px;
}

.account-panel--primary {
    grid-column: span 2;
    background:
        linear-gradient(135deg, rgba(24, 32, 28, 0.94), rgba(63, 88, 51, 0.9)),
        var(--text);
    color: var(--white);
    border-color: rgba(24, 32, 28, 0.88);
}

.account-panel h2 {
    margin-bottom: 10px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.account-panel--primary p,
.account-panel--primary small,
.account-panel--primary .account-panel-label {
    color: rgba(251, 252, 248, 0.76);
}

.account-access-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.account-access-list span {
    border: 1px solid rgba(251, 252, 248, 0.2);
    border-radius: 999px;
    padding: 8px 10px;
    background: rgba(251, 252, 248, 0.1);
    color: rgba(251, 252, 248, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.account-meter {
    height: 9px;
    margin: 24px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.18);
}

.account-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-light);
}

.account-panel-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.account-plan-button {
    margin-top: 18px;
}

.account-plan-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.account-section {
    display: grid;
    gap: 18px;
    border: 1px solid rgba(174, 187, 167, 0.78);
    border-radius: 26px;
    background: rgba(251, 252, 248, 0.9);
    box-shadow: var(--shadow-md);
    padding: clamp(24px, 4vw, 34px);
    scroll-margin-top: 110px;
}

.account-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.account-section__head h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.account-section__head p {
    max-width: 42ch;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.account-section--profile .account-profile-form {
    max-width: 560px;
}

.account-section--leaderboard {
    background:
        radial-gradient(circle at right top, rgba(144, 201, 91, 0.2), transparent 42%),
        rgba(251, 252, 248, 0.9);
}

.account-leaderboard-card {
    overflow: hidden;
    border: 1px solid rgba(174, 187, 167, 0.76);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(251, 252, 248, 0.94), rgba(238, 243, 234, 0.76)),
        var(--white);
    box-shadow: 0 18px 44px rgba(24, 32, 28, 0.07);
}

.account-leaderboard-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(174, 187, 167, 0.54);
}

.account-leaderboard-card__head .account-panel-label {
    margin-bottom: 0;
}

.account-leaderboard-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(88, 124, 52, 0.18);
    border-radius: 999px;
    background: rgba(144, 201, 91, 0.14);
    color: var(--primary-dark);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-leaderboard-list {
    display: grid;
    gap: 0;
    list-style: none;
}

.account-leaderboard-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(110px, auto);
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid rgba(174, 187, 167, 0.42);
}

.account-leaderboard-row:last-child {
    border-bottom: 0;
}

.account-leaderboard-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(24, 32, 28, 0.92);
    color: var(--white);
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 900;
}

.account-leaderboard-person,
.account-leaderboard-score {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.account-leaderboard-person strong,
.account-leaderboard-score strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.25;
}

.account-leaderboard-person span,
.account-leaderboard-score span {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.account-leaderboard-person span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-leaderboard-score {
    justify-items: end;
    text-align: right;
}

.account-leaderboard-score strong {
    font-family: var(--font-code);
    font-size: 16px;
}

.account-leaderboard-empty {
    padding: 22px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.account-leaderboard-footnote {
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid rgba(174, 187, 167, 0.42);
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-leaderboard-notes {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-leaderboard-notes span {
    border: 1px solid rgba(174, 187, 167, 0.72);
    border-radius: 16px;
    background: rgba(238, 243, 234, 0.66);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    padding: 12px;
}

.account-profile-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.account-profile-form label {
    display: grid;
    gap: 7px;
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-profile-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(251, 252, 248, 0.96);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    padding: 12px 14px;
}

.account-profile-form input:disabled {
    color: var(--text-tertiary);
    background: rgba(229, 235, 224, 0.6);
}

.account-profile-form .btn {
    justify-self: start;
}

.account-profile-feedback {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.account-profile-feedback--success {
    color: var(--primary-dark);
}

.account-profile-feedback--error {
    color: #7d3b34;
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 820px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-panel--primary {
        grid-column: auto;
    }

    .account-section__head,
    .account-leaderboard-notes {
        grid-template-columns: 1fr;
    }

    .account-section__head {
        display: grid;
    }

    .account-leaderboard-row {
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: flex-start;
    }

    .account-leaderboard-score {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }

    .account-leaderboard-person span {
        white-space: normal;
    }

    .account-actions {
        flex-direction: column;
    }

    .account-actions .btn {
        width: 100%;
    }

    .account-nav {
        top: 12px;
        width: min(calc(100% - 24px), 560px);
        align-items: flex-start;
        border-radius: 24px;
        padding: 12px;
    }

    .account-nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .account-nav-links a,
    .account-nav-links button {
        min-height: 30px;
        padding: 0 10px;
        font-size: 12px;
    }

    .account-nav-brand img {
        height: 34px !important;
    }

    .account-hero {
        padding-top: 116px;
    }
}

.page-meta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(251, 252, 248, 0.9);
    color: var(--primary-dark);
    border: 1px solid rgba(174, 187, 167, 0.85);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-code);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    gap: 32px;
    align-items: start;
}

.content-stack {
    display: grid;
    gap: 24px;
}

.content-card {
    background: linear-gradient(180deg, rgba(251, 252, 248, 0.96), rgba(244, 247, 241, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.content-card h2,
.article-section h2 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.content-card p,
.content-card li,
.article-section p,
.article-section li {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
}

.article-section p,
.article-section li {
    color: var(--text) !important;
}

.article-section h3,
.article-section strong {
    color: var(--text);
}

.content-card ul,
.article-section ul,
.article-section ol {
    padding-left: 20px;
    margin: 14px 0 0;
}

.content-card li + li,
.article-section li + li {
    margin-top: 10px;
}

.sidebar-card {
    position: sticky;
    top: 96px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(251, 252, 248, 0.96), rgba(244, 247, 241, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.link-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.link-card h3 {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin: 14px 0 10px;
    color: var(--text);
}

.link-card p {
    font-size: 15px;
    color: var(--text);
}

.section-cta-inline {
    text-align: center;
    margin-top: 28px;
}

.section-cta-inline a,
.content-card a,
.article-section a,
.footer-links a {
    color: var(--primary-dark);
    text-decoration: none;
}

.section-cta-inline a:hover,
.content-card a:hover,
.article-section a:hover,
.footer-links a:hover {
    text-decoration: underline;
}

.quote-box {
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(144, 201, 91, 0.12), rgba(251, 252, 248, 0.96));
    border: 1px solid rgba(88, 124, 52, 0.26);
    border-radius: var(--radius-sm);
    color: var(--text);
    margin-top: 18px;
    box-shadow: inset 0 1px 0 rgba(251, 252, 248, 0.7);
}

.article-shell {
    padding: 40px 0 110px;
    background: color-mix(in srgb, var(--bg) 92%, var(--white) 8%);
}

.article-layout {
    max-width: 720px;
    margin: 0 auto;
}

.article-section {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.article-section + .article-section {
    margin-top: 46px;
    padding-top: 46px;
    border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent 22%);
}

.article-section h3 {
    font-size: 21px;
    margin: 22px 0 10px;
    line-height: 1.35;
}

.article-section h2 {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1.1px;
    margin-bottom: 18px;
}

.article-section p,
.article-section li {
    font-size: 20px;
    line-height: 1.9;
}

.article-section p + p,
.article-section ul,
.article-section ol,
.article-section .inline-card-list {
    margin-top: 20px;
}

.inline-card-list {
    display: grid;
    gap: 18px;
    margin-top: 0;
}

.mini-card {
    border: 1px solid color-mix(in srgb, var(--border) 75%, var(--primary) 25%);
    border-radius: 18px;
    padding: 22px 24px;
    background: color-mix(in srgb, var(--white) 74%, var(--primary-subtle) 26%);
}

.mini-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.blog-preview {
    background: var(--bg);
}

.footer-content-stacked {
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    font-size: 14px;
}

.footer .footer-links a {
    color: rgba(251, 252, 248, 0.72);
}

.footer .footer-links a:hover {
    color: var(--white);
    text-decoration: none;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive — Tablet
   ======================================== */
@media (max-width: 1024px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .auth-side-panel {
        max-width: none;
        text-align: left;
    }

    .auth-side-panel h2 {
        max-width: 12ch;
        font-size: clamp(2.6rem, 10vw, 4.2rem);
    }

    .login-hero-grid,
    .login-grid {
        grid-template-columns: 1fr;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-title {
        max-width: none;
    }

    .dashboard-mock {
        margin: 0 auto;
        max-width: 100%;
    }

    .problem-grid,
    .features-list,
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cat-demo {
        grid-template-columns: 1fr;
    }

    .content-grid,
    .link-grid,
    .leaderboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

/* ========================================
   Responsive — Mobile
   ======================================== */
@media (max-width: 768px) {
    .auth-nav {
        top: 12px;
        width: min(calc(100% - 24px), 560px);
        align-items: flex-start;
        border-radius: 24px;
        padding: 12px;
    }

    .auth-nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .auth-nav-links a {
        min-height: 30px;
        padding: 0 10px;
        font-size: 12px;
    }

    .auth-nav-brand img {
        height: 34px !important;
    }

    .login-section--focused {
        padding-top: 108px;
    }

    .auth-side-panel {
        gap: 12px;
    }

    .auth-side-panel p:not(.auth-side-kicker) {
        font-size: 14px;
    }

    .nav-container {
        height: var(--nav-height-mobile);
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height-mobile);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        box-shadow: var(--shadow);
    }

    .nav-auth,
    .nav-auth--signed-out,
    .nav-auth--loading,
    .nav-auth--authenticated {
        width: 100%;
        justify-content: space-between;
    }

    .nav-auth-summary {
        flex: 1;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .brand-logo--nav {
        height: var(--brand-logo-nav-height-mobile);
    }

    .brand-logo--footer {
        height: var(--brand-logo-footer-height-mobile);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 11vw, 3.4rem);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-auth-note {
        font-size: 13px;
    }

    .page-hero {
        padding: 104px 0 56px;
    }

    .page-title {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .page-subtitle {
        font-size: 16px;
    }

    .auth-card {
        width: min(100%, 468px);
        min-height: 542px;
        padding: 26px 22px;
    }

    .auth-card-header {
        min-height: 70px;
    }

    .auth-card-header h1 {
        font-size: clamp(1.5rem, 8vw, 1.9rem);
    }

    .auth-session-actions {
        flex-direction: column;
    }

    .auth-session-actions .btn {
        width: 100%;
    }

    .article-layout {
        max-width: 100%;
    }

    .article-section h2 {
        font-size: 28px;
    }

    .article-section p,
    .article-section li {
        font-size: 18px;
        line-height: 1.82;
    }

    .article-section--wide {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-inline: 0;
        transform: none;
    }

    .compare-section-title {
        max-width: 100%;
    }

    .competitor-grid {
        grid-template-columns: 1fr;
    }

    .competitor-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .competitor-card img {
        height: 96px;
    }

    .competitor-card-logo img {
        height: 56px;
    }

    .section {
        padding: 64px 0;
    }

    .public-leaderboard--page {
        min-height: auto;
        padding: calc(var(--nav-height-mobile) + 28px) 0 48px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .leaderboard-copy .section-title,
    .leaderboard-copy .section-subtitle {
        text-align: center;
        margin-left: auto;
    }

    .leaderboard-card {
        padding: 18px;
        border-radius: 18px;
    }

    .leaderboard-card--large {
        padding: 20px;
        border-radius: 22px;
    }

    .leaderboard-card-head h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .leaderboard-public-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .leaderboard-score {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }

    .profile-card-head {
        align-items: flex-start;
    }

    .profile-stat-grid {
        grid-template-columns: 1fr;
    }

    .profile-socials {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-socials a,
    .profile-socials--empty {
        max-width: 100%;
        width: 100%;
    }

    .problem-grid,
    .features-list,
    .use-cases-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 28px 24px;
    }

    .pricing-card-top {
        flex-direction: column;
    }

    .pricing-card h3 {
        font-size: 26px;
    }

    .pricing-price {
        font-size: 34px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 32px;
        margin: 0;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 26px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

    .content-card,
    .article-section,
    .link-card {
        padding: 24px;
    }

    .article-section {
        padding: 0;
    }

    .dashboard-mock {
        padding: 20px;
    }

    .mock-time {
        font-size: 24px;
    }
}
