/* Module pages (/medi, /medipill, /medifood, /medilab, /mediquest, /medivet, /mediscan, /medifamily — 2026-10-18).
   One layout, the module's palette on <body style="--…"> (values from mobile/src/theme/moduleBrand.ts), and each page
   adds one signature element of its own in its <style>. Same promises as /cycle and /medirun: the module wordmark as a
   part of MEDICARD AI, real app screens, 0 ₾, App Store + „MEDICARD AI“ chip (/app-name.css).
   Tokens a page sets: --deep --sig --bright (hero gradient), --glow, --on (wordmark part on the hero), --acc (module
   colour on the page), --page, --ink, --muted, --line, --card, --tint (soft module wash). Dark pages set them dark. */
@font-face { font-family: "FiraGO"; src: url(/fonts/firago/FiraGO-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url(/fonts/firago/FiraGO-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url(/fonts/firago/FiraGO-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url(/fonts/firago/FiraGO-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url(/fonts/exo2/Exo2-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "FiraGO", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--page); overflow-x: hidden;
  --foot-gutter: 16px; } /* the site footer (/site-foot.css): same edges as .wrap */
a { color: inherit; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 70; background: #fff; color: #000; padding: 8px 12px; border-radius: 10px; }
.wrap { width: min(100% - 32px, 1240px); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 10px; }

/* ── Hero ─────────────────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff; padding: 112px 0 76px;
  background: radial-gradient(900px 640px at 80% 22%, var(--glow), transparent 62%),
              linear-gradient(158deg, var(--deep) 0%, var(--sig) 78%, var(--bright) 135%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 76% 48%, rgba(255, 255, 255, .075) 0 1px, transparent 1px 54px);
  -webkit-mask-image: radial-gradient(760px 560px at 76% 48%, #000 30%, transparent 75%);
          mask-image: radial-gradient(760px 560px at 76% 48%, #000 30%, transparent 75%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 56px; align-items: center; }
.wm { font-family: "Exo 2", "FiraGO", sans-serif; font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: .01em; margin: 0 0 22px; color: #fff; }
.wm i { font-style: normal; display: inline-block; transform: skewX(-16deg); color: var(--on); }
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; margin: 0; font-weight: 800; letter-spacing: -.018em; max-width: 15ch; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .86); margin: 20px 0 30px; max-width: 38ch; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store { display: inline-block; border-radius: 14px; transition: transform .2s ease; }
.store:hover, .store:focus-visible { transform: translateY(-2px); }
.store img { display: block; height: 56px; width: auto; }
.free { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.free b { font-size: 22px; color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; line-height: 1.3; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .18); }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; }

/* A phone with a real app screen (880×1904 / 1170×2391 captures from the mock harness, never a real account). */
.phone { position: relative; width: min(300px, 74vw); aspect-ratio: var(--ar, 390 / 844); border-radius: 46px; padding: 10px; flex: none;
  background: #07090D; box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12), 0 0 120px var(--glow); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; display: block; background: #fff; }
.phone.sm { width: min(232px, 44vw); border-radius: 38px; padding: 8px; }
.phone.sm img { border-radius: 31px; }

/* ── Sections ─────────────────────────────────────────────────────────────────────────────────────────── */
.sec { padding: 96px 0; }
.sec + .sec { padding-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: 48px; }
.sec-head h2, .sec h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 46ch; }
.sec-head.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* What's inside: real screens on one side, the features as a ruled list on the other. */
.inside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.shots { position: sticky; top: 104px; display: flex; justify-content: center; padding: 24px 0 40px; }
.shots .phone { background: #0B0D12; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06); }
.shots .phone + .phone { margin-left: -64px; margin-top: 72px; }
.shots .phone:first-child { transform: rotate(-3deg); z-index: 1; }
.shots .phone:nth-child(2) { transform: rotate(3deg); }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.feats li { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.feats li.wide { grid-column: 1 / -1; }
.ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--acc); margin-bottom: 14px; }
.ic svg { width: 22px; height: 22px; }
.feats h3, .steps h3, .trust h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
.feats p, .steps p, .trust p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* A real sequence only: numbered steps joined by one line. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--acc), transparent); opacity: .35; }
.steps li { position: relative; counter-increment: step; }
.steps li::before { content: counter(step); position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 20px;
  background: var(--page); border: 2px solid var(--acc); color: var(--acc); font-weight: 800; font-size: 18px; }

/* Privacy / safety: one quiet panel. */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px 56px; padding: 48px; border-radius: 32px; background: var(--card); border: 1px solid var(--line); }
.trust h2 { margin-bottom: 14px !important; }
.trust > div > p { color: var(--muted); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.trust li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.trust li .ic { margin: 0; }
.trust a { color: var(--acc); font-weight: 500; }

/* The other sections of the app: wordmark links. */
.kin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kin a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease; }
.kin a:hover { border-color: color-mix(in srgb, var(--k) 55%, transparent); transform: translateY(-2px); }
.kin b { font-family: "Exo 2", "FiraGO", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .01em; color: var(--ink); }
.kin b i { font-style: normal; display: inline-block; transform: skewX(-16deg); color: var(--k); }
.kin span { font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Final call. */
.final { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 36px; padding: 64px 24px;
  background: radial-gradient(640px 320px at 50% 0%, var(--glow), transparent 70%), linear-gradient(158deg, var(--deep), var(--sig)); }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .07) 0 1px, transparent 1px 48px);
  -webkit-mask-image: radial-gradient(520px 340px at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(520px 340px at 50% 0%, #000 20%, transparent 75%); }
.final > * { position: relative; }
.final .wm { margin-bottom: 14px; }
.final h2 { margin: 0 auto 12px; max-width: 20ch; }
.final p { color: rgba(255, 255, 255, .84); margin: 0 auto 28px; max-width: 46ch; }
.final .cta { justify-content: center; }
.soon { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .86); }
.soon img { width: 24px; height: 24px; opacity: .9; }
.soon span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.soon small { font-size: 12px; opacity: .8; }
.soon b { font-size: 17px; font-weight: 700; }
.zero { display: flex; justify-content: center; gap: 10px 24px; flex-wrap: wrap; list-style: none; margin: 28px 0 0; padding: 0; font-size: 15px; color: rgba(255, 255, 255, .86); }
.zero li::before { content: "✓"; margin-right: 8px; color: var(--on); font-weight: 800; }
.note { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 22px auto 0; text-align: center; max-width: 72ch; }
.example { font-size: 13px; color: var(--muted); }

/* The page footer is the shared ticket stub (/site-foot.css). This rule still spaces the chart legend (.gcard footer) on /medifamily. */
footer { padding: 32px 0 44px; font-size: 14px; color: var(--muted); }

@media (max-width: 1080px) {
  .kin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inside { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .shots { position: relative; top: 0; }
}
@media (max-width: 860px) {
  .hero { padding: 100px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .sec { padding: 64px 0; }
  .sec-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 32px; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, var(--acc), transparent); }
  .steps li { padding-left: 66px; }
  .steps li::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .trust { grid-template-columns: minmax(0, 1fr); padding: 30px 24px; gap: 28px; }
  .final { padding: 52px 20px; border-radius: 28px; }
  .shots .phone + .phone { margin-left: -48px; margin-top: 56px; }
}
@media (max-width: 520px) {
  .kin { grid-template-columns: minmax(0, 1fr); }
  .shots .phone.sm { width: 46vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store, .kin a { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
