* {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

body, p, li {
  font-family: 'Lato', sans-serif;
}

code, pre {
  font-family: 'Fira Code', monospace;
}

html {
    box-sizing: border-box;
    font-size: 16px;
    background: linear-gradient(135deg, #ffffff, #c3c3f3, #0046f6);
    background-size: 400% 400%;
}

header {
    top: 20px;
    background-color: #15256d;
    display: flex;
    justify-content: center;
    border-bottom: silver 5px solid;
}

.nav-bar {
    height: 3rem;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 1rem;
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-bar li {
    display: inline-flex;
    flex-direction: column;
    padding: 0rem 1rem;
    color: white;
}

.nav-bar a {
    color: white;
    text-decoration: none;
}

.page-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 2rem 0 2rem;
    text-align: center;
}
 
.page-header h1, .page-header h2, .page-header h3 {
    padding-bottom: 1rem;
}

.summary-section-container, .summary-section-details-container, .summary-section-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
    margin: 2rem 2rem;
}

.summary-section-item {
    text-align: center;
    border: slateblue 5px solid;
    padding: 3rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
}

.summary-section-item p {
    margin-bottom: 1rem;
}

.summary-section-item h3 {
    margin: 0.75rem;
}

/* CSS Styles */

.product-teardown-container h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.product-teardown-container {
  margin: 2rem;
  border:#003d80 5px solid;
  border-radius: 0.5rem;
  box-sizing: border-box;
  padding: 2rem;
}

.teardown-slider {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.teardown-slides {
  width: 100%;
  height: 560px; /* fixed so the section never resizes between slides */
}

.teardown-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

.teardown-slide.active {
  display: grid;
  height: 100%;
}

.slide-media {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #07050f;
  border-radius: 6px;
  overflow: hidden;
}

.slide-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #333;
}

.slide-details {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
    padding-top: 1rem;
}

.slide-details h4 {
  margin: 0;
  font-size: 1.25rem;
  color: #15256d;
}

.slide-details p {
  margin: 0;
  line-height: 1.5;
  color: #2645c5;
  font-size: 0.95rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.slider-btn {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: 1px solid #0056b3;
  background-color: #0056b3;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.slider-btn:hover {
  background-color: #003d80;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #555555;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.slider-dots .dot.active {
  background-color: #0056b3;
}

.prd-embed-container, .user-journey-embed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem;
    padding: 2rem;
    background-color: white; /* Solid white background for document readability against the page gradient */
    border: #0046f6 5px solid;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.prd-embed-container h3, .user-journey-embed-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #15256d; /* Matches your header nav color */
}

.iframe-wrapper {
    width: 100%;
    max-width: 900px; /* Constrains the width so it doesn't stretch awkwardly on ultra-wide monitors */
    height: 65vh; /* Responsive height based on viewport */
    min-height: 500px; /* Fallback for smaller screens */
    border: 2px solid silver;
    border-radius: 0.25rem;
    overflow: hidden; /* Ensures the iframe respects the border radius */
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none; /* Removes default browser iframe borders */
}

.footer {
    display: flex;
    justify-content: center;
    align-content: center;
    height: 4em;
    background-color: #15256d;
    position: relative;
    border-top: silver 5px solid;
}

.copyright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.copyright p {
    color: silver;
    font-size: 1.25rem;
}

/* Mobile responsiveness */
/* Live demo embed */
.demo-open-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background-color: #0056b3;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.iframe-wrapper.demo-wrapper {
  max-width: 1200px;
  height: 80vh;
  min-height: 600px;
}

@media (max-width: 768px) {
  /* use the full phone width instead of a narrow strip between big margins */
  .prd-embed-container,
  .user-journey-embed-container,
  .product-teardown-container {
    margin: 1rem 0.5rem;
    padding: 1rem 0.5rem;
    border-width: 3px;
  }

  .product-teardown-container h3 {
    margin-bottom: 1rem;
  }

  .prd-embed-container > p {
    max-width: 100% !important;
  }

  .iframe-wrapper.demo-wrapper {
    height: calc(100vh - 9rem);
    height: calc(100svh - 9rem);
    min-height: 480px;
    max-height: 780px;
  }

  .teardown-slides {
    height: 700px;
  }

  .teardown-slide {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 50%) minmax(0, 1fr);
    gap: 1rem;
  }

  /* Prev / Next sit side by side on one row, the dots wrap onto their own row below */
  .slider-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .slider-btn {
    flex: 1 1 0;
    min-height: 44px;
  }

  .slider-dots {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .slider-dots .dot {
    width: 12px;
    height: 12px;
  }
}

/* Footer at the bottom: on a short page it sits at the foot of the window, on a long page after the content */
body {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  padding-bottom: calc(4em + 5px); /* room for the footer, which is 4em tall plus its 5px border */
}

footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Phones: less padding inside the summary cards so the text is not squeezed into a narrow column. */
@media (max-width: 480px) {
    .summary-section-container, .summary-section-details-container, .summary-section-results-container { margin: 1.5rem 1rem; gap: 1.5rem; }
    .summary-section-item { padding: 1.5rem 1rem; }
}

/* ---- api-section-styles (moved from inline <style>) ---- */
/* API Integrations section */
.api-section-container {
  margin: 2rem;
  padding: 2rem;
  background: white;
  border: #0046f6 5px solid;
  border-radius: 0.5rem;
  box-sizing: border-box;
  text-align: left;
}

.api-section-container > h3 {
  text-align: center;
  color: #15256d;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.api-intro, .api-note {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  color: #1b2a5a;
}

.api-takeaway {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 1rem 1.25rem;
  background: #eef2ff;
  border-left: 5px solid #0046f6;
  border-radius: 0.25rem;
}

.api-subhead {
  margin: 2rem 0 1rem;
  text-align: center;
  color: #15256d;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
}

.api-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.api-flow-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.75rem;
  background: #eef2ff;
  border: 2px solid slateblue;
  border-radius: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.api-flow-step strong { color: #15256d; font-size: 0.95rem; }
.api-flow-step span { color: #2645c5; font-size: 0.8rem; line-height: 1.35; }

.api-flow-arrow {
  align-self: center;
  color: #0046f6;
  font-size: 1.4rem;
  font-weight: 700;
}

.api-card-grid, .api-practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.api-card {
  border: 3px solid slateblue;
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #ffffff;
}

.api-card h4 { margin: 0; color: #15256d; font-size: 1.15rem; font-family: 'Poppins', sans-serif; }

.api-card ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.api-card li { line-height: 1.45; font-size: 0.95rem; color: #1b2a5a; }

.api-auth {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #c3c3f3;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #15256d;
}

.api-badge {
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  font-family: 'Lato', sans-serif;
}
.api-badge-live { background: #0056b3; }
.api-badge-research { background: #5b4bc4; }
.api-badge-paper { background: #2a7d5b; }
.api-badge-readonly { background: #a35a00; }

.api-practice-grid { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.api-practice {
  padding: 1rem 1.25rem;
  background: #eef2ff;
  border-radius: 0.5rem;
}
.api-practice h5 { margin: 0 0 0.4rem; color: #15256d; font-size: 1rem; font-family: 'Poppins', sans-serif; }
.api-practice p { font-size: 0.92rem; line-height: 1.5; color: #1b2a5a; }

@media (max-width: 900px) {
  .api-flow { flex-direction: column; }
  .api-flow-arrow { transform: rotate(90deg); }
}

@media (max-width: 768px) {
  .api-section-container {
    margin: 1rem 0.5rem;
    padding: 1rem 0.75rem;
    border-width: 3px;
  }
}

/* API section: scope checklist, process, decisions, roles */
.api-section-container + .api-section-container { margin-top: 0; }

.api-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.api-scope {
  padding: 1rem 1.25rem;
  background: #eef2ff;
  border-radius: 0.5rem;
  border-top: 4px solid #0046f6;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.api-scope h5 { margin: 0; color: #15256d; font-size: 1.02rem; font-family: 'Poppins', sans-serif; }
.api-scope p { font-size: 0.92rem; line-height: 1.5; color: #1b2a5a; }

.api-status {
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #2a7d5b;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
}

.api-process {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.api-process-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.75rem;
  background: #eef2ff;
  border: 2px solid slateblue;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}
.api-process-step b {
  align-self: center;
  width: 1.6rem; height: 1.6rem;
  line-height: 1.6rem;
  border-radius: 50%;
  background: #0046f6;
  color: white;
  font-size: 0.9rem;
}
.api-process-step strong { color: #15256d; font-size: 0.92rem; }
.api-process-step span { color: #2645c5; font-size: 0.8rem; line-height: 1.35; }

.api-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 1.25rem;
}
.api-decision {
  border: 3px solid slateblue;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.api-said {
  padding: 0.85rem 1.1rem;
  background: #eef2ff;
  font-style: italic;
  line-height: 1.5;
  color: #15256d;
  font-size: 0.95rem;
}
.api-effect {
  padding: 0.85rem 1.1rem;
  line-height: 1.5;
  font-size: 0.92rem;
  color: #1b2a5a;
}

.api-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.25rem;
}
.api-split-col {
  padding: 1.1rem 1.25rem;
  border-radius: 0.5rem;
  border: 3px solid;
}
.api-split-mine { border-color: #0046f6; }
.api-split-claude { border-color: slateblue; background: #f6f7ff; }
.api-split-col h5 { margin: 0 0 0.6rem; color: #15256d; font-size: 1.05rem; font-family: 'Poppins', sans-serif; }
.api-split-col ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.api-split-col li { line-height: 1.45; font-size: 0.93rem; color: #1b2a5a; }

@media (max-width: 900px) {
  .api-process { flex-direction: column; }
}
@media (max-width: 768px) {
  .api-split { grid-template-columns: 1fr; }

  /* Card groups become swipeable rows on phones: one card fills most of the screen and the next peeks in */
  .api-card-grid, .api-scope-grid, .api-decision-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 0.75rem;
    margin: 0 -0.25rem;
    scrollbar-width: thin;
  }
  .api-card-grid > *, .api-scope-grid > *, .api-decision-grid > * {
    flex: 0 0 84%;
    scroll-snap-align: start;
    box-sizing: border-box;
  }
  .api-section-container .api-swipe-hint { display: block; text-align: center; font-size: 0.8rem; font-weight: 700; color: #2645c5; margin: -0.25rem 0 0.5rem; }
}
  .api-swipe-hint { display: none; }

/* ---- teardown-layout-styles (moved from inline <style>) ---- */
/* Product Teardown: screenshot stage on top, description card underneath (desktop) */
@media (min-width: 769px) {
  .teardown-slides { height: 700px; }
  @media (max-width: 1000px) { .teardown-slides { height: 780px; } }
  .teardown-slide { grid-template-columns: 1fr; grid-template-rows: 470px minmax(0, 1fr); gap: 1.25rem; }
  .teardown-slide.active { height: 100%; }
  .slide-media { background: radial-gradient(ellipse at 50% 0%, #1b1550 0%, #0a0818 70%); border: 1px solid #2a2470; border-radius: 10px; padding: 14px; box-sizing: border-box; box-shadow: 0 6px 18px rgba(10, 8, 24, 0.25); }
  .slide-media img { border: 1px solid #3a3480; border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); }
  .slide-details { height: auto; max-width: 56rem; width: 100%; margin: 0 auto; padding: 1.1rem 1.5rem 1.25rem; box-sizing: border-box; align-self: start; background: #f3f5ff; border: 1px solid #d6dcf5; border-left: 5px solid #2645c5; border-radius: 8px; gap: 0.6rem; overflow: visible; }
  .slide-details h4 { font-size: 1.3rem; }
  .slide-details p { font-size: 1rem; line-height: 1.6; color: #1f2f7a; }
}
.prd-embed-container .demo-lead { text-align: center; max-width: 700px; margin: 0 0 1.5rem; }
.prd-embed-container .demo-action { margin: 0 0 1.5rem; }
