:root {
  --ink: #11110f;
  --milk: #f4f1eb;
  --paper: #fcfbf8;
  --soft: #e8e5de;
  --muted: #6d6962;
  --line: rgba(17, 17, 15, 0.18);
  --blue: #2864dc;
  --coral: #df6255;
  --green: #39b985;
  --dark: #101216;
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; color: var(--ink); background: var(--milk); font-family: "Onest", Arial, sans-serif; }
body, button, input, select { font-family: "Onest", Arial, sans-serif; }
button, input, select { border-radius: 0; }
button, a { color: inherit; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; letter-spacing: 0; }

.site-header { position: fixed; z-index: 80; inset: 0 0 auto; height: 78px; padding: 0 max(28px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; color: var(--ink); border-bottom: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.site-header.header-on-dark { color: #fff; }
.site-header.scrolled { color: var(--ink); background: rgba(244,241,235,.94); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { width: max-content; display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 800; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 38px; font-size: 12px; font-weight: 700; }
.site-nav a { position: relative; padding: 12px 0; opacity: .56; }
.site-nav a:hover, .site-nav a.active { opacity: 1; }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; }
.header-action { justify-self: end; padding: 12px 0; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 800; cursor: pointer; }
.header-action span { margin-left: 18px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 12px; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
.menu-button span { display: block; height: 1px; margin: 5px 0; background: currentColor; }

.eyebrow, .kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 24px; color: var(--blue); text-transform: uppercase; font-size: 10px; line-height: 1.4; font-weight: 800; letter-spacing: .12em; }
.eyebrow span { width: 26px; height: 1px; background: currentColor; }
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid transparent; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-3px); }
.button-dark { color: #fff; background: var(--ink); }
.button-light { color: var(--ink); background: #fff; }

.home-hero { position: relative; min-height: 760px; height: calc(100svh - 120px); max-height: 880px; overflow: hidden; border-bottom: 1px solid var(--line); }
.home-hero-media, .home-hero-shade { position: absolute; inset: 0; }
.home-hero-media { background: url("assets/avanza-guide-hero.png") center / cover no-repeat; filter: saturate(.72); }
.home-hero-shade { background: linear-gradient(90deg, rgba(247,245,240,.99) 0%,rgba(247,245,240,.92) 36%,rgba(247,245,240,.28) 67%,rgba(247,245,240,.02)); }
.home-hero-copy { position: relative; z-index: 2; width: min(760px, calc(100% - 56px)); margin-left: max(28px, calc((100vw - var(--max)) / 2)); padding-top: 180px; }
.home-hero h1 { margin: 0; max-width: 900px; font-size: 84px; line-height: .96; font-weight: 600; }
.home-hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 30px 0 0; color: rgba(17,17,15,.66); font-size: 18px; line-height: 1.65; }
.home-hero-copy .button { margin-top: 36px; }
.home-hero-index { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; min-height: 94px; padding: 0 max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: repeat(3,1fr); background: rgba(247,245,240,.9); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.home-hero-index span { padding: 0 28px; display: flex; align-items: center; gap: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; }
.home-hero-index span:last-child { border-right: 1px solid var(--line); }
.home-hero-index b { color: var(--ink); }

.product-directory { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 120px 0 150px; }
.directory-heading, .section-heading { display: grid; grid-template-columns: .55fr 1.05fr .7fr; gap: 54px; align-items: start; margin-bottom: 72px; }
.directory-heading h2, .section-heading h2, .product-intro h2, .feature-copy h2, .arena-copy h2, .launch-section h2 { margin: 0; font-size: 56px; line-height: 1.05; font-weight: 600; }
.directory-heading > p:last-child, .section-heading > p:last-child, .product-intro > p:last-child, .feature-copy > p, .arena-copy > p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.product-row { min-height: 520px; display: grid; grid-template-columns: 1.25fr .75fr; border-top: 1px solid var(--ink); overflow: hidden; }
.product-row:last-child { border-bottom: 1px solid var(--ink); }
.product-row-media { min-height: 520px; overflow: hidden; background: var(--soft); }
.product-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.product-row:hover .product-row-media img { transform: scale(1.025); }
.product-row-copy { position: relative; padding: 48px; display: flex; flex-direction: column; align-items: flex-start; border-left: 1px solid var(--line); background: var(--paper); }
.product-number { position: absolute; right: 44px; top: 46px; font-size: 11px; font-weight: 800; }
.product-row-copy > p { margin: 0 0 28px; color: var(--blue); text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.product-row-copy h3 { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 600; }
.product-description { max-width: 390px; margin-top: 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.product-row-copy > b { margin-top: auto; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 12px; }
.product-row-copy > b i { margin-left: 22px; font-size: 18px; font-style: normal; font-weight: 400; }
.product-row-clinics .product-row-copy > p { color: var(--coral); }
.product-row-core .product-row-copy > p { color: var(--green); }

.home-process { padding: 120px max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; color: #fff; background: var(--ink); }
.process-heading h2 { margin: 0; font-size: 56px; line-height: 1.05; font-weight: 600; }
.process-heading .kicker { color: var(--coral); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.26); }
.process-list li { min-height: 130px; display: grid; grid-template-columns: 52px .9fr 1fr; gap: 24px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.18); }
.process-list li > b { color: var(--coral); font-size: 10px; }
.process-list strong { font-size: 18px; }
.process-list span { color: rgba(255,255,255,.56); font-size: 12px; line-height: 1.6; }

.site-cta { padding: 120px max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: end; color: #fff; background: var(--blue); }
.site-cta .kicker { color: #fff; }
.site-cta h2 { margin: 0; font-size: 60px; line-height: 1.02; font-weight: 600; }
.cta-action p { max-width: 440px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.75; }
.cta-action .button { margin-top: 24px; }
.site-footer { min-height: 110px; padding: 0 max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; color: var(--muted); font-size: 10px; }

.product-hero { position: relative; min-height: 760px; height: calc(100svh - 86px); max-height: 900px; overflow: hidden; color: #fff; }
.product-hero-media, .product-hero-shade { position: absolute; inset: 0; }
.hero-clubs .product-hero-media { background: url("assets/avanza-club-hero.png") center / cover no-repeat; }
.hero-clinics .product-hero-media { background: url("assets/avanza-clinics-hero.png") center / cover no-repeat; }
.hero-core .product-hero-media { background: url("assets/avanza-platform-hero.png") center / cover no-repeat; }
.hero-clubs .product-hero-shade, .hero-core .product-hero-shade { background: linear-gradient(90deg,rgba(7,9,12,.98),rgba(7,9,12,.83) 35%,rgba(7,9,12,.14) 78%); }
.hero-clinics { color: var(--ink); }
.hero-clinics .product-hero-shade { background: linear-gradient(90deg,rgba(247,245,240,.99),rgba(247,245,240,.92) 38%,rgba(247,245,240,.2) 70%,transparent); }
.product-hero-copy { position: relative; z-index: 2; width: min(760px,calc(100% - 56px)); margin-left: max(28px,calc((100vw - var(--max))/2)); padding-top: 180px; }
.product-hero .eyebrow { color: rgba(255,255,255,.72); }
.hero-clinics .eyebrow { color: rgba(17,17,15,.6); }
.product-hero h1 { margin: 0; font-size: 82px; line-height: .96; font-weight: 600; }
.product-hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 30px 0 0; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.65; }
.hero-clinics .product-hero-copy > p:not(.eyebrow) { color: rgba(17,17,15,.65); }
.product-hero-copy .button { margin-top: 36px; }
.product-hero-stats { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; min-height: 96px; padding: 0 max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: repeat(4,1fr); background: rgba(5,7,10,.74); border-top: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(16px); }
.product-hero-stats span { padding: 0 26px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-left: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.56); font-size: 10px; }
.product-hero-stats span:last-child { border-right: 1px solid rgba(255,255,255,.16); }
.product-hero-stats b { color: #fff; font-size: 13px; }
.product-hero-stats.light-stats { color: var(--ink); background: rgba(247,245,240,.9); border-color: var(--line); }
.product-hero-stats.light-stats span { color: var(--muted); border-color: var(--line); }
.product-hero-stats.light-stats b { color: var(--ink); }
.product-subnav { position: sticky; z-index: 40; top: 78px; min-height: 62px; padding: 0 max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: repeat(4,1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.product-subnav a { padding: 0 22px; display: flex; align-items: center; border-left: 1px solid var(--line); font-size: 10px; font-weight: 800; }
.product-subnav a:last-child { border-right: 1px solid var(--line); }
.product-subnav a:hover { color: var(--blue); background: var(--milk); }
.clubs-subnav { grid-template-columns: repeat(5,1fr); }

.product-intro { width: min(var(--max),calc(100% - 56px)); margin: 0 auto; padding: 120px 0; display: grid; grid-template-columns: .55fr 1fr .7fr; gap: 54px; align-items: start; border-bottom: 1px solid var(--line); }
.feature-band { padding: 120px max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: .6fr 1.4fr; gap: 7vw; align-items: center; }
.dark-band { color: #fff; background: var(--dark); }
.light-band { background: var(--milk); }
.feature-copy > p { margin: 28px 0 0; }
.dark-band .feature-copy > p { color: rgba(255,255,255,.58); }
.dark-band .kicker { color: var(--coral); }
.feature-list { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid currentColor; border-color: rgba(109,105,98,.4); }
.feature-list li { padding: 18px 0; border-bottom: 1px solid rgba(109,105,98,.35); font-size: 12px; font-weight: 700; }
.club-map-ui { border: 1px solid rgba(255,255,255,.2); background: #0c0f14; box-shadow: 0 28px 90px rgba(0,0,0,.32); }
.ui-top { height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 10px; }
.ui-top span, .ui-top b { display: flex; align-items: center; gap: 9px; }
.ui-top img { width: 22px; height: 22px; }
.ui-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ui-layout { min-height: 500px; display: grid; grid-template-columns: 150px 1fr; }
.ui-layout aside { padding: 24px 14px; display: flex; flex-direction: column; gap: 7px; border-right: 1px solid rgba(255,255,255,.12); }
.ui-layout aside span { padding: 10px; color: rgba(255,255,255,.42); font-size: 9px; }
.ui-layout aside .active { color: #fff; background: rgba(40,100,220,.13); border-left: 2px solid var(--blue); }
.floor-area { padding: 36px; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 32px 32px; }
.floor-title { display: flex; justify-content: space-between; margin-bottom: 24px; }
.floor-title small { color: rgba(255,255,255,.48); }
.floor-pcs { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.floor-pcs button { min-height: 112px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; color: #fff; background: rgba(11,13,18,.88); border: 1px solid rgba(255,255,255,.17); }
.floor-pcs small { color: rgba(255,255,255,.45); }
.floor-pcs .busy { border-color: rgba(223,98,85,.7); }
.floor-pcs .selected { border-color: var(--blue); background: rgba(40,100,220,.14); }
.vip-zone { margin-top: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.vip-zone span { min-height: 58px; padding: 0 14px; display: flex; align-items: center; border: 1px solid rgba(223,98,85,.55); color: rgba(255,255,255,.72); font-size: 9px; }
.product-screenshot { margin: 0; border: 1px solid var(--ink); box-shadow: 0 28px 80px rgba(17,17,15,.18); }
.product-screenshot img { width: 100%; }
.product-screenshot figcaption { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 10px; color: #fff; background: var(--ink); font-size: 9px; }
.product-screenshot figcaption i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.agent-section, .patient-section, .security-section, .deployment-section, .core-modules { width: min(var(--max),calc(100% - 56px)); margin: 0 auto; padding: 120px 0; }
.agent-grid, .analytics-metrics { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.agent-grid article, .analytics-metrics article { min-height: 190px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.agent-grid article:last-child, .analytics-metrics article:last-child { border-right: 0; }
.agent-grid span, .analytics-metrics span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.agent-grid strong, .analytics-metrics b { font-size: 28px; font-weight: 600; }
.agent-grid small, .analytics-metrics small { color: var(--green); font-size: 9px; }
.arena-band { padding: 120px max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: center; color: #fff; background: var(--ink); }
.arena-copy .kicker { color: var(--coral); }
.arena-copy > p { color: rgba(255,255,255,.58); }
.leaderboard { color: var(--ink); background: var(--paper); }
.leaderboard > div { min-height: 64px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); font-size: 10px; }
.leaderboard ol { margin: 0; padding: 0; list-style: none; }
.leaderboard li { min-height: 84px; padding: 0 20px; display: grid; grid-template-columns: 46px 1fr 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.leaderboard li b { color: var(--blue); font-size: 9px; }
.leaderboard li span { color: var(--muted); font-size: 10px; }
.leaderboard li em { font-style: normal; }

.clinic-workspace, .branches-section { padding: 120px max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: .55fr 1.45fr; gap: 7vw; align-items: center; }
.schedule-ui { border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 28px 80px rgba(17,17,15,.12); }
.schedule-top { height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 10px; }
.schedule-top b { color: var(--green); }
.schedule-head, .schedule-row { display: grid; grid-template-columns: 72px repeat(3,1fr); }
.schedule-head span { min-height: 54px; padding: 16px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.schedule-row > * { min-height: 108px; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.schedule-row time { color: var(--muted); font-size: 9px; }
.schedule-row article.visit { display: flex; flex-direction: column; gap: 8px; border-left: 3px solid var(--blue); }
.schedule-row article.visit b { font-size: 10px; }
.schedule-row article.visit small { color: var(--muted); font-size: 9px; }
.schedule-row article.coral { border-left-color: var(--coral); }
.schedule-row article.green { border-left-color: var(--green); }
.patient-flow { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.patient-flow article { min-height: 220px; padding: 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.patient-flow article:last-child { border-right: 0; }
.patient-flow b { color: var(--coral); font-size: 10px; }
.patient-flow strong { margin-top: auto; font-size: 22px; }
.patient-flow span { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.branches-section { color: #fff; background: var(--ink); }
.branches-section .feature-copy > p { color: rgba(255,255,255,.58); }
.branches-section .kicker { color: var(--coral); }
.branch-list { border-top: 1px solid rgba(255,255,255,.24); }
.branch-list article { min-height: 116px; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.18); }
.branch-list b { font-size: 28px; }
.branch-list small { color: rgba(255,255,255,.52); }
.analytics-band { padding: 120px max(28px,calc((100vw - var(--max))/2)); background: var(--paper); }
.analytics-metrics { grid-template-columns: repeat(3,1fr); }
.analytics-metrics article { min-height: 220px; }

.module-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.module-grid article { min-height: 240px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.module-grid article > span { color: var(--blue); font-size: 10px; font-weight: 800; }
.module-grid h3 { margin: 70px 0 0; font-size: 21px; }
.module-grid p { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.architecture-band { padding: 120px max(28px,calc((100vw - var(--max))/2)); display: grid; grid-template-columns: .55fr 1.45fr; gap: 7vw; align-items: center; color: #fff; background: var(--ink); }
.architecture-band .feature-copy > p { color: rgba(255,255,255,.58); }
.architecture-band .kicker { color: var(--coral); }
.architecture-flow { padding: 34px; border: 1px solid rgba(255,255,255,.2); }
.flow-core { min-height: 150px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--blue); background: rgba(40,100,220,.12); }
.flow-core img { width: 32px; height: 32px; margin-bottom: 12px; }
.flow-core small { margin-top: 9px; color: rgba(255,255,255,.5); }
.flow-line { height: 70px; display: grid; grid-template-columns: repeat(3,1fr); }
.flow-line i { position: relative; border-left: 1px solid rgba(255,255,255,.22); }
.flow-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.flow-products article { min-height: 120px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.18); }
.flow-products span { color: rgba(255,255,255,.48); font-size: 9px; line-height: 1.5; }
.security-table { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.security-table > div { min-height: 78px; display: grid; grid-template-columns: 1fr 1fr 1fr .6fr; align-items: center; border-bottom: 1px solid var(--line); }
.security-table > div:first-child { min-height: 48px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.security-table > div:last-child { border-bottom: 0; }
.security-table span, .security-table b, .security-table em { padding: 0 18px; }
.security-table span { color: var(--muted); font-size: 11px; }
.security-table b { font-size: 12px; }
.security-table em { color: var(--green); font-size: 10px; font-style: normal; }
.deployment-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); list-style: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.deployment-steps li { min-height: 230px; padding: 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.deployment-steps li:last-child { border-right: 0; }
.deployment-steps b { color: var(--blue); font-size: 10px; }
.deployment-steps strong { margin-top: auto; font-size: 18px; }
.deployment-steps span { margin-top: 14px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.pricing-section { padding: 128px max(28px,calc((100vw - var(--max))/2)); background: var(--paper); }
.pricing-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 9vw; align-items: end; margin-bottom: 64px; }
.pricing-heading h2 { max-width: 760px; margin: 0; font-size: 60px; line-height: 1.02; font-weight: 600; }
.pricing-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.pricing-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.pricing-plan { position: relative; min-height: 560px; padding: 28px 24px 24px; display: flex; flex-direction: column; background: var(--paper); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pricing-plan.featured { color: #fff; background: var(--ink); }
.pricing-plan.enterprise { background: var(--milk); }
.plan-meta { min-height: 22px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 800; letter-spacing: .1em; }
.featured .plan-meta { color: rgba(255,255,255,.56); }
.plan-label { position: absolute; top: 62px; right: 24px; padding: 7px 9px; color: var(--ink); background: var(--green); font-size: 8px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.pricing-plan h3 { margin: 38px 0 34px; font-size: 31px; line-height: 1; font-weight: 600; }
.plan-price { display: flex; flex-direction: column; gap: 7px; }
.plan-price strong { font-size: clamp(22px,1.75vw,29px); line-height: 1.05; white-space: nowrap; }
.plan-price span, .plan-year { color: var(--muted); font-size: 10px; }
.featured .plan-price span, .featured .plan-year { color: rgba(255,255,255,.5); }
.plan-year { min-height: 32px; margin: 8px 0 28px; }
.pricing-plan ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.featured ul { border-color: rgba(255,255,255,.2); }
.pricing-plan li { position: relative; padding: 14px 0 14px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.45; }
.pricing-plan li::before { content: ""; position: absolute; left: 0; top: 19px; width: 5px; height: 5px; background: var(--blue); }
.featured li { color: rgba(255,255,255,.68); border-color: rgba(255,255,255,.16); }
.featured li::before { background: var(--green); }
.plan-action { width: 100%; min-height: 46px; margin-top: auto; padding: 0; display: flex; align-items: center; justify-content: space-between; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: 10px; font-weight: 800; cursor: pointer; }
.plan-action span { font-size: 16px; font-weight: 400; }
.founding-offer { margin-top: 42px; min-height: 186px; padding: 34px 38px; display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 5vw; align-items: center; color: #fff; background: var(--blue); }
.founding-offer > div > span { display: block; margin-bottom: 14px; color: rgba(255,255,255,.62); font-size: 9px; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; }
.founding-offer h3 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 600; }
.founding-offer p { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.7; }
.implementation-strip { margin-top: 42px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.implementation-strip div { min-height: 104px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.implementation-strip span { color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.implementation-strip strong { font-size: 16px; font-weight: 600; }
.pricing-note { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }

.contact-dialog { width: min(520px,calc(100% - 32px)); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); }
.contact-dialog::backdrop { background: rgba(17,17,15,.72); backdrop-filter: blur(8px); }
.contact-dialog form { position: relative; padding: 44px; }
.contact-dialog h2 { margin: 0 0 30px; font-size: 38px; line-height: 1.1; }
.contact-dialog label { display: grid; gap: 9px; margin-top: 16px; color: var(--muted); font-size: 10px; font-weight: 700; }
.contact-dialog input, .contact-dialog select { min-height: 50px; padding: 0 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); font-size: 13px; }
.dialog-close { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; background: transparent; border: 0; font-size: 25px; cursor: pointer; }
.dialog-actions { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions button { min-height: 48px; background: transparent; border: 1px solid var(--line); cursor: pointer; }
.dialog-actions .submit { color: #fff; background: var(--ink); border-color: var(--ink); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .site-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 28px; flex-direction: column; align-items: flex-start; color: var(--ink); background: var(--milk); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .menu-button { display: block; }
  .directory-heading, .section-heading, .product-intro { grid-template-columns: .6fr 1.4fr; }
  .directory-heading > p:last-child, .section-heading > p:last-child, .product-intro > p:last-child { grid-column: 2; }
  .product-row { grid-template-columns: 1.1fr .9fr; }
  .feature-band, .clinic-workspace, .branches-section, .architecture-band { grid-template-columns: 1fr; }
  .feature-copy { max-width: 760px; }
  .player-product .feature-copy { order: 0; }
  .player-product .product-screenshot { order: 1; }
  .pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pricing-plan { min-height: 520px; }
  .founding-offer { grid-template-columns: 1fr 1fr; }
  .founding-offer .button { grid-column: 1/-1; width: max-content; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 68px; }
  .site-header { height: 68px; padding: 0 18px; gap: 12px; }
  .brand { font-size: 14px; }
  .brand img { width: 29px; height: 29px; }
  .site-nav { top: 68px; }
  .header-action { display: none; }
  .menu-button { justify-self: end; }
  .home-hero, .product-hero { min-height: 720px; height: calc(100svh - 36px); max-height: none; }
  .home-hero-media { background-position: 66% center; }
  .home-hero-shade, .hero-clinics .product-hero-shade { background: linear-gradient(180deg,rgba(247,245,240,.38),rgba(247,245,240,.86) 46%,rgba(247,245,240,1) 78%); }
  .hero-clubs .product-hero-shade, .hero-core .product-hero-shade { background: linear-gradient(180deg,rgba(7,9,12,.38),rgba(7,9,12,.84) 48%,rgba(7,9,12,1)); }
  .hero-clubs .product-hero-media { background-position: 64% center; }
  .hero-core .product-hero-media { background-position: 62% center; }
  .hero-clinics .product-hero-media { background-position: 65% center; }
  .home-hero-copy, .product-hero-copy { width: calc(100% - 36px); margin-left: 18px; padding-top: 170px; }
  .home-hero h1, .product-hero h1 { font-size: 46px; line-height: 1; }
  .home-hero-copy > p:not(.eyebrow), .product-hero-copy > p:not(.eyebrow) { margin-top: 24px; font-size: 15px; line-height: 1.6; }
  .home-hero-copy .button, .product-hero-copy .button { width: 100%; margin-top: 28px; }
  .home-hero-index { grid-template-columns: repeat(2,1fr); padding: 0; }
  .home-hero-index span { min-height: 72px; padding: 0 16px; }
  .home-hero-index span:nth-child(3) { display: none; }
  .product-hero-stats { grid-template-columns: repeat(2,1fr); padding: 0; }
  .product-hero-stats span { min-height: 70px; padding: 12px 16px; }
  .product-hero-stats span:nth-child(n+3) { display: none; }
  .product-subnav { top: 68px; min-height: 54px; padding: 0; overflow-x: auto; grid-template-columns: repeat(4,minmax(120px,1fr)); }
  .clubs-subnav { grid-template-columns: repeat(5,minmax(120px,1fr)); }
  .product-subnav a { white-space: nowrap; }
  .product-directory, .agent-section, .patient-section, .security-section, .deployment-section, .core-modules, .product-intro { width: calc(100% - 36px); padding: 80px 0; }
  .directory-heading, .section-heading, .product-intro { display: block; margin-bottom: 44px; }
  .directory-heading h2, .section-heading h2, .product-intro h2, .feature-copy h2, .arena-copy h2 { font-size: 36px; }
  .directory-heading > p:last-child, .section-heading > p:last-child, .product-intro > p:last-child { margin-top: 24px; }
  .product-row { min-height: 0; grid-template-columns: 1fr; }
  .product-row-media { min-height: 260px; }
  .product-row-copy { min-height: 390px; padding: 30px 22px; border-left: 0; border-top: 1px solid var(--line); }
  .product-number { right: 22px; top: 30px; }
  .product-row-copy h3 { font-size: 34px; }
  .home-process, .site-cta, .arena-band { padding: 80px 18px; grid-template-columns: 1fr; }
  .process-heading h2, .site-cta h2 { font-size: 38px; }
  .process-list li { min-height: 150px; grid-template-columns: 34px 1fr; }
  .process-list li span { grid-column: 2; margin-top: -34px; }
  .cta-action { margin-top: 38px; }
  .cta-action .button { width: 100%; }
  .site-footer { min-height: 0; padding: 36px 18px; grid-template-columns: 1fr; gap: 18px; }
  .feature-band, .clinic-workspace, .branches-section, .architecture-band { padding: 80px 18px; gap: 50px; }
  .ui-layout { min-height: 430px; grid-template-columns: 1fr; }
  .ui-layout aside { display: none; }
  .floor-area { padding: 18px; }
  .floor-pcs { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .floor-pcs button { min-height: 88px; }
  .vip-zone { gap: 8px; }
  .agent-grid, .analytics-metrics { grid-template-columns: repeat(2,1fr); }
  .agent-grid article, .analytics-metrics article { min-height: 150px; border-bottom: 1px solid var(--line); }
  .leaderboard li { grid-template-columns: 34px 1fr auto; }
  .leaderboard li span { display: none; }
  .schedule-ui { overflow-x: auto; }
  .schedule-top, .schedule-head, .schedule-row { min-width: 680px; }
  .patient-flow { grid-template-columns: 1fr 1fr; }
  .patient-flow article { min-height: 180px; border-bottom: 1px solid var(--line); }
  .branch-list article { grid-template-columns: 1fr auto; }
  .branch-list article small { grid-column: 1/-1; margin-top: -30px; }
  .analytics-band { padding: 80px 18px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-grid article { min-height: 190px; }
  .module-grid h3 { margin-top: 42px; }
  .flow-products { grid-template-columns: 1fr; }
  .flow-line { display: none; }
  .flow-products { margin-top: 12px; }
  .security-table { overflow-x: auto; }
  .security-table > div { min-width: 680px; }
  .deployment-steps { grid-template-columns: 1fr 1fr; }
  .deployment-steps li { min-height: 190px; border-bottom: 1px solid var(--line); }
  .pricing-section { padding: 80px 18px; }
  .pricing-heading { display: block; margin-bottom: 42px; }
  .pricing-heading h2 { font-size: 38px; }
  .pricing-heading > p { margin-top: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-plan { min-height: 500px; padding: 26px 22px 22px; }
  .plan-price strong { font-size: 28px; }
  .founding-offer { padding: 30px 24px; grid-template-columns: 1fr; gap: 26px; }
  .founding-offer .button { grid-column: auto; width: 100%; }
  .implementation-strip { grid-template-columns: 1fr 1fr; }
  .contact-dialog form { padding: 38px 22px 24px; }
  .contact-dialog h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
