/* Shared by the clinic-type pages (fertility-clinics.html and the rest).
   Static pages: no WebGL, same tokens and type as the home page. */
:root {
  --porcelain: #f4f5f2;
  --porcelain-deep: #eceee9;
  --ink: #0e1214;
  --ink-soft: #3d4448;
  --teal: #17b8a6;
  --violet: #8b7cf6;
  --hairline: rgba(14, 18, 20, 0.1);
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--porcelain);
  color: var(--ink);
  font: 400 1.05rem/1.6 "Switzer", -apple-system, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 0.18em; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 72rem; margin: 0 auto; padding: 1.4rem var(--pad-x);
}
.top__logo img { display: block; height: 1.9rem; width: auto; }
.top nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none;
  color: var(--porcelain) !important; background: var(--ink);
  padding: 0.75rem 1.3rem; border-radius: 999px; transition: background 0.2s ease;
}
.btn:hover { background: #22292d; }
@media (max-width: 560px) { .top nav .top__link { display: none; } }

main { max-width: 72rem; margin: 0 auto; padding: 0 var(--pad-x); }
.hero { padding: clamp(3.5rem, 10vh, 7rem) 0 clamp(3rem, 8vh, 5rem); max-width: 46rem; }
.crumbs { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.crumbs a { color: var(--ink-soft); }
h1 {
  font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 500; margin-bottom: 1.6rem; text-wrap: balance;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 40rem; }
.hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 2rem; }

section { padding: clamp(2.5rem, 7vh, 4.5rem) 0; border-top: 1px solid var(--hairline); }
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.1; letter-spacing: -0.03em;
  font-weight: 500; margin-bottom: 1.8rem; max-width: 28ch; text-wrap: balance;
}
.intro { color: var(--ink-soft); max-width: 40rem; margin: -0.6rem 0 2rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.grid li {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px -30px rgba(14, 18, 20, 0.35), inset 0 1px 0 #fff;
  border-radius: 1.6rem; padding: 1.5rem 1.5rem 1.6rem;
}
.grid h3, .steps h3 { font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.45rem; }
.grid p, .steps p { font-size: 0.98rem; color: var(--ink-soft); }

.steps { list-style: none; padding: 0; display: grid; gap: 0; max-width: 46rem; }
.steps li { position: relative; padding: 0 0 1.8rem 2.2rem; }
.steps li::before {
  content: ""; position: absolute; left: 0.3rem; top: 0.45rem; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--violet));
}
.steps li::after {
  content: ""; position: absolute; left: 0.62rem; top: 1.4rem; bottom: 0.2rem; width: 1px; background: var(--hairline);
}
.steps li:last-child::after { display: none; }

.prose { max-width: 40rem; color: var(--ink-soft); }
.prose p + p { margin-top: 1rem; }

.cta { padding: clamp(3.5rem, 9vh, 6rem) 0; }
.cta p { color: var(--ink-soft); max-width: 36rem; margin-bottom: 1.8rem; }
.trustline { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.88rem; margin-top: 1.8rem !important; }
.trustline svg { flex: none; width: 1rem; height: 1rem; margin-top: 0.15rem; fill: none; stroke: currentColor; stroke-width: 1.4; }

.more { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.more a {
  display: inline-block; text-decoration: none; font-size: 0.95rem; padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.5);
}
.more a:hover { background: #fff; }

footer {
  max-width: 72rem; margin: 0 auto; padding: 2rem var(--pad-x) 2.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  border-top: 1px solid var(--hairline); font-size: 0.85rem; color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }

/* ================= "What it looks like": UI from the demo practices ================= */
.show__row {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center; padding: clamp(1.5rem, 4vh, 2.5rem) 0;
}
.show__row:nth-of-type(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.show__row:nth-of-type(even) .show__text { order: 2; }
.show__text h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.7rem; }
.show__text p { color: var(--ink-soft); max-width: 30rem; }
@media (max-width: 820px) {
  .show__row, .show__row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .show__row:nth-of-type(even) .show__text { order: 0; }
}

.ui { margin: 0; min-width: 0; font-size: 0.86rem; line-height: 1.45; }
.ui--wide { margin-top: 1.8rem; }
.ui figcaption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.7rem; }
.ui-win {
  background: #fff; border: 1px solid rgba(14, 18, 20, 0.07); border-radius: 1.1rem; overflow: hidden;
  box-shadow: 0 1px 0 rgba(14, 18, 20, 0.03), 0 30px 60px -40px rgba(14, 18, 20, 0.45);
}
.ui-win--soft { background: linear-gradient(120deg, #fff 55%, #eef2fb 85%, #ece9fb); }
.ui-bar {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--hairline); font: 500 0.72rem/1.3 "IBM Plex Mono", ui-monospace, monospace;
  color: var(--ink-soft); letter-spacing: 0.02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ui-mark { flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--teal), #4ea9d8, var(--violet)) border-box; }
.ui-pad { padding: 1.1rem 1.2rem 1.25rem; }
.ui-name { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }
.ui-meta, .ui-when, .ui-label { font: 400 0.7rem/1.4 "IBM Plex Mono", ui-monospace, monospace; color: var(--ink-soft); letter-spacing: 0.02em; }
.ui-label { text-transform: uppercase; letter-spacing: 0.08em; margin: 1rem 0 0.45rem; }
.ui-pad > .ui-label:first-child { margin-top: 0; }
.ui-small { font-size: 0.8rem; color: var(--ink-soft); }
.ui-quote { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 0.95rem; line-height: 1.35; margin-bottom: 0.4rem; }
.ui-big { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 0.2rem 0 0.3rem; }
.ui-hello { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 0.2rem 0 0.4rem; }

.ui-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }
.ui-chip {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.28rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--porcelain); font-size: 0.74rem; white-space: nowrap;
}
.ui-chip svg { width: 0.75rem; height: 0.75rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-chip--ok { background: #e3f6f3; border-color: #bfe9e2; color: #0b6f63; }
.ui-chip--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.ui-chip--warn { background: #fbefe2; border-color: #f2d6b8; color: #8a4f12; }

.ui-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.ui-tile { background: var(--porcelain); border-radius: 0.8rem; padding: 0.75rem 0.8rem; min-width: 0; }
.ui-tile .ui-label { margin-top: 0; }
.ui-spark { width: 100%; height: auto; margin: 0.1rem 0 0.3rem; }
.ui-spark path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ui-spark__may { stroke: #b9bfc0; stroke-dasharray: 4 5; }
.ui-spark__now { stroke: var(--teal); }
.ui-spark circle { fill: var(--teal); }
@media (max-width: 560px) { .ui-tiles { grid-template-columns: minmax(0, 1fr); } }

.ui-rows { display: grid; gap: 0.4rem; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.ui-seg { display: inline-flex; gap: 0.2rem; }
.ui-seg span { padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--hairline); font-size: 0.74rem; }
.ui-seg span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ui-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.8rem; margin-top: 1rem; }
.ui-foot .ui-chips { margin-top: 0; }
.ui-btn { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.8rem; font-weight: 500; }

.ui--phone { max-width: 20rem; justify-self: center; width: 100%; }
.ui-phone {
  background: linear-gradient(170deg, #f8faf9 40%, #e8f1f5 75%, #ebe7fb);
  border: 7px solid #15191b; border-radius: 2.4rem; padding: 1.1rem 1.1rem 1.4rem;
  box-shadow: 0 40px 70px -40px rgba(14, 18, 20, 0.55);
}
.ui-phone__top { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; margin-bottom: 1.1rem; }
.ui-tog { margin-left: auto; font-size: 0.72rem; color: var(--ink-soft); }
.ui-card { background: #fff; border-radius: 0.9rem; padding: 0.85rem 0.95rem; margin-top: 0.8rem; box-shadow: 0 14px 30px -24px rgba(14, 18, 20, 0.45); }
.ui-card .ui-label { margin-top: 0; }

.ui-dots { display: flex; gap: 0.25rem; margin: 0.35rem 0 0.5rem; }
.ui-dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #e8a25c; }
.ui-dots i.on { background: var(--teal); }
.ui-todo { list-style: none; padding: 0; display: grid; gap: 0.25rem; margin-bottom: 0.5rem; }
.ui-todo li { position: relative; padding-left: 1.3rem; }
.ui-todo li::before { content: "×"; position: absolute; left: 0; top: 0.12rem; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: #e8a25c; color: #fff; font-size: 0.7rem; line-height: 0.9rem; text-align: center; font-weight: 600; }
.ui-small u { text-decoration: none; color: #0b6f63; font-weight: 500; }

.ui-steps { list-style: none; padding: 0; margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.ui-steps li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.ui-steps li b { display: block; color: var(--ink); font-weight: 500; }
.ui-steps li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 1.5px solid #c9cecf; }
.ui-steps li.done::before { background: var(--teal); border-color: var(--teal); }
.ui-steps li.now::before { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.2); }

.ui-chat { display: grid; gap: 0.75rem; }
.ui-msg { display: flex; gap: 0.6rem; }
.ui-msg p { margin: 0; }
.ui-msg__who { font-weight: 500; font-size: 0.8rem; }
.ui-msg__who time { font-weight: 400; color: var(--ink-soft); font-size: 0.72rem; margin-left: 0.3rem; }
.ui-av { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 0.5rem; display: grid; place-items: center; font-size: 0.66rem; font-weight: 600; color: #fff; }
.ui-av--teal { background: linear-gradient(135deg, var(--teal), #4ea9d8); }
.ui-av--grey { background: #8f979a; }

.ui-vals { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.82rem; }
.ui-vals td { padding: 0.4rem 0.3rem; border-bottom: 1px solid var(--hairline); }
.ui-vals td:last-child { text-align: right; }
.ui-vals s { color: #b5bbbd; }
.ui-pad > .ui-chips:last-child { margin-top: 1rem; }

.ui-queue { display: grid; gap: 0.2rem; }
.ui-q ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.ui-q li { display: grid; gap: 0.1rem; background: var(--porcelain); border-radius: 0.7rem; padding: 0.55rem 0.75rem; }
.ui-q li b { font-weight: 500; }
.ui-q li span { color: var(--ink-soft); font-size: 0.8rem; }
.ui-q:first-child li { background: #f0edfd; }

.ui-mode { display: inline-block; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.75rem; white-space: nowrap; }
.ui-mode--does { background: #e3f6f3; color: #0b6f63; }
.ui-mode--drafts { background: #eeebfd; color: #4b3cb0; }
.ui-mode--person { background: #f1f2f0; color: var(--ink); border: 1px solid var(--hairline); }

.ui-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.ui-lane { padding: 1.1rem 1.2rem 1.2rem; background: #fff; border: 1px solid var(--hairline); border-radius: 16px; }
.ui-lane ul { list-style: none; margin: 0.8rem 0 0; padding: 0; font-size: 0.9rem; line-height: 1.45; }
.ui-lane li + li { margin-top: 0.45rem; }
