/* ==========================================================================
   WORKFACE HRMS - UNIFIED RESPONSIVE STYLESHEET
   Comprehensive stylesheet for Home, Privacy Policy, & Terms of Service pages.
   Fully responsive across Desktop, Tablet, and Mobile devices with zero conflicts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Primary Colors */
  --primary: #735c00;
  --primary-container: #facc15;
  --on-primary-fixed: #231b00;
  --on-primary-container: #6c5700;

  /* Surfaces & Backgrounds */
  --surface: #f8f9ff;
  --surface-container-low: #eff4ff;
  --surface-container: #e5eeff;
  --surface-container-high: #dce9ff;
  --surface-container-highest: #d3e4fe;
  --on-surface: #0b1c30;
  --on-surface-variant: #4d4632;

  /* Secondary & Accents */
  --secondary: #565e74;
  --secondary-container: #dae2fd;
  --on-secondary-container: #5c647a;
  --secondary-fixed: #dae2fd;
  --on-secondary-fixed: #131b2e;

  /* Tertiary */
  --tertiary: #006398;
  --tertiary-container: #aad6ff;
  --on-tertiary-container: #005e90;

  /* Borders & Neutral Tones */
  --border-subtle: rgba(226, 232, 240, 0.85);
  --border-slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;

  /* Sizing Constants */
  --header-height: 80px;
  --header-height-mobile: 68px;
}

html {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  max-width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. Shared Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   3. LANDING PAGE (HOME) STYLES
   Scoped with .page-home where needed to guarantee zero collision
   ========================================================================== */

/* Home Header */
.page-home .header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.page-home .header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-home .logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.page-home .btn-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  background-color: var(--surface-container);
  color: var(--on-surface);
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s, transform 0.1s;
  white-space: nowrap;
}

.page-home .btn-signin:hover {
  background-color: var(--surface-container-high);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background-color: var(--primary-container);
  color: var(--on-primary-fixed);
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(234, 179, 8, 0.4);
  box-shadow: 0 1px 3px rgba(250, 204, 21, 0.25);
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-contact:hover {
  background-color: #facc15e6;
  box-shadow: 0 3px 8px rgba(250, 204, 21, 0.35);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0 96px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(239, 244, 255, 0.4) 100%);
  position: relative;
  overflow: hidden;
}

.hero-ambient-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-blur-1 {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 380px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.22) 0%, rgba(254, 240, 138, 0.12) 40%, rgba(255, 255, 255, 0) 70%);
  filter: blur(90px);
  border-radius: 9999px;
}

.hero-blur-2 {
  position: absolute;
  top: 18%;
  left: 12%;
  width: min(520px, 80vw);
  height: 420px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(147, 197, 253, 0.08) 50%, rgba(255, 255, 255, 0) 75%);
  filter: blur(100px);
  border-radius: 9999px;
}

.hero-blur-3 {
  position: absolute;
  top: 22%;
  right: 10%;
  width: min(560px, 80vw);
  height: 440px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(251, 191, 36, 0.08) 45%, rgba(255, 255, 255, 0) 70%);
  filter: blur(105px);
  border-radius: 9999px;
}

.hero-blur-4 {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 95vw);
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(250, 204, 21, 0.14) 0%, rgba(96, 165, 250, 0.12) 45%, rgba(255, 255, 255, 0) 75%);
  filter: blur(120px);
  border-radius: 9999px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  max-width: 100%;
}

.badge-hero {
  background-color: var(--surface-container-high);
  border: 1px solid var(--border-slate-200);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: var(--primary-container);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--on-surface);
  margin-bottom: 24px;
  max-width: 920px;
  word-break: break-word;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--secondary);
  max-width: 900px;
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 400;
  padding: 0 8px;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  background-color: var(--primary-container);
  color: var(--on-primary-fixed);
  box-shadow: 0 4px 10px rgba(250, 204, 21, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: #facc15e6;
  box-shadow: 0 6px 14px rgba(250, 204, 21, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  background-color: #ffffff;
  color: var(--on-surface);
  border: 1px solid var(--border-slate-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.15s, border-color 0.2s;
  text-align: center;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.hero-mockup-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 64px;
  border-radius: 16px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}

.hero-mockup-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-slate-200);
  background-color: #ffffff;
}

.hero-mockup-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Social Proof */
.social-proof {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
}

.social-proof-title {
  font-size: 12px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-align: center;
}

.social-proof-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: filter 0.3s, opacity 0.3s;
}

.social-proof-logos:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--on-surface-variant);
  letter-spacing: 0.02em;
}

/* Bento Grid Section */
.bento-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.section-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 64px;
}

.page-home .section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.25;
  word-break: break-word;
}

.bento-title-accent {
  display: inline-block;
  white-space: nowrap;
}

.section-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--secondary);
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 100%;
}

.bento-card {
  background-color: var(--surface-container-low);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.bento-card:hover {
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.card-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-text {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.6;
}

/* Interactive Feature Tour */
.interactive-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  background-color: var(--surface);
}

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  width: 100%;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn.active {
  background-color: var(--primary-container);
  color: var(--on-primary-fixed);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.tab-btn.inactive {
  background-color: #ffffff;
  color: var(--secondary);
  border: 1px solid var(--border-slate-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-btn.inactive:hover {
  color: var(--on-surface);
  border-color: #cbd5e1;
}

.tour-card {
  width: 100%;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-slate-200);
}

.tour-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
}

.tour-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.tour-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tour-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.25;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--on-surface);
  line-height: 1.5;
}

.check-item .material-symbols-outlined {
  flex-shrink: 0;
  margin-top: 1px;
}

.tour-mockup-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-slate-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.tour-mockup-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.leave-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background-color: var(--surface-container-low);
  border-radius: 12px;
  text-align: center;
}

.report-export-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

/* Adoption Steps Section */
.adoption-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
}

.step-card {
  background-color: var(--surface-container-low);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.step-card:hover {
  box-shadow: 0 10px 18px -3px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.step-pill-box {
  padding: 14px;
  background-color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(226, 232, 240, 0.6);
  line-height: 1.4;
}

/* FAQ Accordion Section */
.faq-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  background-color: var(--surface);
  border-top: 1px solid #f1f5f9;
}

.faq-list {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--surface-container-low);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-slate-200);
  transition: all 0.2s ease;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--on-surface);
  list-style: none;
  gap: 16px;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .material-symbols-outlined {
  transition: transform 0.2s ease;
  color: var(--secondary);
  flex-shrink: 0;
}

.faq-item[open] summary .material-symbols-outlined {
  transform: rotate(180deg);
}

.faq-body {
  margin-top: 16px;
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--border-slate-200);
}

/* Contact Form Section */
.contact-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.page-home .contact-card {
  width: 100%;
  max-width: 896px;
  background-color: var(--surface-container-low);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-slate-200);
  font-size: 14px;
  color: var(--on-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(115, 92, 0, 0.2);
}

.form-textarea {
  resize: vertical;
}

.form-input.is-invalid, .form-select.is-invalid, .form-textarea.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fffaf0;
}

.form-input.is-invalid:focus, .form-select.is-invalid:focus, .form-textarea.is-invalid:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.form-input.is-valid, .form-select.is-valid, .form-textarea.is-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4;
}

.form-input.is-valid:focus, .form-select.is-valid:focus, .form-textarea.is-valid:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.invalid-feedback {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 6px;
}

.valid-feedback {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  margin-top: 6px;
}

.char-counter {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
  text-align: right;
  margin-top: 6px;
}

.char-counter.near-limit {
  color: #d97706;
  font-weight: 700;
}

.char-counter.at-limit {
  color: #dc2626;
  font-weight: 700;
}

/* Captcha Styling */
.captcha-group {
  margin-top: 4px;
}

.captcha-controls-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.captcha-box {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-slate-200);
  border-radius: 12px;
  padding: 3px 6px 3px 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  gap: 8px;
  height: 48px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.captcha-img {
  height: 40px;
  width: 155px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background-color: #f8f9ff;
  user-select: none;
}

.captcha-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: #f1f5f9;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.captcha-refresh-btn:hover {
  background-color: var(--primary);
  color: #000000;
  transform: scale(1.05);
}

.captcha-refresh-btn .refresh-icon {
  font-size: 19px;
  transition: transform 0.4s ease;
}

.captcha-refresh-btn.rotating .refresh-icon {
  transform: rotate(360deg);
}

.form-input.captcha-input {
  flex: 1;
  height: 48px;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-family: monospace;
  font-size: 15px;
  margin: 0;
}

.captcha-subtext-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.captcha-hint {
  font-size: 12px;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.captcha-hint .hint-icon {
  font-size: 15px;
  color: var(--secondary);
}

@media (max-width: 640px) {
  .captcha-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .captcha-box {
    justify-content: space-between;
    width: 100%;
  }

  .captcha-img {
    flex: 1;
    max-width: calc(100% - 44px);
  }
}

.btn-loading {
  opacity: 0.8;
  cursor: not-allowed !important;
  pointer-events: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning {
  animation: spin 0.8s linear infinite;
}

.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.contact-alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.contact-alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.contact-alert .alert-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.form-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--secondary);
}

.form-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Home Footer */
.page-home .footer {
  width: 100%;
  border-top: 1px solid var(--border-slate-200);
  padding: 40px 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
}

.page-home .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.page-home .footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.page-home .footer-copy {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 500;
}

.page-home .footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--slate-600);
  font-weight: 500;
  flex-wrap: wrap;
}

.page-home .footer-links a:hover {
  color: var(--primary);
}


/* ==========================================================================
   4. LEGAL PAGES (PRIVACY POLICY & TERMS OF SERVICE)
   Scoped to .page-legal with zero collision
   ========================================================================== */

/* Legal Fixed Headers */
.page-legal .header,
.page-legal .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 50;
  background-color: rgba(248, 249, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.page-legal .header-inner {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-legal .header-logo-link,
.page-legal .brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.page-legal .header-logo,
.page-legal .brand-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.page-legal .btn-signin,
.page-legal .btn-sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  background-color: var(--surface-container);
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.page-legal .btn-signin:hover,
.page-legal .btn-sign-in:hover {
  background-color: var(--surface-container-high);
}

/* Legal Main Container */
.page-legal .main-content {
  flex: 1 0 auto;
  width: 100%;
  padding-top: var(--header-height);
  background-color: var(--surface);
}

.doc-container,
.document-wrapper {
  max-width: 896px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  width: 100%;
}

/* Document Headers */
.doc-header {
  border-top: 1px solid var(--border-slate-200);
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.document-header {
  border-bottom: 1px solid var(--surface-container);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.badge-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--secondary);
  font-size: 12px;
  flex-wrap: wrap;
}

.meta-info .separator {
  color: rgba(86, 94, 116, 0.6);
}

.doc-title,
.document-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.document-meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

.doc-summary,
.document-lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--secondary);
  margin-top: 0.75rem;
}

/* Legal Content Body */
.legal-content,
.document-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--secondary);
}

.legal-section,
.policy-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-section p {
  font-size: 14px;
  line-height: 22px;
  color: var(--on-surface);
}

.page-legal .section-title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-surface);
}

.legal-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-list strong {
  color: var(--on-surface);
  font-weight: 600;
}

.page-legal .contact-card {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  max-width: 100%;
}

.page-legal .contact-card strong {
  color: var(--on-surface);
}

.contact-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.contact-link:hover {
  text-decoration: underline;
  color: #554400;
}

.border-divider {
  border-top: 1px solid var(--border-slate-200);
  padding-top: 1.5rem;
}

/* Legal Footer */
.page-legal .site-footer {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--border-slate-200);
  margin-top: 4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.page-legal .footer-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.page-legal .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-legal .footer-logo,
.page-legal .footer-brand img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

.page-legal .footer-copy,
.page-legal .footer-copyright {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 500;
}

.page-legal .footer-nav,
.page-legal .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 12px;
  font-weight: 500;
}

.page-legal .footer-nav a,
.page-legal .footer-link {
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

.page-legal .footer-nav a:hover,
.page-legal .footer-link:hover {
  color: var(--on-surface);
}

.page-legal .footer-nav .active-link,
.page-legal .footer-link.active-link {
  color: var(--on-surface);
  font-weight: 600;
  padding: 4px 8px;
  background-color: var(--surface-container-high);
  border-radius: 4px;
}


/* ==========================================================================
   5. RESPONSIVE MEDIA QUERIES
   Detailed breakpoints for Tablet (<=1024px, <=860px), Mobile (<=640px, <=480px, <=360px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Tablet & Medium Screens (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-section {
    padding: 56px 0 80px;
  }

  .bento-section,
  .interactive-section,
  .adoption-section,
  .faq-section,
  .contact-section {
    padding: 72px 0;
  }

  .tour-card {
    padding: 36px;
  }

  .tour-layout {
    gap: 32px;
  }

  .steps-grid {
    gap: 20px;
  }

  .step-card {
    padding: 24px;
  }
}

/* --------------------------------------------------------------------------
   B. Small Tablet & Horizontal Mobile (max-width: 860px)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tour-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .social-proof-logos {
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   C. Mobile Devices (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Fixed header heights on legal */
  .page-legal .header,
  .page-legal .site-header {
    height: var(--header-height);
  }

  .page-legal .header-inner {
    padding: 0 1.25rem;
  }

  .page-legal .main-content {
    padding-top: var(--header-height);
  }

  .doc-container,
  .document-wrapper {
    padding: 1.75rem 1.25rem;
  }

  /* Header adjustments */
  .page-home .header-inner {
    height: var(--header-height);
  }

  .page-home .logo-img {
    height: 30px;
  }

  .page-legal .header-logo,
  .page-legal .brand-logo img {
    height: 28px;
  }

  /* Hero Section */
  .hero-section {
    padding: 40px 0 64px;
  }

  .hero-title {
    margin-bottom: 16px;
  }

  .hero-subtitle {
    margin-bottom: 28px;
  }

  .hero-mockup-wrapper {
    margin-bottom: 40px;
    padding: 8px;
    border-radius: 12px;
  }

  .hero-mockup-frame {
    border-radius: 8px;
  }

  /* Sections Spacing */
  .bento-section,
  .interactive-section,
  .adoption-section,
  .faq-section,
  .contact-section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  /* Tabs */
  .tour-tabs {
    margin-bottom: 32px;
    gap: 8px;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .tour-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  /* FAQ */
  .faq-item {
    padding: 18px 20px;
  }

  .faq-item summary {
    font-size: 15px;
  }

  /* Contact Form */
  .page-home .contact-card {
    padding: 32px 24px;
    border-radius: 14px;
  }

  .form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 20px;
  }

  .form-badges {
    justify-content: center;
    gap: 12px;
  }

  .page-home .form-footer .btn-primary {
    width: 100%;
  }

  /* Home Footer */
  .page-home .footer {
    padding: 32px 0;
  }

  .page-home .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .page-home .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .page-home .footer-links {
    justify-content: center;
    gap: 16px;
  }

  /* Legal Footer */
  .page-legal .site-footer {
    margin-top: 3rem;
  }

  .page-legal .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }

  .page-legal .footer-brand {
    flex-direction: column;
    gap: 0.5rem;
  }

  .page-legal .footer-nav,
  .page-legal .footer-links {
    justify-content: center;
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   D. Mobile Phones (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
    margin-bottom: 40px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }

  .bento-title-accent {
    white-space: normal;
  }

  .bento-card {
    padding: 24px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .page-home .btn-signin,
  .page-legal .btn-signin,
  .page-legal .btn-sign-in,
  .btn-contact {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   E. Small Screens & Narrow Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .page-legal .header-inner {
    padding: 0 1rem;
  }

  .doc-container,
  .document-wrapper {
    padding: 1.25rem 1rem;
  }

  .badge-hero {
    font-size: 11px;
    padding: 6px 12px;
  }

  .badge-hero span:nth-child(2) {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tour-card {
    padding: 18px 14px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 12px;
    flex: 1 1 140px;
    justify-content: center;
  }

  .leave-stat-grid {
    gap: 6px;
    padding: 12px 8px;
  }

  .leave-stat-grid > div > div:last-child {
    font-size: 16px !important;
  }

  .report-export-group span {
    flex: 1 1 120px;
    justify-content: center;
  }

  .step-card {
    padding: 20px 16px;
  }

  .page-home .contact-card {
    padding: 24px 16px;
  }

  .social-proof-logos {
    gap: 20px;
  }

  .logo-item {
    font-size: 15px;
  }

  .meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .meta-info {
    font-size: 11px;
    gap: 0.5rem;
  }

  .form-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

