/* Aegio minimal custom styles – keep overrides light and portable */

:root {
  --aegio-purple: #6f42c1; /* approximate Bootstrap purple */
  --aegio-purple-dark: #5b36a1;
  --aegio-purple-very-dark: #2c155c;
  /* Very light background tint derived from brand purple */
  --aegio-purple-very-light: #eae0ff;
}

/* Page background below the hero: slightly darker than the hero's base purple */
body { background-color: var(--aegio-purple-dark); }

/* Brand theming */
.brand-logo { height: 36px; width: auto; display: block; }
.btn-primary {
  --bs-btn-bg: var(--aegio-purple);
  --bs-btn-border-color: var(--aegio-purple);
  --bs-btn-hover-bg: var(--aegio-purple-dark);
  --bs-btn-hover-border-color: var(--aegio-purple-dark);
  --bs-btn-active-bg: var(--aegio-purple-dark);
  --bs-btn-active-border-color: var(--aegio-purple-dark);
}

.text-primary { color: var(--aegio-purple) !important; }
.border-primary { border-color: var(--aegio-purple) !important; }
.bg-primary { background-color: var(--aegio-purple) !important; }

/* Heading color in non-hero (white/light) sections */
section:not(#top) h1,
section:not(#top) h2,
section:not(#top) h3,
section:not(#top) h4,
section:not(#top) h5,
section:not(#top) h6 {
  color: var(--aegio-purple-very-dark);
}

.bg-gradient-aegio {
  background: radial-gradient(1200px 400px at -5% -10%, rgba(255,255,255,.15), rgba(255,255,255,0)),
              linear-gradient(135deg, var(--aegio-purple) 0%, #8b5cf6 50%, #a78bfa 100%);
}

/* Founder's message section background: very light purple tint */
section#video { background-color: var(--aegio-purple-very-light); }

/* Utilities */
.opacity-85 { opacity: .85; }

/* Extend spacing scale a bit for hero sections */
.py-7 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
@media (min-width: 992px) {
  .py-lg-6 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
  .py-lg-7 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
}

/* Cards */
.feature img { object-fit: cover; }
.pricing-featured { transform: translateY(-6px); border: 1px solid rgba(0,0,0,.05); }
.pricing-featured .card-body { border-top: 0; }
/* Pricing table helpers */
.pricing-featured .btn { box-shadow: 0 .25rem .75rem rgba(111,66,193,.25); }
.pricing .card { border-radius: .75rem; }
.pricing .badge { font-weight: 500; }
/* Increase inner padding for pricing cards (double the previous values) */
.pricing .card-body { padding: 2.5rem 3rem; }
@media (min-width: 768px) {
  .pricing .card-body { padding: 3rem 3.5rem; }
}

/* Footer */
footer a { color: inherit; }
footer a:hover { color: var(--aegio-purple); }
/* Footer logo sizing */
.brand-logo-sm { height: 28px; width: auto; display: block; }

/* Dark footer to match page background purple */
.footer-dark {
  background-color: var(--aegio-purple-dark);
  color: #fff;
}
.footer-dark.border-top { border-top: 1px solid rgba(255,255,255,.15) !important; }
.footer-dark a { color: inherit; }
.footer-dark a:hover { color: #e0d4ff; }

.hero-with-illustration {
    position: relative;
    min-height: 480px;
    overflow: hidden;
}

/* Make hero content sit above the illustration */
.hero-with-illustration .container {
    position: relative;
    z-index: 2;
    padding-right: 2rem;
}

.hero-illustration-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    z-index: 1; /* behind the text */
}

.hero-illustration-img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
}

/* On smaller screens, stack: text above, image full-width below,
   and make the image bottom equal the hero bottom */
@media (max-width: 991.98px) {
    .hero-with-illustration {
        min-height: auto;
        padding-bottom: 0 !important;   /* override py-5 so no space under image */
        display: flex;
        flex-direction: column;         /* stack text (container) then image wrapper */
    }

    .hero-with-illustration .container {
        padding-right: 1rem;
        padding-bottom: 1.75rem;        /* spacing between text and image (above image) */
    }

    .hero-illustration-wrapper {
        position: static;               /* not pinned */
        height: auto;
        width: 100%;
        justify-content: center;
        pointer-events: auto;
    }

    .hero-illustration-img {
        height: auto;
        width: 100%;                    /* fill width left-to-right */
        max-width: none;
        display: block;
        margin-bottom: 0;               /* ensure no gap below image */
    }
}

/* Hero icon grid */
.icon-grid { color: #fff; }
.icon-grid .icon-tile {
  /* Very transparent white so tiles read lighter than the purple gradient */
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: .75rem;
  padding: .9rem .5rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-grid .icon-tile:hover { 
  background: rgba(255,255,255,0.22); 
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}
.icon-grid .icon-circle {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.icon-grid .small { color: #fff; opacity: .95; }

/* Hero icon tile variants shifted to translucent white (subtle variety in alpha) */
.tile-p1 { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.26); }
.tile-p2 { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.27); }
.tile-p3 { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }
.tile-p4 { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.30); }
.tile-p5 { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.31); }
.tile-p6 { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }
.tile-p7 { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.27); }
.tile-p8 { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.33); }
.tile-p9 { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); }

/* Small circular icons for grouped hero features */
.feature-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
}

/* Waitlist form tweaks */
.waitlist-form .form-control-lg {
    border-radius: .6rem;
}
.waitlist-form .btn-lg {
    border-radius: .6rem;
}

/* Optional: tighten hero spacing slightly on small screens */
@media (max-width: 575.98px) {
    .waitlist-form .form-control-lg {
        font-size: .95rem;
    }
}

/* Feature list/preview */
.feature-list .list-group-item { cursor: pointer; }
.feature-list .list-group-item.active {
  background-color: rgba(111,66,193,0.1);
  border-color: rgba(111,66,193,0.35);
  color: inherit;
}
.feature-list .fw-semibold { color: var(--aegio-purple-very-dark); }
.accordion-button > span.d-block:first-child { color: var(--aegio-purple-very-dark); }
.feature-preview img { width: 100%; height: auto; display: block; }

/* Make large buttons a bit smaller sitewide */
.btn-lg { font-size: 1rem; padding: .5rem 1rem; }

/* Mobile tweaks: make hero icon tiles noticeably smaller below 576px */
@media (max-width: 575.98px) {
  /* Add a bit more side padding to hero container so text/buttons aren't
     too close to the screen edges on small phones */
  header#top .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .icon-grid .icon-tile {
    padding: .45rem .35rem;
    /* Place icon and label on the same line to save vertical space */
    display: flex;
    align-items: center;
    gap: .5rem;
    text-align: left;
  }
  .icon-grid .icon-circle {
    width: 32px;
    height: 32px;
    /* Remove bottom margin used for stacked layout */
    margin: 0 !important;
  }
  .icon-grid .icon-circle svg {
    width: 16px;
    height: 16px;
  }
  .icon-grid .small {
    font-size: .7rem;
    line-height: 1.1;
    margin: 0 !important;
  }
  /* Tighten gutters within the hero icon grid only */
  .icon-grid .row {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: .5rem;
  }
  /* Reduce the card padding that wraps the icon grid on small screens */
  .icon-grid.card {
    padding: 1rem !important;
  }
}

/* How it works */
#how-it-works {
  background: #fff;
}
.how-steps .card { border-radius: .75rem; }
.how-steps .card:hover { transform: translateY(-2px); transition: transform .2s ease; }
.how-steps .step-badge {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  /* Lighter purple for improved visual softness while keeping white text readable */
  background: #8B6CF7;
  color: #fff; font-weight: 700;
  box-shadow: 0 .25rem .5rem rgba(139,108,247,.28);
}

/* Modes (Full Protection / Essential Monitoring / Custom) */
.modes-intro {
  background: #fff;
  /* override section-level text-white */
  color: var(--aegio-purple-very-dark) !important;
  /* When inside flex container, ensure intro spans full width */
  width: 100%;
}
.modes-intro h1,
.modes-intro h2,
.modes-intro h3,
.modes-intro h4,
.modes-intro h5,
.modes-intro h6 {
  color: var(--aegio-purple-very-dark) !important;
}
.modes-intro p { color: #6c757d !important; }

.modes-band .mode-title {
  color: #fff !important; /* headings should be white over gradient cards */
  font-size: 1.25rem; /* slightly smaller than the intro h3 */
  letter-spacing: -0.01em;
}
@media (min-width: 992px) {
  .modes-band .mode-title { font-size: 1.5rem; }
}

.mode-card {
  color: #fff;
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,.05);
  /* Use Bootstrap's shadow utilities on the element (shadow-sm) for consistency
     with feature tiles; remove custom box-shadow here to avoid stacking. */
  transition: transform .2s ease;
}
.mode-card:hover { transform: translateY(-2px); }
.mode-p1 {
  /* Primary brand purple, slightly lightened */
  background: linear-gradient(135deg, var(--aegio-purple) 0%, #7b57d0 100%);
}
.mode-p2 {
  /* Darker purple band */
  background: linear-gradient(135deg, var(--aegio-purple-dark) 0%, #6a46b1 100%);
}
.mode-p3 {
  /* Deep purple for strong contrast */
  background: linear-gradient(135deg, var(--aegio-purple-very-dark) 0%, #422075 100%);
}

/* Ensure list bullets are visible on dark backgrounds */
.mode-card ul { 
  padding-left: 1.1rem; 
}
.mode-card li { 
  margin-bottom: .25rem; 
}

/* Modes band acts as a simple block wrapper; columns are managed by .modes-columns */
.modes-band { display: block; }

/* Flex wrapper for the three colored segments */
.modes-columns {
  display: flex;
  flex-direction: column; /* stack on mobile */
}
@media (min-width: 992px) {
  .modes-columns { flex-direction: row; } /* 3 columns on lg+ */
}

/* Individual colored segments */
.modes-segment {
  flex: 1 1 0;
  min-width: 0;          /* prevent overflow when side-by-side */
}
.modes-segment--blue {
  background: linear-gradient(135deg, #3B82F6 0%, #2F6AEF 50%, #2563EB 100%);
}
.modes-segment--pink {
  background: linear-gradient(135deg, #E11D70 0%, #EC4899 50%, #DB2777 100%);
}
.modes-segment--orange {
  background: linear-gradient(135deg, #E36414 0%, #F28C18 50%, #F59E0B 100%);
}

/* Gradient feature cards for Modes */
.mode-card--blue {
  background: linear-gradient(135deg, #3B82F6 0%, #2F6AEF 50%, #2563EB 100%);
}
.mode-card--pink {
  background: linear-gradient(135deg, #E11D70 0%, #EC4899 50%, #DB2777 100%);
}
.mode-card--orange {
  background: linear-gradient(135deg, #E36414 0%, #F28C18 50%, #F59E0B 100%);
}

