:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1f2a23;
  --muted: rgba(31, 42, 35, 0.72);
  --muted-2: rgba(31, 42, 35, 0.56);
  --line: rgba(31, 42, 35, 0.12);

  --accent: #07632c;
  --sage-900: #2f4338;
  --sage-700: #4f6c5b;
  --sage-600: #5f7f6b;
  --sage-200: #d7e4db;
  --sage-100: #eaf2ec;

  --sand-200: #f3eee4;
  --shadow: 0 18px 60px rgba(17, 24, 19, 0.08);
  --shadow-2: 0 10px 30px rgba(17, 24, 19, 0.08);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--ink);
  background: radial-gradient(
        900px 500px at 20% 0%,
        rgba(95, 127, 107, 0.16),
        transparent 60%
      ),
    radial-gradient(
        850px 520px at 85% 10%,
        rgba(215, 228, 219, 0.6),
        transparent 58%
      ),
    radial-gradient(
        900px 600px at 50% 75%,
        rgba(243, 238, 228, 0.85),
        transparent 62%
      ),
    var(--bg);
  line-height: 1.55;
  font-size: 16.5px;
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  transform: translateY(-130%);
  transition: transform 160ms ease;
  z-index: 50;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.simple {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 76px 0;
}

.simple::before,
.simple::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.simple::before {
  background-image: radial-gradient(
      circle at 12% 18%,
      rgba(95, 127, 107, 0.13),
      transparent 44%
    ),
    radial-gradient(
      circle at 78% 28%,
      rgba(215, 228, 219, 0.55),
      transparent 48%
    ),
    radial-gradient(
      circle at 60% 100%,
      rgba(243, 238, 228, 0.75),
      transparent 55%
    );
  animation: float-blobs 18s ease-in-out infinite;
}

.simple::after {
  background-image:
    radial-gradient(
      640px 420px at 78% 22%,
      rgba(95, 127, 107, 0.16),
      transparent 62%
    ),
    radial-gradient(
      520px 380px at 22% 22%,
      rgba(243, 238, 228, 0.9),
      transparent 60%
    ),
    conic-gradient(
      from 210deg at 62% 32%,
      rgba(215, 228, 219, 0.0),
      rgba(215, 228, 219, 0.38),
      rgba(243, 238, 228, 0.0),
      rgba(95, 127, 107, 0.12),
      rgba(215, 228, 219, 0.0)
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='560' viewBox='0 0 1200 560'%3E%3Cg fill='none' stroke='rgba(79,108,91,0.10)' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M54 395c96-156 252-257 440-286 248-38 482 58 641 237 42 47 82 105 106 162'/%3E%3Cpath d='M994 96c-48 69-118 134-205 178-140 72-305 83-464 45' stroke='rgba(79,108,91,0.08)'/%3E%3Cpath d='M164 110c22 42 64 90 124 132 104 73 240 105 376 92' stroke='rgba(79,108,91,0.06)'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, 140% 140%, 1200px 560px, 320px 320px;
  background-position: 62% 18%, 18% 18%, 60% 30%, 55% 22%, 0 0;
  mix-blend-mode: normal;
  opacity: 0.95;
  animation: premium-drift 26s ease-in-out infinite;
}

.simple-inner {
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 35, 0.1);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 26px rgba(17, 24, 19, 0.05);
  font-size: 12.5px;
  color: rgba(31, 42, 35, 0.78);
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--sage-600), var(--sage-900));
  box-shadow: 0 6px 14px rgba(79, 108, 91, 0.25);
}

.simple-head {
  max-width: 64ch;
  margin: 0 auto 22px;
  text-align: center;
}

.logo {
  width: min(260px, 70vw);
  height: auto;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 18px 46px rgba(17, 24, 19, 0.10));
}

.simple-title {
  margin: 0;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  font-size: clamp(32px, 4.2vw, 48px);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.simple-lead {
  margin: 14px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px;
}

.tiles {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tile {
  text-decoration: none;
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 42, 35, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), #fff);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(7, 99, 44, 0);
  transition: box-shadow 220ms ease, opacity 220ms ease;
  opacity: 0;
}

.tile-media {
  height: 168px;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 35, 0.1);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  background: #f3f1ea;
  box-shadow: 0 18px 46px rgba(17, 24, 19, 0.07);
  transform: translateZ(0);
}

.tile-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.02);
}

.tile-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 42, 35, 0.0),
    rgba(31, 42, 35, 0.18)
  );
  opacity: 0.75;
}

.tile-media::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 220deg,
    rgba(215, 228, 219, 0.0),
    rgba(215, 228, 219, 0.55),
    rgba(243, 238, 228, 0.0),
    rgba(95, 127, 107, 0.18),
    rgba(215, 228, 219, 0.0)
  );
  filter: blur(18px);
  opacity: 0.6;
  animation: media-sheen 10s ease-in-out infinite;
}

.tile--clinic .tile-media {
  background: #f3f1ea;
}

.tile--beauty .tile-media {
  background: #f3f1ea;
}

.tile--gym .tile-media {
  background: #f3f1ea;
}

.tile::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(
    closest-side,
    rgba(215, 228, 219, 0.7),
    transparent 70%
  );
  top: -220px;
  right: -220px;
  transform: rotate(18deg);
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 99, 44, 0.32);
  box-shadow: 0 24px 64px rgba(17, 24, 19, 0.16);
}

.tile:hover::after {
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(7, 99, 44, 0.28) inset,
    0 18px 60px rgba(7, 99, 44, 0.10);
}

.tile:hover .tile-media::after {
  opacity: 0.75;
}

.tile:hover .tile-img {
  transform: scale(1.05);
}

.tile:hover .tile-icon {
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(7, 99, 44, 0.22);
  background: linear-gradient(180deg, rgba(7, 99, 44, 0.92), rgba(7, 99, 44, 0.72));
  box-shadow: 0 18px 40px rgba(7, 99, 44, 0.18);
}

.tile:hover .tile-tag {
  border-color: rgba(7, 99, 44, 0.22);
  background: rgba(7, 99, 44, 0.08);
  color: rgba(7, 99, 44, 0.92);
}

.tile:hover .tile-cta {
  color: rgba(7, 99, 44, 0.96);
}

.tile:focus-visible {
  outline: 3px solid rgba(95, 127, 107, 0.28);
  outline-offset: 3px;
}

.tile:focus-visible {
  outline-color: rgba(7, 99, 44, 0.28);
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sage-100), rgba(243, 238, 228, 0.8));
  border: 1px solid rgba(31, 42, 35, 0.08);
  color: var(--sage-700);
}

.tile-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(31, 42, 35, 0.72);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 35, 0.1);
  background: rgba(255, 255, 255, 0.65);
}

.tile-title {
  margin: 16px 0 0;
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.tile-desc {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 46ch;
}

.tile-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13.5px;
  color: rgba(47, 67, 56, 0.92);
}

.tile-arrow {
  display: inline-block;
  transition: transform 160ms ease;
}

.tile:hover .tile-arrow {
  transform: translateX(3px);
}

.loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(251, 250, 247, 0.65);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 999;
}

.loading[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.loading-card {
  width: min(520px, 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 42, 35, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), #fff);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(79, 108, 91, 0.18);
  border-top-color: rgba(79, 108, 91, 0.85);
  animation: spin 900ms linear infinite;
}

.loading-title {
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 18px;
  line-height: 1.15;
  color: rgba(31, 42, 35, 0.88);
}

.loading-sub {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .tiles {
    grid-template-columns: 1fr;
  }
  .tile-media {
    height: 190px;
  }
}

@media (max-width: 768px) {
  .simple-title {
    white-space: normal;
  }
}

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

@keyframes premium-drift {
  0% {
    background-position: 62% 18%, 18% 18%, 60% 30%, 55% 22%, 0 0;
    transform: translate3d(0, 0, 0);
  }
  50% {
    background-position: 68% 22%, 14% 24%, 64% 34%, 58% 26%, 90px 120px;
    transform: translate3d(0, 4px, 0);
  }
  100% {
    background-position: 62% 18%, 18% 18%, 60% 30%, 55% 22%, 0 0;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float-blobs {
  0% {
    transform: translate3d(0, 0, 0);
    filter: saturate(1);
  }
  50% {
    transform: translate3d(-6px, 10px, 0);
    filter: saturate(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0);
    filter: saturate(1);
  }
}

@keyframes media-sheen {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1.05);
  }
  50% {
    transform: translate3d(2%, 1%, 0) rotate(10deg) scale(1.1);
  }
  100% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1.05);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
