/* Noema Health site. Brand colors come from the app logo. */
/* Manrope (variable, OFL-1.1, via @fontsource-variable/manrope): self-hosted, Cyrillic + Latin only. */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --violet: #675aa6;
  --violet-deep: #564896;
  --cyan: #00b7e0;
  --orange: #ff8c09;

  --bg: #f7f6fc;
  --bg-2: #efedf8;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.72);
  --ink: #15122b;
  --ink-2: #4b4766;
  --ink-3: #807c99;
  --line: rgba(86, 72, 150, 0.12);
  --accent: var(--violet);
  --accent-ink: #ffffff;
  --accent-soft: rgba(103, 90, 166, 0.1);
  --good: #12925a;
  --warn: #c76b00;
  --bad: #d23c4a;
  --shadow: 0 1px 2px rgba(21, 18, 43, 0.04), 0 12px 32px -12px rgba(52, 40, 120, 0.18);
  --shadow-lg: 0 40px 80px -30px rgba(52, 40, 120, 0.35);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0b18;
    --bg-2: #141125;
    --surface: #18152b;
    --surface-2: rgba(28, 24, 50, 0.72);
    --ink: #f4f2ff;
    --ink-2: #bcb7d6;
    --ink-3: #8b86a8;
    --line: rgba(190, 180, 255, 0.12);
    --accent: #9d90e8;
    --accent-ink: #0d0b18;
    --accent-soft: rgba(157, 144, 232, 0.14);
    --good: #3fcf8a;
    --warn: #ffab4a;
    --bad: #ff7a85;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); }
img, svg { display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg) !important; font-weight: 700; text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; isolation: isolate; }
.glow { position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.glow .g1 { width: 520px; height: 520px; left: -120px; top: 0; background: var(--violet); opacity: .35; }
.glow .g2 { width: 420px; height: 420px; right: -60px; top: 40px; background: var(--cyan); opacity: .3; }
.glow .g3 { width: 300px; height: 300px; right: 28%; top: 340px; background: var(--orange); opacity: .22; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow); margin-bottom: 22px; }
.badge b { background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--violet) 0%, var(--cyan) 55%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 0 0 32px; max-width: 33em; }

/* store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 11px; padding: 10px 18px 10px 12px; border-radius: 14px;
  background: #0b0a12; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.store small { font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: 0; }
.store .apple { color: #fff; }
@media (prefers-color-scheme: dark) { .store { background: #fff; color: #0b0a12; border-color: transparent; } .store .apple { color: #0b0a12; } }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--good); }

/* phone mockup */
.device { position: relative; justify-self: center; width: min(340px, 100%); }
.phone { position: relative; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2b2547, #121022);
  box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.screen { border-radius: 34px; overflow: hidden; background: var(--bg); padding: 22px 16px 18px; }
.screen-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.screen-head img { width: 34px; height: 34px; }
.screen-head b { display: block; font-size: 15px; }
.screen-head small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.lab { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 13px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; font-size: 14px; }
.lab b { font-weight: 700; }
.lab .v { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { color: var(--good); background: color-mix(in srgb, var(--good) 13%, transparent); }
.pill.low { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.pill.high { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.advice { margin-top: 10px; padding: 13px; border-radius: 16px; font-size: 13px; color: #fff; line-height: 1.5;
  background: linear-gradient(135deg, var(--violet-deep), #3f8fd0); }
.advice b { display: block; margin-bottom: 2px; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }
.float i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-style: normal; }
.float i svg { width: 17px; height: 17px; }
.float small { display: block; color: var(--ink-3); font-weight: 600; font-size: 11.5px; }
.float.f1 { left: -72px; top: -22px; }
.float.f1 i { background: var(--cyan); }
.float.f2 { right: -48px; bottom: -26px; }
.float.f2 i { background: var(--orange); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.section-lead { color: var(--ink-2); margin: 0 0 44px; max-width: 38em; font-size: 18px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.step .ico svg { width: 26px; height: 26px; }
.step:nth-child(1) .ico { background: linear-gradient(135deg, var(--violet), #8a7bd0); }
.step:nth-child(2) .ico { background: linear-gradient(135deg, #00a2c9, var(--cyan)); }
.step:nth-child(3) .ico { background: linear-gradient(135deg, #f07400, var(--orange)); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 24px; top: 22px;
  font-size: 40px; font-weight: 800; color: var(--line); letter-spacing: -0.04em; }
.step h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--ink-2); max-width: 30em; }
.tile .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent); }
.tile .ico svg { width: 24px; height: 24px; }
.t-wide { grid-column: span 4; }
.t-narrow { grid-column: span 2; }
.t-half { grid-column: span 3; }
.tile.dark { background: linear-gradient(150deg, #2a2350, #15122b); color: #fff; border-color: transparent; }
.tile.dark p { color: rgba(255, 255, 255, .72); }
.tile.dark .ico { background: rgba(255, 255, 255, .12); color: #fff; }
.chart { margin-top: 22px; height: 110px; }
.chart path.area { fill: url(#chartFill); }
.chart path.line { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart line { stroke: rgba(255, 255, 255, .14); stroke-dasharray: 4 6; }
.chart circle { fill: var(--orange); stroke: #15122b; stroke-width: 3; }
.avatars { display: flex; margin-top: 20px; }
.avatars span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800;
  font-size: 14px; border: 3px solid var(--surface); margin-right: -10px; }
.avatars span:nth-child(1) { background: var(--violet); }
.avatars span:nth-child(2) { background: var(--cyan); }
.avatars span:nth-child(3) { background: var(--orange); }
.avatars span:nth-child(4) { background: #9a8fd6; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin-bottom: 12px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23675aa6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 12px 0 0; }

/* cta */
.cta { position: relative; overflow: hidden; border-radius: 34px; padding: 64px 40px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #7d6fcf 0%, var(--violet-deep) 45%, #241c4f 100%); }
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -200px; border-radius: 50%;
  background: var(--cyan); filter: blur(90px); opacity: .45; }
.cta > * { position: relative; z-index: 1; }
.cta img { width: 84px; height: 84px; margin: 0 auto 18px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .3)); }
.cta h2 { color: #fff; }
.cta p { margin: 0 0 30px; color: rgba(255, 255, 255, .8); font-size: 18px; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: #0b0a12; border-color: transparent; }
.cta .store .apple { color: #0b0a12; }

/* footer */
footer { padding: 44px 0 56px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
footer .brand { font-size: 17px; }
footer .brand img { width: 32px; height: 32px; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--ink); }
.disclaimer { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin: 0; font-size: 13px; }

/* legal pages */
.doc { max-width: 780px; padding-top: 48px; padding-bottom: 24px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 44px); }
.doc h2 { font-size: 22px; margin-top: 36px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 6px; }

/* entrance animation (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .float.f1 { left: -12px; } .float.f2 { right: -12px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide, .t-narrow, .t-half { grid-column: span 2; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .top nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 64px; }
  section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .store { flex: 1 1 calc(50% - 6px); justify-content: center; }
  .float { display: none; }
  .cta { padding: 48px 20px; border-radius: 26px; }
  footer .wrap { grid-template-columns: 1fr; }
}
