/* ------------------------------------------------------------------
   Nemo Clinic — reset, typography, primitives
------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--coral);
  color: var(--cream);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  color: var(--forest);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-h2);
  max-width: 22ch;
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.2;
}

p {
  max-width: 62ch;
}

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

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--space-section);
  position: relative;
}

/* Eyebrow — tracked-out uppercase label (Flourish pill/eyebrow device) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-xs);
  font-weight: 640;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: var(--s-3);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--r-pill);
  font-weight: 620;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft),
    background-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft);
}

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

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

.btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.btn--coral {
  background: var(--coral);
  color: var(--cream);
  box-shadow: 0 10px 24px -10px rgba(193, 80, 46, 0.55);
}

.btn--coral:hover {
  background: var(--coral-deep);
  box-shadow: 0 16px 32px -12px rgba(193, 80, 46, 0.6);
}

.btn--ghost {
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(251, 246, 236, 0.45);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--cream);
  background: rgba(251, 246, 236, 0.08);
}

.btn--ghost-forest {
  color: var(--forest);
  box-shadow: inset 0 0 0 1.5px rgba(30, 61, 52, 0.35);
}

.btn--ghost-forest:hover {
  box-shadow: inset 0 0 0 1.5px var(--forest);
  background: rgba(30, 61, 52, 0.05);
}

/* Concrete-ingredient pill tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(185, 130, 30, 0.4);
  background: rgba(185, 130, 30, 0.07);
  color: var(--forest);
  font-size: var(--text-xs);
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.4;
}

.tag svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--mustard);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Scroll-reveal primitives — transform/opacity only */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal="statement"] {
  transform: translateY(44px);
  transition-duration: var(--dur-statement);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn:hover,
  .btn:active {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Plain content pages (KVKK, cookie policy, 404) — calm, no reveals */
.legal-page {
  padding-top: clamp(7rem, 5rem + 6vw, 10rem);
}

.legal-page__header {
  margin-bottom: var(--s-6);
  max-width: 68ch;
}

.legal-page article {
  max-width: 68ch;
}

.legal-page h2 {
  font-size: var(--text-h3);
  max-width: none;
  margin-top: var(--s-6);
  margin-bottom: var(--s-2);
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p {
  color: var(--ink-soft);
  margin-bottom: var(--s-2);
}

.legal-page ul {
  padding-left: 1.3rem;
  margin-bottom: var(--s-2);
  display: grid;
  gap: 0.5rem;
}

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

.legal-page strong {
  color: var(--forest);
}

.legal-page__updated {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  max-width: 68ch;
}

/* 404 page — centered, calm, matches .legal-page rhythm */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.error-404 .wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-404__code {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(3.5rem, 2.5rem + 6vw, 6.5rem);
  color: var(--coral);
  line-height: 1;
  margin-bottom: var(--s-2);
}

.error-404 h1 {
  max-width: none;
  margin-bottom: var(--s-2);
}

.error-404 p {
  color: var(--ink-soft);
  margin-inline: auto;
  margin-bottom: var(--s-4);
}
