/* =====================================================================
   GENIUS MARKETING — design system
   Font: Inter. Palette: navy #0b203e, navy-dark #051225, light-blue #dbe8f7,
   ink #08111a, white. Pills radius 25px.
   ===================================================================== */

:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --navy: #0b203e;          /* primary buttons / dark */
    --navy-dark: #051225;     /* hover */
    --ink: #08111a;           /* primary text */
    --link-hover: #15283c;
    --light-blue: #dbe8f7;    /* light accent / hover */
    --muted: #5b6675;
    --line: rgba(8,17,26,0.12);
    --radius: 12px;
    --radius-pill: 25px;
    --shadow-card: 0 6px 24px rgba(8,17,26,0.08);
    --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --container: 1440px;
    --container-pad: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--light-blue); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; margin: 0; color: var(--ink); }

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }

/* ---------------------------------------------------------------- Buttons (pills, r25) */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-weight: 500; font-size: 18px; line-height: 1.45; padding: 8px 20px; border-radius: var(--radius-pill); border: 0; cursor: pointer; transition: background .15s ease, color .15s ease; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--light-blue); }
.btn--sm { font-size: 16px; padding: 6px 20px; }

/* Text link buttons */
.tlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 500; font-size: 16px; color: var(--ink); transition: color .15s ease; }
.tlink:hover { color: var(--link-hover); }
.tlink--read { font-weight: 300; font-size: 14px; letter-spacing: 0.14px; }
.tlink--read svg { width: 16px; height: 16px; }

/* Carousel arrow buttons (circular) */
.carousel-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: background .15s ease, color .15s ease; }
.carousel-btn:hover { background: var(--light-blue); }
.carousel-btn svg { width: 14px; height: 14px; }
.carousel-btn[disabled] { opacity: .4; cursor: default; }

/* Slider dots */
.slider-dots { display: inline-flex; align-items: center; gap: 8px; }
.slider-dots__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: background .15s ease, width .15s ease, height .15s ease; }
.slider-dots__dot.is-active { width: 12px; height: 12px; background: var(--navy); }

/* ---------------------------------------------------------------- Layout helpers */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.archive { padding: 60px 0; }
.archive__head { text-align: center; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.archive__title { font-size: clamp(30px, 4vw, 44px); }
.archive__sub { font-size: 18px; color: var(--muted); margin: 0; max-width: 640px; }
.load-more { display: flex; width: max-content; margin: 40px auto 0; }

/* Generic article card (placeholder until home/feed design) */
.article-card { background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.article-card__media { aspect-ratio: 16 / 10; background: #e6ecf5; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.article-card__title { font-size: 20px; line-height: 1.3; }
.article-card__excerpt { font-size: 15px; color: var(--muted); margin: 0; }
.article-card__meta { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- Post — Figma 2002:15709 */
.post { padding: 60px 0 0; }
.post-hero { display: flex; gap: 36px; align-items: flex-start; justify-content: space-between; margin-bottom: 44px; }
.post-hero__body { flex: 0 1 801px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.post-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-hero__tag { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-weight: 300; font-size: 12px; text-transform: uppercase; color: var(--ink); }
.post-hero__dot { width: 12px; height: 12px; border-radius: 2px; background: var(--navy); flex-shrink: 0; }
.post-hero__meta { display: flex; align-items: center; gap: 16px; font-family: var(--font-sans); font-weight: 300; font-size: 12px; color: var(--ink); }
.post-hero__title { font-family: var(--font-sans); font-weight: 400; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; color: var(--ink); }
.post-hero__sum { font-family: var(--font-sans); font-weight: 300; font-size: 16px; line-height: 1.4; color: var(--ink); margin: 0; }
.post-hero__media { flex: 0 0 459px; width: 459px; aspect-ratio: 459 / 329; border-radius: 12px; overflow: hidden; background: #e6ecf5; }
.post-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.post__content { max-width: 856px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--ink); }
.more { margin-top: 20px; padding-bottom: 20px; }
.more__title { text-align: center; font-family: var(--font-sans); font-weight: 600; font-size: clamp(28px, 3vw, 44px); margin: 0 0 32px; }
@media (max-width: 900px) {
    .post-hero { flex-direction: column-reverse; gap: 24px; }
    .post-hero__body { flex-basis: auto; }
    .post-hero__media { width: 100%; flex-basis: auto; }
    .post-hero__top { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.post__content p { margin: 0 0 1.2em; }
.post__content h2, .post__content h3, .post__content h4 { margin: 1.6em 0 .5em; clear: both; }
.post__content img, .post__content .kg-image { border-radius: var(--radius); }
.post__content a { color: var(--navy); text-decoration: underline; }
/* Body images: full content-column width, never upscaled beyond native resolution */
.post__content figure, .post__content > img,
.post__content .kg-width-wide, .post__content .kg-width-full {
    position: static; float: none; left: auto; transform: none;
    display: block; width: auto; max-width: 100%; margin: 28px auto;
}
.post__content figure img, .post__content > img,
.post__content .kg-width-wide img, .post__content .kg-width-full img { width: auto; max-width: 100%; height: auto; display: block; margin: 0 auto; }
.post__content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.post__content figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: .6em; }

/* ---------------------------------------------------------------- Home hero — Figma 1910:11089 */
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,12,24,0.72) 0%, rgba(6,12,24,0.45) 45%, rgba(6,12,24,0.15) 100%); }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(219,232,247,0) 0%, rgba(219,232,247,0.6) 60%, var(--light-blue) 100%); }
.hero__inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 150px var(--container-pad) 120px; }
.hero__article { flex: 0 1 746px; display: flex; flex-direction: column; gap: 28px; color: #fff; }
.hero__head { display: flex; flex-direction: column; gap: 16px; }
.hero__eyebrow { font-family: var(--font-sans); font-weight: 300; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; color: #fff; }
.hero__title { font-family: var(--font-sans); font-weight: 400; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.2; color: #fff; }
.hero__body { display: flex; flex-direction: column; gap: 16px; }
.hero__sub { font-family: var(--font-sans); font-weight: 300; font-size: 16px; line-height: 1.4; margin: 0; color: #fff; max-width: 640px; }
.hero__meta { display: flex; align-items: center; gap: 16px; font-family: var(--font-sans); font-weight: 300; font-size: 12px; color: #fff; }
.hero__sep { display: inline-block; width: 1px; height: 12px; background: rgba(255,255,255,0.6); }
.hero__read { margin: 0; align-self: flex-start; width: max-content; }

.hero__card { flex: 0 0 auto; width: 526px; max-width: 100%; background: #fff; border-radius: 12px; padding: 60px; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.hero__card-head { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.hero__card-title { font-family: var(--font-sans); font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; color: var(--ink); }
.hero__card-sub { font-family: var(--font-sans); font-weight: 300; font-size: 16px; line-height: 1.4; color: var(--ink); margin: 0; }
.hero__form { width: 290px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.hero__input { width: 100%; background: #fff; border: 1px solid #888; border-radius: 21px; padding: 10px 16px; font-family: var(--font-sans); font-size: 16px; color: var(--ink); }
.hero__input::placeholder { color: #6d6d6d; }
.hero__submit { width: 100%; margin-top: 4px; }
.hero__success, .hero__error { display: none; margin: 4px 0 0; font-family: var(--font-sans); font-size: 14px; line-height: 1.4; text-align: center; }
.hero__success { color: var(--navy); font-weight: 500; }
.hero__error { color: #b3261e; }
.hero__form.success .hero__input, .hero__form.success .hero__submit { display: none; }
.hero__form.success .hero__success { display: block; }
.hero__form .hero__error:not(:empty) { display: block; }
/* Home: #DBE8F7 page bg + white content panel overlapping the hero (Figma 1910:11088/11130) */
body.home-template { background: var(--light-blue); }
.home-template .hero { position: relative; z-index: 1; }
.home-panel { position: relative; z-index: 2; background: #fff; width: min(1368px, calc(100% - 72px)); margin: -56px auto 0; border-radius: 24px; overflow: hidden; }
.home-panel .container { max-width: none; padding-left: 36px; padding-right: 36px; }
.home-panel > .hub { border-radius: 0; }

/* Generic white content panel (news, post, page, etc.) on #DBE8F7 */
.content-panel { position: relative; z-index: 2; background: #fff; width: min(1368px, calc(100% - 72px)); margin: 0 auto; border-radius: 24px; overflow: hidden; }
.content-panel .container { padding-left: 36px; padding-right: 36px; }
@media (max-width: 640px) { .content-panel { width: calc(100% - 24px); border-radius: 16px; } .content-panel .container { padding-left: 16px; padding-right: 16px; } }

/* News archive — Figma 1929:12631 */
.news { padding: 60px 0 0; }
.news .container { display: flex; flex-direction: column; gap: 24px; }
.feature-card { display: flex; gap: 32px; align-items: flex-start; justify-content: space-between; background: #fff; border-radius: 12px; box-shadow: 1px -1px 6px rgba(0,0,0,0.10); padding: 32px; transition: box-shadow .18s ease, transform .18s ease; }
.feature-card:hover { box-shadow: 0 12px 28px rgba(8,17,26,0.16); transform: translateY(-2px); }
.feature-card__body { flex: 0 1 737px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.feature-card__header { display: flex; flex-direction: column; gap: 16px; }
.feature-card__tag { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-weight: 300; font-size: 12px; text-transform: uppercase; color: var(--ink); }
.feature-card__dot { width: 12px; height: 12px; border-radius: 2px; background: var(--navy); flex-shrink: 0; }
.feature-card__title { font-family: var(--font-sans); font-weight: 400; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; color: var(--ink); }
.feature-card__body-text { display: flex; flex-direction: column; gap: 16px; }
.feature-card__sum { font-family: var(--font-sans); font-weight: 300; font-size: 16px; line-height: 1.4; color: var(--ink); margin: 0; }
.feature-card__meta { display: flex; align-items: center; gap: 16px; font-family: var(--font-sans); font-weight: 300; font-size: 12px; color: var(--ink); }
.feature-card__media { flex: 0 0 459px; width: 459px; aspect-ratio: 459 / 329; border-radius: 12px; overflow: hidden; background: #e6ecf5; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.news__more { display: flex; width: max-content; margin: 12px auto 0; }
@media (max-width: 900px) {
    .feature-card { flex-direction: column-reverse; }
    .feature-card__body { flex-basis: auto; }
    .feature-card__media { width: 100%; flex-basis: auto; }
    .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .home-panel { width: calc(100% - 24px); margin-top: -32px; border-radius: 16px 16px 0 0; } .home-panel .container { padding-left: 16px; padding-right: 16px; } }

@media (max-width: 1080px) {
    .hero__inner { flex-direction: column; align-items: stretch; gap: 40px; padding: 130px 48px 100px; }
    .hero__article { flex-basis: auto; }
    .hero__card { width: 100%; }
}
@media (max-width: 640px) { .hero__inner { padding: 120px 24px 80px; } .hero__card { padding: 40px 24px; } }

/* ---------------------------------------------------------------- Latest Updates + Most Popular */
.updates { padding: 60px 0; }
.updates__grid { display: grid; grid-template-columns: 1fr 416px; gap: 24px; align-items: start; }
.updates__heading { font-family: var(--font-sans); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.01em; margin: 0 0 28px; }
.updates__list { display: flex; flex-direction: column; gap: 24px; }
.uitem { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 1px -1px 6px rgba(0,0,0,0.10); transition: box-shadow .18s ease, transform .18s ease; }
.uitem:hover { box-shadow: 0 12px 28px rgba(8,17,26,0.16); transform: translateY(-2px); }
.uitem__media { flex: 0 0 288px; width: 288px; aspect-ratio: 288 / 165; border-radius: 12px; overflow: hidden; background: #e6ecf5; }
.uitem__media img { width: 100%; height: 100%; object-fit: cover; }
.uitem__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.uitem__title { font-family: var(--font-sans); font-weight: 400; font-size: 24px; letter-spacing: 0.24px; line-height: 1.3; color: var(--ink); }
.uitem__desc { display: flex; flex-direction: column; gap: 8px; }
.uitem__sum { font-family: var(--font-sans); font-weight: 400; font-size: 16px; letter-spacing: 0.16px; line-height: 1.4; color: var(--ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uitem__meta { display: flex; align-items: center; gap: 16px; font-family: var(--font-sans); font-weight: 300; font-size: 12px; color: #464646; }
.uitem__sep { display: inline-block; width: 1px; height: 12px; background: #464646; opacity: .6; }
.updates__more { margin: 28px auto 0; display: flex; width: max-content; }

.popular { background: #fff; border-radius: 12px; box-shadow: 1px -1px 6px rgba(0,0,0,0.10); padding: 16px; }
.popular__heading { font-family: var(--font-sans); font-weight: 500; font-size: 24px; letter-spacing: 0.24px; line-height: 1.3; color: var(--ink); margin: 0 0 24px; }
.popular__list { display: flex; flex-direction: column; gap: 16px; }
.pitem { display: flex; flex-direction: column; gap: 12px; }
.pitem__details { display: flex; flex-direction: column; gap: 6px; }
.pitem__head { display: flex; align-items: center; gap: 8px; }
.pitem__dot { width: 12px; height: 12px; border-radius: 2px; background: var(--navy); flex-shrink: 0; }
.pitem__tag { font-family: var(--font-sans); font-weight: 300; font-size: 12px; text-transform: uppercase; color: var(--ink); }
.pitem__title { font-family: var(--font-sans); font-weight: 400; font-size: 20px; letter-spacing: 0.2px; line-height: 1.4; color: var(--ink); }
.pitem__read { align-self: flex-end; color: var(--ink); font-weight: 300; }
/* Dot colour comes from each category's accent_color (inline); navy fallback */

/* ---------------------------------------------------------------- AI Sector slider */
.hub { position: relative; overflow: hidden; background: #0b1f3d; }
.hub__viewport { overflow: hidden; }
.hub__track { display: flex; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.hub__slide { flex: 0 0 100%; }
.hub__img { width: 100%; height: auto; display: block; }
.hub__img--m { display: none; }
.hub__controls { position: absolute; left: 0; right: 0; bottom: 3.5%; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 16px; }
.hub .carousel-btn { background: #fff; border: 0; }
.hub .slider-dots__dot { background: rgba(255,255,255,0.4); }
.hub .slider-dots__dot.is-active { background: #fff; }

/* ---------------------------------------------------------------- Expert Voice */
.expert { padding: 60px 0; }
.expert__grid { display: grid; grid-template-columns: 1fr 636px; gap: 36px; align-items: center; }
.expert__heading { font-size: clamp(32px, 4vw, 52px); font-weight: 400; margin: 0 0 24px; }
.expert__quote { margin: 0; display: flex; flex-direction: column; gap: 24px; }
.expert__text { font-family: var(--font-sans); font-style: italic; font-weight: 300; font-size: 20px; line-height: 1.5; margin: 0; color: var(--ink); }
.expert__by { display: flex; flex-direction: column; gap: 4px; }
.expert__name { font-weight: 600; font-size: 18px; }
.expert__role { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.expert__media { border-radius: 12px; overflow: hidden; aspect-ratio: 636 / 404; }
.expert__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- Toolkit */
.toolkit { padding: 20px 0 60px; }
.toolkit__head { text-align: center; display: flex; flex-direction: column; gap: 8px; margin-bottom: 36px; }
.toolkit__title { font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.toolkit__sub { font-size: 15px; color: var(--muted); margin: 0; }
.toolkit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card { border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.tool-card__logo { height: 44px; display: flex; align-items: center; justify-content: center; }
.tool-card__logo img { max-height: 44px; width: auto; }
.tool-card__text { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 0; flex: 1; }
.tool-card__cta { margin: 0; }

/* ---------------------------------------------------------------- Newsletter CTA — Figma 1910:11279 */
.newsletter { padding: 40px 0 60px; }
.newsletter__card { background: var(--navy); border-radius: 12px; padding: 60px; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter__text { flex: 0 1 466px; display: flex; flex-direction: column; gap: 12px; }
.newsletter__title { color: #fff; font-size: clamp(26px, 3vw, 34px); font-weight: 400; line-height: 1.2; margin: 0; }
.newsletter__sub { color: #fff; font-weight: 300; font-size: 16px; line-height: 1.4; margin: 0; }
.newsletter__form { flex: 0 0 465px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.newsletter__input { width: 100%; background: transparent; border: 1px solid #fff; border-radius: 21px; padding: 10px 16px; font-family: var(--font-sans); font-size: 16px; color: #fff; }
.newsletter__input::placeholder { color: rgba(255,255,255,0.85); }
.newsletter__submit { width: 100%; background: #fff; color: var(--ink); border-radius: var(--radius-pill); padding: 8px 20px; font-family: var(--font-sans); font-weight: 500; font-size: 18px; }
.newsletter__submit:hover { background: var(--light-blue); }
.newsletter__success, .newsletter__error { display: none; margin: 2px 0 0; font-size: 14px; text-align: center; }
.newsletter__success { color: #fff; }
.newsletter__error { color: #ffd0d0; }
.newsletter__form.success .newsletter__input, .newsletter__form.success .newsletter__submit { display: none; }
.newsletter__form.success .newsletter__success { display: block; }
.newsletter__form .newsletter__error:not(:empty) { display: block; }

@media (max-width: 980px) {
    .updates__grid { grid-template-columns: 1fr; gap: 40px; }
    .expert__grid { grid-template-columns: 1fr; gap: 32px; }
    .toolkit__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .newsletter__card { flex-direction: column; align-items: stretch; padding: 40px 28px; }
    .newsletter__text { flex: 0 0 auto; }
    .newsletter__form { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 760px) {
    .hub__img--d { display: none; }
    .hub__img--m { display: block; }
    .hub__controls { bottom: 5%; }
}
@media (max-width: 620px) {
    .uitem { flex-direction: column; }
    .uitem__media { width: 100%; flex-basis: auto; }
}

/* ---------------------------------------------------------------- Header — Figma 1910:11094 / 2002:15874 */
.site-header { position: relative; z-index: 20; background: transparent; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; padding: 16px var(--container-pad); max-width: var(--container); margin: 0 auto; }
.site-header__left { display: flex; align-items: center; gap: 48px; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo__img { height: 32px; width: auto; display: block; }
.site-logo__img--light { display: none; }
.site-nav { display: flex; align-items: center; }
.site-nav__menu { display: flex; flex-direction: row; align-items: center; }
.site-nav__cta { display: none; }
.site-nav__list { list-style: none; display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 0; }
.site-nav__list a { font-family: var(--font-sans); font-weight: 500; font-size: 16px; color: var(--ink); padding: 10px; transition: color .15s ease, opacity .15s ease; }
.site-nav__list a:hover, .site-nav__list .nav-current a { color: var(--navy); opacity: .65; }
.site-header__cta { background: var(--navy); color: #fff; border-radius: var(--radius-pill); padding: 8px 20px; font-family: var(--font-sans); font-weight: 500; font-size: 18px; }
.site-header__cta:hover { background: var(--navy-dark); }
.site-nav__toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; cursor: pointer; }
.site-nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
.home-template .site-nav__toggle span, .page-insights .site-nav__toggle span, .tag-insights .site-nav__toggle span { background: #fff; }
.home-template .site-header.is-open .site-nav__toggle span, .page-insights .site-header.is-open .site-nav__toggle span, .tag-insights .site-header.is-open .site-nav__toggle span { background: #fff; }
@media (min-width: 761px) { .site-nav__toggle { display: none !important; } .site-nav__menu { position: static; flex-direction: row; } }

/* Transparent overlay on Home + Insights */
.site-wrapper { position: relative; }
.home-template .site-header,
.page-insights .site-header,
.tag-insights .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; }
.home-template .site-logo__img--dark, .page-insights .site-logo__img--dark, .tag-insights .site-logo__img--dark { display: none; }
.home-template .site-logo__img--light, .page-insights .site-logo__img--light, .tag-insights .site-logo__img--light { display: block; }
.home-template .site-nav__list a, .page-insights .site-nav__list a, .tag-insights .site-nav__list a { color: #fff; }
.home-template .site-nav__list a:hover, .page-insights .site-nav__list a:hover, .tag-insights .site-nav__list a:hover,
.home-template .site-nav__list .nav-current a, .page-insights .site-nav__list .nav-current a, .tag-insights .site-nav__list .nav-current a { color: var(--light-blue); opacity: 1; }
.home-template .site-header__cta, .page-insights .site-header__cta, .tag-insights .site-header__cta { background: #fff; color: var(--ink); }
.home-template .site-header__cta:hover, .page-insights .site-header__cta:hover, .tag-insights .site-header__cta:hover { background: var(--light-blue); }

/* ---------------------------------------------------------------- Footer — Figma 1910:11290 */
.site-footer { background: var(--light-blue); color: var(--ink); }
.site-footer__inner { display: flex; flex-direction: column; gap: 28px; padding-top: 60px; padding-bottom: 60px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__logo img { height: 56px; width: auto; display: block; }
.site-footer__tagline { font-family: var(--font-sans); font-weight: 400; font-size: 22px; line-height: 1.4; color: var(--ink); margin: 0; max-width: 460px; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer__copy { font-family: var(--font-sans); font-size: 12px; color: var(--ink); margin: 0; }
.site-footer__links { display: flex; gap: 36px; flex-wrap: wrap; }
.site-footer__links a { font-family: var(--font-sans); font-size: 12px; color: var(--ink); transition: opacity .15s ease; }
.site-footer__links a:hover { opacity: .6; }
@media (max-width: 560px) { .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ---------------------------------------------------------------- Legal — Figma 2002:16048 */
.legal { padding: 60px 0; }
.legal__title { font-family: var(--font-sans); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.4; letter-spacing: 0.36px; text-align: left; color: #08111a; margin: 0 0 36px; }
.legal__content { color: #08111a; font-family: var(--font-sans); font-size: 16px; line-height: 1.4; }
.legal__content > p:first-child { text-align: left; color: #7e7e7e; font-size: 12px; letter-spacing: 0.12px; margin: 0 0 24px; }
.legal__content h2 { font-family: var(--font-sans); font-weight: 400; font-size: 18px; letter-spacing: 0.18px; line-height: 1.4; text-align: left; color: #08111a; margin: 28px 0 16px; }
.legal__content h3, .legal__content h4 { font-family: var(--font-sans); font-weight: 400; font-size: 16px; line-height: 1.4; text-align: left; color: #08111a; margin: 14px 0 4px; }
.legal__content p { font-family: var(--font-sans); font-weight: 300; font-size: 16px; letter-spacing: 0.16px; line-height: 1.4; text-align: left; color: #08111a; margin: 0 0 12px; }
.legal__content ul, .legal__content ol { text-align: left; margin: 0 0 12px; padding-left: 22px; }
.legal__content li { font-weight: 300; margin: 0 0 6px; }
.legal__content strong { font-weight: 400; }
.legal__content a { color: var(--navy); text-decoration: underline; }

/* ---------------------------------------------------------------- Error */
.error { text-align: center; padding: 100px 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.error__code { font-size: 72px; }
.error__msg { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 760px) {
    .site-header__cta { display: none; }
    .site-header__left { width: 100%; justify-content: space-between; }
    .site-nav__toggle { display: flex; }
    .site-nav__menu { position: absolute; top: 100%; left: 0; right: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 20px var(--container-pad); background: #fff; box-shadow: 0 12px 28px rgba(8,17,26,0.14); display: none; z-index: 30; }
    .site-header.is-open .site-nav__menu { display: flex; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .site-nav__list a { color: var(--ink); padding: 10px 4px; font-size: 18px; opacity: 1; }
    .site-nav__cta { display: inline-flex; width: 100%; }
    /* Transparent header goes solid when menu opens */
    .home-template .site-header.is-open,
    .page-insights .site-header.is-open,
    .tag-insights .site-header.is-open { background: var(--navy); }
    .home-template .site-header.is-open .site-nav__list a,
    .page-insights .site-header.is-open .site-nav__list a,
    .tag-insights .site-header.is-open .site-nav__list a { color: var(--ink); }
}
@media (max-width: 640px) { :root { --container-pad: 24px; } }

/* ============================================================
   SUBSCRIBE MODAL — Figma 2286:9247 (native signup, no sign-in)
   ============================================================ */
body.submodal-open { overflow: hidden; }
.submodal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.submodal[hidden] { display: none; }
.submodal__overlay { position: absolute; inset: 0; background: rgba(5,18,37,0.55); backdrop-filter: blur(2px); }
.submodal__dialog { position: relative; z-index: 1; width: 100%; max-width: 620px; background: #fff; border-radius: 20px; padding: 56px 56px 48px; box-shadow: 0 24px 60px rgba(5,18,37,0.35); animation: submodal-in .2s ease; }
@keyframes submodal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.submodal__close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.submodal__close:hover { background: var(--light-blue); color: var(--ink); }
.submodal__close svg { width: 20px; height: 20px; }
.submodal__title { margin: 0; text-align: center; font-family: var(--font-sans); font-weight: 400; font-size: 34px; line-height: 1.2; color: var(--ink); }
.submodal__sub { margin: 12px 0 0; text-align: center; font-family: var(--font-sans); font-weight: 300; font-size: 16px; line-height: 1.4; color: var(--muted); }
.submodal__form { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.submodal__input { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 16px; color: var(--ink); background: #fff; }
.submodal__input::placeholder { color: var(--muted); }
.submodal__input:focus { outline: none; border-color: var(--navy); }
.submodal__submit { width: 100%; margin-top: 4px; padding: 12px 20px; font-size: 18px; }
.submodal__success, .submodal__error { display: none; margin: 4px 0 0; font-family: var(--font-sans); font-size: 14px; line-height: 1.4; text-align: center; }
.submodal__success { color: var(--navy); font-weight: 500; }
.submodal__error { color: #c0392b; }
.submodal__form.success .submodal__input, .submodal__form.success .submodal__submit { display: none; }
.submodal__form.success .submodal__success { display: block; }
@media (max-width: 640px) {
    .submodal__dialog { padding: 44px 24px 32px; border-radius: 16px; }
    .submodal__title { font-size: 26px; }
}

/* ============================================================
   INSIGHTS PAGE — Figma 1944:13290
   ============================================================ */

/* Dark hero */
.ins-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.ins-hero__bg { position: absolute; inset: 0; background-repeat: no-repeat; background-position: right center; background-size: auto 100%; z-index: 0; }
.ins-hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 42%, rgba(11,32,62,0.65) 62%, rgba(11,32,62,0.15) 100%); }
.ins-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(219,232,247,0) 0%, rgba(219,232,247,0) 80%, rgba(219,232,247,0.5) 92%, var(--light-blue) 100%); }
.ins-hero__inner { position: relative; z-index: 3; max-width: var(--container); margin: 0 auto; padding: 150px var(--container-pad) 150px; }
.ins-hero__eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.ins-hero__title { margin: 0; max-width: 714px; font-size: 54px; font-weight: 400; line-height: 1.2; color: #fff; }
.ins-hero__sub { margin: 16px 0 0; max-width: 714px; font-size: 16px; font-weight: 300; line-height: 1.4; color: #fff; }
.ins-hero__stats { display: flex; gap: 40px; margin-top: 28px; max-width: 714px; }
.ins-stat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ins-stat__num { font-size: 40px; font-weight: 400; line-height: 1.2; }
.ins-stat__label { font-size: 16px; font-weight: 300; line-height: 1.4; }

/* Panel overlaps the dark hero (same technique as home) so the fade tucks under it */
.page-insights .ins-hero { position: relative; z-index: 1; }
.page-insights .content-panel { margin-top: -56px; }
@media (max-width: 640px) { .page-insights .content-panel { margin-top: -32px; } }

/* Section title (shared) */
.ins-section-title { margin: 0 0 36px; font-size: 36px; font-weight: 400; line-height: 1.2; color: var(--ink); }
.ins-section-title--light { color: #fff; }

/* Real-Time Market Indicators */
.ins-market { padding: 60px 0; }
.ins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ins-card { display: flex; flex-direction: column; gap: 16px; }
.ins-card__head { display: flex; flex-direction: column; gap: 8px; }
.ins-card__title { margin: 0; font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--ink); }
.ins-card__sub { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.4; letter-spacing: 0.01em; color: var(--ink); }
.ins-card__chart { height: 298px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ins-card__chart .tradingview-widget-container,
.ins-card__chart .tradingview-widget-container__widget { height: 100%; width: 100%; }

/* The AI Value Horizon — full-panel navy block with full-bleed background */
.ins-horizon { position: relative; overflow: hidden; background: var(--navy); }
.ins-horizon__bg { position: absolute; inset: 0; z-index: 0; background-repeat: no-repeat; background-position: center right; background-size: cover; pointer-events: none; }
.ins-horizon__inner { position: relative; z-index: 1; padding: 60px 36px; }
.ins-table { display: inline-flex; flex-direction: column; width: 784px; max-width: 100%; border-radius: var(--radius); backdrop-filter: blur(7.5px); overflow: hidden; }
.ins-table__row { display: grid; grid-template-columns: 216px 216px 1fr; }
.ins-table__row--head { background: var(--light-blue); }
.ins-table__cell { padding: 10px; font-size: 18px; font-weight: 300; letter-spacing: 0.01em; line-height: 1.4; color: #fff; text-align: center; border-top: 1px solid var(--light-blue); }
.ins-table__cell--first { border-left: 1px solid var(--light-blue); }
.ins-table__cell--last { border-right: 1px solid var(--light-blue); }
.ins-table__row:last-child .ins-table__cell { border-bottom: 1px solid var(--light-blue); }
.ins-table__row--head .ins-table__cell { font-weight: 500; color: var(--navy); }
.ins-table__row:not(.ins-table__row--head) .ins-table__cell--first { font-weight: 400; }

/* Historical Context & Past Reports */
.ins-reports { padding: 60px 0; }
.ins-reports__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ins-report { display: block; }
.ins-report img { display: block; width: 100%; height: auto; }

/* Insights responsive */
@media (max-width: 900px) {
    .ins-hero__inner { padding: 120px var(--container-pad) 160px; }
    .ins-hero__title { font-size: 38px; }
    .ins-hero__bg { opacity: 0.45; background-position: right center; }
    .ins-hero__scrim { background: linear-gradient(90deg, var(--navy) 0%, rgba(11,32,62,0.55) 100%); }
    .ins-section-title { font-size: 28px; }
    .ins-grid { grid-template-columns: 1fr; }
    .ins-card__title { font-size: 26px; }
    .ins-table { width: 100%; }
    .ins-table__row { grid-template-columns: 1fr 1fr 1.4fr; }
    .ins-table__cell { font-size: 15px; }
    .ins-reports__grid { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 640px) {
    .ins-hero__stats { flex-direction: column; gap: 20px; align-items: flex-start; }
    .ins-stat { align-items: flex-start; text-align: left; }
    .ins-hero__title { font-size: 32px; }
}
