:root {
  --paper: #EBEEF4;
  --paper-raised: #FFFFFF;
  --ink: #101B30;
  --ink-soft: #47536C;
  --ink-faint: #7C87A0;
  --line: #D7DCE8;
  --teal: #14A7BE;
  --teal-deep: #0C7C8E;
  --teal-tint: #DCF1F4;
  --blue: #24408C;
  --blue-deep: #1B3068;
  --blue-tint: #E1E6F5;
  --grad-a: #1FBFCE;
  --grad-b: #223E86;
  --navy-bg: #0A1626;
  --navy-raised: #10203A;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Nav */
header.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(235,238,244,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem; max-width: 1120px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; font-size: 0.92rem; font-weight: 600; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff; padding: 0.55rem 1.1rem; border-radius: 8px;
  font-size: 0.88rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
@media (max-width: 640px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.eyebrow {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-deep); margin-bottom: 1rem;
}
h1.headline {
  font-family: var(--font-display); font-weight: 800; font-size: 2.7rem; line-height: 1.08;
  letter-spacing: -0.01em; margin-bottom: 1.15rem;
}
.headline .accent {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--ink); color: #fff; padding: 0.85rem 1.5rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: 0.98rem; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #1C2C4A; }
.btn-secondary {
  color: var(--ink); padding: 0.85rem 1.3rem; border-radius: 10px; border: 1.5px solid var(--line);
  font-weight: 700; text-decoration: none; font-size: 0.98rem; background: var(--paper-raised);
}
.hero-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.9rem; }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual img { max-height: 520px; width: auto; border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(16,27,48,0.35); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  h1.headline { font-size: 2.1rem; }
  .hero-visual { order: -1; }
  .hero-visual img { max-height: 380px; }
}

/* Section shell */
section { padding: 4rem 0; }
.section-eyebrow {
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.7rem;
}
h2.section-title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.section-lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; margin-bottom: 2.5rem; }

/* About Klinica - dark band */
.about-band { background: var(--navy-bg); color: #F3F6FC; }
.about-band .section-eyebrow { color: #33D8DA; }
.about-band .section-lede { color: #AEBBD4; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2rem; }
.about-card {
  background: #10203A; border: 1px solid #223350; border-radius: 14px; padding: 1.4rem 1.5rem;
}
.about-card .num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  background: linear-gradient(135deg, #33D8DA, #6E93F5); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.4rem; display: block;
}
.about-card p { color: #AEBBD4; font-size: 0.92rem; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.4rem;
}
.feature-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 0.9rem;
}
.feature-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; margin-bottom: 0.4rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* Screens gallery */
.screens-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.screen-item img {
  border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 16px 40px -16px rgba(16,27,48,0.25);
}
.screen-item .cap { text-align: center; margin-top: 0.8rem; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 800px) { .screens-gallery { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

/* Waitlist */
.waitlist-band { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); border-radius: 22px; }
.waitlist-inner { padding: 3rem 2.5rem; color: #fff; }
.waitlist-inner h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 0.6rem; }
.waitlist-inner p { color: rgba(255,255,255,0.88); max-width: 56ch; margin-bottom: 1.8rem; }
.waitlist-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 0.7rem; }
.waitlist-form input, .waitlist-form select {
  padding: 0.8rem 0.9rem; border-radius: 9px; border: none; font-size: 0.95rem; font-family: var(--font);
  background: rgba(255,255,255,0.95); color: var(--ink);
}
.waitlist-form button {
  background: var(--ink); color: #fff; border: none; border-radius: 9px; padding: 0.8rem 1.3rem;
  font-weight: 700; cursor: pointer; font-size: 0.95rem; white-space: nowrap;
}
.waitlist-form button:hover { background: #1C2C4A; }
.form-status { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
@media (max-width: 800px) { .waitlist-form { grid-template-columns: 1fr; } .waitlist-inner { padding: 2.2rem 1.5rem; } }

/* Footer */
footer.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.footer-brand img { height: 26px; }
.footer-links { display: flex; gap: 1.4rem; font-size: 0.88rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { font-size: 0.8rem; color: var(--ink-faint); margin-top: 1rem; }

/* Legal pages */
.legal-page { padding: 3rem 0 5rem; }
.legal-page .wrap { max-width: 780px; }
.legal-page h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.legal-updated { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 2.2rem; }
.legal-page h2 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; margin: 2.1rem 0 0.7rem;
  padding-top: 0.4rem; border-top: 1px solid var(--line);
}
.legal-page h2:first-of-type { border-top: none; padding-top: 0; }
.legal-page p { color: var(--ink-soft); margin-bottom: 0.8rem; font-size: 0.98rem; }
.legal-page ul { color: var(--ink-soft); margin: 0 0 0.8rem 1.3rem; font-size: 0.98rem; }
.legal-page li { margin-bottom: 0.35rem; }
.legal-page strong { color: var(--ink); }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
