/* ── Layout & Reset ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Landing Page Styles ── */
.landing-container {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
}

.hero-section {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--kaf-accent-tint);
  color: var(--kaf-accent-press);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(218, 70, 47, 0.15);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--kaf-accent);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

/* Mockup Wrapper */
.mockup-container {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
}

.mockup-main {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16/10;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.mockup-main:hover {
  transform: translateY(-4px);
  border-color: var(--kaf-accent);
}

/* Mockup Header */
.mockup-header {
  height: 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mockup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.5;
}
.mockup-address {
  flex: 1;
  height: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-faint);
  font-family: 'IBM Plex Mono', monospace;
}

/* Mockup Body */
.mockup-body {
  flex: 1;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  text-align: start;
}
html[dir="rtl"] .mockup-body {
  text-align: right;
}
@media (max-width: 768px) {
  .mockup-body {
    grid-template-columns: 1fr;
  }
  .mockup-body > :last-child {
    display: none;
  }
}

/* Card mockup styling */
.loyalty-card-mock {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.loyalty-stamps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.stamp-slot {
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.stamp-slot.filled {
  border-style: solid;
  border-color: var(--kaf-accent);
  background: var(--kaf-accent-tint);
  color: var(--kaf-accent);
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(218, 70, 47, 0.1);
}

.floating-card {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 5;
  animation: float-anim 3s infinite ease-in-out;
}
.floating-card.card-1 {
  top: 25%;
  left: -40px;
}
.floating-card.card-2 {
  bottom: 25%;
  right: -30px;
  animation-delay: 1.5s;
}
html[dir="rtl"] .floating-card.card-1 {
  left: auto;
  right: -40px;
}
html[dir="rtl"] .floating-card.card-2 {
  right: auto;
  left: -30px;
}
@media (max-width: 900px) {
  .floating-card { display: none; }
}

@keyframes float-anim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Features grid styling */
.features-section {
  padding: 5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: start;
}
html[dir="rtl"] .feature-box {
  text-align: right;
}
.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--kaf-accent);
  box-shadow: var(--shadow-card);
}
.feature-box-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--kaf-accent-tint);
  color: var(--kaf-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.feature-box-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.feature-box-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Steps section */
.steps-section {
  padding: 5rem 1.5rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 3.5rem auto 0;
}
@media (max-width: 768px) {
  .steps-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.step-item {
  position: relative;
}
.step-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--kaf-accent);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}
.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Banner Bottom */
.cta-banner {
  padding: 6rem 1.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Authenticated view styles ── */
.kaf-main-auth {
  min-height: calc(100vh - 56px);
  padding: 5rem 1.5rem 6rem;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
}
.auth-container {
  width: 100%;
}
.auth-badge-main {
  display: inline-block;
  background: var(--kaf-accent-tint);
  color: var(--kaf-accent-press);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.auth-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
  letter-spacing: -0.02em;
}
.text-accent {
  color: var(--kaf-accent);
}
.auth-lead {
  font-size: .9375rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}
.dash-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
  text-align: start;
}
.dash-card:hover {
  border-color: var(--kaf-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.dash-icon-shape {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-icon {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}
.vendor-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.client-icon {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}
.dash-badge-status {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 100px;
}
.status-success {
  background: rgba(31, 157, 99, 0.1);
  color: var(--kaf-success);
}
.status-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.status-info {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}
.dash-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .75rem;
}
.dash-card-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.coming-soon-ribbon {
  position: absolute;
  top: 15px;
  right: -35px;
  background: #0ea5e9;
  color: white;
  padding: 4px 40px;
  font-size: 9px;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  white-space: nowrap;
}
html[dir="rtl"] .coming-soon-ribbon {
  right: auto;
  left: -35px;
  transform: rotate(-45deg);
}
.btn-warning-custom {
  background: #E0A21A;
  color: white;
}
.btn-warning-custom:hover {
  background: #C78E14;
  color: white;
}
.coming-soon-icon {
  animation: pulse-slow 2s infinite ease-in-out;
  display: inline-block;
}
@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}
