/* Smart HMIS design system — platform pages (landing, signup, super admin).
   System font stack + no images: nothing blocks first paint. */
:root {
  --brand: #0f766e;
  --brand-600: #0d9488;
  --brand-700: #115e59;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --accent: #6366f1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --ok: #059669;   --ok-bg: #ecfdf5;
  --warn: #d97706; --warn-bg: #fffbeb;
  --bad: #dc2626;  --bad-bg: #fef2f2;
  --info: #2563eb; --info-bg: #eff6ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 18px 50px -18px rgba(15, 23, 42, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; left: -9999px; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: 600 14px/1.2 var(--font); cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-700); box-shadow: 0 10px 22px -10px var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #cbd5e1; box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { padding: .4rem .75rem; font-size: 13px; }
.btn-lg { padding: .85rem 1.5rem; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ------------------------------------------------------------ top nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); display: grid; place-items: center; color: #fff; font-weight: 800; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; background:
  radial-gradient(900px 400px at 85% -10%, rgba(20, 184, 166, .16), transparent 60%),
  radial-gradient(700px 380px at 0% 0%, rgba(99, 102, 241, .10), transparent 60%), #fff; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 600; font-size: 13px; border: 1px solid var(--brand-100); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 18px 0 16px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand-600), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-note span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }

/* mock dashboard in hero */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform .6s var(--ease); }
.mock:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; } .mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat { background: var(--bg); border-radius: 10px; padding: 12px; } .mock-stat b { display: block; font-size: 22px; letter-spacing: -.02em; } .mock-stat small { color: var(--muted); }
.mock-chart { margin-top: 12px; height: 110px; border-radius: 10px; background: var(--bg); display: flex; align-items: flex-end; gap: 7px; padding: 12px; }
.mock-chart i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--brand-600), var(--brand-100)); height: var(--h); transform-origin: bottom; animation: grow 1s var(--ease) both; }
.mock-chart i:nth-child(2) { animation-delay: .06s } .mock-chart i:nth-child(3) { animation-delay: .12s } .mock-chart i:nth-child(4) { animation-delay: .18s }
.mock-chart i:nth-child(5) { animation-delay: .24s } .mock-chart i:nth-child(6) { animation-delay: .30s } .mock-chart i:nth-child(7) { animation-delay: .36s }
@keyframes grow { from { transform: scaleY(0); } }

/* ------------------------------------------------------------ sections */
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--muted); font-size: 17px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; transition: transform .25s var(--ease), background .25s; }
.feature:hover .ico { transform: scale(1.08) rotate(-4deg); background: var(--brand-100); }
.feature h3 { font-size: 17px; } .feature p { color: var(--muted); margin: 0; font-size: 14px; }

.steps { counter-reset: s; }
.step { position: relative; padding-left: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ------------------------------------------------------------- pricing */
.toggle { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 30px; }
.toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; transition: all .2s; }
.toggle button.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px -4px var(--brand); }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--brand-600); box-shadow: 0 0 0 1px var(--brand-600), var(--shadow); }
.plan .tag { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.price { font-size: 42px; font-weight: 800; letter-spacing: -.04em; margin: 14px 0 2px; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-2); font-size: 14px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* --------------------------------------------------------------- forms */
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; padding: .65rem .85rem; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: 0; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(13, 148, 136, .15); }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.slug-wrap { display: flex; align-items: stretch; }
.slug-wrap .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.slug-wrap span { display: grid; place-items: center; padding: 0 12px; background: var(--bg); border: 1px solid #cbd5e1; border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; border: 1px solid; animation: fade-up .35s var(--ease); }
.alert-bad { background: var(--bad-bg); border-color: #fecaca; color: #991b1b; }
.alert-ok { background: var(--ok-bg); border-color: #a7f3d0; color: #065f46; }
.alert-warn { background: var(--warn-bg); border-color: #fde68a; color: #92400e; }
.hp { position: absolute; left: -9999px; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background:
  radial-gradient(800px 380px at 80% -10%, rgba(20, 184, 166, .16), transparent 60%), var(--bg); }
.auth-card { width: min(460px, 100%); }
.auth-card.wide { width: min(780px, 100%); }
.auth-card .card { padding: 32px; box-shadow: var(--shadow-lg); }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-pick label { margin: 0; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick .opt { display: block; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px; transition: all .18s var(--ease); background: #fff; }
.plan-pick .opt b { display: block; color: var(--ink); } .plan-pick .opt span { color: var(--muted); font-weight: 500; font-size: 12px; }
.plan-pick input:checked + .opt { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.plan-pick .opt:hover { transform: translateY(-2px); border-color: #94a3b8; }

/* ------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.tbl tbody tr { transition: background .15s; } .tbl tbody tr:hover { background: #f8fafc; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); } .b-info { background: var(--info-bg); color: var(--info); } .b-mute { background: #f1f5f9; color: var(--muted); }

/* ------------------------------------------------- platform admin shell */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #0b1f2a; color: #cbd5e1; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
.side .brand { color: #fff; padding: 0 10px 22px; }
.side a.item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #b6c4d0; font-weight: 500; margin-bottom: 3px; transition: background .15s, color .15s, transform .15s; }
.side a.item:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; transform: translateX(2px); }
.side a.item.on { background: rgba(20, 184, 166, .18); color: #5eead4; }
.main { padding: 28px 34px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { padding: 18px 20px; }
.stat small { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.stat b { display: block; font-size: 30px; letter-spacing: -.03em; margin-top: 4px; }
.stat i { font-style: normal; font-size: 12px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bars div { flex: 1; background: linear-gradient(180deg, var(--brand-600), var(--brand-100)); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; transform-origin: bottom; animation: grow .9s var(--ease) both; }
.bars div:hover { filter: brightness(1.1); }
.bars div::after { content: attr(data-l); position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }

/* ----------------------------------------------------------- footer etc */
.footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: #fff; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-band { background: linear-gradient(120deg, var(--brand-700), var(--brand)); color: #fff; border-radius: 22px; padding: 46px; text-align: center; }
.cta-band h2 { color: #fff; } .cta-band p { color: #ccfbf1; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); box-shadow: none; }

/* ---------------------------------------------------------------- motion */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.page-in { animation: fade-up .45s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; } .mock { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; display: flex; gap: 6px; overflow-x: auto; padding: 10px; } .side .brand { display: none; } .side a.item { white-space: nowrap; margin: 0; }
  .main { padding: 20px 16px 50px; } .nav-links { display: none; }
}
@media (max-width: 620px) { .grid-3, .grid-4, .row, .plan-pick { grid-template-columns: 1fr; } .hero { padding: 54px 0 48px; } .cta-band { padding: 30px 20px; } }

/* ------------------------------------------------ register / packages / faq */
.reg-hero { padding: 54px 0 70px; background: radial-gradient(900px 400px at 90% -10%, rgba(20, 184, 166, .16), transparent 60%), radial-gradient(700px 380px at 0% 0%, rgba(99, 102, 241, .10), transparent 60%), #fff; border-bottom: 1px solid var(--line); }
.reg-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 48px; align-items: start; }
.reg-copy h1 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 14px; letter-spacing: -.03em; }
.reg-copy .lead { font-size: 17px; color: var(--ink-2); max-width: 520px; }
.reg-points { list-style: none; padding: 0; margin: 22px 0; } .reg-points li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-2); }
.reg-points li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 12px; }
.reg-form { padding: 28px; box-shadow: var(--shadow-lg); } .reg-form h2 { font-size: 22px; margin-bottom: 4px; }
.reg-step { font-size: 14px; margin: 14px 0 8px; color: var(--ink); }
.plan-pick-5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.plan-pick .opt-price { display: block; color: var(--brand-700); font-weight: 700; margin-top: 2px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.grid-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: stretch; }
.plan-cap { margin: 10px 0 0; color: var(--muted); font-size: 14px; } .plan-cap b { font-size: 24px; color: var(--ink); letter-spacing: -.02em; }
.price .cur { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; } .price { font-size: 34px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); animation: fade-up .3s var(--ease) both; }
@media (max-width: 960px) { .reg-grid { grid-template-columns: 1fr; gap: 28px; } .reg-hero { padding-top: 34px; } }

/* ===================================================================== futuristic marketing pages */
.fx { --fx-bg: #070d18; --fx-bg2: #0c1526; --fx-line: rgba(148, 163, 184, .16); --fx-text: #cbd5e1; background: var(--fx-bg); color: var(--fx-text); position: relative; overflow: hidden; }
.fx h1, .fx h2, .fx h3, .fx h4 { color: #f8fafc; }
.fx a { color: #5eead4; }
.fx-hero { position: relative; padding: 92px 0 84px; text-align: center; isolation: isolate; }
.fx-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 420px at 50% -10%, rgba(20, 184, 166, .28), transparent 60%), radial-gradient(700px 380px at 90% 20%, rgba(99, 102, 241, .22), transparent 60%), radial-gradient(600px 320px at 5% 60%, rgba(236, 72, 153, .10), transparent 60%); }
.fx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--fx-line) 1px, transparent 1px), linear-gradient(90deg, var(--fx-line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%); animation: fx-grid 18s linear infinite; }
@keyframes fx-grid { to { background-position: 56px 56px, 56px 56px; } }
.fx-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; animation: fx-float 12s ease-in-out infinite; }
.fx-orb.a { width: 320px; height: 320px; background: #14b8a6; left: -80px; top: 40px; }
.fx-orb.b { width: 280px; height: 280px; background: #6366f1; right: -60px; top: 160px; animation-delay: -5s; }
@keyframes fx-float { 50% { transform: translate(24px, -28px) scale(1.08); } }
.fx-pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--fx-line); color: #99f6e4; font-weight: 600; font-size: 13px; }
.fx-pill i { width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 10px #2dd4bf; animation: fx-pulse 2s infinite; }
@keyframes fx-pulse { 50% { opacity: .35; } }
.fx-hero h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -.04em; margin: 22px auto 16px; max-width: 900px; line-height: 1.05; }
.fx-grad { background: linear-gradient(95deg, #5eead4, #818cf8 55%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-hero p.lead { color: #94a3b8; font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.fx-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fx .btn-primary { background: linear-gradient(135deg, #14b8a6, #0d9488); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 30px -10px #14b8a6; }
.fx .btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 14px 38px -8px #2dd4bf; }
.fx .btn-ghost { background: rgba(255, 255, 255, .05); color: #e2e8f0; border-color: var(--fx-line); }
.fx .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(148, 163, 184, .4); }
.fx-section { padding: 78px 0; position: relative; }
.fx-section.alt { background: var(--fx-bg2); border-block: 1px solid var(--fx-line); }
.fx-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.fx-head h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.03em; }
.fx-head p { color: #94a3b8; font-size: 17px; }
.fx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 48px; }
.fx-stat { padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--fx-line); text-align: left; }
.fx-stat b { display: block; font-size: 34px; letter-spacing: -.03em; color: #fff; }
.fx-stat span { color: #94a3b8; font-size: 13px; }

/* glowing glass cards: the highlight follows the pointer (hmis-ui.js sets --mx/--my) */
.fx-card { position: relative; padding: 24px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--fx-line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden; }
.fx-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 212, 191, .18), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.fx-card:hover { transform: translateY(-5px); border-color: rgba(94, 234, 212, .45); box-shadow: 0 24px 50px -24px rgba(20, 184, 166, .5); }
.fx-card:hover::before { opacity: 1; }
.fx-card h3 { font-size: 18px; margin: 12px 0 6px; }
.fx-card p { color: #94a3b8; margin: 0; font-size: 14px; }
.fx-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, rgba(20, 184, 166, .25), rgba(99, 102, 241, .25)); border: 1px solid rgba(94, 234, 212, .25); transition: transform .3s var(--ease); }
.fx-card:hover .fx-ico { transform: scale(1.1) rotate(-6deg); }
.fx-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-flow: dense; }
.fx-bento .wide { grid-column: span 2; }

/* patient journey */
.fx-journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); position: relative; counter-reset: j; }
.fx-step { position: relative; padding: 0 12px; text-align: center; counter-increment: j; }
.fx-step::before { content: counter(j); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: #0c1526; border: 1px solid rgba(94, 234, 212, .5); color: #5eead4; font-weight: 800; box-shadow: 0 0 22px -4px #14b8a6; position: relative; z-index: 1; transition: transform .25s var(--ease); }
.fx-step:hover::before { transform: scale(1.15); }
.fx-step::after { content: ""; position: absolute; top: 22px; left: 50%; width: 100%; height: 2px; background: linear-gradient(90deg, rgba(94, 234, 212, .5), rgba(129, 140, 248, .25)); }
.fx-step:last-child::after { display: none; }
.fx-step b { display: block; color: #f1f5f9; }
.fx-step small { color: #94a3b8; }

/* pricing */
.fx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: stretch; }
.fx-plan { display: flex; flex-direction: column; }
.fx-plan.featured { border-color: rgba(94, 234, 212, .7); background: linear-gradient(180deg, rgba(20, 184, 166, .16), rgba(99, 102, 241, .08)); box-shadow: 0 0 0 1px rgba(94, 234, 212, .35), 0 30px 60px -28px #14b8a6; }
.fx-plan .tag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: linear-gradient(135deg, #14b8a6, #6366f1); color: #fff; }
.fx-plan .cap { margin: 8px 0 0; color: #94a3b8; font-size: 14px; }
.fx-plan .cap b { font-size: 26px; color: #fff; letter-spacing: -.02em; }
.fx-plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: #fff; margin: 14px 0 2px; }
.fx-plan .price small { font-size: 13px; color: #94a3b8; font-weight: 500; letter-spacing: 0; }
.fx-plan .price .cur { font-size: 15px; color: #94a3b8; letter-spacing: 0; }
.fx-plan ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.fx-plan li { padding: 5px 0 5px 24px; position: relative; font-size: 13.5px; color: #cbd5e1; }
.fx-plan li::before { content: "✓"; position: absolute; left: 0; color: #2dd4bf; font-weight: 800; }
.fx .toggle { background: rgba(255, 255, 255, .06); border-color: var(--fx-line); }
.fx .toggle button { color: #94a3b8; }
.fx .toggle button.on { background: linear-gradient(135deg, #14b8a6, #6366f1); color: #fff; }
.fx-table-wrap { overflow-x: auto; border: 1px solid var(--fx-line); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.fx-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.fx-table th, .fx-table td { padding: 13px 16px; border-bottom: 1px solid var(--fx-line); text-align: center; }
.fx-table th:first-child, .fx-table td:first-child { text-align: left; color: #e2e8f0; font-weight: 600; }
.fx-table thead th { color: #f8fafc; background: rgba(255, 255, 255, .04); }
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.fx-table .yes { color: #2dd4bf; font-weight: 800; }
.fx-table .no { color: #475569; }
.fx .faq details { background: rgba(255, 255, 255, .04); border-color: var(--fx-line); }
.fx .faq details[open] { border-color: rgba(94, 234, 212, .4); }
.fx .faq summary { color: #f1f5f9; }
.fx .faq p { color: #94a3b8; }
.fx-band { border-radius: 24px; padding: 54px 28px; text-align: center; background: radial-gradient(500px 200px at 50% 0%, rgba(45, 212, 191, .35), transparent 70%), linear-gradient(135deg, #0f766e, #4338ca); border: 1px solid rgba(255, 255, 255, .15); }
.fx-band h2 { color: #fff; }
.fx-band p { color: #ccfbf1; }

/* terms */
.fx-doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.fx-toc { position: sticky; top: 90px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--fx-line); }
.fx-toc b { display: block; color: #f1f5f9; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.fx-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: #94a3b8; font-size: 13.5px; transition: all .15s; }
.fx-toc a:hover { background: rgba(255, 255, 255, .06); color: #5eead4; text-decoration: none; transform: translateX(3px); }
.fx-article section { padding: 22px 24px; border-radius: 16px; margin-bottom: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--fx-line); scroll-margin-top: 90px; transition: border-color .25s; }
.fx-article section:hover { border-color: rgba(94, 234, 212, .3); }
.fx-article h2 { font-size: 19px; margin: 0 0 8px; }
.fx-article h2 span { color: #2dd4bf; margin-right: 8px; }
.fx-article p, .fx-article li { color: #a8b5c8; font-size: 15px; line-height: 1.7; }
.fx-article ul { margin: 6px 0 0; padding-left: 20px; }
.nav-links a.on { color: var(--brand); font-weight: 700; }
@media (max-width: 960px) { .fx-bento { grid-template-columns: 1fr 1fr; } .fx-doc { grid-template-columns: 1fr; } .fx-toc { position: static; } .fx-step::after { display: none; } .fx-journey { gap: 18px 0; } }
@media (max-width: 620px) { .fx-bento { grid-template-columns: 1fr; } .fx-bento .wide { grid-column: auto; } .fx-hero { padding: 62px 0 54px; } }
@media (prefers-reduced-motion: reduce) { .fx-hero::after, .fx-orb, .fx-pill i { animation: none; } }

/* ---------- Online payment (upgrade page + result) ---------- */
.pay-form { margin: 0; }
.pay-cycle { display: grid; gap: 6px; margin: 0 0 12px; font-size: 13px; text-align: left; }
.pay-cycle label { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-cycle label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.pay-note { display: block; margin-top: 8px; font-size: 11px; text-align: center; }
.pay-result { text-align: center; padding: 38px 34px; }
.pay-result h1 { font-size: 28px; margin: 14px 0 8px; }
.pay-result p { color: #475569; line-height: 1.6; }
.pay-icon { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 36px; font-weight: 800; color: #fff; background: #94a3b8; animation: hm-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.pay-paid .pay-icon { background: linear-gradient(135deg, #10b981, #0f766e); box-shadow: 0 10px 30px rgba(16,185,129,.35); }
.pay-pending .pay-icon { background: linear-gradient(135deg, #f59e0b, #d97706); animation: hm-pop .45s both, pay-spin 1.6s linear infinite; }
.pay-failed .pay-icon, .pay-cancelled .pay-icon { background: linear-gradient(135deg, #f87171, #dc2626); }
.pay-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; max-width: 360px; margin: 18px auto; text-align: left; font-size: 14px; }
.pay-kv dt { color: #64748b; font-weight: 600; } .pay-kv dd { margin: 0; font-weight: 700; }
.pay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
@keyframes hm-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pay-spin { 50% { transform: scale(1.06); } }

/* Price cards: monthly headline, amount actually paid underneath */
.plan-month { margin: -4px 0 14px; padding: 7px 10px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-size: 13px; }
.plan-month b { font-size: 15px; }
.fx-plan .plan-month { background: rgba(94,234,212,.1); color: #5eead4; }
