/*
 * ClinInsta — coming-soon page (WEB-01).
 * Values mirror the "ClinInsta tokens" Figma collection (Mulberry theme).
 * Figma: "Clin Insta — UI Design v1", page ⑧ Landing page — coming soon.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --color-bg: #f9f6f8;
  --color-surface: #ffffff;
  --color-surface2: #f4eef1;
  --color-border: #e6dbe1;
  --color-text: #25131d;
  --color-muted: #685560;
  --color-subtle: #796772;
  --color-primary: #8e2d64;
  --color-primary-strong: #6c214c;
  --color-primary-soft: #f8e8f0;
  --color-brand-accent: #e3a3bf;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --gutter: 80px;

  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 32px -12px rgba(108, 33, 76, 0.22);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p,
h1,
ul {
  margin: 0;
}

img,
svg {
  display: block;
}

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

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* ---------- Decorative background ---------- */

.decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob--top {
  width: 820px;
  height: 820px;
  top: -260px;
  left: calc(100% - 580px);
  background: var(--color-primary-soft);
}

.blob--accent {
  width: 440px;
  height: 440px;
  top: 560px;
  left: calc(100% - 280px);
  background: var(--color-brand-accent);
  opacity: 0.22;
}

.blob--bottom {
  width: 360px;
  height: 360px;
  top: 640px;
  left: -160px;
  background: var(--color-primary-soft);
  opacity: 0.8;
}

.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.site-header {
  padding-block: var(--space-32);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  border-radius: 10px;
}

.logo__mark {
  width: 40px;
  height: auto;
}

.logo__wordmark {
  width: auto;
  height: 18px;
}

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

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero__copy {
  width: 620px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-24);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.headline {
  font-size: 60px;
  line-height: 68px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
  text-wrap: balance;
}

.headline__accent {
  display: block;
  color: var(--color-primary);
}

.subhead {
  max-width: 540px;
  font-size: 20px;
  line-height: 30px;
  color: var(--color-muted);
}

.contact {
  margin-top: var(--space-16);
  display: inline-flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-20) var(--space-16) var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.contact:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.contact:active {
  transform: translateY(1px);
}

.contact__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.contact__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.contact__caption {
  font-size: 13px;
  line-height: 18px;
  color: var(--color-muted);
}

.contact__email {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-primary);
  overflow-wrap: anywhere;
}

.contact:hover .contact__email {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hints {
  list-style: none;
  padding: var(--space-24) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 40px;
  padding: 0 14px 0 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

.hero__art {
  flex: none;
  width: 540px;
  height: 640px;
  position: relative;
}

.hero__art img {
  position: absolute;
  top: -40px;
  left: -48px;
  width: 638px;
  height: 715px;
  max-width: none;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-16);
  padding-block: var(--space-24);
  font-size: 13px;
  line-height: 18px;
  color: var(--color-subtle);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--color-border);
}

/* ---------- Entrance (respects reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *,
  .hero__art {
    animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .hero__copy > :nth-child(3) { animation-delay: 120ms; }
  .hero__copy > :nth-child(4) { animation-delay: 180ms; }
  .hero__copy > :nth-child(5) { animation-delay: 240ms; }
  .hero__art { animation-delay: 200ms; }
}

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

/* ---------- Narrow laptops ---------- */

@media (max-width: 1279px) {
  :root { --gutter: 48px; }
  .hero__art { transform: scale(0.85); transform-origin: center right; margin-left: -80px; }
}

/* ---------- Tablet and phone: single column, no illustration ---------- */

@media (max-width: 1023px) {
  :root { --gutter: 24px; }

  .site-header {
    padding-block: var(--space-20);
  }

  .logo { gap: var(--space-8); }
  .logo__mark { width: 32px; }
  .logo__wordmark { height: 14px; }

  .hero {
    align-items: flex-start;
    padding-top: var(--space-32);
    padding-bottom: var(--space-24);
  }

  .hero__copy {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    gap: var(--space-20);
  }

  .hero__art { display: none; }

  .headline {
    font-size: clamp(36px, 7vw, 48px);
    line-height: 1.16;
  }

  .subhead {
    font-size: 17px;
    line-height: 26px;
  }

  .contact {
    margin-top: var(--space-8);
    width: 100%;
  }

  .hints { padding-top: var(--space-12); }

  .blob--top { width: 440px; height: 440px; top: -170px; left: auto; right: -220px; }
  .blob--accent { display: none; }
  .blob--bottom {
    width: 240px; height: 240px; top: auto; bottom: -120px; left: -120px;
    background: var(--color-brand-accent); opacity: 0.12;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    padding-block: var(--space-16) var(--space-24);
  }
  .site-footer::before { display: none; }
  .footer__rights { display: block; }
}

/* Tablet: line the logo up with the centred copy and centre the copy vertically. */
@media (min-width: 600px) and (max-width: 1023px) {
  .site-header { max-width: 608px; }
  .hero { align-items: center; padding-top: 0; }
}

/* ---------- 404 page ---------- */

.notfound {
  max-width: 560px;
}

.notfound .headline {
  font-size: 44px;
  line-height: 52px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover { background: var(--color-primary-strong); }
