/* CareVis — shared by /products/carevis/tr/ and /en/. */

:root {
  --navy: #102A43;
  --petrol: #176B78;
  --teal: #22B8A8;
  --bg: #F7FAFC;
  --white: #FFFFFF;
  --muted: #52667A;
  --line: rgba(16, 42, 67, 0.10);
  --card: rgba(255, 255, 255, 0.85);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background:
    radial-gradient(60rem 40rem at 78% 18rem, var(--white) 0%, rgba(255, 255, 255, 0) 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'calt';
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.875rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(247, 250, 252, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark span { color: var(--petrol); }

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.875rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.site-nav a:hover { color: var(--navy); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lang-switch a {
  padding: 0.375rem 0.5rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a[aria-current="true"] {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
.lang-switch .sep {
  width: 1px;
  height: 0.875rem;
  background: var(--line);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100svh - 4rem);
  padding-top: clamp(2rem, 5vh, 4rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero-text { max-width: 36rem; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.dot { color: var(--teal); }

.hero .lede {
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  max-width: 30rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--petrol);
}
.soon::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--petrol); }
.btn:active { transform: scale(0.98); }

.hero-visual {
  margin: 0;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  aspect-ratio: 520 / 440;
  animation: float 9s ease-in-out infinite;
}

/* ---------- Sections ---------- */

.section {
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
}
.section + .section { padding-top: 0; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--petrol);
}

.section-title {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-intro {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.principle {
  padding: 1.75rem 1.5rem 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.03), 0 12px 32px -18px rgba(16, 42, 67, 0.18);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.principle:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.03), 0 20px 40px -20px rgba(16, 42, 67, 0.25);
}

.principle-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.5rem;
  border-radius: 0.875rem;
  background: rgba(34, 184, 168, 0.10);
  color: var(--petrol);
}
.principle-icon svg { width: 1.375rem; height: 1.375rem; }

.principle h3 {
  margin: 0 0 0.625rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.principle p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Vision */

.vision {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.vision .section-intro + .section-intro { margin-top: 1rem; }

.audience {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.audience-label {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.audience li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.audience li span {
  min-width: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

/* Early access */

.access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px -40px rgba(16, 42, 67, 0.25);
}

.access-note {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}
.access-note a { color: var(--petrol); text-decoration: none; font-weight: 500; }
.access-note a:hover { text-decoration: underline; }

.form { display: grid; gap: 1.125rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }

.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid rgba(16, 42, 67, 0.16);
  border-radius: 0.75rem;
  background: var(--bg);
  color: var(--navy);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2352667A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field input::placeholder,
.field textarea::placeholder { color: #8A9AAB; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(34, 184, 168, 0.14);
}

.form .btn { justify-self: start; margin-top: 0.25rem; }

.form-status {
  margin: 0;
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  background: rgba(34, 184, 168, 0.10);
  color: var(--petrol);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2.5rem);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand p { margin: 0.5rem 0 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.site-footer a {
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.site-footer a:hover { color: var(--navy); }
.footer-bottom {
  margin: 2.5rem 0 0;
  font-size: 0.8125rem;
  color: #7C8DA0;
}

/* ---------- Motion ---------- */

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

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

.reveal { animation: rise 1.1s var(--ease) both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.18s; }
.reveal-3 { animation-delay: 0.32s; }
.reveal-4 { animation-delay: 0.12s; animation-duration: 1.6s; }

/* Scroll reveal: only hidden when JS is present to show it again. */
.js .on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .on-scroll.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    text-align: center;
    gap: 1.5rem;
    padding-top: 1rem;
  }
  .hero-text { margin: 0 auto; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; flex-direction: column; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: min(22rem, 78vw); }
  .soon::after {
    content: '';
    width: 2rem;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
  }

  .vision,
  .access { grid-template-columns: 1fr; }
}

@media (max-width: 860px) and (max-height: 700px) {
  .hero-visual img { max-width: min(15rem, 60vw); }
}

@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
}
