/* Twin Persona — shared article / research styles */

:root {
    --blue: #2B5CFF;
    --blue-light: rgba(43, 92, 255, 0.06);
    --blue-border: rgba(43, 92, 255, 0.14);
    --black: #111111;
    --text: #111;
    --text-secondary: #4a4f59;
    --text-muted: #767d8a;
    --border: #e8e8e8;
    --bg: #fff;
    --bg-alt: #fafafa;
    --red-soft: rgba(200, 60, 60, 0.05);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV (matches twinpersona.ai) ── */
nav.tp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 0 48px;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 3px;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--black);
}

.nav-logo .logo-top,
.nav-logo .logo-bot { color: var(--black); }

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

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--black); }
.nav-link.current { color: var(--black); }

.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { cursor: default; }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 10px;
}

.nav-dropdown-menu-inner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 260px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-item:hover {
    background: #EEF2FF;
    color: var(--black);
}

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--black);
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s;
}

.nav-cta:hover { background: #2A2A2A; }

/* Hamburger + mobile menu */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    margin: 4px 0;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    position: sticky;
    top: 68px;
    z-index: 99;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover { color: var(--blue); }

.mobile-menu .mobile-cta {
    border-bottom: none;
    margin-top: 14px;
    background: var(--black);
    color: #fff;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
}

/* ── ARTICLE HEADER ── */
.article-header {
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.article-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 20px;
}

.article-header .subhead {
    font-size: 20px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    color: var(--text-muted);
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ── ARTICLE BODY ── */
article {
    max-width: 720px;
    margin: 0 auto;
    padding: 44px 24px 80px;
}

article h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--black);
    margin-top: 56px;
    margin-bottom: 20px;
}

article h2:first-child { margin-top: 0; }

article h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin-top: 40px;
    margin-bottom: 14px;
}

article p { margin-bottom: 20px; color: var(--text); }

article a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(43, 92, 255, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}

article a:hover { text-decoration-color: var(--blue); }

article ul, article ol { margin-bottom: 20px; padding-left: 24px; }
article li { margin-bottom: 10px; }
article li::marker { color: var(--blue); }

article sup a {
    text-decoration: none;
    font-size: 13px;
    padding: 0 1px;
}

/* ── TOC ── */
.toc {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 26px 30px;
    margin: 0 0 44px;
}

.toc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.toc ol { padding-left: 20px; margin-bottom: 0; }
.toc li { margin-bottom: 8px; font-size: 17px; }
.toc a { color: var(--text); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--blue); }

/* ── PULL QUOTE ── */
.pull-quote {
    border-left: 3px solid var(--blue);
    padding: 4px 0 4px 26px;
    margin: 36px 0;
}

.pull-quote p {
    font-family: 'Outfit', sans-serif;
    font-size: 23px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--black);
    margin-bottom: 0;
}

/* ── CALLOUT / INSIGHT ── */
.callout {
    background: var(--blue-light);
    border: 1px solid var(--blue-border);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 32px 0;
}

.callout p { margin-bottom: 0; font-size: 17px; }
.callout p + p { margin-top: 14px; }

/* ── CARD (consumer profile / example) ── */
.card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 30px;
    margin: 32px 0;
}

.card-label {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 12px;
}

.card p { font-size: 17px; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

/* ── BIG RESULT ROWS ── */
.result-row {
    display: flex;
    align-items: baseline;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

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

.result-number {
    font-family: 'Outfit', sans-serif;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--blue);
    min-width: 110px;
}

.result-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.5; }

/* ── KEY STAT ── */
.key-stat {
    text-align: center;
    padding: 40px 24px;
    margin: 36px 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.key-stat .number {
    font-family: 'Outfit', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.03em;
    line-height: 1;
}

.key-stat .label { font-size: 17px; color: var(--text-secondary); margin-top: 10px; }

/* ── TABLE ── */
.table-scroll { overflow-x: auto; margin: 28px 0 32px; -webkit-overflow-scrolling: touch; }

.data-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 16px;
}

.data-table thead th {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid var(--black);
    white-space: nowrap;
}

.data-table thead th.twin-col { color: var(--blue); }
.data-table th.center, .data-table td.center { text-align: center; }

.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.5;
}

.data-table tbody td:first-child { color: var(--text-secondary); }
.data-table td.twin-col { color: var(--blue); }
.data-table tr.miss { background: var(--red-soft); }

/* ── FAQ ── */
.faq-item { padding: 26px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin-top: 0; margin-bottom: 12px; font-size: 20px; }
.faq-item p { font-size: 17px; margin-bottom: 14px; }
.faq-item p:last-child { margin-bottom: 0; }

/* ── SOURCES ── */
.sources { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.sources h2 { margin-top: 0; font-size: 22px; }
.sources ol { padding-left: 22px; }
.sources li { font-size: 16px; color: var(--text-secondary); margin-bottom: 10px; }

/* ── NEXT LINKS ── */
.next-links { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.next-links h2 { margin-top: 0; font-size: 22px; margin-bottom: 18px; }

.next-links a {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}

.next-links a:hover { color: var(--blue); }

/* ── CTA ── */
.cta-section {
    background: var(--blue-light);
    border: 1px solid var(--blue-border);
    border-radius: 12px;
    padding: 46px 40px;
    text-align: center;
    margin: 56px 0 0;
}

.cta-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--black);
    margin: 0 0 12px;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 24px;
    font-size: 17px;
}

.cta-btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.cta-btn:hover { background: #1a45e0; }

/* ── FOOTER ── */
footer.tp-footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
}

footer.tp-footer a { color: var(--text-muted); text-decoration: underline; }

/* ── INDEX: HEADER ── */
.index-header {
    max-width: 1080px;
    margin: 0 auto;
    padding: 84px 24px 0;
}

.index-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--black);
    margin-bottom: 20px;
}

.index-header h1 em { font-style: normal; color: var(--blue); }

.index-header p {
    font-size: 21px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 640px;
}

/* Headline numbers strip */
.index-figures {
    max-width: 1080px;
    margin: 48px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.index-figure { background: #fff; padding: 26px 24px; }

.index-figure .fig {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--blue);
    margin-bottom: 8px;
}

.index-figure .cap {
    font-size: 16px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* ── INDEX: EXPANDABLE ENTRIES ── */
.index-list {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.index-item {
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.index-list .index-item:last-of-type { border-bottom: 1px solid var(--border); }

.index-item summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 30px 8px 30px 0;
    transition: background 0.18s;
}

.index-item summary::-webkit-details-marker { display: none; }
.index-item summary:hover { background: var(--bg-alt); }

.index-item .item-num {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--blue);
    padding-top: 6px;
    padding-left: 8px;
}

.index-item .item-kind {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.index-item h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.2;
    color: var(--black);
    margin: 0;
    transition: color 0.18s;
}

.index-item summary:hover h2 { color: var(--blue); }

.index-item .item-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    margin-right: 8px;
    transition: transform 0.25s, border-color 0.18s, background 0.18s;
}

.index-item .item-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translate(-2px, -2px);
}

.index-item summary:hover .item-toggle { border-color: var(--blue); background: var(--blue-light); }
.index-item summary:hover .item-toggle::before { border-color: var(--blue); }
.index-item[open] .item-toggle { transform: rotate(180deg); }

.index-body {
    padding: 0 8px 34px 96px;
    max-width: 780px;
}

.index-body p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.index-takeaways {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-top: 1px solid var(--border);
}

.index-takeaways li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
}

.index-takeaways li .mark {
    color: var(--blue);
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.index-read {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: var(--black);
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.18s;
}

.index-read:hover { background: var(--blue); }

/* ── VIDEO ── */
.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    margin: 8px 0 40px;
}

/* Wide video: larger than the article column, still gutters on both sides */
.video-wide {
    max-width: 1104px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.video-wide .video-frame {
    background: #0A0A0A;
    margin: 0;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.chapter {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.chapter:last-child { border-bottom: none; }

.chapter .chapter-num {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--blue);
    min-width: 32px;
    padding-top: 2px;
}

.chapter h3 { margin: 0 0 8px; font-size: 20px; }
.chapter p { margin-bottom: 0; font-size: 17px; color: var(--text-secondary); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    body { font-size: 17px; }

    .article-header { padding: 44px 20px 0; }
    .article-header .subhead { font-size: 18px; }

    article { padding: 32px 20px 60px; }

    .index-header { padding: 48px 20px 0; }
    .index-header p { font-size: 18px; }
    .index-figures { grid-template-columns: 1fr; margin-top: 32px; padding: 0 20px; }
    .index-list { padding: 40px 20px 64px; }
    .index-item summary { grid-template-columns: 1fr auto; gap: 14px; padding: 24px 0; }
    .index-item .item-num { display: none; }
    .index-body { padding: 0 0 28px 0; }
    .index-body p { font-size: 17px; }

    .toc { padding: 22px 22px; }
    .card { padding: 22px 20px; }
    .callout { padding: 20px 20px; }
    .cta-section { padding: 34px 22px; }
    .pull-quote { padding-left: 20px; }
    .pull-quote p { font-size: 20px; }

    .result-row { flex-direction: column; gap: 6px; align-items: flex-start; }
    .result-number { font-size: 40px; min-width: 0; }

    .chapter { gap: 14px; }
}

@media (max-width: 960px) {
    nav.tp-nav { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
}
