/* ══════════════════════════════════════════════════════════
   RealLingo — "Join Us" interactive selection wheel (join-us/team/ only).
   A spinning 3-segment wheel (Build / Partner / Professional) drives a
   content panel below it, on the light cream-white Join-Us theme.
══════════════════════════════════════════════════════════ */
.jn-hero {
    background: var(--cream-white);
    padding: 5.5rem 4rem 6rem;
    position: relative;
    overflow: hidden;
}

.jn-intro { max-width: 620px; margin: 0 auto 3rem; text-align: center; }
.jn-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-mid); margin-bottom: 1.5rem;
    padding: .35rem 1rem; border: 1px solid rgba(17,18,22,.15); border-radius: 100px;
}
.jn-pill span { color: var(--dark); font-weight: 800; }
.jn-h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 400; line-height: 1.15; letter-spacing: -.02em;
    color: var(--dark); margin-bottom: 1rem;
}
.jn-h1 em { font-style: italic; }
.jn-sub { font-size: 1.02rem; font-weight: 300; color: var(--text-mid); line-height: 1.7; }

/* ── Split layout: wheel left, details right ── */
.jn-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    align-items: center; max-width: 1080px; margin: 0 auto;
}

/* ── The wheel ── */
.jn-wheel-wrap { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.jn-wheel-stage { position: relative; width: min(400px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.jn-wheel-inner { position: absolute; inset: 0; transform: rotate(0deg); }
.jn-wheel-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 25px 50px rgba(17,18,22,.22)); }
.jn-wheel-outer-ring { fill: none; stroke: rgba(17,18,22,.12); stroke-width: 1.5; }
.jn-wheel-seg { cursor: pointer; transition: opacity .4s ease, filter .35s ease; }
.jn-wheel-seg.dim { opacity: .38; }
.jn-wheel-seg.active { filter: drop-shadow(0 0 16px rgba(255,235,153,.9)); }
.jn-wheel-seg:hover { filter: drop-shadow(0 0 10px rgba(255,235,153,.6)); }
.jn-wheel-divider { stroke: var(--cream-white); stroke-width: 3; pointer-events: none; }
.jn-wheel-seg-build   { fill: var(--dark); }
.jn-wheel-seg-partner { fill: var(--yellow); }
.jn-wheel-seg-pro     { fill: var(--cream-white); stroke: rgba(17,18,22,.15); stroke-width: 1; }

.jn-wheel-label { position: absolute; top: 50%; left: 50%; width: 0; height: 0; pointer-events: none; }
.jn-wheel-label-inner {
    position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem;
    pointer-events: auto; cursor: pointer;
}
.jn-wheel-label-icon { font-size: 1.9rem; filter: drop-shadow(0 3px 8px rgba(0,0,0,.3)); display: inline-block; transition: transform .25s ease; }
.jn-wheel-label-inner:hover .jn-wheel-label-icon { transform: scale(1.18); }
.jn-wheel-label-title { font-size: .7rem; font-weight: 800; color: #fff; text-align: center; max-width: 92px; line-height: 1.25; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.jn-wheel-label-build .jn-wheel-label-title { color: var(--yellow); }
.jn-wheel-label-partner .jn-wheel-label-title,
.jn-wheel-label-pro .jn-wheel-label-title { color: var(--dark); text-shadow: none; }

.jn-wheel-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 29%; aspect-ratio: 1; border-radius: 50%;
    background: #fff; box-shadow: 0 10px 30px rgba(17,18,22,.18), 0 0 0 6px var(--cream-white);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
    text-align: center; z-index: 2;
}
.jn-wheel-center-icon { font-size: 1.6rem; }
.jn-wheel-center-text { font-size: .68rem; font-weight: 800; color: var(--dark); line-height: 1.25; }

.jn-wheel-hint { margin-top: 1.5rem; font-size: .82rem; color: var(--text-soft); text-align: center; }
.jn-wheel-hint.hide { display: none; }

/* ── Content panel (reveals below the wheel once a segment is chosen) ── */
.jn-panel { max-width: 480px; margin: 0; position: relative; z-index: 1; }
.jn-panel-item {
    display: none; opacity: 0; transform: translateY(14px);
    transition: opacity .45s ease, transform .45s ease;
}
.jn-panel-item.show { display: block; }
.jn-panel-item.show.in { opacity: 1; transform: translateY(0); }

.jn-panel-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
    text-align: center; padding: 3rem 2rem; border: 1.5px dashed rgba(17,18,22,.14); border-radius: 22px;
    transition: opacity .3s ease;
}
.jn-panel-empty-icon { font-size: 2rem; opacity: .5; }
.jn-panel-empty p { font-size: .92rem; color: var(--text-soft); max-width: 26ch; line-height: 1.55; }
.jn-panel-empty.hide { display: none; }

.jn-path-card {
    position: relative; background: #fff; border: 1px solid var(--border-sub);
    border-radius: 22px; padding: 2.25rem 2.25rem 2rem; text-align: left;
    box-shadow: 0 22px 46px rgba(17,18,22,.1);
}
.jn-path-icon {
    width: 50px; height: 50px; border-radius: 50%; background: var(--yellow);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.125rem;
}
.jn-path-title { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin-bottom: .6rem; }
.jn-path-slogan {
    font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.35;
    color: var(--dark); margin-bottom: 1rem;
}
.hl { font-style: italic; text-decoration: underline; text-decoration-color: var(--yellow-mid); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.jn-path-note { font-size: .88rem; line-height: 1.65; color: var(--text-mid); margin-bottom: 1.375rem; }

.jn-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.375rem; }
.jn-chip {
    font-size: .74rem; font-weight: 700; color: var(--dark);
    background: var(--cream); border: 1px solid var(--border-sub);
    padding: .35rem .75rem; border-radius: 100px;
    animation: jnChipFloat 3.4s ease-in-out infinite;
}
.jn-chip:nth-child(2n) { animation-delay: .5s; }
.jn-chip:nth-child(3n) { animation-delay: 1s; }
@keyframes jnChipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.jn-callout {
    background: var(--dark); color: #fff; border-radius: 14px;
    padding: 1.125rem 1.25rem; margin-bottom: 1.375rem;
}
.jn-callout-badge {
    display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--dark); background: var(--yellow); padding: .25rem .6rem; border-radius: 100px; margin-bottom: .65rem;
}
.jn-callout-h { font-size: .92rem; font-weight: 700; margin-bottom: .55rem; line-height: 1.4; }
.jn-callout ul { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.jn-callout li { font-size: .78rem; color: rgba(255,255,255,.7); display: flex; align-items: baseline; gap: .45rem; }
.jn-callout li::before { content: '✓'; color: var(--yellow); font-weight: 700; flex-shrink: 0; }

.jn-path-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--dark); color: var(--yellow); text-decoration: none;
    border: none; cursor: pointer; font-family: var(--font-sans);
    padding: .85rem 1.5rem; font-size: .88rem; font-weight: 700;
    border-radius: 100px; transition: background .2s, transform .2s;
}
.jn-path-btn:hover { background: #1e2028; transform: translateX(3px); }

/* ── Confirmation dialog for the partner proposal download ── */
/* Same fix as dialog.tja-modal in team.css: the page's universal
   `* { margin: 0 }` reset also strips the browser's default `margin:
   auto` centering for a modal <dialog>, so it must be restored here. */
dialog.jn-confirm { margin: auto; border: none; border-radius: 18px; padding: 0; width: min(420px, 90vw); box-shadow: 0 30px 70px rgba(17,18,22,.3); }
dialog.jn-confirm::backdrop { background: rgba(17,18,22,.5); backdrop-filter: blur(2px); }
.jn-confirm-inner { padding: 2rem 1.875rem; text-align: center; }
.jn-confirm-icon { font-size: 2rem; margin-bottom: .875rem; }
.jn-confirm-inner h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--dark); margin-bottom: .625rem; }
.jn-confirm-inner p { font-size: .88rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1.5rem; }
.jn-confirm-actions { display: flex; gap: .75rem; justify-content: center; }
.jn-confirm-actions button {
    font-family: var(--font-sans); font-size: .86rem; font-weight: 700;
    padding: .75rem 1.5rem; border-radius: 100px; cursor: pointer; border: none;
}
.jn-confirm-go { background: var(--dark); color: var(--yellow); }
.jn-confirm-go:hover { background: #1e2028; }
.jn-confirm-cancel { background: var(--cream); color: var(--dark); }
.jn-confirm-cancel:hover { background: var(--border-sub); }

@media (max-width: 900px) {
    .jn-hero { padding: 4rem 1.5rem 4.5rem; }
    .jn-split { grid-template-columns: 1fr; gap: 2.5rem; }
    .jn-panel { max-width: 480px; margin: 0 auto; }
    .jn-wheel-stage { width: min(320px, 84vw); }
    .jn-wheel-label-icon { font-size: 1.5rem; }
    .jn-wheel-label-title { font-size: .62rem; max-width: 74px; }
}
