/* NexRegen 2026-11 redesign: homepage sections and shared upgrades.
   Loaded after site.css. Brand tokens come from tokens.css. */
:root { --v2-shadow: 0 18px 50px -24px rgba(15, 46, 92, 0.35); }

/* reveal on scroll (only when JS is on and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
.btn:active { transform: translateY(1px); }

/* hero */
.v2-hero { background: var(--bg-dark-grad); color: #fff; position: relative; overflow: hidden; }
.v2-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 480px at 85% 10%, rgba(59,155,216,.22), transparent 65%); pointer-events: none; }
.v2-hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.v2-hero h1 { color: #fff; font-size: clamp(36px, 4vw, 54px); line-height: 1.08; max-width: 640px; letter-spacing: -0.03em; margin: 14px 0 0; }
.v2-hero .v2-sub { color: var(--fg-on-dark-2); font-size: 19px; line-height: 1.6; max-width: 520px; margin-top: 22px; }
.v2-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 34px; }
.v2-hero-photo { margin: 0; border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--border-on-dark-strong); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); aspect-ratio: 6 / 5; }
.v2-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* facts strip */
.v2-facts { border-bottom: 1px solid var(--border-1); background: #fff; }
.v2-facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.v2-fact { padding: 30px 32px; border-left: 1px solid var(--border-1); }
.v2-fact:first-child { border-left: 0; padding-left: 0; }
.v2-fact strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--nxr-navy); letter-spacing: -0.01em; }
.v2-fact span { display: block; margin-top: 6px; color: var(--fg-2); font-size: 15px; line-height: 1.55; }

/* section heads */
.v2-head { max-width: 720px; margin-bottom: 52px; }
.v2-head h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; color: var(--nxr-navy); margin: 0; }
.v2-head .eyebrow + h2 { margin-top: 12px; }
.v2-head p.v2-lead { margin-top: 18px; font-size: 18px; line-height: 1.65; color: var(--fg-2); }

/* model flow */
.v2-flow { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; gap: 0 22px; align-items: stretch; }
.v2-node { border: 1px solid var(--border-1); border-radius: var(--radius-xl); padding: 30px 28px 28px; background: #fff; }
.v2-node--core { background: var(--nxr-navy); border-color: var(--nxr-navy); color: #fff; box-shadow: var(--v2-shadow); }
.v2-node .who { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1F7DB8; }
.v2-node--core .who { color: var(--nxr-blue-light); }
.v2-node h3 { font-size: 23px; letter-spacing: -0.02em; margin: 10px 0 16px; color: var(--nxr-navy); }
.v2-node--core h3 { color: #fff; }
.v2-node ul { list-style: none; margin: 0; padding: 0; }
.v2-node li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid var(--border-2); font-size: 15.5px; line-height: 1.5; color: var(--fg-2); }
.v2-node--core li { border-top-color: rgba(255,255,255,.14); color: rgba(255,255,255,.9); }
.v2-node li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 5px; border-left: 2px solid var(--nxr-blue); border-bottom: 2px solid var(--nxr-blue); transform: rotate(-45deg); }
.v2-node--core li::before { border-color: var(--nxr-blue-light); }
.v2-arrow { display: flex; align-items: center; color: var(--nxr-gray-300); }
.v2-arrow svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* clinics */
.v2-clinics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.v2-clinic { margin: 0; }
.v2-clinic .ph { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--nxr-gray-100); }
.v2-clinic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.v2-clinic:hover img { transform: scale(1.03); }
.v2-clinic figcaption { padding-top: 16px; }
.v2-clinic figcaption strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--nxr-navy); letter-spacing: -0.01em; }
.v2-clinic figcaption span { display: block; margin-top: 4px; color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.v2-note { margin-top: 40px; padding: 22px 26px; border-left: 3px solid var(--nxr-blue); background: #fff; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; color: var(--fg-2); font-size: 16.5px; line-height: 1.6; max-width: 780px; }
.v2-note strong { color: var(--nxr-navy); }

/* pilot timeline */
.v2-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.v2-steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--border-1); }
.v2-steps li { position: relative; counter-increment: step; padding-top: 66px; }
.v2-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--nxr-navy); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 17px; display: grid; place-items: center; box-shadow: 0 0 0 8px #fff; }
.v2-steps h3 { font-size: 19px; letter-spacing: -0.015em; color: var(--nxr-navy); margin: 0 0 8px; }
.v2-steps p { font-size: 15.5px; line-height: 1.6; color: var(--fg-2); margin: 0; }
.v2-includes { margin-top: 64px; background: var(--bg-soft); border-radius: var(--radius-2xl); padding: 40px 44px; display: grid; grid-template-columns: .8fr 1.6fr; gap: 40px; align-items: start; }
.v2-includes h3 { font-size: 24px; letter-spacing: -0.02em; color: var(--nxr-navy); margin: 0; }
.v2-includes > div > p { margin-top: 10px; color: var(--fg-2); font-size: 15.5px; line-height: 1.6; }
.v2-includes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; }
.v2-includes li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; color: var(--nxr-gray-900); }
.v2-includes li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 6px; border-left: 2px solid var(--nxr-navy); border-bottom: 2px solid var(--nxr-navy); transform: rotate(-45deg); }

/* brand rules */
.v2-rules { display: grid; grid-template-columns: .9fr 1.3fr; gap: 72px; align-items: start; }
.v2-rules .v2-head { margin-bottom: 0; }
.v2-rules dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.v2-rules dl > div { padding: 22px 0; border-top: 1px solid var(--border-1); }
.v2-rules dt { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--nxr-navy); letter-spacing: -0.01em; }
.v2-rules dd { margin: 6px 0 0; color: var(--fg-2); font-size: 15.5px; line-height: 1.6; }

/* founder */
.v2-founder { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.v2-founder .portrait { border-radius: var(--radius-2xl); overflow: hidden; aspect-ratio: 1; box-shadow: var(--v2-shadow); background: var(--nxr-gray-100); }
.v2-founder .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-founder h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.025em; color: var(--nxr-navy); margin: 0 0 18px; line-height: 1.15; }
.v2-founder p { color: var(--fg-2); font-size: 17px; line-height: 1.7; max-width: 620px; }
.v2-founder p + p { margin-top: 14px; }
.v2-contactrow { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 26px; }
.v2-contactrow a { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--border-1); border-radius: var(--radius-md); font-weight: 600; font-size: 15px; color: var(--nxr-navy); background: #fff; transition: border-color .2s, transform .2s; }
.v2-contactrow a:hover { border-color: var(--nxr-navy); }
.v2-contactrow a:active { transform: translateY(1px); }

/* FAQ */
.v2-faq { max-width: 860px; }
.v2-faq details { border-top: 1px solid var(--border-1); }
.v2-faq details:last-child { border-bottom: 1px solid var(--border-1); }
.v2-faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--nxr-navy); letter-spacing: -0.01em; }
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary::after { content: ""; position: absolute; right: 8px; top: 28px; width: 10px; height: 10px; border-right: 2px solid var(--nxr-blue); border-bottom: 2px solid var(--nxr-blue); transform: rotate(45deg); transition: transform .25s; }
.v2-faq details[open] summary::after { transform: rotate(-135deg); top: 33px; }
.v2-faq summary:focus-visible { outline: 2px solid var(--nxr-blue); outline-offset: 4px; border-radius: 4px; }
.v2-faq details p { margin: 0; padding: 0 44px 24px 0; color: var(--fg-2); font-size: 16.5px; line-height: 1.7; max-width: 720px; }

/* contact page: what happens next */
.v2-next { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: nx; }
.v2-next li { counter-increment: nx; position: relative; padding: 0 0 18px 42px; color: var(--fg-2); font-size: 15.5px; line-height: 1.6; }
.v2-next li::before { content: counter(nx); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); color: var(--nxr-navy); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.v2-next strong { color: var(--nxr-navy); }

@media (max-width: 1000px) {
  .v2-hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 72px; }
  .v2-flow { grid-template-columns: 1fr; gap: 14px; }
  .v2-arrow { justify-content: center; }
  .v2-arrow svg { transform: rotate(90deg); }
  .v2-clinics { grid-template-columns: 1fr 1fr; }
  .v2-steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .v2-steps::before { display: none; }
  .v2-includes { grid-template-columns: 1fr; padding: 32px 28px; gap: 24px; }
  .v2-rules { grid-template-columns: 1fr; gap: 28px; }
  .v2-founder { grid-template-columns: 200px 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .v2-hero h1 { font-size: 36px; }
  .v2-hero .v2-sub { font-size: 17px; }
  .v2-facts-grid { grid-template-columns: 1fr; }
  .v2-fact, .v2-fact:first-child { border-left: 0; border-top: 1px solid var(--border-1); padding: 22px 0; }
  .v2-fact:first-child { border-top: 0; }
  .v2-head { margin-bottom: 36px; }
  .v2-clinics { grid-template-columns: 1fr; }
  .v2-steps { grid-template-columns: 1fr; gap: 28px; }
  .v2-steps li { padding-top: 0; padding-left: 62px; min-height: 44px; }
  .v2-includes ul { grid-template-columns: 1fr; }
  .v2-rules dl { grid-template-columns: 1fr; }
  .v2-founder { grid-template-columns: 1fr; gap: 26px; }
  .v2-founder .portrait { max-width: 180px; }
  .v2-faq summary { font-size: 17px; }
}

.about-body h2 { margin-bottom: 14px; }
