/* Turnex Landing — mobile first, dark theme */
:root {
  --bg: #0b1220;
  --surface: #131c2e;
  --surface-alt: #1b2740;
  --border: #2a3a57;
  --text: #e7ecf5;
  --muted: #94a3b8;
  --primary: #0ea5e9;
  --primary-dim: rgba(14, 165, 233, 0.12);
  --secondary: #f97316;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --night: #8b5cf6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
}
.nav-desktop { display: none; gap: 1.5rem; align-items: center; }
.nav-desktop a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-desktop a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.35);
}
.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn[disabled], .btn.is-soon {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 30% 20%, rgba(14, 165, 233, 0.18), transparent 60%),
              radial-gradient(ellipse at 70% 10%, rgba(139, 92, 246, 0.1), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--muted);
  margin: 0 0 0.75rem;
  max-width: 36ch;
}
.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.phone {
  width: min(100%, 300px);
  aspect-ratio: 9 / 19.5;
  background: #080e18;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.08);
  transform: rotateY(-8deg) rotateX(4deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-8px); }
}
.phone-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.phone-notch {
  height: 24px;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 4px;
}
.phone-notch span {
  width: 80px;
  height: 6px;
  border-radius: 999px;
  background: #000;
}
.app-ui { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
}
.app-cal-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.app-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.55rem;
  text-align: center;
}
.app-cal-grid .day-name { color: var(--muted); font-weight: 600; }
.app-cal-grid .cell {
  aspect-ratio: 1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--surface-alt);
}
.app-cal-grid .cell.today { outline: 1px solid var(--primary); }
.app-cal-grid .dots {
  position: absolute;
  bottom: 2px;
  display: flex;
  gap: 2px;
}
.app-cal-grid .dot { width: 3px; height: 3px; border-radius: 50%; }
.dot-m { background: var(--primary); }
.dot-t { background: var(--secondary); }
.dot-n { background: var(--night); }
.app-shift {
  padding: 8px;
  border-radius: 10px;
  background: var(--surface-alt);
  border-left: 3px solid var(--primary);
  font-size: 0.6rem;
}
.app-shift.night { border-left-color: var(--night); }
.app-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  font-size: 0.55rem;
  color: var(--muted);
}
.app-nav .active { color: var(--primary); }

/* Sections */
section { padding: 4rem 0; }
section:nth-child(even) { background: rgba(19, 28, 46, 0.5); }
.section-label {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 800;
  line-height: 1.15;
}
.section-lead {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}
.section-lead strong { color: var(--text); font-weight: 600; }

/* Cards grid */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.shift-cards .card-icon.morning { background: rgba(14,165,233,0.15); }
.shift-cards .card-icon.afternoon { background: rgba(249,115,22,0.15); }
.shift-cards .card-icon.night { background: rgba(139,92,246,0.15); }
.shift-cards .card-icon.special { background: rgba(20,184,166,0.15); }

.punchline {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}
.punchline em {
  font-style: normal;
  color: var(--primary);
}

/* Feature split */
.feature-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* Screenshot placeholder */
.screenshot-frame {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 9 / 16;
  max-width: 280px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.screenshot-frame svg { opacity: 0.4; }

/* Stats */
.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.stat-value.ordinary { color: var(--primary); }
.stat-value.night { color: var(--night); }
.stat-value.holiday { color: var(--secondary); }
.stat-value.extra { color: var(--success); }
.stat-label { color: var(--muted); font-size: 0.85rem; }

/* Pay comparison mock */
.pay-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 480px;
  margin-inline: auto;
}
.pay-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.pay-mock-header h3 { margin: 0; font-size: 1rem; }
.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.pay-row:last-child { border-bottom: none; }
.pay-row .label { color: var(--muted); }
.pay-row .value { font-weight: 600; }
.pay-row .diff {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
}
.pay-alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 0.85rem;
}

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 720px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-size: 1.25rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  text-align: center;
  padding: 5rem 0;
  background: radial-gradient(ellipse at center, rgba(14,165,233,0.12), transparent 70%);
}
.cta h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 1rem; }
.cta p { color: var(--muted); max-width: 42ch; margin: 0 auto 1.75rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.footer-links a { color: var(--muted); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Privacy page */
.page-legal {
  padding: 3rem 0 4rem;
  max-width: 720px;
}
.page-legal h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-legal h2 { font-size: 1.1rem; margin-top: 2rem; color: var(--primary); }
.page-legal p, .page-legal li { color: var(--muted); }
.page-legal a { color: var(--primary); }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .shift-cards { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .header-cta-mobile { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .feature-split { grid-template-columns: 1fr 1fr; }
  .shift-cards { grid-template-columns: repeat(4, 1fr); }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .shift-cards { grid-template-columns: repeat(7, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
