/* =============================================================
   Medusa Health – Landingpage
   Design tokens and components, 1:1 from the approved mockup.
   ============================================================= */

:root {
  color-scheme: light;
  --ink: #0f2e28;
  --ink-soft: #3d5b54;
  --brand: #1d6b5b;
  --brand-deep: #14544a;
  --mint: #e4f4ec;
  --mint-strong: #cbeeda;
  --paper: #ffffff;
  --cream: #fbfdf7;
  --line: rgba(15, 46, 40, 0.1);
  --shadow-lg: 0 24px 60px -20px rgba(15, 46, 40, 0.28);
  --shadow-md: 0 12px 32px -12px rgba(15, 46, 40, 0.18);
  --radius: 20px;
  --sans:
    "Avenir Next", "Helvetica Neue", Inter, -apple-system, "Segoe UI", Arial,
    sans-serif;
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- NAV ---------- */
.nav-outer {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
}

nav {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(15, 46, 40, 0.18);
}

nav .logo img {
  height: 30px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

nav ul a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition:
    background 0.18s,
    color 0.18s;
}

nav ul a:hover {
  background: var(--mint);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(15, 46, 40, 0.5);
}

.btn-dark:hover {
  transform: translateY(-1px);
  background: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  background: var(--mint);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.btn-block {
  justify-content: center;
}

@media (max-width: 760px) {
  nav ul {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 90px;
  background:
    radial-gradient(
      1100px 520px at 12% 8%,
      rgba(214, 238, 190, 0.55),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 88% 20%,
      rgba(190, 232, 214, 0.6),
      transparent 65%
    ),
    radial-gradient(
      700px 500px at 70% 95%,
      rgba(244, 246, 196, 0.5),
      transparent 60%
    ),
    linear-gradient(160deg, #f2f8e6 0%, #eaf6ea 40%, #f7f8df 100%);
}

/* fine grid texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 46, 40, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 46, 40, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(
    ellipse 90% 80% at 50% 30%,
    black 30%,
    transparent 90%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 50% 30%,
    black 30%,
    transparent 90%
  );
}

/* dot sprinkle */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(29, 107, 91, 0.14) 1.2px,
    transparent 1.2px
  );
  background-size: 52px 52px;
  background-position: 13px 13px;
  mask-image: radial-gradient(
    ellipse 80% 70% at 55% 25%,
    black 20%,
    transparent 85%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 55% 25%,
    black 20%,
    transparent 85%
  );
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(29, 107, 91, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fa477;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(47, 164, 119, 0.5);
  }
  55% {
    box-shadow: 0 0 0 7px rgba(47, 164, 119, 0);
  }
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 22px;
}

h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--brand-deep);
}

.hero p.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* hero collage */
.collage {
  position: relative;
  min-height: 420px;
}

.shot-frame {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 46, 40, 0.08);
  transform: rotate(0.6deg);
}

.shot-frame .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #f4f6f4;
  border-bottom: 1px solid var(--line);
}

.shot-frame .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.shot-frame .bar i:nth-child(1) {
  background: #f5837b;
}

.shot-frame .bar i:nth-child(2) {
  background: #f2c14e;
}

.shot-frame .bar i:nth-child(3) {
  background: #6fcf8e;
}

.shot-frame .bar span {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: #8aa39c;
  background: #fff;
  border-radius: 6px;
  padding: 3px 10px;
  margin: 0 24px;
  border: 1px solid var(--line);
}

.device-card {
  position: absolute;
  left: -26px;
  bottom: -30px;
  width: 200px;
  background: #fff;
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 46, 40, 0.08);
  transform: rotate(-2.4deg);
}

.device-card img {
  border-radius: 14px;
}

.device-card figcaption.disclaimer {
  font-size: 0.58rem;
  font-weight: 400;
  line-height: 1.45;
  color: #7e948d;
  text-align: center;
  padding: 8px 6px 4px;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.float-chip small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.float-chip .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fc1 {
  top: -22px;
  right: 8px;
  animation: bob 5s ease-in-out infinite;
}

.fc2 {
  top: 88px;
  right: -18px;
  animation: bob 5s ease-in-out 1.2s infinite;
}

.fc3 {
  bottom: 26px;
  right: 40px;
  animation: bob 5s ease-in-out 2.4s infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 960px) {
  .collage {
    min-height: 0;
    margin-bottom: 30px;
  }
  .fc2 {
    right: 0;
  }
  .device-card {
    left: -8px;
    width: 160px;
  }
}

@media (max-width: 560px) {
  .float-chip {
    display: none;
  }
  .device-card {
    bottom: -20px;
  }
}

/* waitlist band inside hero */
.waitlist {
  margin-top: 110px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.waitlist h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 44rem;
  margin: 0 auto 8px;
}

.waitlist h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brand-deep);
}

.waitlist p {
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.wl-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.wl-form input {
  font-family: var(--sans);
  font-size: 0.98rem;
  width: min(340px, 80vw);
  padding: 13px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.wl-form input::placeholder {
  color: #8aa39c;
}

/* ---------- SECTIONS shared ---------- */
section {
  padding: 104px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

h2.sec {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  margin-bottom: 14px;
}

h2.sec em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--brand-deep);
}

.sec-lede {
  color: var(--ink-soft);
  max-width: 38rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- PRODUKT ---------- */
#produkt {
  background: var(--paper);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 52px;
}

@media (max-width: 960px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}

.feat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--cream);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feat .ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--mint);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feat h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feat p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- PRICING ---------- */
#preise {
  background:
    radial-gradient(
      800px 400px at 85% 0%,
      rgba(203, 238, 218, 0.45),
      transparent 60%
    ),
    var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 430px));
  gap: 26px;
  justify-content: center;
  margin-top: 54px;
  align-items: stretch;
}

@media (max-width: 820px) {
  .price-grid {
    grid-template-columns: minmax(0, 430px);
  }
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  background: linear-gradient(170deg, #123f37 0%, var(--brand-deep) 70%);
  color: #f2faf6;
  border-color: transparent;
  box-shadow: 0 30px 70px -24px rgba(18, 63, 55, 0.55);
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.featured .plan-name {
  color: #9bd9bf;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 4px;
}

.price-line .amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-line .per {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.featured .price-line .per {
  color: #a9cec1;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.featured .price-sub {
  color: #a9cec1;
}

.save-badge {
  position: absolute;
  top: -18px;
  right: 26px;
  max-width: calc(100% - 52px);
  background: var(--mint-strong);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  padding: 8px 18px;
  border-radius: 16px;
  box-shadow: 0 6px 16px -6px rgba(15, 46, 40, 0.3);
}

.price-card ul {
  list-style: none;
  margin: 26px 0 30px;
  display: grid;
  gap: 13px;
  flex: 1;
}

.price-card li {
  display: flex;
  gap: 11px;
  font-size: 0.95rem;
  align-items: flex-start;
}

.price-card li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.li-muted {
  color: var(--ink-soft);
}

.featured li {
  color: #dff1e8;
}

.hw-option {
  border: 1.5px dashed rgba(29, 107, 91, 0.4);
  background: var(--mint);
  border-radius: 14px;
  padding: 13px 16px;
  margin: 0 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.hw-option strong {
  font-weight: 700;
}

.hw-option .hw-price {
  font-weight: 700;
  color: var(--brand-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hw-included {
  background: rgba(155, 217, 191, 0.15);
  border: 1.5px solid rgba(155, 217, 191, 0.4);
  border-radius: 14px;
  padding: 13px 16px;
  margin: 0 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #dff1e8;
}

.hw-included .incl {
  font-weight: 700;
  color: #9bd9bf;
  white-space: nowrap;
}

.btn-light {
  background: #fff;
  color: var(--brand-deep);
}

.btn-light:hover {
  background: var(--mint-strong);
  transform: translateY(-1px);
}

.price-note {
  text-align: center;
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- KONTAKT ---------- */
#kontakt .split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 26px;
  margin-top: 52px;
  align-items: start;
}

@media (max-width: 860px) {
  #kontakt .split {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card .sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

input,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  transition: border-color 0.15s;
}

input:hover,
textarea:hover {
  border-color: rgba(29, 107, 91, 0.35);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.news-card {
  background: linear-gradient(165deg, var(--mint) 0%, #f2f8e6 100%);
  border: 1px solid rgba(29, 107, 91, 0.18);
}

.news-card .mark {
  width: 52px;
  margin-bottom: 16px;
}

.tiny {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- FAQ ---------- */
#faq {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.faq-list {
  margin-top: 48px;
  display: grid;
  gap: 14px;
}

details.faq {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

details.faq:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

details.faq[open] {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: none;
}

details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

.faq-q {
  flex: 1;
}

.faq-toggle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

details.faq[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--mint-strong);
}

.faq-a {
  padding: 0 28px 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 64ch;
}

.faq-a a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-a ul {
  margin-top: 8px;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}

/* ---------- LEGAL PAGES ---------- */
.legal-page {
  padding: 170px 0 90px;
  min-height: 70vh;
}

.legal-page .wrap {
  max-width: 820px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
}

.legal-page h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 26px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal-page ul {
  padding-left: 22px;
  margin: 8px 0;
}

.legal-page a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  background: var(--mint);
  border: 1px solid rgba(29, 107, 91, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--brand-deep);
  margin: 22px 0 34px;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 44px 0 54px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.foot img {
  height: 24px;
  width: auto;
}

.foot ul {
  display: flex;
  gap: 22px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.foot ul a:hover {
  color: var(--ink);
}

.foot .copy {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
