
:root {
  --color-primary: #0088ff;
  --color-primary-dark: #0066cc;
  --color-accent: #00c9a7;
  --color-bg: #f5fbff;
  --color-bg-alt: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2.5rem;
}

/* Reset & base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout helpers */

/* Resources page grid layout */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr;      /* single column on mobile */
    gap: 1.5rem;
}
/* Glossary layout – single column on mobile */
.glossary-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Each glossary row (term + definition) */
.glossary-row {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: #ffffff;
}

/* Two-column layout on larger screens */
@media (min-width: 900px) {
    .glossary-row {
        display: grid;
        grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
        column-gap: 2rem;
        align-items: flex-start;
    }

    .glossary-term {
        font-weight: 600;
    }
}

/* Two-column layout on larger screens */
@media (min-width: 900px) {
    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Make cards play nice inside the grid */
.resources-grid .card {
    height: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

section {
  padding: var(--sp-xl) 0;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: var(--sp-sm);
  text-align: center;
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto var(--sp-lg);
  text-align: center;
}

/* Navbar */

/* Navbar */

.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-sm);
  padding-bottom: var(--sp-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.nav-brand .logo {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

/* Hamburger button – hidden on desktop by default */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile navbar: show hamburger, hide menu until open */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }

  /* Show the hamburger on mobile */
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Hide the full menu by default on mobile */
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: var(--sp-sm);
    background-color: #ffffff;
  }

  /* When navbar has .nav-open, show the menu */
  .navbar.nav-open .nav-menu {
    display: flex;
  }
}


.hero {
  /* Smooth AIMS Teal → AIMS Blue */
  background: linear-gradient(60deg, #0099A8 45%, #0066CC 55%);
  color: #ffffff;
  padding: 3.5rem 0 3.75rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

.hero-image {
  display: none;
}

/* CTA band */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
}

/* Base button style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Global defaults used lower on page */
.btn-primary {
  background: #0284c7;
  color: #ffffff;
}

.btn-primary:hover {
  background: #0369a1;
}

.btn-secondary {
  background: #10b981;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #059669;
}

/* HERO-ONLY OVERRIDES
   HTML order is: btn-secondary (left), btn-primary (right)
   We want LEFT = BLUE, RIGHT = GREEN in hero.
*/
.hero .btn-secondary {
  background: #0284c7;   /* blue left */
}

.hero .btn-secondary:hover {
  background: #0369a1;
}

.hero .btn-primary {
  background: #10b981;   /* green right */
}

.hero .btn-primary:hover {
  background: #059669;
}

.hero-tagline {
  margin: 0;
  font-size: 0.95rem;
}

.hero-tagline strong {
  color: #ffffff;
}


/* AI for Seniors intro */

.intro-seniors .list {
  max-width: 780px;
  margin: 0 auto;
  padding-left: 1.25rem;
  color: var(--color-text);
}

/* Cards & grids */

.card,
.benefit-card,
.story-card,
.blog-card,
.faq-item,
.tool-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--sp-md);
     }
.benefits {
  background-color: #f6fafc;
}

.benefits-grid,
.stories-grid,
.blog-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-md);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-md);
}

.benefit-icon {
  margin-bottom: var(--sp-sm);
}

/* Lightbulb & small icons */
.benefit-icon picture img,
.benefit-icon img {
  width: 40px;
  height: auto;
}

/* What you'll get */

.book-showcase .book-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--sp-xl);
  align-items: center;
}

.book-sample-placeholder {
  aspect-ratio: 16 / 10;
  background: #eef2ff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Book section */

.book-image img {
  max-width: 360px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
}

.book-features {
  padding-left: 1.2rem;
}

.book-cta {
  margin-top: var(--sp-md);
}

.book-note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Readers say */

.success-stories .quote-card {
  max-width: 640px;
  margin: 0 auto var(--sp-lg);
  text-align: center;
}

/* CTA section */

.cta {
  background-color: #f6fafc;
}

.cta-inner {
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

/* Tools */

.tools {
  background-color: #f8fbff;
}

.tool-icon {
  font-size: 1.5rem;
  margin-bottom: var(--sp-sm);
}

.tool-card button[disabled] {
  opacity: 0.7;
  cursor: default;
}

/* Persona stories */

.stories-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card {
  text-align: left;
}

.story-image {
  margin-bottom: var(--sp-sm);
}

.story-card img {
  width: 220px;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

/* Blog */

.blog-image {
  height: 140px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #00c9a7, #0088ff);
  margin-bottom: var(--sp-sm);
}

.blog-content h3 {
  margin-top: 0;
}

.blog-cta {
  margin-top: var(--sp-lg);
  display: flex;
  justify-content: center;
}

/* FAQ */

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Newsletter */

.newsletter {
  background-color: #f6fafc;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin: var(--sp-md) 0 var(--sp-sm);
}

.newsletter-form input {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  min-width: 200px;
}

.newsletter-privacy {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Footer */

.footer {
  background-color: #0f172a;
  color: #e5e7eb;
}

.footer a {
  color: #bfdbfe;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .container {
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-xl);
  align-items: flex-start;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: var(--sp-sm);
}

.footer-links ul,
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-social li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: var(--sp-lg);
  padding-top: var(--sp-sm);
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Archie chat widget */

#archie-chat-widget .chat-icon,
#archie-chat-widget .chat-header-icon {
  width: 48px;
  height: 48px;
}

/* Hide header owl + X so only round button shows */
#archie-chat-widget .chat-header-icon,
#archie-chat-widget .close-chat-button {
  display: none;
}

/* Utilities */

.muted {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 900px) {
  .book-showcase .book-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .stories-grid,
  .benefits-grid,
  .tools-grid,
  .blog-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-image {
  height: 32px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  color: #111827;
  font-size: 1rem;
}

/* Desktop nav */
.main-nav .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #111827;
}

.main-nav .nav-links a.active {
  color: #0b8cf4;
}

/* Hamburger button – hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: #111827;
  border-radius: 999px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .main-nav .nav-links {
    position: absolute;
    top: 64px;              /* just below header */
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    display: none;          /* hidden by default */
  }

  .site-header.nav-open .main-nav .nav-links {
    display: flex;          /* show when nav-open is toggled */
  }

  .nav-toggle {
    display: inline-flex;   /* show hamburger on mobile */
  }

  .main-nav {
    position: relative;
  }
}

  .navbar .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: var(--sp-sm);
  }

  .hero-cta {
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}
.faq-cta {
    margin-top: 1.75rem;  /* add breathing room under the cards */
    text-align: center;
}

/* ==== FAQ PAGE LAYOUT ADDITIONS (SAFE TO APPEND) ==== */

/* Main FAQ wrapper */
.page-content.faq-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* Section headings */
.faq-section {
  margin-bottom: 2.5rem;
}

.faq-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

/* FAQ accordion items */
.faq-item {
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  overflow: hidden;
}

/* Remove default triangle styles inconsistently rendered in some browsers */
.faq-item summary {
  list-style: none;
}

/* Hide default marker in WebKit/Blink */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Question row */
.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Add simple indicator ( + / – ) */
.faq-item summary::after {
  content: "+";
  margin-left: 0.75rem;
  font-weight: 600;
  opacity: 0.6;
}

/* When open, switch indicator */
.faq-item[open] summary::after {
  content: "–";
}

/* Hover / focus feedback */
.faq-item summary:hover,
.faq-item summary:focus-visible {
  background: rgba(0, 0, 0, 0.03);
}

/* Answer area */
.faq-answer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.85rem 1rem 1rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Paragraph spacing inside answers */
.faq-answer p + p {
  margin-top: 0.5rem;
}

/* CTA block under FAQ */
.faq-cta {
  margin-top: 3rem;
}

.faq-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 1.75rem 1.5rem 2.25rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.faq-cta-inner h2 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.faq-cta-inner p {
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

/* Make sure FAQ looks good on smaller screens */
@media (max-width: 600px) {
  .page-content.faq-page {
    padding: 2rem 1rem 3rem;
  }

  .faq-item summary {
    font-size: 0.98rem;
  }

  .faq-section h2 {
    font-size: 1.35rem;
  }
}
/* =========================================
   AIMS Global Mobile Nav Override v1
   (Navbar + hamburger for .navbar / .nav-menu / .nav-toggle)
   ========================================= */

/* Base hamburger button style (desktop + mobile) */
.navbar .nav-toggle {
  display: none;                 /* default: hidden on desktop */
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.navbar .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: #111827;
  border-radius: 999px;
}

/* Mobile layout: show hamburger, hide full menu until toggled */
@media (max-width: 768px) {
  .navbar .container {
    position: relative;
  }

  /* Show the hamburger on mobile */
  .navbar .nav-toggle {
    display: inline-flex !important;
  }

  /* Hide the menu by default on mobile */
  .navbar .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    padding: 12px 16px 16px;
    margin: 0;
    list-style: none;
    display: none !important;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    z-index: 50;
  }

  .navbar .nav-menu li {
    margin: 0;
  }

  .navbar .nav-menu a {
    display: block;
    width: 100%;
  }

  /* When the navbar has .nav-open (toggled via JS), show the menu */
  .navbar.nav-open .nav-menu {
    display: flex !important;
  }
}

/* Desktop: ensure full menu shows, hamburger hidden */
@media (min-width: 769px) {
  .navbar .nav-menu {
    display: flex !important;
  }

  .navbar .nav-toggle {
    display: none !important;
  }
}
/* =========================================
   AIMS Global Navbar Mobile Behavior v1
   Applies to: .navbar / .nav-menu / .nav-toggle
   ========================================= */

/* Base hamburger button style */
.navbar .nav-toggle {
  display: none; /* hidden by default (desktop) */
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.navbar .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: #111827;
  border-radius: 999px;
}

/* Desktop: full menu visible, no hamburger */
@media (min-width: 769px) {
  .navbar .nav-menu {
    display: flex !important;
  }

  .navbar .nav-toggle {
    display: none !important;
  }
}

/* Mobile: show hamburger, hide menu until toggled */
@media (max-width: 768px) {
  .navbar .container {
    position: relative;
  }

  .navbar .nav-toggle {
    display: inline-flex !important;
  }

  .navbar .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    padding: 12px 16px 16px;
    margin: 0;
    list-style: none;
    display: none !important;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    z-index: 50;
  }

  .navbar .nav-menu li {
    margin: 0;
  }

  .navbar .nav-menu a {
    display: block;
    width: 100%;
  }

  /* When the navbar has .nav-open, show the mobile menu */
  .navbar.nav-open .nav-menu {
    display: flex !important;
  }
}
.reassurance .faq-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
}

@media (max-width: 700px) {
    .reassurance .faq-grid {
        grid-template-columns: 1fr !important;
    }
}
/* About page two-card spacing fix */
.about-layout-two-column {
    gap: 1.5rem;
}
/* --- ABOUT PAGE VISUAL REFRESH TEST --- */

/* Softer, richer background behind the About page */
#about-hero,
#about-main,
#who-its-for,
#what-makes-different,
#how-it-works,
#founder-note,
#about-cta {
    background-color: #c0ece9; /* soft blue-green, more contrast */
}
.cards-grid {
    gap: 1.75rem !important;
}
/* Force Archie widget visible and pinned bottom-right */
#archie-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: block !important;
    z-index: 9999;
}

/* Make sure the little owl button is clickable */
#archie-chat-widget .chat-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}



