/* styles.css — DataMed marketing site
   Layout: centered hero + one product screenshot, then sections that all open with the
   same header (label, heading, one line), a solid closing band, and a minimal footer. */

.tabnum { font-variant-numeric: tabular-nums; }

/* Icon tone vars (lifecycle card) */
.ibadge-brand  { --bd-bg: var(--grad);                 --bd-fg: #fff; }
.ibadge-teal   { --bd-bg: rgba(123,92,240,0.13);       --bd-fg: #5A3EC8; }
.ibadge-sky    { --bd-bg: rgba(22,67,126,0.13);        --bd-fg: var(--accent-ink); }
.ibadge-indigo { --bd-bg: rgba(92,108,242,0.13);       --bd-fg: #4A57D6; }

/* ══════════════════ NAV ══════════════════ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 240ms var(--ease); }
.nav-solid { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: 8px; transition: color 160ms; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.nav-phone { font-weight: 500; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.nav-phone:hover { color: var(--accent); }
.nav-burger { display: none; color: var(--ink); width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; border: 1px solid var(--border-strong); }
.nav-burger svg { width: 20px; height: 20px; }
.nav-mobile { display: none; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-tx { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.16em; color: var(--ink); }
.brand-sub { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }

/* ══════════════════ HERO ══════════════════ */
.hero { padding: 148px 0 0; text-align: center; }
.wrap.hero-inner { max-width: 1040px; } /* .wrap sets its own max-width, so match both classes */
.hero-h1 { font-size: clamp(32px, 4.2vw, 50px); margin-top: 16px; letter-spacing: -0.03em; }
.accent-text { display: block; color: var(--brand-teal); }
.hero-sub { font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); margin: 22px auto 0; line-height: 1.6; max-width: 600px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; }
.hero-proof { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.hero-trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.hero-trust-list li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.hero-trust-list svg { width: 16px; height: 16px; color: var(--brand-teal); flex-shrink: 0; }

/* Product screenshot under the hero, on a faint grid */
.hero-shot { position: relative; margin-top: 64px; padding-bottom: 96px; scroll-margin-top: 80px; }
.hero-shot .wrap { position: relative; z-index: 1; max-width: 1120px; }
.hero-grid { position: absolute; inset: 40px 0 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%); opacity: 0.7; pointer-events: none; }

/* ══════════════════ DASHBOARD WINDOW ══════════════════ */
.mini-dots { display: flex; gap: 6px; }
.mini-dots span { width: 11px; height: 11px; border-radius: 50%; }
.mini-dots span:nth-child(1){ background:#F0696E; } .mini-dots span:nth-child(2){ background:#F5BE4F; } .mini-dots span:nth-child(3){ background:#52C172; }
.chart-svg { width: 100%; height: 100%; }
.dpanel-legend { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lg.sky { background: var(--brand-sky); } .lg.teal { background: var(--brand-teal); }
.dpanel-legend .lg:not(:first-child) { margin-left: 10px; }

.dash-window { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.dash-chrome { display: flex; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--soft); }
.dash-url { font-size: 13px; color: var(--faint); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-range { display: flex; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.rg { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: 7px; transition: all 180ms; }
.rg.on { background: var(--accent); color: #fff; }
.dash-grid { padding: 20px; display: grid; gap: 16px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-l { font-size: 13px; color: var(--muted); }
.kpi-d { font-size: 12px; font-weight: 600; white-space: nowrap; }
.kpi-d.up { color: var(--success); } .kpi-d.down { color: var(--danger); }
.kpi-v { font-family: var(--font-head); font-size: 25px; font-weight: 600; color: var(--ink); margin: 6px 0 8px; letter-spacing: -0.02em; }
.spark { width: 100%; height: 32px; display: block; }
.dash-main { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.dpanel { border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.dpanel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dpanel-t { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.dpanel-sub { font-size: 12px; color: var(--faint); }
.dpanel-chart { height: 210px; }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 130px; height: 130px; flex: none; }
.donut-big { font-family: var(--font-head); font-weight: 600; font-size: 26px; fill: var(--ink); }
.donut-cap { font-size: 11px; fill: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.leg-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.leg-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.leg-label { color: var(--ink-2); flex: 1; }
.leg-val { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Claim status panel (inside the dashboard) */
.st-head-bar { flex-wrap: wrap; gap: 10px; }
.st-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.st-sum { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.st-sum::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.st-sum-paid { color: var(--success); } .st-sum-paid::before { background: var(--success); }
.st-sum-pending { color: #B5790E; } .st-sum-pending::before { background: var(--warning); }
.st-sum-denied { color: var(--danger); } .st-sum-denied::before { background: var(--danger); }
.st-run { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: #fff; background: var(--accent); padding: 8px 13px; border-radius: 9px; transition: opacity 160ms; }
.st-run:disabled { opacity: 0.7; cursor: default; }
.st-run svg { width: 14px; height: 14px; }
.st-table { border-top: 1px solid var(--border); margin: 0 -18px -18px; }
.st-row:last-child { border-bottom: none; }
.st-row { display: grid; grid-template-columns: 2.4fr 0.7fr 0.9fr 0.9fr 1.3fr; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background 220ms var(--ease); }
.st-head { font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding-top: 10px; padding-bottom: 10px; }
.st-r { text-align: right; }
.st-row.is-checking { background: linear-gradient(90deg, rgba(22,67,126,0.07), transparent); }
.st-payer { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-code { font-size: 13px; color: var(--muted); }
.st-row .st-r.mono { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-row .st-paid { color: var(--success); font-weight: 600; }
.st-status { display: flex; flex-direction: column; gap: 3px; }
.stbadge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: 12px; font-weight: 600; padding: 4px 10px 4px 8px; border-radius: 999px; width: fit-content; border: 1px solid transparent; }
.stbadge .stdot { width: 7px; height: 7px; border-radius: 50%; }
.stbadge-paid { color: var(--success); background: var(--success-soft); border-color: rgba(14,163,113,0.25); }
.stbadge-paid .stdot { background: var(--success); }
.stbadge-pending { color: #B5790E; background: var(--warning-soft); border-color: rgba(226,148,27,0.30); }
.stbadge-pending .stdot { background: var(--warning); }
.stbadge-denied { color: var(--danger); background: var(--danger-soft); border-color: rgba(225,70,104,0.25); }
.stbadge-denied .stdot { background: var(--danger); }
.stbadge-checking { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-border); }
.stspin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(22,67,126,0.30); border-top-color: var(--accent); animation: spin 0.7s linear infinite; }
.stspin-dark { border-color: rgba(255,255,255,0.45); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.st-sub { font-size: 11px; color: var(--faint); }
@media (max-width: 700px) {
  .st-row { grid-template-columns: 1.6fr 0.9fr 1.2fr; }
  .st-row > :nth-child(2), .st-row > :nth-child(3) { display: none; }
  .st-run { width: 100%; justify-content: center; }
}

/* ══════════════════ SERVICES GRID ══════════════════ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; margin-top: 64px; max-width: 1080px; margin-left: auto; margin-right: auto; }
.feat { text-align: center; }
.feat-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--brand-teal); background: var(--tint); margin-bottom: 16px; }
.feat-ic svg { width: 22px; height: 22px; }
.feat-t { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; line-height: 1.3; }
.feat-b { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 320px; margin: 0 auto; }

/* ══════════════════ LIFECYCLE ══════════════════ */
.lifecycle, .soft { background: var(--soft); }
.lc { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; margin: 64px auto 0; max-width: 1080px; align-items: start; }
.lc-rail { position: relative; display: flex; flex-direction: column; gap: 6px; }
.lc-rail-line { position: absolute; left: 26px; top: 28px; bottom: 28px; width: 2px; background: var(--border-strong); border-radius: 2px; }
.lc-rail-fill { width: 100%; background: var(--grad); border-radius: 2px; transition: height 600ms var(--ease); }
.lc-step { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; text-align: left; transition: background 200ms var(--ease); z-index: 1; }
.lc-step:hover { background: rgba(255,255,255,0.7); }
.lc-step.on { background: #fff; box-shadow: var(--shadow-sm); }
.lc-node { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--border-strong); color: var(--faint); transition: all 260ms var(--ease); }
.lc-node svg { width: 20px; height: 20px; }
.lc-step.on .lc-node { background: var(--grad); color: #fff; border-color: transparent; }
.lc-step.done .lc-node { color: var(--success); border-color: var(--success); }
.lc-step-tx { display: flex; flex-direction: column; gap: 2px; }
.lc-step-code { font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: 0.06em; }
.lc-step.on .lc-step-code { color: var(--accent); }
.lc-step-title { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; color: var(--ink); }

.lc-stage { position: sticky; top: 100px; }
.lc-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-md); animation: lcIn 460ms var(--ease); }
@keyframes lcIn { from { transform: translateY(14px) scale(0.99); } to { transform: none; } }
.lc-card-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bd-bg); color: var(--bd-fg); margin-bottom: 20px; }
.lc-card-ic svg { width: 26px; height: 26px; }
.lc-card-code { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.1em; }
.lc-card-title { font-size: 26px; margin: 8px 0 12px; }
.lc-card-body { font-size: 16.5px; color: var(--muted); line-height: 1.6; }
.lc-card-metric { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding: 14px 18px; background: var(--soft); border: 1px solid var(--border); border-radius: 12px; }
.lcm-l { font-size: 14px; color: var(--muted); }
.lcm-v { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; }
.lcm-check { width: 22px; height: 22px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.lcm-check svg { width: 14px; height: 14px; }
.lc-progress { display: flex; gap: 6px; margin-top: 22px; }
.lc-progress span { height: 4px; flex: 1; border-radius: 2px; background: var(--border-strong); transition: background 300ms; }
.lc-progress span.on { background: var(--grad); }

/* ══════════════════ WHY DATAMED (expandable rows) ══════════════════ */
.faq { max-width: 760px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-row { background: #fff; border: 1px solid var(--border); border-radius: 14px; scroll-margin-top: 90px; }
.faq-row summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-family: var(--font-head); font-weight: 500; font-size: 16.5px; color: var(--ink); }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.faq-ic { position: relative; width: 22px; height: 22px; flex: none; border: 1px solid var(--border-strong); border-radius: 50%; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--muted); transform: translate(-50%, -50%); transition: transform 200ms var(--ease); }
.faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-row[open] .faq-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 22px 22px; font-size: 15.5px; color: var(--muted); line-height: 1.65; }
.faq-a ul, .faq-a ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.faq-a p + ol, .faq-a p + ul { margin-top: 12px; }
.faq-a strong { color: var(--ink-2); font-weight: 600; }

/* ══════════════════ CLOSING BAND ══════════════════ */
.band { background: #3D2F9A; color: #fff; padding: 96px 0; text-align: center; }
.band-title { color: #fff; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.02em; }
.band-sub { color: rgba(255,255,255,0.78); font-size: 18px; margin-top: 14px; }
.band-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ══════════════════ DEMO FORM (pop-up) ══════════════════ */
/* Flex + margin:auto centers the card when it fits, and lets it scroll from the top when it doesn't
   (short phones, landscape, open keyboard); grid centering would push the top off-screen. */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(12,28,44,0.55); display: flex; padding: 16px; overflow-y: auto; animation: fadeIn 180ms ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; margin: auto; width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45); animation: lcIn 260ms var(--ease); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.modal-x:hover { background: var(--mute); color: var(--ink); }
.modal-x svg { width: 18px; height: 18px; }
.cta-form-t { font-size: 24px; }
.cta-form-sub { font-size: 15px; color: var(--muted); margin: 8px 0 22px; padding-right: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input { font-family: var(--font-body); font-size: 16px; color: var(--ink); padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px; transition: border-color 180ms, box-shadow 180ms; outline: none; background: #fff; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.bad input { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.field-err { font-style: normal; font-size: 12.5px; color: var(--danger); }
.field-opt { font-style: normal; font-weight: 400; opacity: 0.55; }
.cta-submit { width: 100%; margin-top: 6px; }
.cta-fine { font-size: 12px; color: var(--faint); text-align: center; margin-top: 14px; }
.cta-done { text-align: center; padding: 16px 4px 4px; }
.cta-done-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.cta-done-ic svg { width: 30px; height: 30px; }
.cta-done h2 { font-size: 22px; margin-bottom: 10px; }
.cta-done p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

/* ══════════════════ FOOTER ══════════════════ */
.footer { background: #0C1C2C; color: #9FB4C6; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer .brand-name { color: #fff; }
.footer-tag { margin-top: 14px; font-size: 14.5px; color: #7F94A6; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-h { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer-col a { font-size: 14.5px; color: #9FB4C6; transition: color 160ms; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-base { padding-top: 22px; font-size: 13px; color: #6B8194; }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 1000px) {
  .lc { grid-template-columns: 1fr; gap: 32px; }
  .lc-stage { position: static; }
  .dash-main { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; flex-direction: column; gap: 2px; padding: 10px 18px 18px; background: #fff; border-bottom: 1px solid var(--border); }
  .nav-mobile a { padding: 12px; font-weight: 500; color: var(--ink-2); border-radius: 9px; }
  .nav-mobile a:hover, .nav-mobile a.active { background: var(--mute); color: var(--ink); }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .sec-pad { padding: 80px 0; }
  .hero { padding-top: 112px; }
  .hero-shot { margin-top: 48px; padding-bottom: 72px; }
  .feat-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .band { padding: 72px 0; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 60px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 8px 14px; font-size: 13.5px; }
  .nav-burger { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .brand-name { font-size: 14.5px; letter-spacing: 0.12em; }
  .brand-sub { display: none; }
  .dash-grid { padding: 12px; gap: 12px; }
  .dash-range { display: none; }
  .kpi { padding: 12px; }
  .kpi-v { font-size: 20px; }
  .lc-card { padding: 24px; }
  .modal-card { padding: 24px 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
