/* =========================
   Base Reset & Tokens
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --text: #101820;
    --muted: #6b757c;
    --accent: #5c2dff;
    --border: #dde2e6;
    --card-bg: #ffffff;

    --about-text-light: #f5f6ff;
    --about-text-muted: #8a8fad;

    /* Navbar tokens (defaults for non-index pages) */
    --nav-bg: rgba(255, 255, 255, 0.96);
    --nav-border: var(--border);
    --nav-link: var(--text);
    --nav-link-hover: var(--accent);
    --nav-underline: var(--accent);
    --nav-active: var(--accent);
    --nav-active-underline: var(--accent);
}

/* Index page navbar theme (purple + yellow active) */
.index-page {
    --nav-bg: #5c2dff;
    --nav-border: transparent;
    --nav-link: #ffffff;
    --nav-link-hover: #e5e0ff;
    --nav-underline: #ffffff;
    --nav-active: #fbbf24;
    --nav-active-underline: #fbbf24;
}

html {
    scroll-behavior: smooth;
}

/* Offset in-page anchor jumps for sticky navbar */
section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 0.75rem;
}

/* =========================
   Navbar
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--nav-border);
}

.navbar-inner {
    width: 100%;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-left {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo {
    height: 32px;
    width: auto;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.navbar-nav a {
    text-decoration: none;
    color: var(--nav-link);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
}

.navbar-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--nav-underline);
    transition: width 0.2s ease;
}

.navbar-nav a:hover {
    color: var(--nav-link-hover);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-nav a.active {
    color: var(--nav-active);
}

.navbar-nav a.active::after {
    background: var(--nav-active-underline);
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.35rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    padding: 0.4rem 0;
    width: max-content;
    min-width: 0;
    display: none;
    z-index: 30;
}

.nav-item-has-dropdown:hover .nav-dropdown,
.nav-item-has-dropdown:focus-within .nav-dropdown {
    display: block;
}

/* Invisible hover bridge so the dropdown doesn't disappear */
.nav-item-has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.nav-dropdown a {
    display: block;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--text);
}

.nav-dropdown a::after {
    content: none;
}

.nav-dropdown a:hover {
    background: #f5f7fb;
    color: var(--accent);
}

/* =========================
   Hero – base
========================= */

.hero {
    padding: 3.5rem 0;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-copy {
    flex: 1.4;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 520px;
    margin-bottom: 1.75rem;
}

/* =========================
   Home Hero – comfort hands background (Index)
========================= */

.index-page .hero {
    position: relative;
    padding: 0;
    color: #ffffff;
    background-color: #000000;
    overflow: hidden;
}

/* Background image layer for index hero */
.hero-video-bg {
    position: absolute;
    inset: 0;
    background-image: url("assets/images/comfort-hands.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    z-index: 0;
}

/* Overlay content container */
.index-page .hero .hero-inner {
    position: relative;
    z-index: 2;
    min-height: 480px;
    padding: 3.5rem 1.5rem;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-left-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.index-page .hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
}

/* Right-hand column for rotating text */
.hero-right {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Hero highlights on dark background */
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-highlight {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
}

.hero-highlight-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.hero-highlight p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

/* INDEX HERO — highlight card heading in Custodio yellow */
.index-page .hero-highlight-label {
    color: #fbbf24;
}

/* Yellow underline inset bar for Index hero highlight cards */
.hero-highlight::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.4rem;
    height: 4px;
    background: #fbbf24;
    border-radius: 4px;
}

/* =========================
   CDR Hero
========================= */

.hero.cdr-hero {
    background: #5c2dff;
    color: #ffffff;
    padding: 0;
}

.hero.cdr-hero .hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero.cdr-hero .hero-copy h1 {
    color: #ffffff;
}

.hero.cdr-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* =========================
   Protection Hero – Yellow
========================= */

.protection-hero {
    background: #fbbf24;
    color: #111827;
    padding: 2.5rem 0;
}

.protection-hero .hero-subtitle {
    color: #3b3b3b;
    max-width: 960px;
}

/* =========================
   NEWS HERO – old-woman background
========================= */

.hero.news-hero-banner {
    position: relative;
    padding: 0;
    min-height: 520px;
    color: #ffffff;
    background-color: #000;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("assets/images/old-woman.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.news-hero-banner .hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1;
    display: flex;
    align-items: center;
}

.news-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: 3rem 1.5rem 3.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.news-hero-inner .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.news-hero-banner .news-rotator {
    position: relative;
    width: 100%;
    max-width: 32rem;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-hero-banner .news-graphic-rotator {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.news-hero-banner .news-rotator-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: newsRotator 20s infinite;
}

.news-hero-banner .news-rotator-item:first-child {
    opacity: 1;
}

.news-hero-banner .news-rotator-item:nth-child(1) { animation-delay: 0s; }
.news-hero-banner .news-rotator-item:nth-child(2) { animation-delay: 10s; }

@keyframes newsRotator {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    45%  { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}

/* =========================
   Index Rotator – Yellow Emphasis (no pill)
========================= */

.index-page .fade-highlight {
    background: none;
    padding: 0;
    border-radius: 0;
    color: #fbbf24;
    font-size: 125%;
    font-weight: 700;
}

/* =========================
   NEWS TIMELINE
========================= */

.timeline-section {
    background: var(--bg);
    padding: 3rem 0 3.5rem;
}

.timeline-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.timeline-heading {
    font-size: 1.7rem;
    margin-bottom: 2rem;
}

.timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 0 0;
}

/* Purple line by design */
.timeline-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 2.7rem;
    height: 4px;
    background: var(--accent);
    border-radius: 999px;
    opacity: 0.9;
}

.timeline-item {
    position: relative;
    flex: 1;
    max-width: 240px;
}

/* Purple node by design */
.timeline-node {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 999px;
    border: 3px solid var(--accent);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.timeline-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: #ffffff;
}

.timeline-title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--accent);
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--muted);
}



/* 2025-01-17 PJ: Privacy, Terms and Conditions changes */
.footer-legal {
  background: #4A21EF;
}
.footer-legal .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 14px;
}
.footer-legal a {
  color: #fff;
  text-decoration: none;
  margin: 0 6px;
}
.footer-legal a:hover {
  text-decoration: underline;
}
.footer-legal .footer-sep {
  opacity: 0.6;
}


.privacy-page p { 
    margin-bottom: 1.0em; 
}
.privacy-page ul { 
  margin-bottom: 1.2em; 
}
.privacy-page ul li::marker {
  color: #4A21EF;
}
.privacy-page h1,
.privacy-page h2 {
    margin-bottom: 0.5em; 
    color: #4A21EF;
}

.legal-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.legal-inner h2 {
    margin-top: 1.9rem;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
}

.legal-inner h3 {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}


.legal-inner p {
    color: var(--muted);
    max-width: 100%;
}

.legal-inner ul {
    margin: -0.5rem 0.5rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    margin-bottom: 1.1rem;

}

.legal-inner li {
    margin-bottom: 0.2rem;
}



/* Responsive: stack on small screens */
@media (max-width: 900px) {
    .timeline-track {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
        padding-top: 1.5rem;
    }

    .timeline-track::before {
        left: 28px;
        right: auto;
        top: 0;
        bottom: 1rem;
        width: 4px;
        height: auto;
        background: var(--accent);
    }

    .timeline-item {
        max-width: 100%;
        padding-left: 3.5rem;
    }

    .timeline-node {
        position: absolute;
        left: 0;
        top: 0.1rem;
    }
}

/* =========================
   Banners
========================= */

.page-banner {
    padding: 2.5rem 0;
}

.page-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.banner-green {
    background: #00b87a;
    color: #ffffff;
}

.banner-green .section-eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

/* =========================
   About Hero
========================= */

.about-hero-visual {
    padding: 3rem 0;
    background: #111827;
    color: #ffffff;
}

.about-hero-inner {
    max-width: 1120px;
    min-height: 160px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    display: block;
}

.highlight-yellow {
    color: #fbbf24;
}

.about-hero-text {
    flex: 1.2;
}

.about-hero-text h2 {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.about-hero-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.about-hero-divider {
    width: 50px;
    height: 4px;
    background: #fbbf24;
    border-radius: 2px;
    margin: 1rem 0 1.5rem;
}

.about-hero-image-wrap {
    flex: 1;
    position: relative;
}

.about-hero-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.about-hero-callout {
    background: #fbbf24;
    padding: 1.8rem;
    border-radius: 1.5rem 1.5rem 0 1.5rem;
    margin-top: -2rem;
    position: relative;
    max-width: 90%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.about-hero-callout p {
    margin: 0;
    font-size: 1rem;
    color: #111827;
    line-height: 1.4;
}

/* =========================
   Intro Section
========================= */

.intro-section {
    background: var(--bg);
    padding: 3.5rem 0;
}

.intro-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.intro-copy {
    flex: 1.4;
}

.intro-copy h2 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.intro-copy p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.intro-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.intro-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.intro-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.1rem;
}

.intro-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.intro-visual-frame {
    background: var(--bg-alt);
    border-radius: 1.2rem;
    padding: 0.35rem;
    border: 1px solid var(--border);
    display: inline-block;
}

/* Download the app block */

.download-heading {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: var(--accent);
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.store-badge {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.store-badge img {
    height: 44px;
    width: auto;
    display: block;
}

/* =========================
   Pillars
========================= */

.pillars-section {
    background: var(--bg-alt);
    padding: 3.5rem 0 4rem;
}

.pillars-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 1.9rem;
    margin-bottom: 2rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.pillar-card {
    background: var(--card-bg);
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    padding: 1.5rem 1.4rem 1.6rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.pillar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* Make tiers cards match CDR cards */
.tier-card {
    background: var(--card-bg);
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    padding: 1.5rem 1.4rem 1.6rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.tier-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.tier-card p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* =========================
   Info Sections
========================= */

.info-section {
    padding: 3rem 0 3.2rem;
    background: var(--bg);
}

.info-section.alt {
    background: #f9fafc;
}

.info-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.info-inner h2 {
    font-size: 1.7rem;
    margin-bottom: 0.9rem;
}

.info-inner p {
    color: var(--muted);
    max-width: 100%;
}

.info-inner ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.info-inner li {
    margin-bottom: 0.4rem;
}

.graphic-frame {
    margin-top: 1.5rem;
    border-radius: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    min-height: 260px;
}

/* INDEX — How Custodio works graphic */
.graphic-frame img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* =========================
   Scamwatch Callout
========================= */

.scamwatch-callout {
    background: #FBBF24;
    padding: 3rem 0;
    border-top: 1px solid #f2e4b8;
    border-bottom: 1px solid #f2e4b8;
}

.scamwatch-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.scamwatch-callout h2 {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 1rem;
}

.scamwatch-callout p {
    max-width: 720px;
    margin: 0.75rem auto 1.75rem;
    font-size: 1.05rem;
    color: #444;
}

.scamwatch-button {
    display: inline-block;
    background: #5c2dff;
    color: #ffffff;
    padding: 0.85rem 1.6rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.scamwatch-button:hover {
    background: #4b23d1;
}

/* =========================
   Team Section
========================= */

.team-section {
    background: var(--bg-alt);
    padding: 3rem 0 3.2rem;
}

.team-section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.team-header {
    margin-bottom: 2rem;
}

.team-header h1 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.team-header p {
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.team-group {
    margin-top: 1.5rem;
}

.team-subheading {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.team-grid-compact .team-member {
    padding: 0.55rem 0.55rem 0.7rem;
}

.team-member {
    background: var(--card-bg);
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.team-member img {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    margin-bottom: 0.6rem;
}

.team-grid-compact .team-member img {
    width: 70px;
    height: 70px;
    margin-bottom: 0.35rem;
}

.team-member h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.team-grid-compact .team-member h3 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.team-role {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.team-grid-compact .team-role {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.team-member p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.team-grid-compact .team-member p {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0.15rem;
}

/* =========================
   Support Tiers Matrix
========================= */

.tiers-matrix {
    background: #00b87a;
    color: #ffffff;
    padding: 3.5rem 0 4rem;
}

.tiers-matrix-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.tiers-column p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    color: #e7fff4;
}

.tiers-column p strong {
    color: #ffffff;
}

.tiers-number-label {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.tiers-number {
    font-size: 3rem;
    font-weight: 700;
}

.tiers-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================
   Rotating fade text (Index hero)
========================= */

.fade-rotator {
    position: relative;
    width: 100%;
    min-height: 4em;
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    line-height: 1.5;
    max-width: 32rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fade-item {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    display: block;
    text-align: center;
    animation: fadeShort 40s infinite;
}

.fade-item:has(img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fade-item-long {
    animation-name: fadeLong;
}

.fade-item:nth-child(1) { animation-delay: 0s; }
.fade-item:nth-child(2) { animation-delay: 5s; }
.fade-item:nth-child(3) { animation-delay: 15s; }
.fade-item:nth-child(4) { animation-delay: 20s; }
.fade-item:nth-child(5) { animation-delay: 25s; }
.fade-item:nth-child(6) { animation-delay: 30s; }
.fade-item:nth-child(7) { animation-delay: 35s; }

@keyframes fadeShort {
    0%      { opacity: 0; }
    2.5%    { opacity: 1; }
    12.5%   { opacity: 1; }
    15%     { opacity: 0; }
    100%    { opacity: 0; }
}

@keyframes fadeLong {
    0%      { opacity: 0; }
    1.25%   { opacity: 1; }
    25%     { opacity: 1; }
    27.5%   { opacity: 0; }
    100%    { opacity: 0; }
}

.fade-item-logo-block {
    flex-direction: column;
}

.fade-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.fade-logo-symbol {
    height: 54px;
    width: auto;
}

.fade-logo-text {
    font-family: 'Sora', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.fade-logo-caption {
    margin-top: 0.5rem;
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
    color: #ffffff;
}

.fade-rotator img {
    max-width: 100%;
    height: auto;
    display: block;
}

.fade-image {
    display: block;
    height: auto;
    margin: 0 auto;
}

/* Base highlight pill (used on non-index pages if needed) */
.fade-highlight {
    background: #5c2dff;
    color: #ffffff;
    padding: 0.05em 0.35em;
    border-radius: 0.25em;
    font-weight: 700;
    white-space: nowrap;
    display: inline;
}

/* ============================================
   CDR PAGE — Reduce gap under Consumer Data Right hero
============================================ */

#cdr-hero {
    padding-bottom: 1.5rem;
}

#cdr-cards {
    padding-top: 1.5rem;
}

/* =========================
   Footer
========================= */

.footer {
    width: 100%;
    background: #5c2dff;
    color: #ffffff;
    text-align: center;
    padding: 0.6rem 0;
    margin: 0;
}
/* =========================================================
   MOBILE STYLES (phones + small tablets)
========================================================= */

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0.6rem;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
}

.index-page .nav-toggle {
    border-color: rgba(255,255,255,0.35);
}

.nav-toggle-bars {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    border-radius: 999px;
}

.index-page .nav-toggle-bars {
    background: #ffffff;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

.index-page .nav-toggle-bars::before,
.index-page .nav-toggle-bars::after {
    background: #ffffff;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }

/* =========================================================
   Mobile breakpoint
========================================================= */
@media (max-width: 832px) {

    /* ---------- PJ Small Screens ------------------------ */
    /* Override anythign here when the screen width < 832px */
    /* ---------------------------------------------------- */
    
    .footer-legal {

    }

    .footer-legal .footer-inner {
        padding: 12px 16px;
        font-size: 12px;
    }


    /* ---------- NAVBAR / HAMBURGER ---------- */

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .navbar-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0;
  }

  .navbar.is-open .navbar-nav {
    display: flex;
  }

  .navbar-nav a {
    padding: 0.55rem 0.25rem;
  }

  /* Disable hover dropdowns */
  .nav-item-has-dropdown:hover .nav-dropdown,
  .nav-item-has-dropdown:focus-within .nav-dropdown {
    display: none;
  }

  /* Mobile dropdowns */
  .nav-dropdown {
    position: static;
    display: none;
    margin-top: 0.25rem;
    border-radius: 0.6rem;
    width: 100%;
    box-shadow: none;
    padding: 0.35rem 0;
  }

  .nav-item.open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 0.5rem 0.9rem;
    white-space: normal;
    line-height: 1.25;
  }

  /* Hamburger → X animation */
  .navbar.is-open .nav-toggle-bars {
    background: transparent;
  }

  .navbar.is-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  .navbar.is-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    transition: transform 0.2s ease, top 0.2s ease;
  }

  /* ---------- INDEX PAGE ONLY ---------- */

  /* 1. Hide hero rotator */
  .index-page .hero-right {
    display: none;
  }

  /* 2. Intro section: app image below text */
  .index-page .intro-inner {
    flex-direction: column;
  }

  .index-page .intro-copy {
    order: 1;
  }

  .index-page .intro-visual {
    order: 2;
    margin: 1.5rem 0;
  }

  .index-page .intro-visual-frame {
    max-width: 280px;
    margin: 0 auto;
  }

  /* 3. WHAT WE DO: move image below text */
  .index-page #how-it-works .about-hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .index-page #how-it-works .about-hero-text {
    order: 1;
  }

  .index-page #how-it-works .about-hero-image-wrap {
    order: 2;
  }

  /* 4. Bottom grid → vertical */
  .index-page .pillars-grid {
    grid-template-columns: 1fr;
  }
  /* ABOUT PAGE – Team sections stack vertically on mobile */
.about-page .team-grid {
    grid-template-columns: 1fr;
}

/* Improve spacing for vertical cards */
.about-page .team-member {
    padding: 1rem;
}

/* Slightly larger avatar for better balance */
.about-page .team-member img {
    margin-bottom: 0.75rem;
}
/* ---------- NEWS PAGE (mobile only) ---------- */

/* 1A. Hide the News hero rotator on mobile */
.news-page .hero.news-hero-banner .hero-right {
  display: none;
}

/* Optional: reduce hero vertical padding a little on mobile */
.news-page .news-hero-inner {
  padding: 2.25rem 1.25rem 2.5rem;
}

/* 3B. Timeline: tighten spacing on mobile */
.news-page .timeline-section {
  padding: 2rem 0 2.25rem;
}

.news-page .timeline-heading {
  margin-bottom: 1.25rem;
}

.news-page .timeline-track {
  gap: 1.25rem;          /* tighter between items */
  padding-top: 1.25rem;  /* less space before first item */
}

.news-page .timeline-item {
  padding-left: 3.1rem;  /* slightly tighter than 3.5rem */
}

.news-page .timeline-node {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

.news-page .timeline-icon {
  font-size: 1.3rem;
}

.news-page .timeline-title {
  margin-bottom: 0.25rem;
}

/* 4B. Scamwatch callout: tighten padding + type on mobile */
.news-page .scamwatch-callout {
  padding: 2rem 0;
}

.news-page .scamwatch-callout h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-page .scamwatch-callout p {
  font-size: 1rem;
  margin: 0.6rem auto 1.25rem;
  padding: 0 0.25rem;
}

.news-page .scamwatch-callout a {
  display: inline-block;
  font-size: 1rem;
}

/* 5B. Announcements: tighten spacing + heading sizes on mobile */
.news-page #Announcements .team-header h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.news-page #Announcements .team-header h2 {
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.news-page #Announcements .team-header p {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

/* Reduce the large <br><br> effect inside Announcements on mobile */
.news-page #Announcements .team-header br {
  display: none;
}
/* =========================================================
   CDR PAGE — Mobile layout
========================================================= */
@media (max-width: 832px) {

  .cdr-page #cdr-cards .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

}

}
