/* ========== Home page polish — loaded last on index.html ==========
   Fixes contrast left over from the old dark theme (white text/buttons on the now-light
   sections), the overlapping ecosystem orbit, and tightens a few components. */

/* ---- Buttons: secondary buttons default to a navy outline on light sections ---- */
.cta-btn.secondary {
    background: #ffffff;
    border-color: #16336b;
    color: #16336b;
}
.cta-btn.secondary:hover {
    background: #16336b;
    border-color: #16336b;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(22, 51, 107, 0.22);
}
/* …and stay white-on-transparent where the background is dark */
.hero .cta-btn.secondary,
.cta-section .cta-btn.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}
.hero .cta-btn.secondary:hover,
.cta-section .cta-btn.secondary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #16336b;
}
.cta-btn:focus-visible,
.portal-card:focus-visible,
.ivf-btn:focus-visible {
    outline: 3px solid #27b566;
    outline-offset: 3px;
}

/* ---- Patient journey: line runs through the number circles, not the titles ---- */
.timeline-line {
    top: calc(2rem + 26px);
    transform: none;
    height: 3px;
    opacity: .55;
}
.step-number { position: relative; z-index: 1; }

/* ---- Doctor cards (Biomexa Connect): readable initials and status ---- */
.doctor-avatar { color: #ffffff; font-weight: 700; letter-spacing: .02em; }
.doctor-name { color: #13213d; }
.doctor-meta, .doctor-bio { color: #5b6b86; }
.doctor-status.available { background: #e9f7ef; color: #11663a; }
.doctor-status.offline { background: #eef0f5; color: #5b6b86; }

/* ---- Ecosystem: four-stage flow instead of the overlapping orbit ---- */
.eco-flow {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
}
.eco-stage {
    background: #ffffff;
    border: 1px solid #e2e8f2;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(19, 33, 61, 0.05);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.eco-stage-head { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .5rem; border-bottom: 1px solid #eef1f6; }
.eco-stage-num { color: #1c9a55; font-weight: 800; font-size: .8rem; letter-spacing: .08em; }
.eco-stage-name { color: #16336b; font-weight: 800; font-size: 1.15rem; }
.eco-node { display: flex; gap: .7rem; align-items: flex-start; }
.eco-node-icon {
    flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: #f3f6fb; font-size: 1.15rem;
}
.eco-node-title { color: #13213d; font-weight: 700; font-size: .92rem; line-height: 1.3; }
.eco-node-desc { color: #5b6b86; font-size: .8rem; line-height: 1.45; margin-top: 2px; }
.eco-arrow { align-self: center; color: #1c9a55; font-size: 1.5rem; font-weight: 700; }
.eco-caption { text-align: center; color: #5b6b86; max-width: 640px; margin: 2rem auto 0; font-size: .95rem; }
@media (max-width: 1100px) {
    .eco-flow { grid-template-columns: 1fr 1fr; }
    .eco-arrow { display: none; }
}
@media (max-width: 640px) {
    .eco-flow { grid-template-columns: 1fr; }
}

/* ---- Portals: tidy, consistent card grid ---- */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 960px) { .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .portal-grid { grid-template-columns: 1fr; } }
.portal-grid > a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.75rem !important;
}
.portal-grid > a > p { flex: 1; }
.portal-card {
    background: #ffffff; border: 1px solid #e2e8f2; border-radius: 20px; text-decoration: none; color: #13213d;
    text-align: center; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.portal-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(19, 33, 61, 0.1); }
.portal-icon { font-size: 3rem; margin-bottom: 1rem; }
.portal-card h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.portal-card p { color: #5b6b86; line-height: 1.6; margin-bottom: 1.5rem; }
.portal-btn { display: inline-block; padding: .75rem 1.5rem; border-radius: 10px; font-weight: 600; color: #ffffff; }
.portal-ivf { border-color: #f1cddd; }
.portal-ivf:hover { border-color: #b83a6e; }
.portal-ivf h3 { color: #962a57; }
.portal-ivf .portal-btn { background: linear-gradient(135deg, #16336b, #b83a6e); }
.portal-new { background: #b83a6e; color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; vertical-align: 4px; }

/* ---- Contact band (dark blue): light, readable links ---- */
.cta-contact { color: rgba(255, 255, 255, 0.55); }
.cta-contact a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.cta-contact a:hover { color: #8fe3b4; }

/* ---- Footer: logo was being filtered to white on a white footer ---- */
.footer-brand .logo-full-img { filter: none; height: 34px; }

/* ---- Small readability touches ---- */
.value-num { color: #8a97ad; }
.section-subtitle { color: #5b6b86; }

/* ---- Product gallery: gentle tilt instead of a full 360° spin (the flat photo looked
   cut off or mirrored mid-turn) ---- */
.gallery-plinth .product-spin {
    animation: galleryTilt 7s ease-in-out infinite;
    box-shadow: 0 16px 34px rgba(19, 33, 61, 0.18);
    backface-visibility: hidden;
}
@keyframes galleryTilt {
    0%, 100% { transform: perspective(900px) rotateY(-8deg) translateY(0); }
    50% { transform: perspective(900px) rotateY(8deg) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-plinth .product-spin { animation: none; }
}
.gallery-card { transform-style: flat !important; isolation: isolate; }
.gallery-plinth .product-spin { transform-style: flat; position: relative; z-index: 1; }

/* ---- Food interaction table: stack rows as cards on phones (it was cut off) ---- */
@media (max-width: 700px) {
    .food-table-wrapper { overflow: visible; background: transparent; box-shadow: none; }
    .food-table, .food-table tbody, .food-table tr, .food-table td { display: block; width: 100%; min-width: 0 !important; }
    .food-table thead { display: none; }
    .food-table tr {
        background: #ffffff !important; border: 1px solid #e2e8f2; border-radius: 14px;
        padding: .9rem 1rem; margin-bottom: .75rem; box-shadow: 0 4px 14px rgba(19,33,61,.05);
    }
    .food-table td { padding: .2rem 0 !important; border: none !important; }
    .food-table td:nth-child(2) { margin: .15rem 0 .35rem; }
}

/* ========== Oct 2026 home reorganisation: start strip, Biomexa Care, About divider ========== */
.nav-links .nav-care { color: #13804a !important; font-weight: 700; }

/* Three ways to start */
.start-section { padding-top: 4.5rem; padding-bottom: 3rem; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: 1180px; margin: 0 auto; }
.start-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f2; border-radius: 22px; padding: 1.75rem 1.5rem 1.5rem; text-decoration: none; color: #13213d; box-shadow: 0 1px 2px rgba(19,33,61,.05), 0 8px 24px rgba(19,33,61,.07); transition: transform .2s, box-shadow .2s, border-color .2s; }
.start-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(19,33,61,.12); border-color: #c7d4ea; }
.start-card h3 { font-size: 1.2rem; margin: .75rem 0 .5rem; }
.start-card p { color: #5b6b86; line-height: 1.6; font-size: .95rem; flex: 1; }
.start-ic { font-size: 2rem; }
.start-num { position: absolute; top: 1.1rem; right: 1.2rem; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eaf0fb; color: #16336b; font-weight: 800; font-size: .85rem; }
.start-go { margin-top: 1rem; color: #16336b; font-weight: 700; font-size: .92rem; }
.start-card-care { background: linear-gradient(150deg, #16336b 0%, #1f4494 70%, #2458b8 100%); color: #fff; border-color: transparent; }
.start-card-care p { color: #d6e1f7; }
.start-card-care .start-go { color: #8ff0b8; }
.start-card-care .start-num { background: rgba(255,255,255,.18); color: #fff; }

/* Biomexa Care */
.care-section { padding-top: 5rem; }
.care-wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.5rem; align-items: stretch; }
.care-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.care-benefit { display: flex; gap: .9rem; background: #fff; border: 1px solid #e2e8f2; border-radius: 18px; padding: 1.25rem; box-shadow: 0 1px 2px rgba(19,33,61,.05), 0 8px 24px rgba(19,33,61,.06); }
.care-benefit > span { font-size: 1.6rem; line-height: 1; }
.care-benefit b { display: block; color: #13213d; margin-bottom: .3rem; }
.care-benefit p { color: #5b6b86; font-size: .9rem; line-height: 1.55; margin: 0; }
.care-plans { background: linear-gradient(160deg, #f1faf5 0%, #ffffff 60%); border: 2px solid rgba(28,154,85,.35); border-radius: 22px; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.care-plan { position: relative; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; background: #fff; border: 1px solid #e2e8f2; border-radius: 14px; padding: .9rem 1.1rem; }
.care-plan b { color: #13213d; }
.care-plan em { width: 100%; font-style: normal; color: #13804a; font-size: .8rem; font-weight: 700; }
.care-price { font-size: 1.5rem; font-weight: 800; color: #13213d; letter-spacing: -.02em; }
.care-price small { font-size: .85rem; color: #5b6b86; font-weight: 600; }
.care-plan-best { border: 2px solid #1c9a55; }
.care-ribbon { position: absolute; top: -10px; right: 12px; background: #1c9a55; color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.care-cta { justify-content: center; text-align: center; margin-top: .25rem; }
.care-note { color: #5b6b86; font-size: .8rem; text-align: center; margin: 0; }

/* About divider — separates patient content from partner / investor sections */
.about-divider { max-width: 900px; margin: 2rem auto 0; padding: 4rem 1.5rem 0; text-align: center; border-top: 1px solid #e2e8f2; }
.about-divider h2 { font-family: var(--font-display, inherit); font-size: clamp(1.6rem, 3vw, 2.4rem); color: #13213d; margin: .5rem 0; }
.about-divider p { color: #5b6b86; line-height: 1.6; }

/* Portal card for Biomexa Care */
.portal-care { border-color: rgba(28,154,85,.45) !important; background: linear-gradient(160deg, #f1faf5 0%, #ffffff 70%) !important; }

@media (max-width: 960px) {
  .start-grid { grid-template-columns: 1fr; max-width: 560px; }
  .care-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .care-benefits { grid-template-columns: 1fr; }
  .start-section, .care-section { padding-left: 1rem; padding-right: 1rem; }
}
.portal-care h3 { color: #13804a; }
.portal-care .portal-btn { background: linear-gradient(135deg, #16336b, #1c9a55); }

/* ========== Hero stats (restored) ========== */
.hero-stats { flex-wrap: wrap; gap: 2.5rem 3.5rem; }
.hero .stat-item { max-width: 230px; }
.hero .stat-label { font-size: .9rem; line-height: 1.45; margin-top: .35rem; }
.stat-prefix { font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 700; color: #5fe39a; }
.hero-stats-source { margin-top: 1.4rem; font-size: .74rem; color: rgba(214,225,247,.7); }
.hero-stats-source em { font-style: italic; }

/* ========== Section backgrounds: alternate so neighbouring sections never blend ==========
   .section is max 1400px wide, so the colour is extended edge to edge with a box-shadow. */
#challenge, #journey, #connect-doctor, #care, #products, #solution, #ai-pharmacist, #ecosystem, #dashboard, #value, #portals {
  box-shadow: 0 0 0 100vmax var(--sec-bg); clip-path: inset(0 -100vmax); background: var(--sec-bg) !important;
}
#challenge     { --sec-bg: #ffffff; }
#journey       { --sec-bg: #edf2fb; }
#connect-doctor{ --sec-bg: #ffffff; }
#care          { --sec-bg: #e9f6ef; }
#products      { --sec-bg: #ffffff; }
#solution      { --sec-bg: #eef2fa; }
#ai-pharmacist { --sec-bg: #ffffff; }
#ecosystem     { --sec-bg: #e9f0fb; }
#dashboard     { --sec-bg: #ffffff; }
#value         { --sec-bg: #eef7f2; }
#portals       { --sec-bg: #ffffff; }
#journey, #care, #solution, #ecosystem, #value { border-top: 1px solid #dfe6f2; border-bottom: 1px solid #dfe6f2; }

/* ========== AI Pharmacist (3D phone) ========== */
.aip-wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; }
.aip-copy .section-tag, .aip-copy .section-title, .aip-copy .section-subtitle { text-align: left; }
.aip-copy .section-subtitle { margin: 0 0 1.5rem; max-width: 560px; }
.aip-list { list-style: none; display: grid; gap: .9rem; margin: 0 0 1.75rem; padding: 0; }
.aip-list li { display: flex; gap: .9rem; align-items: flex-start; background: #f6f8fc; border: 1px solid #e2e8f2; border-radius: 16px; padding: .9rem 1rem; transition: transform .2s, box-shadow .2s; }
.aip-list li:hover { transform: translateX(4px); box-shadow: 0 10px 24px rgba(19,33,61,.08); }
.aip-list li > span { font-size: 1.4rem; line-height: 1; }
.aip-list b { color: #13213d; display: block; margin-bottom: .2rem; }
.aip-list p { color: #5b6b86; font-size: .9rem; line-height: 1.5; margin: 0; }
.aip-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.aip-stage { position: relative; height: 560px; perspective: 1400px; display: flex; align-items: center; justify-content: center; }
.aip-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(39,181,102,.28), rgba(31,68,148,.12) 55%, transparent 72%); filter: blur(6px); }
.aip-phone { position: relative; width: 270px; height: 530px; border-radius: 42px; background: linear-gradient(160deg, #1d2a44, #0f1a30); padding: 12px; box-shadow: 0 40px 80px rgba(19,33,61,.35), inset 0 0 0 2px rgba(255,255,255,.08); transform-style: preserve-3d; transform: rotateY(-18deg) rotateX(8deg); animation: aipFloat 6s ease-in-out infinite; transition: transform .25s ease-out; }
.aip-phone.tilting { animation: none; }
@keyframes aipFloat { 0%,100% { transform: rotateY(-18deg) rotateX(8deg) translateY(0); } 50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-14px); } }
.aip-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #0f1a30; border-radius: 0 0 14px 14px; z-index: 2; }
.aip-screen { height: 100%; border-radius: 32px; background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 40%); overflow: hidden; padding: 38px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.aip-head { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #16336b, #1f4494); color: #fff; border-radius: 16px; padding: 9px 10px; }
.aip-head b { display: block; font-size: .82rem; } .aip-head small { color: #c3d2f0; font-size: .66rem; }
.aip-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 1rem; }
.aip-live { margin-left: auto; font-size: .62rem; color: #8ff0b8; font-weight: 700; }
.aip-msg { font-size: .72rem; line-height: 1.45; padding: 8px 10px; border-radius: 14px; max-width: 88%; opacity: 0; animation: aipMsg .5s ease forwards; }
.aip-user { align-self: flex-end; background: #16336b; color: #fff; border-bottom-right-radius: 4px; }
.aip-bot { align-self: flex-start; background: #fff; color: #13213d; border: 1px solid #e2e8f2; border-bottom-left-radius: 4px; box-shadow: 0 4px 10px rgba(19,33,61,.06); }
.aip-msg:nth-of-type(2) { animation-delay: .3s; } .aip-msg:nth-of-type(3) { animation-delay: 1.1s; } .aip-msg:nth-of-type(4) { animation-delay: 1.9s; } .aip-msg:nth-of-type(5) { animation-delay: 2.7s; }
@keyframes aipMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.aip-voice { display: flex; align-items: center; gap: 3px; font-size: .66rem; color: #13804a; font-weight: 700; margin-top: 2px; }
.aip-voice span { width: 3px; height: 10px; background: #1c9a55; border-radius: 2px; animation: aipWave 1s ease-in-out infinite; }
.aip-voice span:nth-child(2) { animation-delay: .1s } .aip-voice span:nth-child(3) { animation-delay: .2s } .aip-voice span:nth-child(4) { animation-delay: .3s } .aip-voice span:nth-child(5) { animation-delay: .4s; margin-right: 6px; }
@keyframes aipWave { 0%,100% { transform: scaleY(.4) } 50% { transform: scaleY(1.4) } }
.aip-chips { margin-top: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.aip-chips em { font-style: normal; font-size: .62rem; font-weight: 600; color: #16336b; background: #eaf0fb; border: 1px solid #d5e0f4; border-radius: 99px; padding: 4px 8px; }
.aip-qr { position: absolute; left: 4%; bottom: 14%; background: #fff; border: 1px solid #e2e8f2; border-radius: 16px; padding: 10px; box-shadow: 0 18px 36px rgba(19,33,61,.16); text-align: center; transform: rotate(-8deg) translateZ(40px); animation: aipBob 5s ease-in-out infinite; }
.aip-qr span { display: block; font-size: .68rem; font-weight: 700; color: #16336b; margin-top: 6px; }
.aip-qr-code { width: 62px; height: 62px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.aip-qr-code i { background: #13213d; border-radius: 3px; } .aip-qr-code i:nth-child(2n) { background: #1c9a55; } .aip-qr-code i:nth-child(5) { background: transparent; border: 3px solid #13213d; }
.aip-float { position: absolute; background: #fff; border: 1px solid #e2e8f2; border-radius: 12px; padding: 8px 12px; font-size: .78rem; font-weight: 700; color: #13213d; box-shadow: 0 14px 30px rgba(19,33,61,.14); animation: aipBob 5s ease-in-out infinite; }
.aip-f1 { right: 2%; top: 16%; animation-delay: -1.5s; } .aip-f2 { right: 6%; bottom: 20%; animation-delay: -3s; color: #c0262d; }
@keyframes aipBob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ========== Ecosystem: rotating 3D ring ========== */
.eco-3d { position: relative; height: 470px; perspective: 1600px; display: flex; align-items: center; justify-content: center; margin-top: 1rem; touch-action: pan-y; cursor: grab; user-select: none; }
.eco-3d.dragging { cursor: grabbing; }
.eco-ring { position: relative; width: 290px; height: 390px; transform-style: preserve-3d; transform: rotateX(-6deg) rotateY(var(--eco-rot, 0deg)); }
.eco-ring .eco-stage { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateY(calc(var(--i) * 90deg)) translateZ(var(--eco-r, 250px)); background: #ffffff; border: 1px solid #d9e2f1; border-radius: 22px; padding: 1.25rem; box-shadow: 0 24px 50px rgba(19,33,61,.14); display: flex; flex-direction: column; gap: .7rem; transition: opacity .2s; overflow: hidden; }
.eco-ring .eco-stage::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #16336b, #1c9a55); }
.eco-ring .eco-stage-name { font-size: 1.3rem; }
.eco-ring .eco-node { background: #f6f8fc; border-radius: 12px; padding: .55rem .65rem; }
.eco-hub { position: absolute; z-index: 0; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #2458b8, #16336b 70%); color: #fff; box-shadow: 0 0 0 14px rgba(31,68,148,.08), 0 0 0 30px rgba(28,154,85,.06); transform: translateZ(-1px); }
.eco-hub b { font-size: 1.15rem; } .eco-hub span { font-size: .78rem; color: #c3d2f0; }
.eco-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; color: #5b6b86; font-size: .82rem; margin-top: .5rem; }
.eco-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cfd8e6; background: #fff; color: #16336b; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 14px rgba(19,33,61,.08); }
.eco-btn:hover { background: #16336b; color: #fff; }

@media (max-width: 960px) {
  .aip-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .aip-copy .section-tag, .aip-copy .section-title, .aip-copy .section-subtitle { text-align: center; }
  .aip-copy .section-subtitle { margin-left: auto; margin-right: auto; }
  .aip-cta { justify-content: center; }
  .aip-stage { height: 520px; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 1.5rem; }
  .aip-stage { height: 480px; transform: scale(.88); }
  .aip-qr { left: -2%; } .aip-f1 { right: -2%; } .aip-f2 { right: 0; }
  .eco-3d { height: 430px; }
  .eco-ring { width: 250px; height: 380px; }
  .eco-ring .eco-stage { padding: 1rem; gap: .5rem; }
  .eco-ring .eco-node-desc { font-size: .74rem; }
  .eco-hub { width: 110px; height: 110px; }
  .eco-controls span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aip-phone, .aip-qr, .aip-float, .aip-voice span { animation: none !important; }
  .aip-msg { opacity: 1; animation: none; }
}
/* 3D fit-and-finish */
.eco-3d { height: 600px; margin-top: 0; }
.eco-ring { height: 470px; }
.eco-ring .eco-stage { gap: .55rem; padding: 1.1rem 1.1rem 1rem; }
.eco-ring .eco-node { padding: .5rem .6rem; }
.eco-ring .eco-node-title { font-size: .88rem; }
.eco-ring .eco-node-desc { font-size: .76rem; line-height: 1.4; }
.eco-controls { margin-top: 1.25rem; }
.aip-stage { height: 620px; }
.aip-phone { height: 580px; }
@media (max-width: 600px) {
  .eco-3d { height: 560px; }
  .eco-ring { width: 250px; height: 460px; }
  .aip-stage { height: 560px; }
}

/* ================= Phones: a much shorter home page =================
   Long card lists become swipeable rows, grids go two-up, decorative
   extras are hidden, and spacing is tightened. Nothing is removed on desktop. */
@media (max-width: 600px) {
  .section { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .section-header { margin-bottom: 1.75rem !important; }
  .section-title { font-size: 1.55rem !important; }
  .section-subtitle { font-size: .95rem !important; }

  /* swipe rows */
  .problem-grid, .journey-steps, .dash-capabilities, .start-grid {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem !important;
    padding: 4px 4px 12px !important; margin: 0 -1rem !important; padding-left: 1rem !important; padding-right: 1rem !important;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .problem-grid::-webkit-scrollbar, .journey-steps::-webkit-scrollbar, .dash-capabilities::-webkit-scrollbar { display: none; }
  .problem-card, .journey-step, .dash-cap { flex: 0 0 72% !important; scroll-snap-align: center; min-width: 0 !important; }
  .problem-arrow { display: none !important; }
  .timeline-line { display: none !important; }
  .disease-tabs { flex-wrap: nowrap !important; overflow-x: auto; justify-content: flex-start !important; scrollbar-width: none; margin-bottom: 1rem !important; }
  .disease-tabs::-webkit-scrollbar { display: none; }
  .disease-tab { flex: none; }
  .journey-detail-cards { grid-template-columns: 1fr 1fr !important; gap: .6rem !important; }
  .journey-detail-card { padding: .9rem !important; }
  .journey-detail-card p { font-size: .82rem !important; }
  .vulnerable-patients { padding: 1rem !important; margin-top: 1rem !important; }
  .vulnerable-patients p { font-size: .88rem !important; }

  /* hero */
  .hero { min-height: auto !important; padding: 6.5rem 1rem 3rem !important; }
  .scroll-indicator { display: none !important; }
  .hero-stats { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: .75rem !important; margin-top: 2rem !important; }
  .hero .stat-number { font-size: 1.6rem !important; }
  .hero .stat-suffix, .stat-prefix { font-size: 1.1rem !important; }
  .hero .stat-label { font-size: .72rem !important; }

  /* IVF promo: keep the message, drop the mock-up */
  .ivf-promo-card { display: none !important; }
  .ivf-promo { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .ivf-promo-list li { font-size: .88rem; }

  /* value cards two-up */
  .value-grid { grid-template-columns: 1fr 1fr !important; gap: .6rem !important; }
  .value-card { padding: 1rem !important; }
  .value-card p { font-size: .8rem !important; line-height: 1.45 !important; }
  .value-num { font-size: 1.6rem !important; }

  /* portals: compact two-up tiles */
  #portals { padding: 3rem 1rem !important; }
  .portal-grid { grid-template-columns: 1fr 1fr !important; gap: .6rem !important; }
  .portal-grid > a { padding: 1rem .75rem !important; }
  .portal-grid > a > div:first-child, .portal-icon { font-size: 1.8rem !important; margin-bottom: .4rem !important; }
  .portal-grid > a h3 { font-size: 1rem !important; margin-bottom: .3rem !important; }
  .portal-grid > a p { display: none !important; }
  .portal-grid > a span:last-child, .portal-btn { padding: .45rem .7rem !important; font-size: .78rem !important; }

  /* doctors / products / contact / footer */
  .connect-risk-banner { padding: 1rem !important; }
  .cta-section { padding: 3rem 1rem !important; }
  .footer { padding: 2.5rem 1rem 1.5rem !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.5rem 1rem !important; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col a { padding: .2rem 0 !important; font-size: .85rem !important; }
}
