/* Tidal Genomics — page styles (self-contained; does not use ../style.css) */

:root {
    --blue: #0e24cd;
    --blue-deep: #060f5c;
    --blue-soft: #e9ecff;
    --ink: #0b1150;
    --muted: #4b55a0;
    --paper: #ffffff;
    --radius: 20px;
    --shadow: 6px 6px 0 var(--blue);
    --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
    --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap { width: min(1040px, 100% - 3rem); margin-inline: auto; }

/* ---------- Sparkles ---------- */
.spark { width: 1em; height: 1em; fill: currentColor; display: inline-block; flex: none; }
.twinkle { animation: twinkle 3.6s ease-in-out infinite; }
.twinkle.d1 { animation-delay: .8s; }
.twinkle.d2 { animation-delay: 1.7s; }
@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: .35; transform: scale(.7) rotate(20deg); }
}

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--blue); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .6rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span {
    font-family: var(--display); font-size: 1.5rem; letter-spacing: .04em;
    color: var(--blue); line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a:not(.btn) {
    text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--muted);
}
.nav-links a:not(.btn):hover { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--body); font-weight: 800; font-size: .95rem;
    text-decoration: none; letter-spacing: .02em;
    padding: .65rem 1.3rem;
    border: 2.5px solid var(--blue); border-radius: 999px;
    background: var(--blue); color: #fff;
    box-shadow: 4px 4px 0 var(--blue-deep);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--blue-deep); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--blue-deep); }
.btn.ghost { background: #fff; color: var(--blue); box-shadow: 4px 4px 0 var(--blue); }
.btn.ghost:hover { box-shadow: 2px 2px 0 var(--blue); }
.btn.big { font-size: 1.1rem; padding: .85rem 1.8rem; }
.btn.small { font-size: .85rem; padding: .45rem 1rem; box-shadow: 3px 3px 0 var(--blue-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 1.5rem 0 4.5rem; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0 0 auto auto;
    width: 55%; height: 100%;
    background-image: radial-gradient(var(--blue) 1.3px, transparent 1.6px);
    background-size: 15px 15px;
    opacity: .14;
    -webkit-mask-image: linear-gradient(to left, #000, transparent 85%);
    mask-image: linear-gradient(to left, #000, transparent 85%);
    pointer-events: none;
}
.banner {
    position: relative;
    border: 2.5px solid var(--blue); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; background: #fff;
}
.banner img { width: 100%; height: auto; }
.hero-copy { position: relative; margin-top: 3rem; }
.kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue); background: var(--blue-soft);
    padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
h1 {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(2.8rem, 8vw, 5.2rem); line-height: .98; letter-spacing: .01em;
    color: var(--blue); margin-bottom: 1.1rem;
}
.lede { font-size: 1.3rem; line-height: 1.65; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; list-style: none; }
.chips li {
    font-weight: 800; font-size: .85rem;
    border: 2px solid var(--blue); color: var(--blue);
    padding: .3rem .85rem; border-radius: 999px; background: #fff;
}
.hero-spark { position: absolute; color: var(--blue); }
.hero-spark.a { right: 6%; top: 3.2rem; font-size: 2.4rem; }
.hero-spark.b { right: 16%; top: 9rem; font-size: 1.1rem; }
.hero-spark.c { right: 3%; top: 12rem; font-size: 1.5rem; }

/* ---------- Chapters (sections) ---------- */
.chapter { padding: 4.5rem 0; position: relative; }
.chapter-tag {
    display: flex; align-items: center; gap: .6rem;
    font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .6rem;
}
.chapter-tag .num {
    font-family: var(--display); font-size: 1.6rem; letter-spacing: .05em; color: var(--blue);
}
h2 {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1; letter-spacing: .01em;
    color: var(--blue); margin-bottom: 1.2rem;
}
.chapter p + p { margin-top: 1rem; }
.chapter .intro { font-size: 1.14rem; line-height: 1.75; }

.panel {
    background: #fff; border: 2.5px solid var(--blue); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.6rem 1.7rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.panel:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--blue); }
.panel h3 {
    font-family: var(--display); font-weight: 400; font-size: 1.6rem;
    letter-spacing: .03em; color: var(--blue); line-height: 1.1; margin-bottom: .5rem;
}
.panel p { font-size: .98rem; line-height: 1.6; color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; margin-top: 2.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2.2rem; }

.tools {
    display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
    margin-top: 2.2rem; font-size: .9rem; font-weight: 700; color: var(--muted);
}
.tools .tool {
    font-weight: 800; color: var(--blue); background: var(--blue-soft);
    padding: .3rem .85rem; border-radius: 10px;
}

/* ---------- Cohort (inverted band) ---------- */
.band { position: relative; background: var(--blue); color: #fff; margin-top: 3rem; }
.band .wave {
    position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); top: auto;
    width: 100%; height: 70px; display: block;
}
.band .wave path { fill: var(--blue); }
.band .chapter-tag { color: #bcc4ff; }
.band .chapter-tag .num, .band h2 { color: #fff; }
.band .intro { color: #e6e9ff; }

.batch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; margin-top: 2.4rem; }
.batch {
    background: #fff; color: var(--ink);
    border: 2.5px solid var(--blue-deep); border-radius: var(--radius);
    box-shadow: 6px 6px 0 var(--blue-deep); padding: 1.7rem;
}
.batch .label {
    font-weight: 800; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.batch .dates { font-family: var(--display); font-size: 2.3rem; line-height: 1.05; color: var(--blue); margin: .2rem 0 .8rem; letter-spacing: .02em; }
.batch .dates small { font-size: 1.1rem; color: var(--muted); letter-spacing: .06em; }
.batch ul { list-style: none; font-size: .95rem; }
.batch li { display: flex; gap: .6rem; align-items: baseline; margin-top: .3rem; }
.batch li .spark { color: var(--blue); font-size: .7rem; transform: translateY(1px); }

.price-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
    margin-top: 2.4rem; padding-top: 1.8rem; border-top: 2px dashed rgba(255, 255, 255, .45);
}
.price { font-family: var(--display); font-size: 3.4rem; line-height: 1; letter-spacing: .02em; }
.price small { display: block; font-family: var(--body); font-size: .85rem; font-weight: 700; color: #bcc4ff; letter-spacing: .04em; margin-top: .3rem; }
.band .btn { background: #fff; color: var(--blue); border-color: #fff; box-shadow: 4px 4px 0 var(--blue-deep); }

/* ---------- Curriculum timeline ---------- */
.timeline { list-style: none; position: relative; margin-top: 2.6rem; padding-left: 0; }
.timeline::before {
    content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px;
    border-left: 3px dashed var(--blue); opacity: .35;
}
.day { position: relative; padding-left: 4.6rem; margin-bottom: 1.8rem; }
.day:last-child { margin-bottom: 0; }
.day .node {
    position: absolute; left: 0; top: 1.1rem;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--blue); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2.5px var(--blue);
    display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; letter-spacing: .03em;
}
.day .panel { padding: 1.3rem 1.6rem; }
.day .when {
    font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
    margin-bottom: .1rem;
}
.day h3 { font-size: 1.75rem; }
.day .tag {
    display: inline-block; margin-top: .7rem; font-size: .75rem; font-weight: 800;
    color: var(--blue); background: var(--blue-soft); padding: .15rem .65rem; border-radius: 999px;
}
.cert-note {
    margin-top: 2.4rem; display: flex; gap: .8rem; align-items: flex-start;
    background: var(--blue-soft); border-radius: var(--radius); padding: 1.2rem 1.5rem; font-size: .98rem;
}
.cert-note .spark { color: var(--blue); font-size: 1.3rem; margin-top: .2rem; }

/* ---------- Instructor ---------- */
.instructor { display: grid; grid-template-columns: 220px 1fr; gap: 2.4rem; align-items: center; margin-top: 2rem; }
.instructor .badge img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: 52% 20%; border: 4px solid var(--blue); }
.instructor ul { list-style: none; margin-top: 1rem; }
.instructor li { display: flex; gap: .7rem; align-items: baseline; margin-top: .5rem; font-size: .98rem; }
.instructor li .spark { color: var(--blue); font-size: .75rem; }
.text-link { font-weight: 800; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--blue); }
.text-link:hover { background: var(--blue-soft); }

/* ---------- Final CTA + footer ---------- */
.final { text-align: center; padding: 4rem 0 5rem; }
.final h2 { margin-bottom: .6rem; }
.final p { color: var(--muted); margin-bottom: 1.8rem; }
.footer { border-top: 2px solid var(--blue); padding: 1.6rem 0 2.4rem; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }
.footer a { color: var(--blue); font-weight: 800; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- v2 additions ---------- */
.sub-head {
    font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: .02em;
    color: var(--blue); line-height: 1.1; margin: 3.2rem 0 .8rem;
}
.steps4 { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2rem; counter-reset: st; }
.steps4 .panel { padding: 1.3rem 1.2rem; position: relative; }
.steps4 .panel::after {
    content: "\2192"; position: absolute; right: -1.25rem; top: 50%; transform: translateY(-50%);
    font-weight: 800; color: var(--blue); font-size: 1.2rem; background: #fff; line-height: 1; z-index: 2;
}
.steps4 .panel:last-child::after { content: none; }
.steps4 h3 { font-size: 1.45rem; }
.ico { width: 44px; height: 44px; color: var(--blue); margin-bottom: .6rem; }

.skills .panel { position: relative; padding-top: 2.2rem; }
.skill-n {
    position: absolute; top: .55rem; right: 1rem;
    font-family: var(--display); font-size: 1.5rem; color: var(--blue); opacity: .28; letter-spacing: .04em;
}
.plus {
    display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap;
    margin-top: 2.2rem; background: var(--blue-soft); border-radius: var(--radius); padding: 1.3rem 1.6rem;
}
.plus-label {
    display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display);
    font-size: 1.5rem; letter-spacing: .05em; color: var(--blue); line-height: 1.3;
}
.plus ul { list-style: none; flex: 1 1 360px; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1.6rem; font-size: .96rem; }
.plus li { position: relative; padding-left: 1.1rem; }
.plus li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg); }

.pipeline {
    list-style: none; display: flex; flex-wrap: wrap; gap: .5rem .35rem; margin-top: 1.8rem; align-items: center;
}
.pipeline li {
    font-weight: 800; font-size: .85rem; color: var(--blue);
    border: 2px solid var(--blue); border-radius: 999px; padding: .25rem .8rem; background: #fff;
}
.pipeline li + li::before { content: "\2192"; margin-right: .55rem; margin-left: -.3rem; font-weight: 800; }
.pipeline li + li { border-left-width: 2px; }

.day .hook { font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-bottom: .6rem; }
.does { list-style: none; margin: 0; }
.does li { position: relative; padding-left: 1.2rem; font-size: .95rem; line-height: 1.55; margin-top: .3rem; }
.does li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg); }
.mini-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.mini-tools span {
    font-size: .74rem; font-weight: 800; color: var(--blue); background: var(--blue-soft);
    padding: .12rem .6rem; border-radius: 999px;
}

.cert-line {
    display: flex; gap: .6rem; align-items: center; margin-top: 2rem;
    font-weight: 700; color: var(--blue);
}
.cert-line .spark { font-size: 1.1rem; }

.faq { margin-top: 1.6rem; display: grid; gap: 1rem; }
.faq details {
    border: 2.5px solid var(--blue); border-radius: var(--radius); background: #fff;
    box-shadow: 4px 4px 0 var(--blue); padding: 0 1.4rem;
}
.faq summary {
    cursor: pointer; list-style: none; font-weight: 800; padding: 1rem 2rem 1rem 0; position: relative; color: var(--blue);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-family: var(--display); font-size: 1.8rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; font-size: .98rem; }

.udyam-line {
    display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.2rem;
    font-weight: 700; color: var(--blue); font-size: .98rem;
}
.udyam-line .spark { font-size: 1rem; margin-top: .3rem; }
.footer-legal { display: flex; flex-direction: column; gap: .2rem; }
.footer-legal span { text-wrap: balance; }

/* ---------- Line-break control ---------- */
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
.nw, .chips li, .mini-tools span, .tools .tool, .pipeline li, .btn, .skill-n, .brand span { white-space: nowrap; }
.price { white-space: nowrap; }
.price small { white-space: normal; }
.kicker { text-wrap: balance; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .twinkle { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .panel { transition: none; }
}

/* ---------- Conversion additions ---------- */
.offer {
    margin-top: 1.4rem; max-width: 40rem; padding: .9rem 1.2rem;
    border: 2px solid var(--blue); border-radius: var(--radius); background: var(--blue-soft);
    font-size: .98rem; line-height: 1.55;
}
.offer strong { color: var(--blue); }
.was { text-decoration: line-through; opacity: .65; font-weight: 700; }
.price .was { font-size: 2rem; margin-right: .4rem; }
.cta-note { margin-top: 1rem; max-width: 38rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.founding-why { margin-top: 1rem; }
.fit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; margin-top: 2.2rem; }
.fit ul { list-style: none; display: grid; gap: .5rem; font-size: .96rem; }
.fit li { position: relative; padding-left: 1.1rem; }
.fit li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg); }
.how-steps { list-style: none; padding: 0; }
.contact-line { margin-top: 1.2rem; font-weight: 700; }
.how-cta { margin-top: 1.6rem; }
.creds { list-style: none; margin-top: 1.2rem; display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; }
.creds li { position: relative; padding-left: 1.1rem; }
.creds li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .grid-3, .fit { grid-template-columns: 1fr; }
    .steps4 { grid-template-columns: repeat(2, 1fr); }
    .steps4 .panel:nth-child(2)::after { content: none; }
    .plus ul { grid-template-columns: 1fr; }
    .instructor { grid-template-columns: minmax(0, 1fr); text-align: left; }
    .instructor > * { min-width: 0; }
    .instructor .badge img { width: 160px; height: 160px; }
}
@media (max-width: 680px) {
    .steps4 { grid-template-columns: 1fr; }
    .steps4 .panel::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -1.3rem; transform: translateX(-50%); }
    .steps4 .panel:nth-child(2)::after { content: "\2193"; }
    .sub-head { font-size: 1.7rem; margin-top: 2.6rem; }
    .plus-label { width: 100%; }
    .wrap { width: min(1040px, 100% - 2rem); }
    .nav-links a:not(.btn) { display: none; }
    .grid-2, .batch-grid { grid-template-columns: 1fr; }
    .chapter { padding: 3.2rem 0; }
    .hero { padding-bottom: 3rem; }
    .hero-copy { margin-top: 2rem; }
    .hero-spark { display: none; }
    .day { padding-left: 3.6rem; }
    .day .node { width: 44px; height: 44px; font-size: 1.25rem; top: 1rem; }
    .timeline::before { left: 21px; }
    .price-row { flex-direction: column; align-items: flex-start; }
}
