/* Yuntos Landing — Design Tokens */

:root {
  /* Accent (light default) */
  --accent: #63b8c2;
  --accent-ink: var(--ink);
  --accent-tint: color-mix(in oklab, var(--accent) 8%, white);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, white);

  /* Neutrals — warm-cool balanced */
  --bg: oklch(98.5% 0.003 80);
  --bg-elev: #ffffff;
  --bg-tint: oklch(97% 0.008 250);
  --ink: oklch(16% 0.02 260);
  --ink-2: oklch(38% 0.02 260);
  --ink-3: oklch(55% 0.02 260);
  --line: oklch(92% 0.006 260);
  --line-2: oklch(88% 0.008 260);

  /* Shift palette (matches calendar screenshot language) */
  --shift-early: #0A84FF;    /* Frühschicht — blue */
  --shift-late:  #7C3AED;    /* Spätschicht — violet */
  --shift-night: #E8B923;    /* Nacht — amber */
  --shift-ok:    #00B37E;    /* Bestätigt — green */
  --shift-wait:  #F4A017;    /* Warteliste — orange */
  --shift-no:    #E14B3A;    /* Abgelehnt — red */

  /* Type */
  --font-display: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Density */
  --pad-section: clamp(72px, 9vw, 128px);
  --pad-x: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 20px -8px rgba(16, 24, 40, 0.12), 0 4px 10px -4px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 28px 60px -20px rgba(16, 24, 40, 0.18), 0 10px 24px -12px rgba(16, 24, 40, 0.10);
}

/* Dark mode */
[data-theme="dark"] {
  --bg: oklch(14% 0.01 260);
  --bg-elev: oklch(18% 0.012 260);
  --bg-tint: oklch(20% 0.015 260);
  --ink: oklch(96% 0.005 260);
  --ink-2: oklch(72% 0.01 260);
  --ink-3: oklch(55% 0.012 260);
  --line: oklch(26% 0.012 260);
  --line-2: oklch(32% 0.015 260);
  --accent-tint: color-mix(in oklab, var(--accent) 18%, oklch(18% 0.012 260));
  --accent-soft: color-mix(in oklab, var(--accent) 28%, oklch(18% 0.012 260));
  --shadow-md: 0 8px 20px -8px rgba(0,0,0,0.5), 0 4px 10px -4px rgba(0,0,0,0.4);
  --shadow-lg: 0 28px 60px -20px rgba(0,0,0,0.7), 0 10px 24px -12px rgba(0,0,0,0.5);
}

/* Density */
[data-density="compact"] {
  --pad-section: clamp(48px, 6vw, 80px);
  --pad-x: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

section { padding-top: var(--pad-section); padding-bottom: var(--pad-section); }
section.tight { padding-top: calc(var(--pad-section) * 0.6); padding-bottom: calc(var(--pad-section) * 0.6); }
section.tint { background: var(--bg-tint); }

/* Type scale */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 6.2vw, 84px); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { color: var(--ink-2); font-size: 17px; text-wrap: pretty; margin: 0; }
.lede { font-size: clamp(18px, 1.4vw, 22px); color: var(--ink-2); line-height: 1.5; max-width: 56ch; }

.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 550;
  font-size: 15px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 14px -6px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16px; border-radius: 12px; }

/* Chips / badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.01em;
  background: var(--bg-tint);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.chip .sw { width: 8px; height: 8px; border-radius: 3px; }

/* Card */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Utility grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Section header */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; font-size: 19px; line-height: 1.5; }

/* Fine divider */
hr.line { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Animate-on-scroll (subtle). Default opacity 1 — IO bumps transform only — so no-js / missed-observer cases still show content. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(14px); }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Ticker / avatars reused */
.stack-avatars { display: flex; align-items: center; }
.stack-avatars > * + * { margin-left: -10px; }

/* Selection */
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); color: var(--ink); }
