/* Perinexa website – design B "Deep indigo" (approved 16 Nov 2026). Loaded last.
 * Dark Night Indigo header and page tops with large white headings; white and Mist Light sections;
 * a dark footer that opens with each page's call to action. Brand tokens only (see site.css :root). */

/* ---------- Header: one dark bar ---------- */
.topbar { display: none; }
.site-header { background: var(--indigo-800); border-bottom: 1px solid var(--line-on-dark); box-shadow: none; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(34, 31, 110, 0.28); }
.site-header .wrap { height: 68px; }
.brand img { height: 36px; }
.brand .tagline { display: none; }
.nav { gap: 2px; padding: 0; background: none; border: 0; }
.nav > a { color: var(--on-dark-muted); font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: 8px; background: none; }
.nav > a:hover { color: var(--on-solid); background: var(--fill-on-dark); }
.nav > a[aria-current="page"] { color: var(--on-solid); background: none; font-weight: 600; }
.nav > a::after { background: var(--teal-500); bottom: 2px; height: 2px; }
.nav > a[aria-current="page"]::after { width: calc(100% - 24px); left: 12px; }
.nav-actions { gap: 14px; }
.nav-phone { display: none; align-items: center; gap: 7px; color: var(--on-dark-muted); text-decoration: none; font-size: 14px; }
.nav-phone:hover { color: var(--on-solid); }
.nav-phone svg { color: var(--teal-500); }
@media (min-width: 1100px) { .nav-phone { display: inline-flex; } }
.nav-actions .btn-teal { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.menu-btn { border-color: var(--line-on-dark); background: transparent; color: var(--on-solid); }
.mobile-nav { background: var(--indigo-800); border-top: 1px solid var(--line-on-dark); }
.mobile-nav a { color: var(--on-solid); border-bottom-color: var(--line-on-dark); }
.mobile-nav a[aria-current="page"] { color: var(--teal-500); }
.btn-teal { background: var(--teal-500); color: var(--indigo-800); border-radius: 12px; }
.btn-teal:hover { background: var(--teal-100); }
.btn-outline-light { color: var(--on-solid); border: 1px solid rgba(255, 255, 255, 0.24); background: transparent; border-radius: 12px; }
.btn-outline-light:hover { border-color: var(--on-solid); background: var(--fill-on-dark); }
.btn-dark { background: var(--indigo-800); color: var(--on-solid); border-radius: 12px; }
.btn-dark:hover { background: var(--indigo-700); }

/* ---------- Dark page top ---------- */
.dark-top { position: relative; background: var(--indigo-800); color: var(--on-solid); overflow: hidden; }
.dark-top::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%; border: 60px solid var(--indigo-700); opacity: .7; pointer-events: none; }
.dark-top .wrap { position: relative; padding-top: 64px; padding-bottom: 80px; }
@media (min-width: 900px) { .dark-top .wrap { padding-top: 72px; padding-bottom: 88px; } }
.dark-top.overlap .wrap { padding-bottom: 170px; }
.dark-top .crumbs { color: var(--on-dark-muted); }
.dark-top .crumbs a { color: var(--on-solid); }
.dark-top .label { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-500); }
.dark-top h1 { color: var(--on-solid); margin-top: 14px; max-width: 16ch; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.025em; }
.dark-top .lead { color: var(--on-dark-muted); max-width: 38em; margin-top: 18px; }
.dark-top .center { text-align: center; }
.dark-top .center h1, .dark-top .center .lead { margin-left: auto; margin-right: auto; }
.dark-top .split { display: grid; gap: 24px 48px; align-items: end; }
@media (min-width: 1000px) { .dark-top .split { grid-template-columns: 1.3fr 1fr; } .dark-top .split .lead { margin-top: 0; } }
.dark-top .hero-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .dark-top .hero-split { grid-template-columns: 1.4fr 1fr; } }
.glass { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glass div { padding: 18px; border-radius: 16px; background: var(--fill-on-dark); border: 1px solid var(--line-on-dark); transition: background-color .2s ease; }
.glass div:hover { background: rgba(255, 255, 255, 0.14); }
.glass b { display: block; font-size: 26px; line-height: 1.2; color: var(--on-solid); }
.glass span { color: var(--on-dark-muted); font-size: 14.5px; }
.overlap-card { position: relative; z-index: 2; margin-top: -120px; }

/* ---------- Home hero ---------- */
.home-top .wrap { text-align: center; padding-top: 72px; padding-bottom: 0; }
.home-top .pill { display: inline-block; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; font-size: 13.5px; color: var(--on-dark-muted); }
.home-top h1 { max-width: 15ch; margin: 22px auto 0; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.03; }
.home-top h1 .t { color: var(--teal-500); }
.home-top .lead { margin: 20px auto 0; max-width: 36em; }
.home-top .btn-row { justify-content: center; margin-top: 30px; }
.home-shot { position: relative; max-width: 1000px; margin: 56px auto -130px; z-index: 2; }
.home-shot .app-window { border-radius: 18px 18px 0 0; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.after-shot { padding-top: 170px; }
@media (max-width: 640px) { .home-shot { margin-bottom: -60px; } .home-shot .app-window { max-height: 340px; overflow: hidden; } .after-shot { padding-top: 96px; } }

/* ---------- Numbers row ---------- */
.big-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 72px; text-align: center; padding-bottom: 64px; border-bottom: 1px solid var(--card-border); }
.big-nums b { display: block; font-size: 42px; line-height: 1.1; color: var(--indigo-700); font-weight: 600; }
.big-nums span { color: var(--slate-600); }

/* ---------- Sections ---------- */
.sec { padding: 80px 0; }
@media (min-width: 900px) { .sec { padding: 96px 0; } }
.sec.soft { background: var(--mist-50); }
.sec.flush-top { padding-top: 0; }
.sec h2.big { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; max-width: 18em; }
.sec .sub { margin-top: 12px; color: var(--slate-600); font-size: 17.5px; max-width: 40em; }
.sec-label { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px; }

/* ---------- Bento tiles ---------- */
.bento2 { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bento2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bento2 .wide { grid-column: span 2; } }
.tile2 { display: block; position: relative; padding: 28px; border-radius: 24px; text-decoration: none; color: var(--ink); min-height: 200px; transition: transform .25s ease, box-shadow .25s ease; }
.tile2:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tile2 .lbl { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tile2 h3 { margin-top: 12px; font-size: 22px; line-height: 1.25; color: var(--indigo-800); }
.tile2 p { margin-top: 10px; }
.tile2.dark { background: var(--indigo-800); color: var(--on-solid); }
.tile2.dark h3 { color: var(--on-solid); font-size: clamp(24px, 2.4vw, 30px); }
.tile2.dark p { color: var(--on-dark-muted); max-width: 32em; }
.tile2.dark .lbl { color: var(--teal-500); }
.tile2.teal { background: var(--teal-100); }
.tile2.teal .lbl { color: var(--teal-700); }
.tile2.lav { background: var(--indigo-100); }
.tile2.lav .lbl, .tile2.mist .lbl { color: var(--indigo-700); }
.tile2.mist { background: var(--mist-50); border: 1px solid var(--card-border); }
.tile2 .go { position: absolute; right: 24px; bottom: 22px; font-size: 14px; font-weight: 600; color: var(--indigo-700); opacity: 0; transition: opacity .2s ease; }
.tile2.dark .go { color: var(--teal-500); }
.tile2:hover .go { opacity: 1; }

/* ---------- Top-border columns ---------- */
.cols4 { display: grid; gap: 32px 40px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cols4.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols4 > div { border-top: 3px solid var(--indigo-700); padding-top: 16px; transition: border-color .2s ease; }
.cols4 > div:nth-child(even) { border-top-color: var(--teal-500); }
.cols4 > div:hover { border-top-color: var(--teal-700); }
.cols4 b { display: block; font-size: 18px; color: var(--indigo-800); line-height: 1.3; }
.cols4 p { margin-top: 6px; color: var(--slate-600); font-size: 16px; }

/* ---------- Quote ---------- */
.quote-c { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-c img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto; border: 4px solid var(--surface); box-shadow: var(--shadow-card); }
.quote-c blockquote { margin: 24px 0 0; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.45; font-weight: 500; color: var(--indigo-800); }
.quote-c .who { margin-top: 16px; color: var(--slate-600); }
.quote-c .who b { color: var(--indigo-800); }

/* ---------- Feature row with picture ---------- */
.frow { display: grid; gap: 40px; align-items: center; }
.frow + .frow { margin-top: 80px; }
@media (min-width: 1000px) { .frow { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } .frow.flip > :first-child { order: 2; } }
.frow h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin-top: 4px; }
.frow p { margin-top: 12px; color: var(--slate-600); font-size: 17px; }
.frow .pic { padding: 24px; border-radius: 26px; background: var(--mist-50); border: 1px solid var(--card-border); transition: transform .3s ease, box-shadow .3s ease; }
.frow .pic:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.frow .pic.teal { background: var(--teal-100); border-color: transparent; }

/* ---------- Analytics block ---------- */
.stat-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .stat-split { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-grid div { background: var(--surface); border-radius: 18px; padding: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.stat-grid div:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stat-grid b { display: block; font-size: 34px; color: var(--indigo-800); line-height: 1.1; }
.stat-grid b.red { color: var(--status-high-fg); }
.stat-grid span { color: var(--slate-600); }

/* ---------- Numbered steps grid ---------- */
.steps8 { display: grid; gap: 0 40px; margin-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .steps8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps8 > div { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--card-border); }
.steps8 .n { font-size: 22px; font-weight: 600; color: var(--teal-500); line-height: 1.2; }
.steps8 b { display: block; color: var(--indigo-800); }
.steps8 span.d { color: var(--slate-600); font-size: 15.5px; }
.cards4 { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards4.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cards4 > div { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--card-border); transition: transform .2s ease, box-shadow .2s ease; }
.cards4 > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.cards4 .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--indigo-800); color: var(--on-solid); font-weight: 600; }
.cards4 .n.t { background: var(--teal-500); color: var(--indigo-800); }
.cards4 b { display: block; margin-top: 14px; color: var(--indigo-800); }
.cards4 span.d { color: var(--slate-600); }
.cards4 > div.dark { background: var(--indigo-800); border-color: var(--indigo-800); }
.cards4 > div.dark b { color: var(--on-solid); }
.cards4 > div.dark span.d { color: var(--on-dark-muted); }
.cards4 .num { color: var(--teal-500); font-weight: 600; }

/* ---------- Before / after ---------- */
.ba { display: grid; gap: 20px; }
@media (min-width: 800px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba > div { padding: 32px; border-radius: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.ba > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ba .before { background: var(--mist-50); }
.ba .after { background: var(--indigo-800); color: var(--on-solid); }
.ba h2 { font-size: 24px; }
.ba .after h2 { color: var(--on-solid); }
.ba ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.ba li { display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; }
.ba .before li { color: var(--slate-600); }
.ba .before svg { color: var(--status-high-fg); margin-top: 3px; }
.ba .after svg { color: var(--teal-500); margin-top: 3px; }

/* ---------- Sensitive-care cards ---------- */
.cards-mixed { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards-mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards-mixed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards-mixed > div { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--card-border); transition: transform .2s ease, box-shadow .2s ease; }
.cards-mixed > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.cards-mixed b { display: block; font-size: 20px; color: var(--indigo-800); }
.cards-mixed p { margin-top: 8px; color: var(--slate-600); }
.cards-mixed .dark { background: var(--indigo-800); border-color: var(--indigo-800); }
.cards-mixed .dark b { color: var(--on-solid); }
.cards-mixed .dark p { color: var(--on-dark-muted); }
.cards-mixed .teal { background: var(--teal-100); border-color: transparent; }

/* ---------- About: founder in the dark top ---------- */
.founder-ring { text-align: center; }
.founder-ring img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 6px solid var(--teal-500); margin: 0 auto; }
.founder-ring p { margin-top: 14px; }
.founder-ring b { color: var(--on-solid); }
.founder-ring span { color: var(--on-dark-muted); }

/* ---------- Contact cards overlapping ---------- */
.ccards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .ccards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ccards a { display: block; padding: 32px; border-radius: 24px; background: var(--surface); box-shadow: 0 20px 50px rgba(34, 31, 110, 0.16); text-decoration: none; color: var(--ink); transition: transform .25s ease; }
.ccards a:hover { transform: translateY(-4px); }
.ccards .ic { width: 52px; height: 52px; border-radius: 14px; }
.ccards b { display: block; margin-top: 18px; font-size: 20px; color: var(--indigo-800); }
.ccards .v { display: block; margin-top: 6px; font-size: 17px; color: var(--indigo-700); font-weight: 600; word-break: break-word; }
.ccards .d { display: block; margin-top: 6px; color: var(--slate-600); }
.ccards a.dark { background: var(--indigo-800); color: var(--on-solid); }
.ccards a.dark b { color: var(--on-solid); }
.ccards a.dark .v { color: var(--teal-500); }
.ccards a.dark .d { color: var(--on-dark-muted); }
.ccards a.dark .ic { background: var(--teal-500); color: var(--indigo-800); }

/* ---------- Demo form overlapping ---------- */
.demo-b { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .demo-b { grid-template-columns: 1.2fr 0.8fr; } .demo-b .side { padding-top: 140px; } }
.demo-b .form-card { margin-top: 0; box-shadow: 0 24px 60px rgba(34, 31, 110, 0.18); }
.demo-b .side .box { margin-top: 28px; padding: 22px; border-radius: 20px; background: var(--mist-50); }

/* ---------- FAQ ---------- */
.dark-top .faq-search { margin: 28px auto 0; max-width: 640px; }
.dark-top .faq-search input { border: 0; box-shadow: none; min-height: 56px; }
.faq-b { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .faq-b { grid-template-columns: 230px 1fr; gap: 48px; } }
.topics { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1000px) { .topics { flex-direction: column; position: sticky; top: 90px; } }
.topics a { padding: 10px 14px; border-radius: 12px; color: var(--indigo-700); font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.topics a:hover { background: var(--mist-50); }
.topics a:first-child { background: var(--indigo-700); color: var(--on-solid); }
.faq-b .faq-group h2 { font-size: 24px; }

/* ---------- Footer: page call to action, then links ---------- */
.site-footer { background: var(--indigo-800); padding-top: 0; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 56px 0 40px; border-bottom: 1px solid var(--line-on-dark); }
.foot-cta h2 { color: var(--on-solid); font-size: clamp(24px, 2.6vw, 32px); max-width: 22em; }
.foot-cta p { color: var(--on-dark-muted); margin-top: 6px; }
.foot-cta .btn-row { margin-top: 0; }
.footer-cta { display: none; }
.site-footer .footer-main { padding-top: 40px; }
.footer-badges { display: none; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .dark-top.overlap .wrap { padding-bottom: 130px; }
  .overlap-card { margin-top: -90px; }
  .frow .pic { padding: 12px; }
  .frow .pic > .app-window, .frow .pic > .paper { max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
  .tile2 { min-height: 0; }
}

/* Home: the app picture hangs over the edge of the dark top */
.dark-top.home-top { overflow: visible; }
.dark-top.home-top::before { display: none; }
.sec.after-shot { padding-top: 190px; }
@media (max-width: 640px) { .sec.after-shot { padding-top: 110px; } }
.home-top .pill { max-width: 100%; white-space: normal; line-height: 1.4; }
