.unified-intro {position:relative;overflow:hidden;}
.slide-in {display:inline-block;opacity:0;transform:translateX(100%);animation:slideIn 0.6s forwards;}
.slide-in.email {animation-delay:0s;}
.slide-in.task {animation-delay:0.2s;}
.slide-in.meeting {animation-delay:0.4s;}
@keyframes slideIn {
to {opacity:1;transform:translateX(0);}
}

.gradient-title {
  font-weight: 800;
  /* font-size: 3.0rem; */
  letter-spacing: -0.015em;
  background: linear-gradient(90deg, #2563eb, #a855f7, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* fallback for newer browsers */
  text-fill-color: transparent;
}

.logo-text {
  color: var(--siimple-color-text);
}

.input {
  background-color: var(--siimple-color-background)
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  padding-left: 2rem;
  padding-right: 2rem;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.quattrocento-sans-bold {
  font-family: "Quattrocento Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Social media links */
.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--siimple-color-text);
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background-color: var(--siimple-color-primary);
    color: var(--siimple-color-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link svg {
    flex-shrink: 0;
}

/* Email links */
.email-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Email links - similar to social links but with different styling */
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    text-decoration: none !important;
    color: var(--siimple-color-text) !important;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.email-link:hover {
    background-color: var(--siimple-color-primary);
    color: var(--siimple-color-white) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Feature cards */
/* Save badge on pricing cards */
.save-badge {
    display: inline-block;
    background-color: #22c55e;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Card icons */
.card-icon {
    flex-shrink: 0;
}

.intelligence-card,
.pillar-card {
    border-radius: 0.75rem;
}

/* Equal height cards in flex rows */
.columns.has-items-stretch {
    display: flex;
    align-items: stretch;
}

.columns.has-items-stretch > .column.is-flex {
    display: flex;
}

.columns.has-items-stretch .is-flex-grow {
    flex-grow: 1;
    height: 100%;
}

.intelligence-card {
    border: 1.5px solid rgba(168, 85, 247, 0.3);
}

@media (prefers-color-scheme: dark) {
    .intelligence-card {
        border-color: rgba(168, 85, 247, 0.4);
    }

    .pillar-card [style*="color: #6366f1"] {
        color: #a5b4fc !important;
    }

    .pillar-card [style*="color: #a855f7"] {
        color: #c084fc !important;
    }

    .pillar-card [style*="color: #ec4899"] {
        color: #f9a8d4 !important;
    }

    .card-icon[style*="color: #3b82f6"] {
        color: #93c5fd !important;
    }

    .card-icon[style*="color: #a855f7"] {
        color: #c084fc !important;
    }

    .card-icon[style*="color: #ec4899"] {
        color: #f9a8d4 !important;
    }

    .card-icon[style*="color: #f97316"] {
        color: #fdba74 !important;
    }

    .card-icon[style*="color: #22c55e"] {
        color: #86efac !important;
    }
}

.intelligence-card,
.insight-card,
.pillar-card,
.feature-card,
.drop-card {
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intelligence-card:hover,
.insight-card:hover,
.pillar-card:hover,
.feature-card:hover,
.drop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .intelligence-card:hover,
    .insight-card:hover,
    .pillar-card:hover,
    .feature-card:hover,
    .drop-card:hover {
        box-shadow: 0 4px 16px rgba(255, 255, 255, 0.05);
    }
}

/* Mobile layout adjustments */
@media screen and (max-width: 640px) {
    /* Add vertical spacing between hero buttons on mobile */
    .button {
        margin-bottom: 1rem;
        margin-right: 0 !important;
        display: block;
        width: 100%;
    }

    .button:last-child {
        margin-bottom: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-link {
        justify-content: center;
    }
}

/* News page timeline styles */
@media screen and (min-width: 641px) {
    .timeline-line {
        display: block !important;
    }
}

/* News page mobile styles */
@media screen and (max-width: 640px) {
    .news-date {
        padding-right: 0 !important;
        margin-bottom: 0;
        align-items: flex-start !important;
    }
    
    .news-content {
        padding-left: 0 !important;
        margin-top: 0 !important;
    }
    
    .news-headline {
        margin: 0 0 4px 0 !important;
    }
    
    .news-item {
        padding-left: 1.5rem;
        position: relative;
    }
    
    .news-item .columns {
        margin-bottom: 4 !important;
    }
    
    .news-item .column {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .timeline-line {
        display: block !important;
        left: 0.5rem !important;
        right: auto !important;
        top: 0 !important;
        bottom: -3rem !important;
    }
}

/* Update log legend - flex row so the Drop badge stays aligned when wrapping */
.updatelog-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1rem;
}

.updatelog-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

/* Update log page mobile styles */
@media screen and (max-width: 640px) {
    .updatelog-version {
        padding-right: 0 !important;
        margin-bottom: 0;
        align-items: flex-start !important;
    }
    
    .updatelog-content {
        padding-left: 0 !important;
        margin-top: 0 !important;
    }
    
    .updatelog-headline {
        margin: 0 0 4px 0 !important;
    }
    
    .updatelog-item {
        padding-left: 1.5rem;
        position: relative;
    }
    
    .updatelog-item .columns {
        margin-bottom: 4 !important;
    }
    
    .updatelog-item .column {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .updatelog-item .timeline-line {
        display: block !important;
        left: 0.5rem !important;
        right: auto !important;
        top: 0 !important;
        bottom: 0 !important;
    }
}

/* Mobile menu override for dropdown behavior */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    display: none;
    background: none;
    border: none;
    height: auto;
    width: auto;
    opacity: 1;
    padding: 0;
}

/* Override mobile menu background and add border */
#mobile-menu .has-bg-muted {
    background-color: white !important;
    border: 1px solid var(--siimple-color-muted);
    color: var(--siimple-color-text);
}

/* Dark mode override for mobile menu */
@media (prefers-color-scheme: dark) {
    #mobile-menu .has-bg-muted {
        background-color: var(--siimple-color-dark) !important;
        color: var(--siimple-color-text);
    }
    
    /* Fix hamburger menu visibility in dark mode */
    #mobile-menu-toggle {
        background-color: var(--siimple-color-dark) !important;
        color: var(--siimple-color-text);
    }
}

/* Remove blue background from mobile menu download button */
#mobile-menu .button {
    background-color: transparent !important;
}

/* Add hover effect to mobile menu download button */
#mobile-menu .button:hover {
    background-color: var(--siimple-color-light) !important;
}

#mobile-menu.is-active {
    display: block;
}

#mobile-menu:before,
#mobile-menu:after {
    display: none;
}

/* Hero text responsive sizing */
@media screen and (max-width: 1024px) and (min-width: 641px) {
    .hero-main-title {
        font-size: 2rem !important; /* Hero title - tablet */
    }
    
    .hero-subtitle {
        font-size: 2rem !important; /* Hero subtitle - tablet */
    }
}

@media screen and (max-width: 640px) {
    .hero-main-title {
        font-size: 1.75rem !important; /* Hero title - mobile */
    }

    .hero-meet-title {
        font-size: 1.46rem !important; /* "Meet Beacon Intelligence" - mobile, scaled to match hero ratio */
    }

    .hero-subtitle {
        font-size: 1.5rem !important; /* Hero subtitle - mobile */
    }

    /* Shrink header logo and wordmark on mobile */
    header .logo-text {
        font-size: 1.25rem !important;
    }
    header a[href="/"] img {
        width: 2rem !important;
        height: auto;
    }
}

/* Header button height consistency */
nav .button {
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 0.25rem; /* Reduced corner radius to match AppStore badge */
}

/* AppStore badge light/dark mode switching */
.appstore-badge-link {
    display: inline-block;
    text-decoration: none;
    padding: 0 !important;
    background-color: transparent;
}

.appstore-badge {
    border-radius: 0.25rem; /* Match reduced button border-radius */
    height: 40px;
}

/* Light mode - show black badge, hide white badge */
.appstore-badge.light-mode {
    display: inline-block;
}

.appstore-badge.dark-mode {
    display: none;
}

/* Dark mode - show white badge, hide black badge */
@media (prefers-color-scheme: dark) {
    .appstore-badge.light-mode {
        display: none;
    }
    
    .appstore-badge.dark-mode {
        display: inline-block;
    }
}

/* Also handle manual dark mode class if used by the framework */
.is-dark .appstore-badge.light-mode,
[data-theme="dark"] .appstore-badge.light-mode {
    display: none;
}

.is-dark .appstore-badge.dark-mode,
[data-theme="dark"] .appstore-badge.dark-mode {
    display: inline-block;
}

/* Outlined button modifier */
.button.outlined {
    border: 1px solid var(--siimple-color-text);
    border-radius: 0.45em;
}

/* Header button hover effects */
nav .button:hover {
    background-color: var(--siimple-color-highlight);
}

/* Footer link hover effects */
footer a:hover {
  color:var(--siimple-color-primary);
}

/* Card background modifier */
.card.has-bg-subtle {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mailing list contrasting section */
.mailing-list-section {
    background-color: rgba(147, 197, 253, 0.15);
    margin-top: 6rem;
    padding: 4rem 0;
}

@media (prefers-color-scheme: dark) {
    .mailing-list-section {
        background-color: rgba(147, 197, 253, 0.1);
    }
}

/* Scroll-triggered fade-in-up animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(120px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === Hero Title Phrase Roller === */
.hero-main-title {
    font-weight: 800;
    letter-spacing: -0.015em;
}

.phrase-roller-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
}

/* Clipping window — shows exactly one phrase at a time.
   No background-clip here so overflow:hidden works correctly. */
.phrase-roller {
    display: inline-block;
    height: 1.15em;
    overflow: hidden;
    line-height: 1.15;
    position: relative;
}

/* The sliding strip of phrases */
.phrase-roller-strip {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* Gradient lives on each phrase cell (via .gradient-title), not on the
   clipping parent — keeps overflow:hidden and background-clip from conflicting. */
.phrase-roller-cell {
    display: block;
    height: 1.15em;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

/* Second line — hidden until the roller lands, then slides up */
.hero-second-line {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hero-second-line.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero video */
.hero-video {
    max-width: 340px;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.5rem;
    -webkit-mask-image: radial-gradient(ellipse at center, black 88%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 88%, transparent 100%);
}

.hero-video-dark { display: none; }

@media (prefers-color-scheme: dark) {
    .hero-video-light { display: none; }
    .hero-video-dark { display: block; }
}

/* Content below title — slides up after the phrase roller lands */
.hero-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Returning visit: skip to final state before paint */
.hero-done .hero-second-line,
.hero-done .hero-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}
.hero-done .phrase-roller-strip {
    transition: none;
}

/* Reduced motion: show everything immediately */
@media (prefers-reduced-motion: reduce) {
    .hero-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-second-line {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .phrase-roller-strip {
        transition: none;
    }
}
