﻿/* ==========================================================================
   ONE QR — COMPONENT STYLES
   Frontend Design System: Purple Identity, Crisp White Cards, Subtle Shadows
   ========================================================================== */

/* --------------------------------------------------------------------------
   Cards Base System
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-32);
  position: relative;
  box-shadow: var(--shadow-default);
  transition: all var(--transition-card);
}

.card:hover {
  border-color: rgba(108, 77, 255, 0.3);
  box-shadow: var(--shadow-card-hover);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}

/* --------------------------------------------------------------------------
   Feature Grid & Cards
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-24);
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-32);
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-default);
  transition: all var(--transition-card);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(108, 77, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.feature-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-16);
}

/* Icon Containers: Soft Purple #EEEAFE */
.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-24);
  transition: all var(--transition-btn);
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
  stroke-width: 1.8px;
}

.feature-card:hover .feature-icon-wrapper {
  background: #E5DFFE;
  transform: scale(1.04);
}

.feature-title {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: var(--space-8);
  font-weight: 700;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-24);
  flex-grow: 1;
}

.feature-preview {
  margin-top: auto;
  padding: 12px 14px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hero Visual System (Smartphone Mockup + Standee + Floating Action Cards)
   -------------------------------------------------------------------------- */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  perspective: 1200px;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Physical Standee Mockup on Left */
.standee-wrapper {
  position: absolute;
  left: 0%;
  bottom: 6%;
  width: 230px;
  background: var(--color-surface-white);
  border: 2px solid rgba(17, 17, 38, 0.08);
  border-radius: 20px 20px 8px 8px;
  padding: 18px;
  box-shadow: 0 20px 40px -10px rgba(17, 17, 38, 0.12), 0 0 1px rgba(17, 17, 38, 0.1);
  transform: rotateY(12deg) rotateX(2deg) translateZ(-30px);
  transform-style: preserve-3d;
  z-index: 2;
  transition: transform var(--transition-smooth);
}

.standee-wrapper:hover {
  transform: rotateY(6deg) rotateX(1deg) translateZ(0);
}

.standee-header {
  text-align: center;
  margin-bottom: 12px;
}

.standee-brand {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-navy);
}

.standee-sub {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.standee-qr-box {
  background: #FFFFFF;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
}

.standee-qr-box img,
.standee-qr-box svg {
  width: 130px;
  height: 130px;
}

.standee-callout {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid rgba(108, 77, 255, 0.2);
  padding: 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.standee-acrylic-base {
  position: absolute;
  bottom: -12px;
  left: -12px;
  right: -12px;
  height: 12px;
  background: rgba(17, 17, 38, 0.06);
  border: 1px solid rgba(17, 17, 38, 0.1);
  border-radius: 3px;
  transform: rotateX(70deg);
}

/* Smartphone Product Mockup in Center/Front */
.smartphone-wrapper {
  position: relative;
  width: 290px;
  height: 520px;
  background: #FFFFFF;
  border: 7px solid var(--color-navy);
  border-radius: 40px;
  box-shadow: var(--shadow-mockup);
  overflow: hidden;
  z-index: 5;
  transform: translateZ(30px);
  margin-left: 90px;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 18px;
  background: var(--color-navy);
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-camera {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #252542;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #FAFAFD;
  padding: 38px 14px 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* Simulated One QR Customer Landing Page inside phone */
.phone-biz-header {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(17, 17, 38, 0.04);
}

.phone-biz-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px auto;
  font-size: 0.95rem;
}

.phone-biz-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
}

.phone-biz-category {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

.phone-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-navy);
  box-shadow: 0 1px 3px rgba(17, 17, 38, 0.03);
  transition: all var(--transition-btn);
}

.phone-action-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.phone-action-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-action-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* Floating Action Badges Around Hero Visualization */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  box-shadow: 0 8px 24px rgba(17, 17, 38, 0.08);
  z-index: 8;
  animation: floatSlow 4s ease-in-out infinite alternate;
  white-space: nowrap;
}

.floating-badge svg {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

.badge-whatsapp { top: 8%; right: -25px; border-color: rgba(22, 184, 154, 0.4); }
.badge-whatsapp svg { color: var(--color-success); }

.badge-menu { top: 28%; left: -45px; border-color: rgba(108, 77, 255, 0.3); animation-delay: -1s; }
.badge-menu svg { color: var(--color-primary); }

.badge-directions { bottom: 32%; right: -35px; border-color: var(--color-border); animation-delay: -2s; }
.badge-directions svg { color: var(--color-navy); }

.badge-ai { bottom: 12%; left: -30px; border-color: rgba(108, 77, 255, 0.3); animation-delay: -3s; }
.badge-ai svg { color: var(--color-primary); }

.badge-split { top: -4%; left: 35%; border-color: rgba(22, 184, 154, 0.5); animation-delay: -1.5s; }
.badge-split svg { color: var(--color-success); }

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-7px); }
}

/* --------------------------------------------------------------------------
   Problem vs Solution Visuals
   -------------------------------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-48);
  align-items: center;
}

.fragmented-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fragmented-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #FFF5F5;
  border: 1px dashed #FED7D7;
  border-radius: var(--radius-md);
  color: #C53030;
  font-size: 0.875rem;
  font-weight: 500;
}

.unified-box {
  padding: var(--space-48);
  background: var(--color-surface-white);
  border: 2px solid rgba(108, 77, 255, 0.25);
  border-radius: var(--radius-container);
  text-align: center;
  box-shadow: 0 16px 50px rgba(108, 77, 255, 0.08);
}

.unified-qr-icon {
  width: 76px;
  height: 76px;
  background: var(--color-primary-soft);
  padding: 8px;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-24) auto;
  border: 1px solid rgba(108, 77, 255, 0.2);
}

/* --------------------------------------------------------------------------
   How It Works — 3-Step Journey
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
  position: relative;
}

.step-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-48) var(--space-32);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-default);
  transition: all var(--transition-card);
}

.step-card:hover {
  border-color: rgba(108, 77, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-16);
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-title {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: var(--space-8);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-metric-pill {
  margin-top: auto;
  padding-top: var(--space-24);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   Industry Use Cases & Interactive Switcher
   -------------------------------------------------------------------------- */
.industry-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-32);
}

.industry-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-surface-white);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-btn);
}

.industry-btn:hover,
.industry-btn.active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: rgba(108, 77, 255, 0.35);
}

.industry-display-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-container);
  padding: var(--space-48);
  box-shadow: var(--shadow-default);
}

.journey-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-24);
  padding: var(--space-24);
  background: var(--color-bg-page);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.journey-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.journey-node-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.journey-node-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.journey-arrow {
  color: var(--color-border-focus);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Split Payment Visual Identity (Purple + Dark Navy + Mint Accents)
   -------------------------------------------------------------------------- */
.split-hero-container {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-container);
  padding: var(--space-48);
  box-shadow: var(--shadow-elevated);
}

/* Strategic Dark Navy Split Payment Section (Rule 12: Fintech Brand Moment) */
.section-dark .split-hero-container,
.split-hero-container-dark {
  background: #181834;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
}

.section-dark .split-hero-container h2,
.section-dark .split-hero-container h4,
.split-hero-container-dark h2,
.split-hero-container-dark h4 {
  color: #FFFFFF !important;
}

.section-dark .split-hero-container p,
.split-hero-container-dark p {
  color: #B7B7C8 !important;
}

.section-dark .split-hero-container label,
.split-hero-container-dark label {
  color: #E2E8F0 !important;
}

.section-dark .split-pill,
.split-hero-container-dark .split-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

.section-dark .split-pill:hover,
.section-dark .split-pill.active,
.split-hero-container-dark .split-pill:hover,
.split-hero-container-dark .split-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-btn-primary);
}

.section-dark .split-visual-canvas,
.split-hero-container-dark .split-visual-canvas {
  background: #111124;
  border-color: rgba(255, 255, 255, 0.08);
}

.section-dark .split-amount-badge,
.split-hero-container-dark .split-amount-badge {
  background: rgba(108, 77, 255, 0.16);
  border-color: rgba(108, 77, 255, 0.35);
}

.section-dark .split-amount-val,
.split-hero-container-dark .split-amount-val {
  color: #FFFFFF;
}

.section-dark .split-part-item,
.split-hero-container-dark .split-part-item {
  background: #FFFFFF !important;
  border: 1px solid #E7E5F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.section-dark .split-part-val,
.split-hero-container-dark .split-part-val {
  color: #111126 !important;
}

.section-dark .split-hero-container input.form-input,
.split-hero-container-dark input.form-input {
  background: #111124;
  border-color: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.section-dark .split-hero-container input.form-input::placeholder,
.split-hero-container-dark input.form-input::placeholder {
  color: #686878;
}

.section-dark .split-hero-container .disclaimer-box,
.split-hero-container-dark .disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #9D9DB8;
}

.split-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-48);
  align-items: center;
}

.split-pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-24);
}

.split-pill {
  padding: 8px 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition-btn);
}

.split-pill:hover,
.split-pill.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn-primary);
}

.split-visual-canvas {
  background: #FAFAFD;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  position: relative;
}

.split-amount-badge {
  text-align: center;
  padding: 18px;
  background: var(--color-primary-soft);
  border: 1px solid rgba(108, 77, 255, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-24);
}

.split-amount-val {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy);
}

.split-branch-arrow {
  text-align: center;
  margin: 12px 0;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.split-parts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.split-part-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 17, 38, 0.03);
}

.split-part-val {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.split-part-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-success);
  font-weight: 600;
}

.split-part-status svg {
  color: var(--color-success);
  width: 14px;
  height: 14px;
}

.disclaimer-box {
  margin-top: var(--space-24);
  padding: 14px 18px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: #92400E;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Product Demo Showcase Window
   -------------------------------------------------------------------------- */
.demo-tab-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-32);
}

.demo-tab-btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-btn);
}

.demo-tab-btn:hover,
.demo-tab-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn-primary);
}

.demo-showcase-window {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-container);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #F4F3FA;
  border-bottom: 1px solid var(--color-border);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D1CFE2;
}

.window-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.demo-screen-content {
  padding: var(--space-48);
  min-height: 380px;
}

/* --------------------------------------------------------------------------
   FAQ Accordion (+ / − smooth transitions)
   -------------------------------------------------------------------------- */
.faq-search-wrapper {
  max-width: 600px;
  margin: 0 auto var(--space-32) auto;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: inherit;
  transition: all var(--transition-btn);
  box-shadow: var(--shadow-default);
}

.faq-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus-ring);
  outline: none;
}

.faq-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  width: 20px;
  height: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(17, 17, 38, 0.03);
  transition: all var(--transition-btn);
}

.faq-item.open {
  border-color: rgba(108, 77, 255, 0.35);
  box-shadow: var(--shadow-default);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
}

.faq-icon-toggle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  transition: transform var(--transition-btn);
}

.faq-answer-content {
  display: none;
  padding: 0 24px 22px 24px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-answer-content {
  display: block;
}

/* --------------------------------------------------------------------------
   Forms & Controls
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}

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

.form-group.col-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-btn);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus-ring);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23686878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-confirmation {
  display: none;
  text-align: center;
  padding: var(--space-48) var(--space-24);
}

.form-confirmation.active {
  display: block;
}

.confirm-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-soft);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-24) auto;
  font-size: 1.5rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Founder Card
   -------------------------------------------------------------------------- */
.founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-48);
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-container);
  overflow: hidden;
  align-items: center;
  box-shadow: var(--shadow-default);
}

.founder-photo-box {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--color-primary-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-24);
  text-align: center;
}

.founder-info {
  padding: var(--space-32);
}

.founder-name {
  font-size: 1.85rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.founder-role {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--space-16);
}

/* --------------------------------------------------------------------------
   SIGNATURE HERO QR SCANNING ANIMATION
   Continuous, elegant scanning beam communicates "Scan One QR → Access Everything".
   Slow, sophisticated loop: scan downward -> complete scan -> tiny violet pulse -> pause -> repeat.
   Pure CSS, GPU-friendly, respects prefers-reduced-motion.
   -------------------------------------------------------------------------- */
.standee-qr-box {
  position: relative;
  overflow: hidden;
  --qr-scan-height: 151.5px;
  animation: qrBoxPulse 4.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: box-shadow, border-color;
}

.qr-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 5%, rgba(124, 94, 255, 0.35) 20%, #A78BFA 45%, #FFFFFF 50%, #A78BFA 55%, rgba(124, 94, 255, 0.35) 80%, transparent 95%);
  box-shadow: 0 0 10px 1.5px rgba(124, 94, 255, 0.65), 0 0 2px rgba(255, 255, 255, 0.85);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  animation: qrContinuousScan 4.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}

@keyframes qrContinuousScan {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  6% {
    opacity: 0.95;
  }
  44% {
    opacity: 0.95;
  }
  50% {
    transform: translate3d(0, var(--qr-scan-height, 151.5px), 0);
    opacity: 0;
  }
  50.01%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
}

/* Subtle micro-interaction: tiny violet pulse & minimal surrounding glow upon completing scan */
@keyframes qrBoxPulse {
  0%, 46% {
    box-shadow: 0 0 0 0 transparent;
    border-color: var(--color-border);
  }
  54% {
    box-shadow: 0 0 16px 2px rgba(108, 77, 255, 0.28), 0 0 0 1px rgba(108, 77, 255, 0.45);
    border-color: rgba(108, 77, 255, 0.55);
  }
  66%, 100% {
    box-shadow: 0 0 0 0 transparent;
    border-color: var(--color-border);
  }
}

[data-theme="night"] .standee-qr-box {
  animation-name: qrBoxPulseNight;
}

@keyframes qrBoxPulseNight {
  0%, 46% {
    box-shadow: 0 0 0 0 transparent;
    border-color: rgba(255, 255, 255, 0.1);
  }
  54% {
    box-shadow: 0 0 18px 3px rgba(124, 94, 255, 0.42), 0 0 0 1px rgba(124, 94, 255, 0.6);
    border-color: rgba(124, 94, 255, 0.7);
  }
  66%, 100% {
    box-shadow: 0 0 0 0 transparent;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* --------------------------------------------------------------------------
   "ONE QR" BRAND MOMENT STRIP
   Communicates: ONE QR -> One Scan -> Multiple Business Actions
   -------------------------------------------------------------------------- */
.brand-moment-strip {
  margin-top: var(--space-48);
  padding: 18px 24px;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.brand-moment-lead {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-moment-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  color: #FFFFFF;
  background: var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(108, 77, 255, 0.35);
}

.brand-moment-tagline {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
}

.brand-moment-chain {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-moment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: all var(--transition-btn);
}

.brand-moment-pill:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: rgba(108, 77, 255, 0.3);
  transform: translateY(-1px);
}

.brand-moment-arrow {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   SMART FEATURE VISUALIZATION — CONNECTED ECOSYSTEM HUB
   Visual relationship around the central One QR concept:
   "One QR connects everything."
   -------------------------------------------------------------------------- */
.ecosystem-hub-wrapper {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-container);
  padding: var(--space-48);
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-32);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
  position: relative;
}

.ecosystem-node {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  transition: all var(--transition-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ecosystem-node:hover,
.ecosystem-node.active {
  background: var(--color-surface-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.ecosystem-node-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-16);
  transition: all var(--transition-btn);
}

.ecosystem-node:hover .ecosystem-node-icon {
  transform: scale(1.06);
  background: var(--color-primary);
  color: #FFFFFF;
}

.ecosystem-node-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.ecosystem-node-desc {
  font-size: 0.84rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.ecosystem-center-banner {
  grid-column: 1 / -1;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(108, 77, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-16);
  flex-wrap: wrap;
  gap: 16px;
}

.ecosystem-center-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ecosystem-center-core {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(108, 77, 255, 0.35);
}

/* --------------------------------------------------------------------------
   LIVE BUSINESS PREVIEW COMPONENT (Smart Feature)
   -------------------------------------------------------------------------- */
.live-preview-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-48);
}

.live-preview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-48);
  align-items: center;
}

.live-preview-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-24);
}

.live-biz-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-card);
}

.live-biz-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-white);
  transform: translateY(-1px);
}

.live-biz-btn.active {
  background: var(--color-surface-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(108, 77, 255, 0.12);
}

.live-phone-wrapper {
  width: 320px;
  margin: 0 auto;
  background: var(--color-surface-white);
  border: 8px solid var(--color-navy);
  border-radius: 40px;
  box-shadow: var(--shadow-mockup);
  overflow: hidden;
  position: relative;
}

.live-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 16px;
  background: var(--color-navy);
  border-radius: 20px;
  z-index: 10;
}

.live-phone-screen {
  padding: 34px 14px 20px 14px;
  background: #FAFAFD;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 480px;
}

[data-theme="night"] .live-phone-screen {
  background: #11111E;
}

.live-phone-header {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.live-phone-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition-btn);
}

.live-action-item:hover {
  background: var(--color-primary-soft);
  border-color: rgba(108, 77, 255, 0.3);
  color: var(--color-primary);
}

.loyalty-stamp-grid {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
}

.loyalty-stamp {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-btn);
}

.loyalty-stamp.stamped {
  background: var(--color-primary);
  border-style: solid;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Night Mode Polish Adjustments
   -------------------------------------------------------------------------- */
[data-theme="night"] .standee-qr-box {
  background: #10101C;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="night"] .standee-acrylic-base {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="night"] .phone-screen {
  background: #10101C;
}
[data-theme="night"] .fragmented-item {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #F87171;
}
[data-theme="night"] .smartphone-wrapper {
  background: #10101C;
  border-color: #24243A;
}

/* --------------------------------------------------------------------------
   Responsive Component Rules
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-visual-wrapper {
    flex-direction: column;
    min-height: 480px;
  }

  .standee-wrapper {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-bottom: -50px;
    z-index: 1;
    width: 200px;
  }

  .smartphone-wrapper {
    margin-left: 0;
    width: 270px;
    height: 470px;
  }

  .split-calc-grid,
  .problem-grid,
  .founder-card,
  .live-preview-grid {
    grid-template-columns: 1fr;
  }

  .founder-photo-box {
    min-height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .steps-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .brand-moment-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .live-preview-box {
    padding: var(--space-20);
  }
  .live-phone-wrapper,
  .smartphone-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 360px) {
  .live-phone-wrapper,
  .smartphone-wrapper {
    width: 290px !important;
  }
}


/* ==========================================================================
   WHAT-IS CARDS GRID (2-col desktop, 1-col mobile)
   ========================================================================== */
.what-is-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* ==========================================================================
   HERO VISUAL MOBILE FIXES � Hide floating badges, fix sizing
   ========================================================================== */
@media (max-width: 768px) {
  .what-is-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Hide floating badges � they overflow on small screens */
  .floating-badge {
    display: none !important;
  }

  /* Reduce hero visual wrapper size */
  .hero-visual-wrapper {
    min-height: 380px !important;
    max-width: 100% !important;
  }

  /* Standee smaller */
  .standee-wrapper {
    width: 160px !important;
    margin-bottom: -40px !important;
  }

  .standee-qr-box img,
  .standee-qr-box svg {
    width: 90px !important;
    height: 90px !important;
  }

  /* Phone mockup smaller on phone */
  .smartphone-wrapper {
    width: 240px !important;
    height: 420px !important;
    margin-left: 0 !important;
  }

  /* All 2-column grids in components collapse */
  .problem-grid,
  .split-calc-grid,
  .founder-card,
  .live-preview-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .hero-visual-wrapper {
    min-height: 320px !important;
  }

  .standee-wrapper {
    display: none !important;
  }

  .smartphone-wrapper {
    width: 220px !important;
    height: 390px !important;
  }
}

