/* ============================================================
   Prestimed SMS API — styles
   ============================================================ */

:root {
  --navy-900: #0d1f3c;
  --navy-800: #12294a;
  --navy-700: #1a3559;
  --navy-600: #24406a;
  --gold-500: #e0a33e;
  --gold-600: #cf9130;
  --gold-400: #eab963;
  --gold-100: #f7e8cd;
  --cream:    #fbf8f3;
  --cream-2:  #f3eee5;
  --white:    #ffffff;
  --ink:      #16233a;
  --muted:    #5c6a80;
  --muted-2:  #8b97a8;
  --border:   #e4dfd5;

  --wrap: 1160px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(13, 31, 60, .06);
  --shadow-md: 0 14px 40px rgba(13, 31, 60, .10);
  --shadow-lg: 0 30px 70px rgba(13, 31, 60, .22);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--gold-500);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(224, 163, 62, .32);
}
.btn-primary:hover {
  background: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(224, 163, 62, .42);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { animation: sheen .8s var(--ease); }
@keyframes sheen { to { transform: translateX(120%); } }

.btn-ghost {
  background: var(--white);
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
  transform: translateY(-2px);
}
.code-tag { font-family: var(--mono); color: var(--gold-500); font-size: .9em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 10px;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13, 31, 60, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 34px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; }
.logo-text span { font-size: .72rem; color: var(--gold-500); font-weight: 600; letter-spacing: .06em; }

.nav ul { display: flex; gap: 38px; }
.nav a {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 6px;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--gold-600); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background: linear-gradient(160deg, #ffffff 0%, var(--cream) 60%, var(--cream-2) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  right: -12%; top: -10%;
  width: 780px; height: 780px;
  background:
    radial-gradient(circle at 30% 30%, rgba(224,163,62,.10), transparent 62%),
    conic-gradient(from 210deg, transparent 0 55%, rgba(224,163,62,.06) 75%, transparent 100%);
  border-radius: 50%;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  to { transform: translate3d(-40px, 30px, 0) scale(1.06); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  font-weight: 800;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.hero h1 span { display: block; }
.hero h1 .l1 { color: var(--navy-800); }
.hero h1 .l2 { color: var(--gold-500); }
.hero h1 .l3 { color: var(--navy-800); font-weight: 600; font-size: .72em; margin-top: .12em; }

.hero h1 span {
  opacity: 0;
  animation: slideUp .8s var(--ease) forwards;
}
.hero h1 .l1 { animation-delay: .05s; }
.hero h1 .l2 { animation-delay: .18s; }
.hero h1 .l3 { animation-delay: .31s; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.hero-lead {
  max-width: 470px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
  opacity: 0;
  animation: slideUp .8s var(--ease) .44s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 52px;
  opacity: 0;
  animation: slideUp .8s var(--ease) .56s forwards;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  opacity: 0;
  animation: slideUp .8s var(--ease) .68s forwards;
}
.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .78rem;
  line-height: 1.35;
  color: var(--navy-800);
  font-weight: 500;
}
.hero-features svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--gold-500); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.hero-features li:hover svg { transform: translateY(-3px) scale(1.1); }

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  min-height: 460px;
}

.hero-path {
  position: absolute;
  inset: -20px -20px 0 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-path .dash {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.6;
  stroke-dasharray: 6 9;
  opacity: .55;
  animation: dashmove 30s linear infinite;
}
@keyframes dashmove { to { stroke-dashoffset: -450; } }

.float-badge {
  position: absolute;
  z-index: 4;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 10px 26px rgba(224,163,62,.45);
}
.float-badge svg { width: 22px; height: 22px; fill: var(--white); }
.badge-send  { top: 4px; left: 62%; animation: bob 4.5s ease-in-out infinite; }
.badge-stats { bottom: 44px; right: 2px; animation: bob 5.2s ease-in-out infinite .8s; }
@keyframes bob {
  50% { transform: translateY(-14px); }
}

.code-window {
  position: relative;
  z-index: 2;
  width: 88%;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(24px);
  transition: transform .5s var(--ease);
}
.hero-visual:hover .code-window { transform: translateY(18px); }

.win-bar {
  display: flex; gap: 8px;
  padding: 14px 18px;
  background: var(--navy-900);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }

.win-body {
  margin: 0;
  padding: 22px 24px 30px;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.75;
  color: #d7e0ee;
  overflow-x: auto;
}
.t-m { color: var(--gold-400); font-weight: 500; }
.t-u { color: #7fd6ff; }
.t-k { color: #8ea4c4; }
.t-s { color: #86d3a0; }
.t-c { color: #c792ea; }
.t-v { color: #7fd6ff; }
.t-f { color: var(--gold-400); }
.t-b { color: #ff9d7a; }

.phone {
  position: absolute;
  z-index: 3;
  right: -8px; top: 22px;
  width: 176px;
  aspect-ratio: 176 / 350;
  border-radius: 28px;
  background: #f4f5f7;
  border: 7px solid var(--navy-900);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: bob 6s ease-in-out infinite;
}
.phone-notch {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 14px;
  background: var(--navy-900);
  border-radius: 0 0 10px 10px;
}
.phone-status {
  display: flex; justify-content: space-between;
  padding: 4px 12px 2px;
  font-size: .5rem; font-weight: 600; color: var(--navy-900);
}
.phone-status .sig { width: 22px; height: 7px; background: var(--navy-900); border-radius: 2px; opacity: .5; }
.phone-title {
  text-align: center;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 8px 0 10px;
  border-bottom: 1px solid #e2e4e8;
  color: var(--navy-900);
}
.phone-thread { flex: 1; padding: 16px 12px; }
.bubble {
  background: #e6e7ea;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .56rem;
  line-height: 1.6;
  color: #222;
  opacity: 0;
  animation: pop .6s var(--ease) 1.2s forwards;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
.phone-input {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px; padding: 6px 10px;
  border: 1px solid #dcdee2;
  border-radius: 20px;
  font-size: .52rem;
  color: var(--muted-2);
}
.phone-input i { width: 12px; height: 12px; border-radius: 50%; background: #dcdee2; }

/* ---------- Section primitives ---------- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  text-align: center;
  color: var(--navy-800);
}
.section-title.light { color: var(--white); }

.rule {
  display: block;
  width: 56px; height: 3px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: var(--gold-500);
  transform-origin: center;
}
.reveal .rule, .rule.reveal { transition-delay: .1s; }

.section-lead {
  max-width: 720px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: .96rem;
}
.section-lead.left { margin-inline: 0; text-align: left; }

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 10px;
}

/* ---------- Advantages ---------- */
.advantages {
  position: relative;
  padding: 78px 0 86px;
  background: var(--navy-800);
  overflow: hidden;
}
.advantages::before, .advantages::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: var(--gold-500);
}
.advantages::before { top: 0; }
.advantages::after  { bottom: 0; }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 50px;
}
.adv {
  position: relative;
  text-align: center;
  padding: 0 26px;
}
.adv + .adv::before {
  content: "";
  position: absolute;
  left: 0; top: 12%;
  width: 1px; height: 76%;
  background: rgba(255,255,255,.12);
}
.adv-ico {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 22px;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.adv-ico svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--gold-500); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.adv:hover .adv-ico {
  transform: translateY(-6px) rotate(-6deg);
  box-shadow: 0 0 0 8px rgba(224,163,62,.10);
}
.adv h3 {
  font-size: 1.02rem;
  color: var(--gold-500);
  margin-bottom: 12px;
}
.adv p {
  font-size: .87rem;
  color: rgba(255,255,255,.74);
  line-height: 1.7;
}

/* ---------- Medycyna ---------- */
.med {
  position: relative;
  padding: 84px 0 90px;
  background: var(--white);
  overflow: hidden;
}
.med-bg {
  position: absolute;
  left: -10%; top: -12%;
  width: 620px; height: 620px;
  background:
    radial-gradient(circle at 40% 40%, rgba(224,163,62,.08), transparent 62%),
    conic-gradient(from 30deg, transparent 0 60%, rgba(18,41,74,.05) 80%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
}
.med .container { position: relative; z-index: 2; }

.med-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 50px 0 40px;
}
.med-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.med-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}
.med-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.med-ico {
  display: grid; place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gold-100);
  transition: transform .4s var(--ease);
}
.med-card:hover .med-ico { transform: scale(1.08) rotate(-5deg); }
.med-ico svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--gold-600); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.med-card h3 { font-size: 1.05rem; color: var(--navy-800); }
.med-card > p {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.med-sms {
  position: relative;
  margin-top: auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px;
  padding: 13px 15px;
}
.med-sms::before {
  content: "";
  position: absolute;
  top: -1px; left: -7px;
  width: 12px; height: 12px;
  background: var(--cream);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 4px 0 0 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.sms-sender {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.sms-sender svg {
  width: 13px; height: 13px; flex: none;
  fill: none; stroke: var(--gold-500); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.sms-msg {
  display: block;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink);
}
.sms-msg b { color: var(--navy-800); font-weight: 700; }

.med-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 22px 26px;
  background: var(--navy-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.med-note svg {
  width: 26px; height: 26px; flex: none;
  margin-top: 2px;
  fill: none; stroke: var(--gold-500); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.med-note p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
}
.med-note strong { color: var(--white); font-weight: 600; }

.med-grid .med-card:nth-child(2) { transition-delay: .08s; }
.med-grid .med-card:nth-child(3) { transition-delay: .16s; }
.med-grid .med-card:nth-child(5) { transition-delay: .08s; }
.med-grid .med-card:nth-child(6) { transition-delay: .16s; }

/* ============================================================
   Podstrona: Medycyna
   ============================================================ */

/* ---------- Med hero ---------- */
.med-hero {
  position: relative;
  padding: 150px 0 84px;
  background: linear-gradient(160deg, #ffffff 0%, var(--cream) 60%, var(--cream-2) 100%);
  overflow: hidden;
}
.med-hero-bg {
  position: absolute;
  right: -12%; top: -10%;
  width: 760px; height: 760px;
  background:
    radial-gradient(circle at 30% 30%, rgba(224,163,62,.10), transparent 62%),
    conic-gradient(from 210deg, transparent 0 55%, rgba(18,41,74,.06) 75%, transparent 100%);
  border-radius: 50%;
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.med-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--muted); transition: color .25s; }
.breadcrumb a:hover { color: var(--gold-600); }
.breadcrumb span[aria-current] { color: var(--navy-800); font-weight: 600; }

.med-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}
.med-hero-copy h1 .l1 { color: var(--navy-800); }
.med-hero-copy h1 .l2 { color: var(--gold-500); }
.med-hero-lead {
  max-width: 540px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.med-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.med-hero-stats li { border-left: 3px solid var(--gold-500); padding-left: 14px; }
.med-hero-stats strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.1;
}
.med-hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}

.med-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}
.phone-lg {
  position: relative;
  right: auto; top: auto;
  width: 250px;
  aspect-ratio: 250 / 500;
}
.phone-thread-multi { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; }
.phone-thread-multi .bubble { animation-delay: .4s; }
.phone-thread-multi .b2 { animation-delay: .9s; }
.phone-thread-multi .b3 { animation-delay: 1.4s; }

/* ---------- Med why ---------- */
.med-why {
  position: relative;
  padding: 78px 0 84px;
  background: var(--navy-800);
  overflow: hidden;
}
.med-why::before, .med-why::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: var(--gold-500);
}
.med-why::before { top: 0; }
.med-why::after  { bottom: 0; }
.med-why .eyebrow.center,
.med-audience-sec .eyebrow.center,
.med-faq .eyebrow.center { color: var(--gold-500); }

.med-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 48px;
}
.med-why-item {
  text-align: center;
  padding: 0 12px;
}
.med-why-ico {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.med-why-item:hover .med-why-ico {
  transform: translateY(-6px) rotate(-6deg);
  box-shadow: 0 0 0 8px rgba(224,163,62,.10);
}
.med-why-ico svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--gold-500); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.med-why-item h3 { font-size: 1.02rem; color: var(--gold-500); margin-bottom: 12px; }
.med-why-item p { font-size: .87rem; color: rgba(255,255,255,.74); line-height: 1.7; }

/* ---------- Med audience ---------- */
.med-audience-sec { padding: 84px 0 90px; background: var(--white); }
.med-audience {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.med-audience li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy-800);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.med-audience li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold-400);
}
.med-aud-ico {
  display: grid; place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gold-100);
}
.med-aud-ico svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--gold-600); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Med migration / API ---------- */
.med-migrate { padding: 84px 0 90px; background: var(--cream); }
.med-migrate-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.med-migrate-copy h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  color: var(--navy-800);
  margin-bottom: 14px;
}
.ticks-loose {
  border-top: 0;
  padding-top: 4px;
  margin-top: 22px;
  margin-bottom: 30px;
  gap: 14px;
}
.inline-code {
  font-family: var(--mono);
  font-size: .82em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--gold-100);
  color: var(--navy-800);
  border: 1px solid var(--border);
}

/* ---------- Med security ---------- */
.med-security {
  position: relative;
  padding: 86px 0;
  background: var(--navy-900);
  overflow: hidden;
  color: var(--white);
}
.med-sec-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 50px;
  align-items: center;
}
.med-sec-copy h2 { font-size: clamp(1.6rem, 3vw, 2.05rem); margin-bottom: 16px; }
.med-sec-visual { display: grid; place-items: center; min-height: 260px; }
.med-shield {
  display: grid; place-items: center;
  width: 220px; height: 220px;
  color: var(--gold-500);
  filter: drop-shadow(0 20px 40px rgba(224,163,62,.25));
  animation: bob 6s ease-in-out infinite;
}
.med-shield svg { width: 100%; height: 100%; }

/* ---------- Med FAQ ---------- */
.med-faq { padding: 84px 0 90px; background: var(--white); }
.faq-list {
  max-width: 820px;
  margin: 46px auto 0;
  display: grid;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 22px;
  position: relative;
  font-weight: 600;
  font-size: .96rem;
  color: var(--navy-800);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p {
  padding: 0 22px 22px;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Med CTA ---------- */
.med-cta {
  padding: 78px 0;
  background: var(--navy-800);
  color: var(--white);
  text-align: center;
}
.med-cta-inner { max-width: 720px; margin-inline: auto; }
.med-cta h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 14px; }
.med-cta p { color: rgba(255,255,255,.74); font-size: .96rem; margin-bottom: 30px; }
.center-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Pricing ---------- */
.pricing {
  padding: 84px 0 90px;
  background: var(--cream);
}
.eyebrow.center { text-align: center; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 48px 0 44px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}
.card-ico {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold-100);
  margin-bottom: 20px;
  transition: transform .4s var(--ease);
}
.card:hover .card-ico { transform: scale(1.08) rotate(-5deg); }
.card-ico svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--gold-600); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1.12rem; color: var(--navy-800); margin-bottom: 12px; }
.card > p { font-size: .87rem; color: var(--muted); line-height: 1.7; }

.ticks {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 24px;
  font-size: .875rem;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 6px; height: 6px;
  border-right: 2px solid var(--gold-500);
  border-top: 2px solid var(--gold-500);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.ticks li:hover::before { transform: rotate(45deg) translate(2px, -2px); }

/* ---------- Marketing ---------- */
.marketing {
  position: relative;
  padding: 86px 0;
  background: var(--navy-900);
  overflow: hidden;
  color: var(--white);
}
.mk-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 480px at 78% 50%, rgba(224,163,62,.10), transparent 70%),
    radial-gradient(500px 400px at 10% 10%, rgba(36,64,106,.55), transparent 70%);
}
.mk-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}
.mk-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  margin-bottom: 16px;
}
.mk-lead { color: rgba(255,255,255,.72); font-size: .95rem; margin-bottom: 28px; max-width: 480px; }

.checks { display: grid; gap: 14px; margin-bottom: 34px; }
.checks li {
  position: relative;
  padding-left: 34px;
  font-size: .92rem;
  color: rgba(255,255,255,.9);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-500);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 6px; top: 50%;
  width: 7px; height: 4px;
  border-left: 2px solid var(--navy-900);
  border-bottom: 2px solid var(--navy-900);
  transform: translateY(-70%) rotate(-45deg);
}

.mk-visual {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
}
.orbit { position: absolute; width: 100%; max-width: 420px; }
.orbit circle {
  fill: none;
  stroke: rgba(224,163,62,.28);
  stroke-width: 1;
}
.orbit .o1 { stroke-dasharray: 4 10; animation: spin 44s linear infinite; transform-origin: 200px 200px; }
.orbit .o2 { stroke-dasharray: 2 14; animation: spin 60s linear reverse infinite; transform-origin: 200px 200px; }
@keyframes spin { to { transform: rotate(360deg); } }

.mk-phone {
  position: relative;
  width: 150px; height: 290px;
  border-radius: 24px;
  border: 3px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.02);
}
.mk-envelope {
  position: absolute;
  right: -66px; top: 50%;
  width: 128px;
  transform: translateY(-40%);
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.4));
  animation: bob 5s ease-in-out infinite;
}
.mk-chat {
  position: absolute;
  left: 62px; top: 22px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--gold-500);
}
.mk-chat svg { width: 16px; height: 16px; fill: none; stroke: var(--navy-900); stroke-width: 1.8; }
.mk-chat i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--navy-900);
  animation: typing 1.4s ease-in-out infinite;
}
.mk-chat i:nth-child(3) { animation-delay: .2s; }
.mk-chat i:nth-child(4) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.mk-user {
  position: absolute;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold-500);
}
.mk-user svg { width: 22px; height: 22px; fill: none; stroke: var(--navy-900); stroke-width: 1.8; stroke-linecap: round; }
.mk-user.u1 { right: -110px; top: 26px; animation: bob 4.4s ease-in-out infinite .3s; }
.mk-user.u2 { left: -78px; bottom: 40px; animation: bob 5.4s ease-in-out infinite .9s; }

/* ---------- API ---------- */
.api { padding: 84px 0 90px; background: var(--white); }
.api-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.api-copy h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  color: var(--navy-800);
  margin-bottom: 14px;
}
.api-uses {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 36px;
}
.api-uses li { text-align: center; }
.api-uses svg {
  width: 26px; height: 26px;
  margin-bottom: 12px;
  fill: none; stroke: var(--navy-800); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s, transform .35s var(--ease);
}
.api-uses li:hover svg { stroke: var(--gold-500); transform: translateY(-4px); }
.api-uses span { display: block; font-size: .72rem; color: var(--muted); line-height: 1.4; }

.api-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
}
.tabs {
  display: flex;
  gap: 2px;
  background: var(--navy-900);
  padding: 8px 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.tab:hover { color: var(--white); }
.tab.is-active { background: var(--navy-800); color: var(--white); }

.panels { position: relative; }
.panel { animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.code {
  margin: 0;
  padding: 24px 26px 28px;
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.85;
  color: #d7e0ee;
  overflow-x: auto;
  counter-reset: line;
  min-height: 330px;
}
.code code { display: block; }

/* ---------- Contact ---------- */
.contact {
  padding: 84px 0 92px;
  background: var(--cream);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  color: var(--navy-800);
  margin-bottom: 14px;
}
.contact-list { display: grid; gap: 16px; margin-top: 36px; }
.contact-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: .92rem;
  color: var(--ink);
}
.contact-list svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--gold-500); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-list a { transition: color .25s; }
.contact-list a:hover { color: var(--gold-600); }

.contact-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
input, textarea {
  width: 100%;
  font: inherit;
  font-size: .92rem;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(224,163,62,.14);
}
textarea { resize: vertical; min-height: 130px; }
input.invalid, textarea.invalid {
  border-color: #d9534f;
  box-shadow: 0 0 0 4px rgba(217,83,79,.12);
  animation: shake .35s;
}
@keyframes shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.form-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: .78rem;
  color: var(--muted);
}
.form-note svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: var(--muted-2); stroke-width: 1.6;
}
.form-status {
  margin-top: 12px;
  font-size: .85rem;
  font-weight: 500;
  color: #2f855a;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy-800);
  color: rgba(255,255,255,.72);
  padding: 62px 0 40px;
  overflow: hidden;
}
.footer-mark {
  position: absolute;
  right: 4%; bottom: -30px;
  width: 260px;
  color: rgba(255,255,255,.05);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.logo-light .logo-text strong { color: var(--white); }
.footer-brand p { font-size: .85rem; margin-top: 20px; max-width: 330px; line-height: 1.7; }
.footer-brand .copy { font-size: .76rem; color: rgba(255,255,255,.45); margin-top: 24px; }

.footer-col h2 {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col span { font-size: .87rem; }
.footer-col a {
  display: inline-block;
  transition: color .25s, transform .25s var(--ease);
}
.footer-col a:hover { color: var(--gold-500); transform: translateX(3px); }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--gold-500); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.adv-grid .adv:nth-child(2), .price-grid .card:nth-child(2) { transition-delay: .1s; }
.adv-grid .adv:nth-child(3), .price-grid .card:nth-child(3) { transition-delay: .2s; }
.adv-grid .adv:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner, .mk-inner, .api-inner, .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero { padding-top: 128px; }
  .hero-lead { max-width: none; }
  .hero-visual { min-height: 420px; margin-top: 30px; }
  .code-window { width: 78%; }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 46px; }
  .adv:nth-child(3)::before { display: none; }
  .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .med-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .med-grid .med-card:nth-child(3) { transition-delay: 0s; }
  .med-hero-inner, .med-sec-inner, .med-migrate-inner { grid-template-columns: minmax(0, 1fr); }
  .med-hero { padding-top: 128px; }
  .med-hero-lead { max-width: none; }
  .med-hero-visual { min-height: auto; margin-top: 18px; }
  .med-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .med-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .med-sec-visual { order: -1; min-height: auto; }
  .med-shield { width: 160px; height: 160px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .mk-visual { margin-top: 24px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .45s var(--ease);
  }
  .nav.open { clip-path: inset(0 0 0 0); }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .nav li { border-bottom: 1px solid var(--border); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: 15px 0; font-size: 1rem; }
  .nav a::after { display: none; }

  .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .api-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .phone { width: 148px; right: 0; }
  .code-window { width: 86%; }
  .badge-stats { bottom: 16px; }
  .mk-envelope { right: -40px; width: 104px; }
  .mk-user.u1 { right: -56px; }
  .mk-user.u2 { left: -40px; }
}

@media (max-width: 620px) {
  .adv-grid { grid-template-columns: minmax(0, 1fr); }
  .med-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .med-note { flex-direction: column; gap: 12px; }
  .med-hero-stats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .med-why-grid { grid-template-columns: minmax(0, 1fr); }
  .med-audience { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .med-hero-copy h1 { font-size: clamp(1.8rem, 7vw, 2.2rem); }
  .center-actions .btn { width: 100%; }
  .adv { padding-inline: 0; }
  .adv + .adv::before { display: none; }
  .hero-features { grid-template-columns: minmax(0, 1fr); }
  .contact-form .row { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 340px; }
  .code-window { width: 100%; }
  .phone { display: none; }
  .win-body { font-size: .68rem; }
  .code { font-size: .68rem; padding-inline: 16px; }
  .tab { padding: 11px 15px; font-size: .78rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 span, .hero-lead, .hero-actions, .hero-features, .bubble { opacity: 1; }
}
