/* Tuut Health landing — monochrome, matching the app's design tokens. */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #737373;
  --border: #e5e5e5;
  --surface: #f5f5f5;
  --ink: #1a1a1a;
  --ink-fg: #ffffff;
  --focus: #1a1a1a;
  --danger: #b91c1c;
  --ok: #1a1a1a;
  --radius: 0.625rem;
  --maxw: 40rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #fafafa;
    --muted: #a3a3a3;
    --border: #262626;
    --surface: #141414;
    --ink: #fafafa;
    --ink-fg: #0a0a0a;
    --focus: #fafafa;
    --danger: #f87171;
    --ok: #fafafa;
  }
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle dot grid fading out from the top. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 70%);
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Header */
.site-header {
  padding-block: 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.dot {
  color: var(--fg);
  margin-inline-end: 0.4rem;
}

.lang-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover {
  background: var(--surface);
}

/* Hero */
main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}

.hero {
  padding-block: 3rem 4rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}

.sub {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.sub a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent);
}

.sub a:hover {
  text-decoration-color: currentColor;
}

/* Waitlist form */
.waitlist {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  background: color-mix(in srgb, var(--surface) 45%, var(--bg));
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.field input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 15%, transparent);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.turnstile {
  min-height: 0;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--ink-fg);
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  opacity: 0.88;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.status[data-state="ok"] {
  color: var(--ok);
}

.status[data-state="error"] {
  color: var(--danger);
}

/* Footer */
.site-footer {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
}

.footer-inner a:hover {
  color: var(--fg);
}

@media (max-width: 30rem) {
  .hero {
    padding-block: 2rem 3rem;
  }

  .waitlist {
    padding: 1.25rem;
  }
}
