/* eMedics landing — wspólny CSS dla index.html i podstron SEO.
 * Wyodrębnione z embedded <style> w index.html (commit Apka-2v8).
 * Zachowuje 1:1 oryginalne reguły. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --navy:      #070d1a;
      --navy-mid:  #0f172a;
      --blue:      #0d6efd;
      --blue-dk:   #0a58ca;
      --text:      #f8fafc;
      --muted:     #94a3b8;
      --line:      rgba(255,255,255,.08);
      --card-bg:   rgba(255,255,255,.04);
      --card-bdr:  rgba(255,255,255,.08);
    }

    html { scroll-behavior: smooth; }
    body {
      font-family: 'IBM Plex Sans', system-ui, sans-serif;
      background: var(--navy);
      color: var(--text);
      font-size: 16px;
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* ── Nav ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 52px;
      background: rgba(7,13,26,.88);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }
    .nav-logo {
      font-family: 'IBM Plex Sans', sans-serif;
      font-size: 20px; font-weight: 700; letter-spacing: -.01em;
      color: #fff; text-decoration: none;
    }
    .nav-logo span { color: var(--blue); }
    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
    .nav-links a:hover { color: #fff; }
    .nav-cta { display: flex; gap: 10px; align-items: center; }
    .btn-ghost {
      padding: 8px 20px; border-radius: 8px;
      border: 1px solid rgba(255,255,255,.15); color: #fff;
      font-size: 14px; font-weight: 500; text-decoration: none;
      font-family: 'IBM Plex Sans', sans-serif;
      transition: border-color .2s, background .2s;
    }
    .btn-ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
    .btn-primary {
      padding: 8px 20px; border-radius: 8px;
      background: var(--blue); color: #fff;
      font-size: 14px; font-weight: 600; text-decoration: none;
      font-family: 'IBM Plex Sans', sans-serif;
      box-shadow: 0 2px 12px rgba(13,110,253,.35);
      transition: background .2s, box-shadow .2s, transform .15s;
    }
    .btn-primary:hover { background: var(--blue-dk); box-shadow: 0 4px 20px rgba(13,110,253,.5); transform: translateY(-1px); }

    /* ── Hero ── */
    .hero {
      min-height: 100vh;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      text-align: center;
      padding: 130px 24px 100px;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
      background-size: 36px 36px;
      pointer-events: none;
    }
    .blob {
      position: absolute; border-radius: 50%;
      filter: blur(110px); pointer-events: none;
    }
    .blob-a {
      width: 700px; height: 700px;
      background: rgba(13,110,253,.14);
      top: -200px; left: 50%; transform: translateX(-50%);
      animation: ba 13s ease-in-out infinite alternate;
    }
    .blob-b {
      width: 420px; height: 420px;
      background: rgba(99,102,241,.09);
      bottom: 0; right: -80px;
      animation: bb 17s ease-in-out infinite alternate;
    }
    @keyframes ba { from { transform:translateX(-60%) translateY(0); } to { transform:translateX(-40%) translateY(50px); } }
    @keyframes bb { from { transform:translate(0,0); } to { transform:translate(-40px,-50px); } }

    .hero-inner { position: relative; z-index: 1; max-width: 860px; }

    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(13,110,253,.10); border: 1px solid rgba(13,110,253,.28);
      border-radius: 100px; padding: 6px 18px;
      font-size: 12px; font-weight: 500; color: #93c5fd;
      margin-bottom: 36px;
      animation: fu .6s ease both;
    }
    .hero-badge::before {
      content: ''; width: 6px; height: 6px;
      background: #60a5fa; border-radius: 50%;
      animation: pd 2s ease-in-out infinite;
    }
    @keyframes pd { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.65)} }

    h1.hero-title {
      font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
      font-size: clamp(42px, 6.5vw, 74px);
      font-weight: 700; letter-spacing: -.01em;
      line-height: 1.1; color: #fff;
      margin-bottom: 26px;
      animation: fu .7s ease .1s both;
    }
    h1.hero-title em {
      font-style: normal;
      background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 60%, #0d6efd 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-sub {
      font-size: 18px; font-weight: 300; color: var(--muted);
      max-width: 580px; margin: 0 auto 48px; line-height: 1.7;
      animation: fu .7s ease .2s both;
    }

    .hero-btns {
      display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
      animation: fu .7s ease .3s both;
    }
    .btn-hero {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 15px 34px; border-radius: 10px;
      font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; font-weight: 600;
      text-decoration: none; transition: all .2s;
    }
    .btn-hero.solid {
      background: var(--blue); color: #fff;
      box-shadow: 0 4px 24px rgba(13,110,253,.42);
    }
    .btn-hero.solid:hover { background: var(--blue-dk); box-shadow: 0 8px 36px rgba(13,110,253,.58); transform: translateY(-2px); }
    .btn-hero.outline {
      border: 1px solid rgba(255,255,255,.18); color: #fff;
    }
    .btn-hero.outline:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }

    .hero-stats {
      display: flex; gap: 56px; justify-content: center;
      margin-top: 80px; flex-wrap: wrap;
      animation: fu .7s ease .45s both;
    }
    .stat-item { text-align: center; }
    .stat-num {
      font-family: 'IBM Plex Sans', sans-serif;
      font-size: 38px; font-weight: 800; letter-spacing: -.04em;
      color: #fff; line-height: 1;
    }
    .stat-num b { color: var(--blue); font-weight: 800; }
    .stat-lbl { font-size: 13px; color: var(--muted); margin-top: 5px; }

    .hero-ecg {
      position: absolute; bottom: 0; left: 0; right: 0;
      height: 64px; overflow: hidden; opacity: .35;
    }
    .hero-ecg svg { width: 200%; height: 64px; animation: ecg 9s linear infinite; }
    @keyframes ecg { from { transform: translateX(0); } to { transform: translateX(-50%); } }

    @keyframes fu { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

    /* ── Sections ── */
    section { padding: 100px 24px; }
    .inner { max-width: 1120px; margin: 0 auto; }
    .s-label {
      font-size: 11px; font-weight: 700; letter-spacing: .14em;
      text-transform: uppercase; color: #60a5fa; margin-bottom: 14px;
    }
    .s-title {
      font-family: 'IBM Plex Sans', sans-serif;
      font-size: clamp(28px, 4vw, 46px); font-weight: 800;
      letter-spacing: -.035em; line-height: 1.1;
      color: #fff; margin-bottom: 16px;
    }
    .s-sub { font-size: 17px; color: var(--muted); max-width: 540px; line-height: 1.7; }

    /* ── Features grid ── */
    .features { background: rgba(255,255,255,.018); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

    .feat-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      margin-top: 64px;
      border: 1px solid var(--card-bdr); border-radius: 16px; overflow: hidden;
    }
    .feat-card {
      padding: 38px 34px;
      background: var(--card-bg);
      border-right: 1px solid var(--card-bdr);
      border-bottom: 1px solid var(--card-bdr);
      transition: background .2s;
    }
    .feat-card:hover { background: rgba(255,255,255,.075); }
    .feat-card:nth-child(3n) { border-right: none; }
    .feat-card:nth-last-child(-n+3) { border-bottom: none; }
    .feat-icon {
      width: 46px; height: 46px;
      background: rgba(13,110,253,.14);
      border: 1px solid rgba(13,110,253,.24);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; margin-bottom: 22px;
    }
    .feat-title {
      font-family: 'IBM Plex Sans', sans-serif;
      font-size: 17px; font-weight: 700; letter-spacing: -.02em;
      color: #fff; margin-bottom: 10px;
    }
    .feat-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

    /* ── Problem section ── */
    .problem { background: var(--navy); }
    .problem-grid {
      display: grid; grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem; margin-top: 3rem;
    }
    .problem-card {
      padding: 2rem 2.2rem;
      background: rgba(239,68,68,.04);
      border: 1px solid rgba(239,68,68,.14);
      border-radius: 14px;
      transition: background .2s;
    }
    .problem-card:hover { background: rgba(239,68,68,.07); }
    .problem-icon { font-size: 1.75rem; margin-bottom: 1rem; display: block; }
    .problem-title {
      font-size: 16px; font-weight: 700; color: #fff;
      margin-bottom: .5rem; letter-spacing: -.01em;
    }
    .problem-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

    /* ── Steps ── */
    .how { background: var(--navy); }
    .steps {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 48px; margin-top: 68px; position: relative;
    }
    .steps::before {
      content: '';
      position: absolute; top: 28px;
      left: calc(16.67% + 24px); right: calc(16.67% + 24px);
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(13,110,253,.45), transparent);
    }
    .step { text-align: center; }
    .step-n {
      font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; font-weight: 800;
      width: 56px; height: 56px; border-radius: 50%;
      background: rgba(13,110,253,.12); border: 1px solid rgba(13,110,253,.28);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 26px; color: #60a5fa; position: relative; z-index: 1;
    }
    .step-t {
      font-family: 'IBM Plex Sans', sans-serif; font-size: 19px; font-weight: 700;
      letter-spacing: -.02em; color: #fff; margin-bottom: 12px;
    }
    .step-d { font-size: 14px; color: var(--muted); line-height: 1.7; }

    /* ── Personas ── */
    .personas-grid {
      display: grid; grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem; margin-top: 3rem;
    }
    .persona-card {
      padding: 2rem 2.2rem;
      background: var(--card-bg);
      border: 1px solid var(--card-bdr);
      border-radius: 14px;
      transition: background .2s;
    }
    .persona-card:hover { background: rgba(255,255,255,.07); }
    .persona-icon { font-size: 1.75rem; margin-bottom: 1rem; display: block; }
    .persona-role {
      font-size: 11px; font-weight: 700; letter-spacing: .12em;
      text-transform: uppercase; color: #60a5fa; margin-bottom: .4rem;
    }
    .persona-title {
      font-size: 18px; font-weight: 700; color: #fff;
      margin-bottom: .6rem; letter-spacing: -.02em;
    }
    .persona-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

    /* ── Results ── */
    .results { background: rgba(255,255,255,.018); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .results-grid {
      display: grid; grid-template-columns: repeat(4, 1fr);
      gap: 0; margin-top: 3.5rem;
      border: 1px solid var(--card-bdr); border-radius: 16px; overflow: hidden;
    }
    .result-card {
      padding: 2.5rem 2rem;
      text-align: center;
      border-right: 1px solid var(--card-bdr);
      background: var(--card-bg);
    }
    .result-card:last-child { border-right: none; }
    .result-num {
      font-family: 'IBM Plex Sans', sans-serif;
      font-size: 3rem; font-weight: 800; letter-spacing: -.05em;
      color: var(--blue); line-height: 1; margin-bottom: .5rem;
    }
    .result-label {
      font-size: 15px; font-weight: 700; color: #fff; margin-bottom: .5rem;
    }
    .result-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

    /* ── Compliance ── */
    .compliance {
      background: rgba(13,110,253,.06);
      border-top: 1px solid rgba(13,110,253,.14);
      border-bottom: 1px solid rgba(13,110,253,.14);
      padding: 52px 52px;
    }
    .comp-inner {
      max-width: 1120px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      gap: 32px; flex-wrap: wrap;
    }
    .comp-text h3 {
      font-family: 'IBM Plex Sans', sans-serif; font-size: 22px; font-weight: 700;
      color: #fff; margin-bottom: 8px; letter-spacing: -.02em;
    }
    .comp-text p { font-size: 14px; color: var(--muted); max-width: 460px; line-height: 1.65; }
    .comp-badges { display: flex; gap: 10px; flex-wrap: wrap; }
    .comp-badge {
      padding: 9px 18px; border-radius: 8px;
      background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
      font-size: 12px; font-weight: 600; color: #cbd5e1; white-space: nowrap;
    }

    /* ── FAQ ── */
    .faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: .75rem; }
    .faq-item {
      border: 1px solid var(--card-bdr); border-radius: 12px;
      background: var(--card-bg); overflow: hidden;
    }
    .faq-q {
      width: 100%; text-align: left; background: none; border: none;
      padding: 1.25rem 1.5rem; cursor: pointer;
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; font-weight: 600;
      color: #fff; transition: background .2s;
    }
    .faq-q:hover { background: rgba(255,255,255,.04); }
    .faq-arrow { flex-shrink: 0; font-size: 1rem; color: var(--muted); transition: transform .25s; }
    .faq-item.open .faq-arrow { transform: rotate(180deg); }
    .faq-a {
      max-height: 0; overflow: hidden;
      transition: max-height .3s ease, padding .3s ease;
      font-size: 14px; color: var(--muted); line-height: 1.75;
      padding: 0 1.5rem;
    }
    .faq-item.open .faq-a { max-height: 200px; padding: 0 1.5rem 1.25rem; }

    /* ── Contact form ── */
    .cta {
      background: var(--navy-mid);
      padding: 100px 24px;
      position: relative; overflow: hidden;
    }
    .cta::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(ellipse at 50% 0%, rgba(13,110,253,.22) 0%, transparent 68%);
      pointer-events: none;
    }
    .cta-inner { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
    .cta-layout {
      display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
    }
    .cta-text .cta-title {
      font-family: 'IBM Plex Sans', sans-serif;
      font-size: clamp(28px, 4vw, 44px); font-weight: 800;
      letter-spacing: -.04em; line-height: 1.1;
      color: #fff; margin-bottom: 1rem;
    }
    .cta-text .cta-sub { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }
    .cta-trust { display: flex; flex-direction: column; gap: .6rem; }
    .cta-trust-item { display: flex; align-items: center; gap: .6rem; font-size: 14px; color: var(--muted); }
    .cta-trust-item::before { content: '✓'; color: #22c55e; font-weight: 700; flex-shrink: 0; }

    .contact-form {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 16px;
      padding: 2rem;
    }
    .contact-form h3 {
      font-size: 20px; font-weight: 700; color: #fff;
      margin-bottom: 1.5rem; letter-spacing: -.02em;
    }
    .cf-field { margin-bottom: 1rem; }
    .cf-field label {
      display: block; font-size: 13px; font-weight: 500;
      color: #cbd5e1; margin-bottom: .35rem;
    }
    .cf-field input, .cf-field select {
      display: block; width: 100%;
      padding: .6rem .9rem;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px;
      font-size: 14px; color: #fff; font-family: inherit;
      transition: border-color .2s, background .2s;
    }
    .cf-field input::placeholder { color: #475569; }
    .cf-field select option { background: #1e293b; color: #fff; }
    .cf-field input:focus, .cf-field select:focus {
      outline: none;
      border-color: var(--blue);
      background: rgba(13,110,253,.06);
    }
    .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .cf-submit {
      width: 100%; padding: .8rem;
      background: var(--blue); color: #fff; border: none;
      border-radius: 10px; font-size: 15px; font-weight: 600;
      font-family: inherit; cursor: pointer; margin-top: .5rem;
      transition: background .2s, transform .15s;
    }
    .cf-submit:hover { background: var(--blue-dk); transform: translateY(-1px); }
    .cf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
    .cf-note { font-size: 12px; color: #475569; margin-top: .75rem; text-align: center; }
    .cf-error { color: #f87171; font-size: 13px; margin-top: .5rem; }
    .cf-success {
      text-align: center; padding: 2rem 1rem;
      display: none;
    }
    .cf-success-icon { font-size: 2.5rem; margin-bottom: 1rem; }
    .cf-success h4 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: .5rem; }
    .cf-success p { font-size: 14px; color: var(--muted); }

    /* ── Footer ── */
    footer {
      background: #030710; border-top: 1px solid var(--line);
      padding: 40px 52px;
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 16px;
    }
    .foot-logo { font-family:'IBM Plex Sans',sans-serif; font-size:16px; font-weight:800; letter-spacing:-.04em; color:#fff; }
    .foot-logo span { color: var(--blue); }
    .foot-copy { font-size: 12px; color: #334155; }

    /* ── Scroll reveal ── */
    .rev { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
    .rev.in { opacity: 1; transform: translateY(0); }

    /* ── Responsive ── */
    @media (max-width: 960px) {
      nav { padding: 16px 24px; }
      .nav-links { display: none; }
      .feat-grid, .steps, .personas-grid, .problem-grid { grid-template-columns: 1fr; }
      .results-grid { grid-template-columns: repeat(2, 1fr); }
      .result-card:nth-child(2) { border-right: none; }
      .result-card:nth-child(3) { border-right: 1px solid var(--card-bdr); }
      .feat-card { border-right: none !important; }
      .steps::before { display: none; }
      .compliance { padding: 40px 24px; }
      .cta-layout { grid-template-columns: 1fr; gap: 2.5rem; }
      .cf-row { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .results-grid { grid-template-columns: 1fr; }
      .result-card { border-right: none !important; border-bottom: 1px solid var(--card-bdr); }
      .result-card:last-child { border-bottom: none; }
    }
