/* ============================================================
   ESTIMLY — Landing Page Styles
   ============================================================ */

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

:root {
  --bg:          #0a0c14;
  --bg-card:     #111420;
  --bg-card2:    #161928;
  --border:      rgba(255,255,255,0.07);
  --border-med:  rgba(255,255,255,0.12);
  --indigo:      #6366f1;
  --indigo-light:#818cf8;
  --indigo-dim:  rgba(99,102,241,0.15);
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-faint:  #475569;
  --green:       #10b981;
  --amber:       #f59e0b;
  --radius:      12px;
  --radius-lg:   18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: 'Syne', sans-serif; line-height: 1.15; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--indigo);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--indigo-light); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text);
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--border-med);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { border-color: var(--indigo); background: var(--indigo-dim); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted);
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 400;
  font-size: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-med); }

.btn-lg  { padding: 14px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo span { color: var(--indigo); }
.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; color: var(--text-muted); padding: 8px 0; }
.mobile-menu .btn-primary { margin-top: 8px; justify-content: center; }

/* ---- HERO ---- */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--indigo-light);
  background: var(--indigo-dim);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-accent { color: var(--indigo-light); }
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}
.avatars { display: flex; }
.av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.av:first-child { margin-left: 0; }

/* ---- CAROUSEL ---- */
.carousel-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 100px;
  text-align: center;
}
.carousel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 28px;
}
.carousel-wrapper { position: relative; }
.carousel { position: relative; min-height: 480px; }
.slide { display: none; animation: fadein 0.35s ease; }
.slide.active { display: block; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-screen {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  text-align: left;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}
.screen-dots { display: flex; gap: 6px; }
.screen-dots span { width: 10px; height: 10px; border-radius: 50%; }
.screen-dots span:nth-child(1) { background: #ef4444; }
.screen-dots span:nth-child(2) { background: var(--amber); }
.screen-dots span:nth-child(3) { background: var(--green); }
.screen-url {
  font-size: 11px;
  color: var(--text-faint);
  font-family: monospace;
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 4px;
}
.screen-body { display: flex; min-height: 300px; }
.screen-sidebar {
  width: 160px;
  border-right: 1px solid var(--border);
  padding: 14px;
  flex-shrink: 0;
}
.screen-sidebar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.screen-issue {
  font-size: 12px;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: 5px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-issue.done   { color: var(--text-faint); }
.screen-issue.active { background: var(--indigo-dim); color: var(--indigo-light); font-weight: 500; }
.screen-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.screen-issue-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.screen-players { display: flex; flex-direction: column; gap: 7px; }
.screen-player { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.screen-av {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.screen-av.indigo { background: #6366f1; }
.screen-av.green  { background: #10b981; }
.screen-av.amber  { background: #f59e0b; }
.screen-av.blue   { background: #0ea5e9; }
.screen-vote {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.screen-vote.voted   { background: var(--indigo-dim); color: var(--indigo-light); }
.screen-vote.pending { background: rgba(255,255,255,0.04); color: var(--text-faint); }
.screen-cards { display: flex; gap: 6px; flex-wrap: wrap; }
.screen-card {
  width: 34px; height: 46px;
  border-radius: 5px;
  border: 1px solid var(--border-med);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.screen-card.sel { background: var(--indigo-dim); border-color: var(--indigo); color: var(--indigo-light); }
.screen-reveal { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.reveal-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); }
.reveal-votes { display: flex; gap: 14px; }
.reveal-vote { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.reveal-card {
  width: 42px; height: 54px;
  border-radius: 6px;
  background: var(--indigo-dim);
  border: 1px solid var(--indigo);
  color: var(--indigo-light);
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.reveal-stats { display: flex; gap: 20px; }
.reveal-stat { text-align: center; }
.rs-label { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.rs-val { font-size: 18px; font-weight: 700; color: var(--text); font-family: 'Syne', sans-serif; }
.rs-val.accent { color: var(--indigo-light); }
.reveal-bar { height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.reveal-bar-fill { height: 100%; background: var(--indigo); border-radius: 2px; }
.reveal-actions { display: flex; gap: 8px; }
.screen-btn {
  flex: 1; padding: 8px; border-radius: 6px;
  font-size: 12px; font-weight: 500; cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif;
}
.screen-btn.outline { background: transparent; border: 1px solid var(--border-med); color: var(--text-muted); }
.screen-btn.primary { background: var(--indigo); color: #fff; }
.retro-body { padding: 14px; gap: 10px; align-items: flex-start; }
.retro-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.retro-col-head { font-size: 11px; font-weight: 600; padding: 5px 8px; border-radius: 5px; margin-bottom: 2px; }
.retro-col-head.went-well { background: rgba(16,185,129,0.12); color: #34d399; }
.retro-col-head.improve   { background: rgba(245,158,11,0.12); color: #fbbf24; }
.retro-col-head.actions   { background: rgba(99,102,241,0.12); color: var(--indigo-light); }
.retro-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.retro-card.highlight { border-color: rgba(245,158,11,0.3); }
.retro-card.action    { border-color: rgba(99,102,241,0.3); }
.retro-up     { margin-top: 4px; font-size: 10px; color: var(--text-faint); }
.retro-assign { margin-top: 4px; font-size: 10px; color: var(--indigo-light); }
.slide-caption { text-align: center; }
.slide-caption h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.slide-caption p  { font-size: 15px; color: var(--text-muted); }
.carousel-nav { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-med);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--indigo); transform: scale(1.3); }
.carousel-arrows { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.carousel-arrow {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer; font-size: 16px;
  transition: all 0.15s;
  font-family: inherit;
}
.carousel-arrow:hover { background: var(--indigo-dim); border-color: var(--indigo); color: var(--indigo-light); }

/* ---- FEATURES ---- */
.features-grid { max-width: 1100px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  text-align: left;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border-med); }
.feature-icon { font-size: 24px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p   { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---- PRICING ---- */
.pricing-section { max-width: 860px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--indigo);
  background: linear-gradient(160deg, rgba(99,102,241,0.08) 0%, var(--bg-card) 60%);
}
.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-name  { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; }
.plan-price { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }
.plan-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan-features li       { font-size: 14px; color: var(--text-muted); }
.plan-features li.muted { color: var(--text-faint); }

/* ---- AUTH ---- */
.auth-section { max-width: 440px; margin: 0 auto; padding: 80px 24px; }
.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg);
  border-radius: 8px; padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1; padding: 8px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: none;
  background: transparent; color: var(--text-muted);
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.auth-tab.active { background: var(--indigo); color: #fff; }
.auth-form.hidden { display: none; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-group input {
  background: var(--bg);
  border: 1px solid var(--border-med);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px; color: var(--text);
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s;
  outline: none;
}
.form-group input::placeholder { color: var(--text-faint); }
.form-group input:focus { border-color: var(--indigo); }
.form-footer-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.form-link { font-size: 13px; color: var(--indigo-light); }
.form-link:hover { color: var(--text); }
.auth-divider {
  text-align: center; font-size: 13px;
  color: var(--text-faint); margin: 16px 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute; top: 50%;
  width: calc(50% - 20px); height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-terms { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 14px; line-height: 1.6; }
.auth-terms a { color: var(--indigo-light); }
.quick-room-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px; text-align: center;
}
.quick-room-panel.hidden { display: none; }
.quick-room-panel h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.quick-room-panel p  { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.quick-room-panel .form-group { text-align: left; }
.quick-room-panel .btn-primary { margin-bottom: 10px; }

/* ---- FAQ ---- */
.faq-section { max-width: 700px; margin: 0 auto; padding: 80px 24px; }
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item.open { border-color: var(--border-med); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card); border: none;
  cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 500; color: var(--text);
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-card2); }
.faq-icon { flex-shrink: 0; font-size: 20px; color: var(--text-faint); transition: transform 0.2s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--indigo-light); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
  background: var(--bg-card);
}
.faq-item.open .faq-a { display: block; }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--border); padding: 60px 24px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 60px; margin-bottom: 48px; }
.footer-brand { flex-shrink: 0; max-width: 220px; }
.footer-brand .logo { display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); transition: all 0.15s;
}
.social-link:hover { border-color: var(--indigo); color: var(--indigo-light); background: var(--indigo-dim); }
.footer-links { display: flex; gap: 60px; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-faint);
}
.desktop-only { display: inline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 72px 20px 60px; }
  .hero-sub { font-size: 16px; }
  .desktop-only { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-brand { max-width: none; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .screen-sidebar { display: none; }
  .retro-body { flex-direction: column; }
  .carousel-arrows { display: none; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { text-align: center; justify-content: center; }
  .pricing-card { padding: 22px; }
  .auth-box { padding: 22px; }
  .footer-links { flex-direction: column; gap: 24px; }
}

.form-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px;
  display: none;
}
