/* ============================================================ */
/* HeyPao — Design tokens                                       */
/* Mirrored from app: ppBg #0A0F24, ppCard #1F2947,             */
/* ppOrange #F26B1A, ppBone #F5F0E6                             */
/* ============================================================ */
:root {
    --bg: #0A0F24;
    --bg-elev: #121833;
    --card: #1F2947;
    --card-soft: rgba(31, 41, 71, 0.55);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #F5F0E6;
    --text-dim: rgba(245, 240, 230, 0.7);
    --text-muted: rgba(245, 240, 230, 0.5);
    --accent: #F26B1A;
    --accent-glow: rgba(242, 107, 26, 0.45);
    --accent-soft: rgba(242, 107, 26, 0.12);
    --max-w: 1200px;
    --radius: 18px;
    --radius-lg: 28px;
    --t-fast: 0.2s ease;
    --t-med: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================ */
/* Reset & base                                                 */
/* ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }

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

/* ============================================================ */
/* Nav — right-aligned                                          */
/* ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: background var(--t-med), backdrop-filter var(--t-med), padding var(--t-med), border-color var(--t-med);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(10, 15, 36, 0.78);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-bottom-color: var(--line);
    padding: 12px 0;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #ff9551);
    box-shadow: 0 6px 18px var(--accent-glow);
    position: relative;
}
.brand-mark::after {
    content: '';
    position: absolute; inset: 5px;
    border-radius: 4px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), transparent 55%);
}
.brand-name { font-size: 18px; color: var(--text); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    color: var(--text-dim);
    margin-left: auto;     /* pushes the whole menu to the far right */
}
.nav-links a {
    transition: color var(--t-fast);
    position: relative;
}
.nav-links a:not(.nav-cta):hover { color: var(--text); }

.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    box-shadow: 0 8px 24px -10px var(--accent-glow);
    cursor: pointer;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px var(--accent-glow);
    color: #fff;
}

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ */
/* Buttons                                                      */
/* ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 16px 36px -14px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px -14px var(--accent-glow);
}
.btn-ghost {
    color: var(--text-dim);
    background: transparent;
}
.btn-ghost:hover { color: var(--text); }
.btn-large {
    padding: 18px 30px;
    font-size: 16px;
}

/* ============================================================ */
/* Hero                                                         */
/* ============================================================ */
.hero {
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 600px at 78% 18%, rgba(242, 107, 26, 0.18), transparent 65%),
        radial-gradient(700px 500px at 12% 50%, rgba(80, 100, 200, 0.14), transparent 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 22px;
}
.hero-title .accent {
    background: linear-gradient(135deg, var(--accent), #ff9551);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 520px;
    margin-bottom: 36px;
}
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.hero-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
}
.phone-glow {
    position: absolute;
    width: 110%;
    aspect-ratio: 1;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, var(--accent-glow), transparent 65%);
    filter: blur(20px);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}
.phone-glow.soft { opacity: 0.45; }

.phone-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
}

/* ============================================================ */
/* Feature sections (Discover, Notify, Plan, etc.)              */
/* ============================================================ */
.feature {
    padding: 120px 0;
    position: relative;
}
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

/* Consistent section label: big number + small kicker, ALL LEFT-ALIGNED */
.section-label {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 24px;
}
.section-num {
    font-size: clamp(56px, 7vw, 88px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), #ff9551);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.feature h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    margin-bottom: 20px;
}
.feature-copy p {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 480px;
    margin-bottom: 0;
}

.feature-visual {
    display: flex;
    justify-content: center;
}

/* ============================================================ */
/* Plan section — auto-advance carousel                         */
/* ============================================================ */
.feature-plan {
    padding-top: 120px;
    padding-bottom: 120px;
}
.plan-intro {
    margin-bottom: 60px;
    max-width: 720px;
}
.plan-intro h2 {
    font-size: clamp(34px, 4.5vw, 52px);
    line-height: 1.05;
    margin-bottom: 18px;
}
.plan-intro p {
    color: var(--text-dim);
    font-size: 18px;
    max-width: 640px;
}
.plan-howto {
    margin-top: 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-transform: uppercase;
}

.plan-carousel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}
.plan-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.plan-img-stack {
    position: relative;
    width: min(320px, 70vw);
    aspect-ratio: 700 / 1450;   /* matches cleaned canvas */
}
.plan-img-stack .plan-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.plan-img-stack .plan-img.active {
    opacity: 1;
    transform: scale(1);
}

.plan-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.plan-step {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: var(--card-soft);
    border: 1px solid var(--line);
    color: var(--text-dim);
    cursor: pointer;
    transition: background var(--t-med), border-color var(--t-med), color var(--t-med), transform var(--t-fast);
    position: relative;
    overflow: hidden;
}
.plan-step:hover {
    background: rgba(31, 41, 71, 0.75);
    border-color: var(--line-strong);
}
.plan-step.active {
    background: linear-gradient(135deg, var(--card), var(--bg-elev));
    border-color: rgba(242, 107, 26, 0.45);
    color: var(--text);
    box-shadow: 0 16px 40px -22px rgba(0, 0, 0, 0.7);
}
.plan-step-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--t-med);
    padding-top: 3px;
    min-width: 56px;
}
.plan-step.active .plan-step-num { color: var(--accent); }
.plan-step-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.plan-step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.plan-step-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}
/* Progress bar deliberately hidden — auto-advance still runs in JS, we
   just don't show the 0→100% indicator at the bottom of each step. */
.plan-step-progress { display: none; }

/* ============================================================ */
/* Team section — flip cards                                    */
/* ============================================================ */
.team {
    padding: 120px 0;
    position: relative;
}
.team-intro {
    margin: 0 0 50px;
}
.team-intro .section-label {
    margin-bottom: 0;
}

/* Two-column layout: invite CTA on the left, card grid on the right */
.team-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.team-invite {
    padding: 36px 32px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(242, 107, 26, 0.10), rgba(31, 41, 71, 0.4));
    border: 1px solid rgba(242, 107, 26, 0.25);
}
.team-invite h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.1;
    margin-bottom: 12px;
}
.team-invite p {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 360px;
}
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.team-card {
    width: 280px;
    aspect-ratio: 3 / 4;
    perspective: 1200px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}
.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    display: block;
}
.team-card.flipped .team-card-inner {
    transform: rotateY(180deg);
}
.team-card-face {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, var(--card), var(--bg-elev));
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
}
.team-card-front {
    /* default front-facing */
}
.team-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, #1a2342, #0d132c);
    justify-content: flex-start;
    padding-top: 28px;
}
.team-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #ff9551);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px -10px var(--accent-glow);
}
.team-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.team-role {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
/* No more margin-top: auto — content sits naturally in the vertically
   centered flex column, so the front face reads as a single grouped block. */
.team-hint {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}
.team-back-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.team-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.team-stats li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13.5px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}
.team-stats li span { color: var(--text-dim); }
.team-stats li strong { color: var(--text); font-weight: 600; letter-spacing: 0.02em; }
.team-utmb {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: transform var(--t-fast);
}
.team-utmb:hover { transform: translateY(-1px); color: #fff; }
.team-hint-back { margin-top: 14px; }

/* ============================================================ */
/* Closing CTA                                                  */
/* ============================================================ */
.closing {
    padding: 130px 0 120px;
    position: relative;
    overflow: hidden;
    /* No top border — we want a smooth gradient blend from the team
       section above. The radial glow extends slightly upward via margin-top
       so the orange wash visually merges with the team area. */
    margin-top: -60px;
    padding-top: 190px;
    background: radial-gradient(1100px 600px at 50% 0%, rgba(242, 107, 26, 0.18), transparent 65%);
}
.closing-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.closing h2 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    margin-bottom: 18px;
}
.closing p {
    color: var(--text-dim);
    font-size: 18px;
    margin-bottom: 36px;
}
.closing-meta {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================ */
/* Footer                                                       */
/* ============================================================ */
.footer {
    background: #07091a;
    border-top: 1px solid var(--line);
    padding: 70px 0 30px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--line);
}
.footer-tag {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 14px;
    max-width: 280px;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}
.social-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--text-dim);
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
    cursor: pointer;
}
.social-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(242, 107, 26, 0.35);
    transform: translateY(-2px);
}
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--text-dim);
    font-size: 14px;
    transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 26px;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================ */
/* Coming Soon popup                                            */
/* ============================================================ */
.popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 8, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--t-med);
}
.popup-backdrop:not([hidden]) { opacity: 1; }
.popup-backdrop[hidden] { display: none; }

.popup {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(160deg, var(--card), var(--bg-elev));
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    padding: 32px 28px 28px;
    position: relative;
    text-align: center;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    transform: scale(0.94);
    transition: transform var(--t-med);
}
.popup-backdrop:not([hidden]) .popup { transform: scale(1); }
.popup-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.popup h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.popup p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 24px;
}
.popup-ok { width: 100%; }
.popup-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    transition: background var(--t-fast), color var(--t-fast);
}
.popup-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

/* ============================================================ */
/* Reveal animation                                             */
/* ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .plan-img, .plan-step, .team-card-inner { transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================ */
/* Careers page                                                 */
/* ============================================================ */
.careers-inner { max-width: 820px; }
.careers-intro {
    color: var(--text-dim);
    font-size: 17px;
    margin-bottom: 12px;
}
.careers-instruction {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* Collapsible role using <details>/<summary> */
.role {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card-soft);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color var(--t-med), background var(--t-med);
}
.role:hover { border-color: var(--line-strong); }
.role[open] {
    border-color: rgba(242, 107, 26, 0.35);
    background: linear-gradient(160deg, var(--card), var(--bg-elev));
}

.role-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
/* Hide the default disclosure marker in WebKit + Firefox */
.role-summary::-webkit-details-marker { display: none; }
.role-summary::marker { content: ''; }

.role-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.role-name {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.role-meta {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.role-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: background var(--t-fast), border-color var(--t-fast);
    white-space: nowrap;
}
.role:hover .role-toggle {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
}
.role[open] .role-toggle {
    background: var(--accent-soft);
    border-color: rgba(242, 107, 26, 0.35);
    color: var(--accent);
}
.role-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-med);
}
.role[open] .role-toggle-icon { transform: rotate(45deg); }

/* Toggle label swap */
.role-toggle-label[data-open] { display: none; }
.role[open] .role-toggle-label[data-closed] { display: none; }
.role[open] .role-toggle-label[data-open] { display: inline; }

.role-body {
    padding: 4px 26px 32px;
    animation: roleSlideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes roleSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.role-body h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 24px 0 12px;
}
.role-body ul { margin-bottom: 12px; padding-left: 0; }
.role-body ul li {
    color: var(--text-dim);
    font-size: 15.5px;
    line-height: 1.65;
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
}
.role-body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 12px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.8;
}
.role-howto {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(242, 107, 26, 0.06);
    border: 1px solid rgba(242, 107, 26, 0.18);
    font-size: 14px;
    color: var(--text-dim);
}
.role-howto a { color: var(--accent); font-weight: 600; }
.role-apply { margin-top: 24px; }

.careers-footer {
    margin-top: 48px;
    padding: 28px;
    border-radius: 16px;
    background: var(--card-soft);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 15px;
    text-align: center;
}
.careers-footer a { color: var(--accent); font-weight: 600; }

@media (max-width: 540px) {
    .role-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .role-toggle { align-self: flex-start; }
    .role-body { padding: 4px 20px 28px; }
}

/* ============================================================ */
/* Responsive                                                   */
/* ============================================================ */
@media (max-width: 960px) {
    /* Mobile nav */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(280px, 80vw);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        padding: 90px 28px 28px;
        background: rgba(10, 15, 36, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--line);
        transform: translateX(100%);
        transition: transform var(--t-med);
        font-size: 17px;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { padding: 10px 0; width: 100%; }
    .nav-links .nav-cta { margin-top: 12px; align-self: flex-start; }

    .hero { padding: 130px 0 80px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta-row { justify-content: center; }

    .feature { padding: 80px 0; }
    .feature-row {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .feature-row.reverse .feature-copy,
    .feature-row.reverse .feature-visual { order: initial; }
    .feature-copy { display: flex; flex-direction: column; align-items: center; }
    .feature-copy p { margin-left: auto; margin-right: auto; }
    .section-label { justify-content: center; }

    .feature-plan { padding: 80px 0; }
    .plan-intro { text-align: center; margin-left: auto; margin-right: auto; }
    .plan-intro .section-label { justify-content: center; }
    .plan-intro p { margin-left: auto; margin-right: auto; }
    .plan-carousel {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team { padding: 80px 0; }
    .team-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .team-invite p { margin-left: auto; margin-right: auto; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 540px) {
    .container { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }
    .hero { padding: 120px 0 60px; }
    .hero-cta-row { flex-direction: column; gap: 12px; align-items: stretch; }
    .btn { justify-content: center; }
    .section-label { flex-direction: column; align-items: flex-start; gap: 8px; }
    .feature-row .section-label,
    .plan-intro .section-label,
    .team-intro .section-label { align-items: center; }
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .team-card { width: 100%; max-width: 320px; }
}
