  /* ===========================================================
     SOMAIT MAIN STYLESHEET
     Author: Somait
     Last updated: October 2025
     =========================================================== */

  /* -----------------------------
     Base + Reset
  ----------------------------- */
  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

  :root {
    --bg: #FAFDFF;
    --hero: #D8E2E9;
    --accent: #E2D8CF;
    --border: #CACFD3;
    --text: #1F1F1F;
    --muted: #5B6467;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

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

  a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  a:hover {
    opacity: 0.8;
  }

  /* -----------------------------
     Navigation
  ----------------------------- */
  .nav {
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    background: rgba(250, 253, 255, 0.85);
    border-bottom: 1px solid var(--border);
    z-index: 10;
  }
  .nav-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .logo-header-nav {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
  }

  /* Responsive logo size */
  @media (max-width: 768px) {
    .logo-header-nav {
      height: 50px;
    }
  }

  .nav a {
    margin-left: 16px;
    font-weight: 500;
  }

  .btn {
    background: var(--accent);
    color: #1E1E1E;
    padding: 10px 20px;
    border-radius: 24px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
  }
  .btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }

/* Responsive fix for nav button on small screens */
@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .nav .btn {
    margin-top: 10px;
    display: inline-block;
    width: auto;
  }

  .nav-links {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
}

  /* -----------------------------
     Hero Section
  ----------------------------- */
  .hero {
    background: var(--hero);
    text-align: center;
    padding: 80px 20px;
  }
  .hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
  }
  .hero .lead {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 24px;
  }

  /* -----------------------------
     Card Section (three intro cards)
  ----------------------------- */
  .section {
    padding: 60px 20px;
  }
  .grid.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
  }
  .card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .card h3 {
    margin-bottom: 8px;
  }
  .card p {
    color: var(--muted);
  }

  /* -----------------------------
     Definition Bar (full-width banner)
  ----------------------------- */
.definition-bar {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #0f0f10;
  color: #fff;
  padding: 40px 0; /* reduced top/bottom space */
}

.definition-bar .definition-content {
  max-width: 800px; /* slightly narrower for better readability */
  margin: 0 auto;
  padding: 0 24px; /* reduced side padding */
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
}

  .definition-title {
    color: #fff;
    border-bottom: 1px solid var(--accent);
    display: inline-block;
    padding-bottom: 2px;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
  }
  .definition-bar em,
  .definition-bar .example {
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
  }
  .definition-bar ol {
    margin: 8px 0 12px 22px;
  }
  .definition-bar li {
    margin-bottom: 6px;
  }
  .definition-bar p {
    margin-bottom: 10px;
  }

  /* -----------------------------
     Exercises Section
  ----------------------------- */
.exercise-intro {
  max-width: 820px;      /* Keeps text comfortably narrow */
  margin: 0 auto;        /* Centers horizontally */
  padding: 0 32px;       /* Adds space from edges */
  text-align: center;    /* Centers heading + paragraph */
}

.exercise-intro h2 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
}

.exercise-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #222;
}

.exercise-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 32px;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .exercise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }
  .exercise-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
  }
  .exercise-content h3 {
    margin-top: 0;
    font-weight: 700;
  }
  .exercise-content p {
    margin-bottom: 16px;
    line-height: 1.6;
  }
  .exercise-content ul {
    margin-left: 20px;
    line-height: 1.5;
  }

  /* -----------------------------
     Story Sections
  ----------------------------- */
  .story-intro {
    background: #0f0f10;
    color: #fff;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    padding: 40px 20px;
  }
  .story-intro em {
    display: block;
    margin-bottom: 12px;
    color: #e6e6e6;
  }
  .story-section {
    background: var(--hero);
    text-align: center;
    padding: 60px 20px;
  }
  .story-section h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }
  .story-img {
    width: 100%;
    max-width: 640px;
    border-radius: 16px;
    margin: 0 auto 28px;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
  .story-section p {
    max-width: 700px;
    margin: 0 auto 16px;
    color: var(--muted);
    line-height: 1.7;
  }

  /* -----------------------------
     Footer
  ----------------------------- */
  .footer {
    padding: 28px 0;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: var(--hero);
  }
  .footer p {
    max-width: 700px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 0.9rem;
  }

  /* -----------------------------
     Animations
  ----------------------------- */

  /* Default gentle fade-up */
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ==== Alternate: dynamic rise (commented out) ==== */
  /*
  .fade-up {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  */

/* === Early-Access Section === */
.early-access-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.early-access-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.early-access-content .lead {
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  margin-bottom: 32px;

/* Center content on pages */
.container {
  margin: 0 auto;
  text-align: center;
}

/* Optional: keep text left-aligned inside paragraphs */
.container p {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
}
}

/* make the embedded form display at full width of its container */
.form-frame {
  width: 100%;
  height: 825px;           /* adjust until the full Brevo form fits */
  border: none;
  display: block;
  margin: 0 auto 24px;
}

@media (max-width: 768px) {
  .form-frame {
    height: 950px; /* Brevo forms usually stack vertically on small screens */
  }
}

.early-access-content .small {
  font-size: 14px;
  color: #444;
  margin-top: 12px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.gallery img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* App Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.gallery img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* Form Wrapper (Early Access Page) */
.form-wrapper {
  margin-top: 32px;
  width: 100%;
}

.form-wrapper form {
  width: 100%;
  display: block;
}

iframe, .form-wrapper {
  border: none;
  overflow: visible;
  max-width: 100%;
}


/* === Sources & Methods === */
.sources-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: left;
}

.sources-content h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sources-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  margin-bottom: 24px;
  text-align: center;
}

.sources-content ul {
  list-style-type: disc;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
}

.sources-content li {
  margin-bottom: 8px;
}

/* ================================
   Layout fixes (App & Early Access)
   ================================ */

/* Center the page content blocks */
.section > .container,
.container {
  width: min(1100px, 92vw);  /* a nice max-width with responsive shrink */
  margin-inline: auto;       /* center horizontally */
  padding-inline: 20px;      /* breathing room at the edges */
}

/* Headings centered; paragraph text readable and left-aligned */
.section > .container h1,
.section > .container h2 {
  text-align: center;
}
.section > .container .lead,
.section > .container p {
  max-width: 760px;
  margin-inline: auto;       /* center the paragraph block itself */
  text-align: left;
}

/* Center the App gallery and make it responsive */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  justify-items: center;     /* center each image in its grid cell */
}
.gallery img {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

/* =========================================
   Nav button: prevent overlap on small view
   ========================================= */
.nav-inner {
  display: flex;             /* ensure flex used consistently */
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-links {                 /* make sure this exists as a flex row */
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav .btn { white-space: nowrap; } /* keep the pill button on one line */

@media (max-width: 860px) {
  /* Let the header wrap neatly and center items */
  .nav-inner { flex-wrap: wrap; justify-content: center; }

  /* Put logo on its own row, centered */
  .brand { flex-basis: 100%; display: flex; justify-content: center; }

  /* Center the nav links on the next row */
  .nav-links { flex-basis: 100%; justify-content: center; order: 2; }

  /* Put the CTA button last, centered, with a bit of space */
  .nav .btn { order: 3; margin-top: 8px; }
}

/* Make sure iframes (Brevo form) center and don’t overflow */
.form-wrapper,
.sib-form,
#sib-form-container,
#sib-container {
  margin-inline: auto !important;
  max-width: 700px !important;
}

/* === Blog post layout === */
.blog-post-body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #f5f6f7;
  color: #222;
  margin: 0;
  padding: 0;
}

.blog-post-main {
  max-width: 750px;
  background-color: #fff;
  margin: 3rem auto;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.blog-post-main h2 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
  color: #222;
}

.blog-post-main em {
  color: #666;
  display: inline;
  margin-bottom: 0;
}

.blog-post-main p {
  line-height: 1.75;
  margin-bottom: 1.3rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
