body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f7fa;
  color: #333;
}

section {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

h2 {
  color: #1565C0;
}

h3 {
  margin-top: 20px;
  color: #0d47a1;
}

a {
  color: #1565C0;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* HEADER */

.site-header {
  background: #1565C0;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  padding: 3px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.brand-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.main-nav {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Language Menu */

.lang-menu {
  position: relative;
  margin-left: 6px;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.45);
  color: white;
  border-radius: 10px;
  padding: 6px 9px;
  cursor: pointer;
  font-weight: 700;
}

.lang-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  overflow: hidden;
  min-width: 120px;
  z-index: 2000;
}

.lang-dropdown a {
  display: block;
  padding: 9px 12px;
  color: #1565C0;
  text-decoration: none;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.lang-dropdown a:hover {
  background: #f1f5f9;
}

.lang-menu.open .lang-dropdown {
  display: block;
}
/* BANNER */

.banner {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 16px;
}

.banner img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* MODULE ICON STRIP */

.modules-section {
  text-align: center;
  margin: 16px auto 6px;
  padding: 10px 12px;
}

.modules-section h2 {
  font-size: 18px;
  color: #2c3e50;
  margin: 0 0 12px;
}

.module-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.module-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #0d47a1;
  font-size: 13px;
  font-weight: 700;
}

.module-icons a:hover {
  text-decoration: none;
}

.module-icons span {
  line-height: 1.1;
}

.module-icons img {
  width: 54px;
  height: 54px;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}

.module-icons img:hover {
  transform: scale(1.1);
}

/* HERO */
.module-hero {
  max-width: 900px;
  margin: 18px auto;
  padding: 24px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 22px;
}

.module-hero img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.module-hero h1 {
  color: #1565C0;
  margin: 0 0 8px;
}

.module-hero p {
  margin: 0;
  line-height: 1.5;
}

/* REFERENCIES */
.module-content {
  max-width: 900px;
  margin: 18px auto;
  padding: 24px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.module-content h2 {
  color: #1565C0;
  margin-top: 22px;
}

.module-content p {
  line-height: 1.6;
}

.module-content ul {
  padding-left: 20px;
}

.module-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.disclaimer-small {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e3e8f0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  font-style: italic;
  background: transparent;
}

.disclaimer-small::before {
  content: "* ";
  font-weight: bold;
  color: #444;
}

@media (max-width: 640px) {
  .module-content {
    margin: 12px;
    padding: 18px 16px;
  }
}

.clinical-list,
.refs {
  margin-top: 10px;
  padding-left: 18px;
}

.clinical-list li,
.refs li {
  margin-bottom: 8px;
}

.refs a {
  color: #1565C0;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}

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

@media (max-width: 640px) {
  .module-hero {
    padding: 18px;
    gap: 14px;
  }

  .module-hero img {
    width: 64px;
    height: 64px;
  }
}

.hero {
  max-width: 900px;
  margin: 24px auto 18px;
  padding: 18px 20px;
  background: white;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.hero h1 {
  color: #1565C0;
  margin-top: 0;
}

/* CARDS */

.cards {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.step,
.module-card,
.story-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e3e8f0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  
}

.card {
  padding: 20px;
}

.card h2 {
  margin-top: 0;
}

/* STORYTELLING */

.screenshots {
  max-width: 900px;
  margin: 16px auto 20px;
  padding: 30px 20px;
  text-align: center;
  background: #f1f5f9;
  border-radius: 20px;
}

.screenshots-intro {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #555;
  line-height: 1.6;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 22px;
  justify-items: center;
  align-items: start;
  position: relative;
}

.story-grid::before {
  content: "";
  position: absolute;
  top: 42%;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(to right, #d0d7df, #b7c0ca);
  z-index: 0;
}


.story-card {
  width: 100%;
  max-width: 280px;
  min-height: 100%;
  box-sizing: border-box;
}

.story-card:nth-child(2) {
  transform: scale(1.05);
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.story-card:nth-child(2):hover {
  transform: scale(1.05) translateY(-6px);
}

.story-card img {
  width: 100%;
  max-width: 160px;
  display: block;
  margin: 0 auto 14px;
  border-radius: 26px;
  padding: 6px;
  background: #111;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.25),
    inset 0 0 0 2px rgba(255,255,255,0.08);
}

.story-card h3 {
  color: #0d47a1;
  margin: 8px 0 6px;
  font-size: 18px;
}

.story-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.45;
}

/* WORKFLOW */

.workflow {
  max-width: 1000px;
  margin: 20px auto;
  padding: 28px 20px;
  text-align: center;
}

.workflow-intro {
  color: #555;
  max-width: 680px;
  margin: 0 auto 24px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  padding: 22px 18px;
}

.step-number {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #1565C0;
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin-bottom: 8px;
}

/* MODULE DETAIL CARDS */

.modules {
  max-width: 1000px;
  margin: 20px auto;
  padding: 28px 20px;
  text-align: center;
}

.modules-intro {
  color: #555;
  max-width: 720px;
  margin: 0 auto 24px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.module-card {
  padding: 22px 18px;
}

.module-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.module-card h3 {
  margin: 8px 0;
}

.module-card p {
  font-size: 14px;
  line-height: 1.5;
}

.module-link {
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  text-decoration: none;
}

/* LEGAL PAGES */

.container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

main p {
  line-height: 1.6;
}

/* FOOTER */

.site-footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  color: #666;
  background: #eef2f7;
  border-top: 1px solid #d8dee8;
  font-size: 14px;
}

.site-footer nav {
  margin-top: 8px;
}

.site-footer a {
  color: #1565C0;
  font-weight: 600;
  text-decoration: none;
  margin: 0 6px;
}

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

.site-footer span {
  color: #999;
}

.contact {
  margin-top: 10px;
  font-size: 14px;
}

.contact-note {
  margin-top: 4px;
  font-size: 13px;
  color: #777;
}

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 0.45rem;

  margin-top: 0.5rem;
}

.footer-contact-label {
  font-weight: 700;
  color: #555;
}

/* TABLET */

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .story-card,
  .story-card:nth-child(2) {
    width: 100%;
    max-width: 210px;
    min-height: 100%;
    transform: none;
  }

  .story-card img {
    max-width: 115px;
  }

  .story-card h3 {
    font-size: 18px;
  }

  .story-card p {
    font-size: 14px;
  }

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

/* MOBILE */

@media (max-width: 640px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    font-size: 17px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .main-nav {
    order: 2;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    gap: 12px;
    padding-top: 4px;
  }

  .main-nav a {
    font-size: 13px;
  }

 .banner {
    margin-top: 10px;
    padding: 0 10px;
  }

  .banner img {
    max-height: 135px;
    object-fit: cover;
    border-radius: 12px;
  }

  .module-icons {
    max-width: 300px;
    gap: 8px;
  }

  .module-icons img {
    width: 52px;
    height: 52px;
  }

  .modules-section {
    margin-top: 10px;
    padding: 6px 10px;
  }

  .modules-section h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .hero {
    margin: 16px auto 6px;
    padding: 12px 12px;
  }

  .cards,
  .workflow-steps,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .screenshots {
    margin: 16px auto 20px;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 12px 12px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-card h3 {
    grid-column: 1;
    font-size: 18px;
    margin: 0 0 4px;
  }

  .story-card p {
    grid-column: 1;
    font-size: 14px;
    line-height: 1.35;
    margin: 0;
  }


  .story-grid::before {
    display: none;
  }

  .story-card,
  .story-card:nth-child(2) {
    max-width: none;
    width: auto;
    margin: 0;
    padding: 12px;
    transform: none;
    display: grid;
    grid-template-columns: 1fr 86px;
    gap: 12px;
    align-items: center;
    text-align: left;
  }

  .story-card img {
    grid-column: 2;
    grid-row: 1 / span 3;
    max-width: 72px;
    padding: 3px;
    border-radius: 16px;
    margin: 0;
  }

  .story-card:hover,
  .story-card:nth-child(2):hover {
    transform: none;
  }

  .value-card {
    max-width: 900px;
    margin: 14px 12px;
    padding: 20px 16px;
    background: #ffffff;
    border-left: 6px solid #1565C0;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }

  .value-card h2 {
    margin-top: 0;
  }

  .value-card p {
    font-size: 15px;
    line-height: 1.6;
  }

  .modules-section h2,
  .hero h1,
  .value-card h2,
  .screenshots h2 {
    color: #1565C0;
    font-size: 26px;
    text-align: center;
  }

  .modules-section {
    margin: 10px auto 0;
    padding: 8px 12px;
  }

  .value-card {
    margin: 12px auto;
    text-align: left;
  }

  .value-card h2 {
    margin-bottom: 12px;
  }

   section {
    padding-top: 16px;
    padding-bottom: 16px;
  }
    
}

.term-link {
  border: none;
  background: transparent;
  color: #1565C0;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.term-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}

.term-modal[hidden] {
  display: none;
}

.term-modal-box {
  background: white;
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  position: relative;
}

.term-modal-box h3 {
  margin-top: 0;
  color: #1565C0;
}

.term-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.hero,
.value-card,
.screenshots,
.workflow,
.modules,
.module-content,
.module-hero {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.story-card,
.card,
.step,
.module-card {
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .hero,
  .value-card,
  .screenshots,
  .workflow,
  .modules,
  .module-content,
  .module-hero {
    margin-left: 12px;
    margin-right: 12px;
  }
}

.module-switcher {
  margin-top: 0;
  padding-top: 4px;
  padding-bottom: 8px;
}

.module-switcher .module-icons img {
  width: 42px;
  height: 42px;
}

.module-switcher .module-icons span {
  font-size: 12px;
}
.module-switcher .module-icons a.active img {
  transform: scale(1.25);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

.module-switcher .module-icons a.active span {
  color: #1565C0;
  font-weight: 700;
}

.module-switcher .module-icons a.active::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #1565C0;
  border-radius: 50%;
  margin-top: 4px;
}

.module-switcher .module-icons a:hover img {
  transform: scale(1.08);
}

.module-switcher {
  margin-top: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e3e8f0;
}

/* =========================================
   DOWNLOAD PAGE
========================================= */

.download-page {
  max-width: 1000px;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.download-hero,
.download-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #e3e8f0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.download-hero {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  padding: 26px 24px;
  text-align: center;
}

.download-kicker {
  margin: 0 0 0.5rem;
  color: #607d8b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.download-hero h1 {
  color: #1565C0;
  margin: 0 0 1rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.download-card {
  padding: 1.5rem;
}

.download-card h2 {
  margin-top: 0;
}

.download-note {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: #f1f5f9;
  border-left: 4px solid #1565C0;
}

.download-note p {
  margin-bottom: 0;
}

/* FORM */

.download-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.download-form label {
  font-weight: 700;
  color: #34495e;
}

.download-form input,
.download-form select,
.download-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 2px solid #b8c4d2;
  background: #ffffff;
  color: #333;
  font: inherit;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.download-form textarea {
  resize: vertical;
  min-height: 120px;
}

.download-form input:focus,
.download-form select:focus,
.download-form textarea:focus {
  outline: none;
  border-color: #1565C0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(21,101,192,0.16);
}

.download-check {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
}

.download-check input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-top: 0.05rem;
  accent-color: #1565C0;
  flex-shrink: 0;
  cursor: pointer;
}

.download-check a {
  font-weight: 700;
}

.download-form button {
  margin-top: 1rem;
  width: 100%;
  min-height: 58px;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 16px;
}

.download-alt {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: #666;
}

/* MOBILE */

@media (max-width: 700px) {
  .download-page {
    padding-top: 1rem;
  }

  .download-card,
  .download-hero {
    padding: 1.2rem;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }
}
.download-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
}


.download-store-button-secondary {
  margin-top: 0.75rem;
  background: #fff;
  color: #1565c0;
  border: 1px solid #1565c0;
}
