:root {
  --blue: #2162e7;
  --blue-2: #2471ee;
  --blue-light: #85bffd;
  --navy: #101a32;
  --bg: #ffffff;
  --bg-soft: #f2f6fd;
  --border: #e0e8f6;
  --muted: #5d6882;
  --danger: #d6293e;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 50, 0.06), 0 2px 8px rgba(16, 26, 50, 0.04);
  --shadow-md: 0 8px 30px rgba(16, 26, 50, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* Logo (SVG fra /assets) */
.logo { display: inline-block; line-height: 0; }
.logo img { height: 30px; width: auto; display: block; }
.footer .logo img { height: 24px; }
.auth-card .logo img { height: 34px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.35rem; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(33, 98, 231, 0.3); }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Landing nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-links a.link { color: var(--muted); font-weight: 500; padding: 0.5rem 0.9rem; }
.nav-links a.link:hover { color: var(--navy); }

/* Hero */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(133, 191, 253, 0.35), transparent 70%),
    var(--bg);
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { max-width: 620px; margin: 0 auto 2rem; font-size: 1.2rem; color: var(--muted); }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 0.35rem 0.9rem; margin-bottom: 1.4rem;
  border-radius: 999px; background: #eaf2ff; color: var(--blue); font-size: 0.85rem; font-weight: 600;
}

/* Mock booking card in hero */
.mock {
  width: min(440px, 100%); margin: 3.5rem auto 0; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-md); padding: 1.4rem;
  animation: float 6s ease-in-out infinite;
}
.mock-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.mock-avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.mock-head strong { display: block; line-height: 1.2; }
.mock-head small { color: var(--muted); }
.mock-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.mock-slots span { padding: 0.55rem; text-align: center; border: 1px solid var(--border); border-radius: 10px; font-size: 0.9rem; font-weight: 500; }
.mock-slots span.on { background: var(--blue); border-color: var(--blue); color: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 12px;
  display: grid; place-items: center; background: #eaf2ff; color: var(--blue);
}
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: s; }
.steps .card::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700;
}

.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 60%, #4a93f6 100%); color: #fff; text-align: center; border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.cta-band p { color: #e3efff; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 6px 18px rgba(16, 26, 50, 0.18); }
.cta-band .btn-primary:hover { background: #f2f7ff; }

.footer { padding: 2rem 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Auth + onboarding pages */
.auth-page {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(133, 191, 253, 0.3), transparent 70%), var(--bg-soft);
}
.auth-card {
  width: min(440px, 100%); background: #fff; border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-md); padding: 2.2rem;
  animation: rise 0.5s var(--ease);
}
.auth-card.wide { width: min(640px, 100%); }
.auth-card .logo { display: block; text-align: center; margin-bottom: 1.5rem; }
.auth-card h1 { font-size: 1.7rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 1.6rem; }
.auth-foot { text-align: center; color: var(--muted); margin: 1.4rem 0 0; font-size: 0.95rem; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Forms */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--navy);
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 98, 231, 0.14); }
.field .err { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.92rem; margin-bottom: 1.1rem; }
.alert-error { background: #fdecef; color: #9d1c2d; border: 1px solid #f7c6ce; }
.alert-warn { background: #fff7e6; color: #7a5200; border: 1px solid #f5dfae; }
.alert-ok { background: #e8f7ee; color: #14663a; border: 1px solid #bde5cd; }

/* Dashboard */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: var(--bg-soft); }
.sidebar {
  background: #fff; color: var(--muted); padding: 1.4rem 1rem; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { padding: 0 0.6rem; }
.side-nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.side-nav a, .side-nav button {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem; border-radius: 10px;
  color: inherit; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; width: 100%;
  transition: background 0.2s, color 0.2s;
}
.side-nav a:hover, .side-nav button:hover { background: var(--bg-soft); color: var(--navy); }
.side-nav a.active { background: #e6efff; color: var(--blue); font-weight: 600; }
.side-nav svg { width: 18px; height: 18px; flex: none; }
.side-nav .soon { margin-left: auto; font-size: 0.68rem; padding: 0.1rem 0.45rem; border-radius: 99px; background: var(--bg-soft); }
.main { padding: clamp(1.2rem, 3vw, 2.5rem); min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.topbar h1 { font-size: 1.8rem; margin: 0; }
.topbar p { margin: 0; color: var(--muted); }
.user-chip { color: var(--muted); font-size: 0.9rem; }
.biz-card { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.biz-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: linear-gradient(135deg, var(--blue), var(--blue-light)); flex: none; }
.biz-meta { color: var(--muted); font-size: 0.92rem; }
.biz-meta span { margin-right: 1rem; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 99px; background: var(--bg-soft); color: var(--muted); margin-left: 0.5rem; vertical-align: middle; }

.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; align-items: center; flex-wrap: wrap; padding: 0.8rem 1rem; gap: 0.8rem; }
  .side-nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; order: 3; }
  .side-nav a, .side-nav button { width: auto; padding: 0.5rem 0.7rem; }
}
@media (max-width: 640px) { .nav-links a.link { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
