
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
:root {
  --yellow: #F5C800;
  --yellow-dark: #D4AB00;
  --yellow-light: #FFF8D6;
  --yellow-bg: #FFFDE8;
  --black: #1A1A1A;
  --gray-700: #3D3D3D;
  --gray-500: #6B6B6B;
  --gray-400: #9E9E9E;
  --gray-200: #E8E8E8;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --blue: #2563EB;
  --blue-light: #DBEAFE;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.16);
  --font-display: 'Cabinet Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
}
body.guest-layout {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-landing { display: flex; flex-direction: column; min-height: 100dvh; }
.page-onboarding { display: none; flex-direction: column; min-height: 100dvh; }

/* NAV */
.top-nav {
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 20;
}
.logo-img { height: 42px; width: auto; }
.logo-mark--landing.logo-mark--image { width: auto; height: auto; max-height: 42px; max-width: min(280px, 70vw); }
.logo-img--landing { height: 42px; width: auto; max-width: min(280px, 70vw); object-fit: contain; border-radius: 8px; display: block; }
.top-nav .logo-mark--landing,
.top-nav .logo-text--landing {
  display: inline-flex;
  align-items: center;
}
.top-nav .logo-text--landing {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
}
.top-nav .logo-mark--landing + .logo-text--landing { margin-left: 10px; }
.top-nav .logo-text--landing .brand-accent { color: var(--yellow-dark); }
.nav-link { font-size: 14px; color: var(--gray-500); text-decoration: none; font-weight: 500; transition: color 150ms; }
.nav-link:hover { color: var(--black); }

/* MAIN SPLIT */
.split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 460px;
  min-height: calc(100dvh - 75px);
}

/* ===== LEFT HERO ===== */
.hero-side {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--black);
}

/* Hero cover image */
.hero-cover {
  position: absolute; inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Gradient overlay — dark bottom + left tint for text readability */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.45) 55%, rgba(10,10,10,0.18) 100%),
    linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 52px 56px 48px;
  display: flex; flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.hero-top {
  max-width: 520px;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--black);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--yellow); }

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 36px;
}

/* Roles on dark */
.roles-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.role-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  transition: background 200ms;
}
.role-item:hover { background: rgba(255,255,255,0.13); }
.role-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.role-icon-delnik { background: rgba(219,234,254,0.25); }
.role-icon-biz { background: rgba(255,248,214,0.25); }
.role-name { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 2px; }
.role-desc { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* Bottom stats */
.hero-bottom {
  display: flex; gap: 32px; align-items: flex-end;
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 900; color: var(--yellow); line-height: 1;
}
.stat-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 3px; font-weight: 500; }

/* Photo credit pill */
.photo-credit {
  position: absolute; bottom: 16px; right: 20px; z-index: 3;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  padding: 4px 12px; font-size: 10px; color: rgba(255,255,255,0.5);
}

/* ===== RIGHT REGISTER ===== */
.register-side {
  background: var(--white);
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--gray-200);
  overflow-y: auto;
}
.register-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 900; margin-bottom: 5px;
}
.register-sub {
  font-size: 14px; color: var(--gray-500); margin-bottom: 28px; line-height: 1.5;
}
.register-sub a { color: var(--blue); text-decoration: none; font-weight: 600; }
.register-sub a:hover,
.register-sub a:focus { text-decoration: none; }

.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label {
  display: block; font-size: 12px; font-weight: 700;
  margin-bottom: 5px; color: var(--gray-700); letter-spacing: 0.02em;
}
input, select {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 14px;
  color: var(--black); background: var(--white);
  transition: border-color 150ms, box-shadow 150ms; outline: none;
}
input:focus, select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,200,0,0.15);
}
input::placeholder { color: var(--gray-400); }

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.role-option { position: relative; }
.role-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.role-label {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 10px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all 150ms; text-align: center; background: var(--white);
}
.role-label:hover { border-color: var(--yellow); background: var(--yellow-bg); }
.role-option input[type="radio"]:checked + .role-label {
  border-color: var(--yellow); background: var(--yellow-light);
}
.role-label-icon { font-size: 20px; margin-bottom: 4px; }
.role-label-text { font-size: 11px; font-weight: 800; color: var(--gray-700); }

.btn-register {
  width: 100%; padding: 14px;
  background: var(--yellow); color: var(--black);
  border: none; border-radius: var(--radius-md);
  font-family: var(--font-display); font-size: 15px; font-weight: 900;
  cursor: pointer; transition: all 150ms; letter-spacing: 0.01em;
}
.btn-register:hover { background: var(--yellow-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-register:active { transform: translateY(0); }

.form-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0; color: var(--gray-400); font-size: 12px;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

.btn-login {
  width: 100%; padding: 12px;
  background: transparent; color: var(--gray-700);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 150ms;
}
.btn-login:hover { border-color: var(--black); color: var(--black); }

.form-hint {
  font-size: 11px; color: var(--gray-400);
  text-align: center; margin-top: 14px; line-height: 1.6;
}
.form-hint a { color: var(--gray-500); }

.auth-panel[hidden] { display: none !important; }
.field-error {
  font-size: 11px;
  color: #c0392b;
  margin-top: 4px;
  font-weight: 600;
}
input.is-invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}
.auth-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}
.auth-forgot {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.auth-forgot:hover { text-decoration: underline; }
.auth-side #msg-flash,
.auth-side .alert {
  margin-bottom: 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

/* ===== ONBOARDING ===== */
.page-onboarding {
  background: var(--gray-100);
  align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  min-height: 100dvh;
}
.onboarding-modal {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 540px;
  overflow: hidden;
}
.onboarding-header { background: var(--yellow); padding: 28px 36px 24px; }
.onboarding-logo { margin-bottom: 14px; display: flex; align-items: center; min-height: 30px; }
.onboarding-logo .logo-mark--landing,
.onboarding-logo .logo-text--landing { display: inline-flex; align-items: center; }
.onboarding-logo .logo-mark--landing + .logo-text--landing { margin-left: 10px; }
.onboarding-greeting { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--black); margin-bottom: 4px; }
.onboarding-sub { font-size: 14px; color: var(--gray-700); }
.onboarding-progress { display: flex; gap: 6px; margin-top: 18px; }
.progress-dot { height: 4px; border-radius: 2px; background: rgba(0,0,0,0.2); transition: all 300ms ease; flex: 1; }
.progress-dot.active { background: var(--black); }
.onboarding-body { padding: 32px 36px 28px; }
.slide { display: none; }
.slide.active { display: block; animation: fadeIn 300ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.slide-icon { width: 60px; height: 60px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px; }
.slide-icon-1 { background: var(--yellow-light); }
.slide-icon-2 { background: var(--blue-light); }
.slide-icon-3 { background: #D1FAE5; }
.slide-icon-4 { background: #F3E8FF; }
.slide-title { font-family: var(--font-display); font-size: 22px; font-weight: 900; margin-bottom: 10px; line-height: 1.2; }
.slide-text { font-size: 15px; color: var(--gray-700); line-height: 1.65; margin-bottom: 20px; }
.slide-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.slide-tag { background: var(--gray-100); color: var(--gray-700); padding: 5px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.demo-applications { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.demo-app { background: var(--gray-100); border-radius: var(--radius-md); padding: 11px 14px; display: flex; align-items: center; gap: 12px; }
.demo-app-cat { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--yellow-light); }
.demo-app-name { font-size: 13px; font-weight: 700; }
.demo-app-sub { font-size: 11px; color: var(--gray-500); }
.demo-app-status { margin-left: auto; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; }
.status-new { background: #D1FAE5; color: #065F46; }
.tinder-mini { background: var(--gray-100); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 18px; }
.tinder-mini-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tinder-mini-avatar { width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--yellow-light); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; border: 2.5px solid var(--yellow); }
.tinder-mini-name { font-size: 14px; font-weight: 700; }
.tinder-mini-cat { font-size: 12px; color: var(--gray-500); }
.tinder-mini-stars { color: var(--yellow-dark); font-size: 12px; }
.tinder-mini-stars-meta { color: var(--gray-400); font-size: 11px; }
.tinder-mini-desc { font-size: 13px; color: var(--gray-700); line-height: 1.5; margin-bottom: 12px; }
.tinder-mini-actions { display: flex; gap: 8px; }
.tc-pass { flex: 1; padding: 8px; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); font-size: 12px; font-weight: 700; cursor: pointer; transition: 150ms; }
.tc-pass:hover { border-color: var(--gray-400); }
.tc-connect { flex: 2; padding: 8px; background: var(--black); color: var(--white); border: none; border-radius: var(--radius-md); font-size: 12px; font-weight: 700; cursor: pointer; transition: 150ms; }
.tc-connect:hover { background: var(--gray-700); }
.biz-toggle-demo { display: flex; align-items: center; justify-content: space-between; background: var(--gray-100); border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 18px; }
.biz-toggle-left h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.biz-toggle-left p { font-size: 12px; color: var(--gray-500); }
.toggle-switch { width: 50px; height: 26px; background: var(--gray-200); border-radius: 13px; position: relative; cursor: pointer; transition: background 200ms; }
.toggle-switch.on { background: var(--yellow); }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: left 200ms; pointer-events: none; }
.toggle-switch.on .toggle-knob { left: 27px; }
.onboarding-feed-demo { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.onboarding-feed-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.onboarding-feed-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.onboarding-feed-avatar--biz { background: var(--yellow-light); border: 2.5px solid var(--yellow); }
.onboarding-feed-avatar--delnik { background: var(--blue-light); border: 2.5px solid #93C5FD; }
.onboarding-feed-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.onboarding-feed-text { font-size: 12px; color: var(--gray-500); line-height: 1.45; }
.onboarding-feed-tag { font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 800; }
.onboarding-feed-tag--biz { background: var(--yellow-light); color: #92400E; }
.onboarding-feed-tag--delnik { background: var(--blue-light); color: #1E40AF; }
.onboarding-tip {
  background: var(--yellow-bg);
  border: 1.5px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.55;
}
.onboarding-footer { padding: 0 36px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.btn-skip { background: none; border: none; font-size: 14px; color: var(--gray-400); cursor: pointer; font-family: var(--font-body); font-weight: 500; transition: color 150ms; }
.btn-skip:hover { color: var(--gray-700); }
.btn-next { background: var(--black); color: var(--white); border: none; border-radius: var(--radius-md); padding: 11px 26px; font-family: var(--font-display); font-size: 15px; font-weight: 800; cursor: pointer; transition: all 150ms; }
.btn-next:hover { background: var(--gray-700); transform: translateY(-1px); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .hero-side { min-height: 480px; }
  .register-side { border-left: none; border-top: 1px solid var(--gray-200); }
  .top-nav { padding: 14px 24px; }
  .hero-content { padding: 36px 28px 32px; }
  .register-side { padding: 36px 28px; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-title { font-size: 2rem; }
  .onboarding-modal { border-radius: var(--radius-lg); max-width: 100%; }
  .onboarding-header, .onboarding-body, .onboarding-footer { padding-left: 18px; padding-right: 18px; }
  .onboarding-header { padding-top: 22px; }
  .onboarding-body { padding-top: 24px; padding-bottom: 20px; }
  .onboarding-footer { padding-bottom: max(22px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .slide-title { font-size: 20px; }
  .btn-next { flex: 1; text-align: center; min-width: 140px; }
}
