/* me.clinic coming-soon page.
   Brand primitives mirror packages/ui/src/styles/primitives.css — this page has
   no build step, so they're copied here once. Everything below uses the
   semantic tokens, never raw colors. */
:root {
  --ink: #1b1b1b;
  --ink-soft: #2a2a2a;
  --bone: #fafaf7;
  --mist: #efe7fa;
  --mist-deep: #e5d8f8;
  --iris: #9d4eff;
  --iris-light: #b98aff;
  --sage: #7b7090;
  --signal: #3dd68c;
  --night: #141317;
  --night-soft: #d9d5e0;
  --night-muted: #a89fba;

  /* Semantic tokens — light */
  --bg: var(--bone);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --muted: var(--sage);
  --accent: var(--iris);
  --tag-bg: var(--mist);
  --tag-fg: var(--ink);
  --rule: rgba(27, 27, 27, 0.1);
  --rule-strong: rgba(27, 27, 27, 0.18);
  --pill-bg: rgba(255, 255, 255, 0.7);
  --glow: rgba(157, 78, 255, 0.12);

  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 56px);

  color-scheme: light dark;
}

/* Dark tokens. Three states: no data-theme → follow the system; the toggle
   stamps data-theme="light" or "dark" on <html> to override it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night);
    --fg: var(--bone);
    --fg-soft: var(--night-soft);
    --muted: var(--night-muted);
    --accent: var(--iris-light);
    --tag-bg: rgba(157, 78, 255, 0.18);
    --tag-fg: var(--mist-deep);
    --rule: rgba(250, 250, 247, 0.12);
    --rule-strong: rgba(250, 250, 247, 0.2);
    --pill-bg: rgba(250, 250, 247, 0.04);
    --glow: rgba(157, 78, 255, 0.16);
  }
}
:root[data-theme="dark"] {
  --bg: var(--night);
  --fg: var(--bone);
  --fg-soft: var(--night-soft);
  --muted: var(--night-muted);
  --accent: var(--iris-light);
  --tag-bg: rgba(157, 78, 255, 0.18);
  --tag-fg: var(--mist-deep);
  --rule: rgba(250, 250, 247, 0.12);
  --rule-strong: rgba(250, 250, 247, 0.2);
  --pill-bg: rgba(250, 250, 247, 0.04);
  --glow: rgba(157, 78, 255, 0.16);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

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

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.accent { color: var(--accent); }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Soft iris glow, as on the patient portal hero. */
.page::before {
  content: "";
  position: absolute;
  right: -220px;
  top: -220px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  pointer-events: none;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mark svg { height: 1.05em; width: auto; overflow: visible; }
.mark-dot { fill: var(--accent); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--pill-bg);
  font-size: 13px;
  color: var(--fg-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--fg-soft);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle svg { width: 17px; height: 17px; }
/* Show the icon for the theme you'd switch TO. */
.theme-toggle .icon-sun { display: none; }
:root[data-active-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-active-theme="dark"] .theme-toggle .icon-moon { display: none; }

body { transition: background-color 0.2s ease, color 0.2s ease; }

.signal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(61, 214, 140, 0); }
}

.main {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: calc(680px + 2 * var(--gutter));
  padding: clamp(56px, 12vh, 120px) var(--gutter) clamp(56px, 10vh, 96px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  margin: 0;
  font-weight: 400;
  font-size: clamp(52px, 11vw, 104px);
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-transform: lowercase;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  color: var(--fg-soft);
}

.offerings {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.offerings li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-fg);
  font-size: 14px;
}

.note {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.contact-copy { margin: 0; font-size: 15px; color: var(--fg-soft); }

.mail {
  color: var(--fg);
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent); }

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

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .wide-only { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .signal { animation: none; }
  body, .theme-toggle { transition: none; }
}
