/* EveMed AI — landing */
:root {
  --bg: #f8f3f7;
  --bg-deep: #efe6ef;
  --surface: rgba(255, 252, 253, 0.72);
  --ink: #2a1f2c;
  --ink-soft: #5c4d5f;
  --muted: #7a6a7d;
  --line: rgba(122, 42, 154, 0.12);
  --brand: #8e2a9a;
  --brand-deep: #6b1f7a;
  --accent: #d91a7a;
  --grad: linear-gradient(120deg, #7a2a9a 0%, #b02a9a 48%, #d91a7a 100%);
  --shadow: 0 18px 50px rgba(90, 30, 90, 0.1);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(217, 26, 122, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(122, 42, 154, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(176, 42, 154, 0.08), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(248, 243, 247, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: none;
  gap: 1.4rem;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 0 1rem;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0.35rem 0;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 28px rgba(170, 30, 120, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 14px 34px rgba(170, 30, 120, 0.36);
}

.btn-ghost {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--brand);
}

.btn-lg {
  padding: 1.05rem 1.6rem;
  font-size: 1.02rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  padding: clamp(1.1rem, 3vw, 2.2rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  min-height: min(100svh, 900px);
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 0.75rem;
  align-items: end;
}

.hero-copy {
  max-width: 34rem;
  position: relative;
  z-index: 2;
}

.hero-brand {
  width: min(158px, 42vw);
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 8px 24px rgba(120, 40, 140, 0.18));
  animation: rise 0.8s var(--ease) both;
}

@media (min-width: 900px) {
  .hero-brand {
    width: min(220px, 24vw);
    margin-bottom: 1.1rem;
  }
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.55rem, 4.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: rise 0.8s var(--ease) 0.08s both;
}

.hero-lead {
  margin: 0 0 1.15rem;
  font-size: clamp(0.98rem, 2.1vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 34ch;
  animation: rise 0.8s var(--ease) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  animation: rise 0.8s var(--ease) 0.24s both;
}

.hero-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 40ch;
  animation: rise 0.8s var(--ease) 0.3s both;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(280px, 72vw);
  margin-top: 0.25rem;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8% auto;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 26, 122, 0.22), rgba(122, 42, 154, 0.08) 55%, transparent 72%);
  filter: blur(8px);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(80, 30, 90, 0.18));
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2rem;
  }

  .hero-visual {
    width: min(480px, 44vw);
    justify-self: end;
    margin-top: 0;
  }

  .hero-copy {
    padding-bottom: 1rem;
  }
}

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

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* How */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step {
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* Directions */
.directions {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .directions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.direction {
  padding: 1.5rem 1.3rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.78), rgba(248, 235, 245, 0.55));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.direction h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 550;
}

.direction p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.direction ul {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.direction li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.direction li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--grad);
}

/* Trust */
.trust {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35) 20%, rgba(255, 255, 255, 0.35) 80%, transparent),
    radial-gradient(ellipse at 20% 50%, rgba(122, 42, 154, 0.06), transparent 50%);
}

.trust-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.15rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 253, 0.65);
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.trust-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 253, 0.7);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 650;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--brand);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* CTA band */
.cta-band {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(1.8rem, 5vw, 3rem);
  background:
    radial-gradient(ellipse at 90% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    var(--grad);
  color: #fff;
  box-shadow: 0 24px 60px rgba(140, 30, 110, 0.28);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .cta-panel {
    grid-template-columns: 1.3fr auto;
    align-items: center;
  }
}

.cta-panel h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.cta-panel p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.9);
}

.cta-panel .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: none;
}

.cta-panel .btn-primary:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.footer-brand img {
  width: 40px;
}

.disclaimer {
  margin: 0;
  max-width: 52ch;
  line-height: 1.55;
}

.footer-meta {
  display: grid;
  gap: 0.35rem;
}

.footer-meta a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--brand);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
