/* ============================================================
   Hasp — Landing page
   Themed to match the app/dashboard. Tokens from variable.css
   (var(--v-*)); link that before this file.
   Classes are prefixed .lp- to stay isolated.
   ============================================================ */

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

:root {
  --lp-max: 1140px;
  --lp-grad: linear-gradient(135deg, #7C3AED 0%, #C084FC 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--v-bg);
  color: var(--v-text-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.lp-wrap { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding: 0 24px; }

/* ── Shared type ── */
.lp-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--v-accent);
}
.lp-h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; }
.lp-lead { color: var(--v-text-2); font-size: clamp(15px, 1.6vw, 18px); max-width: 560px; }
.lp-section { padding: 96px 0; }
.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.lp-section-head .lp-h2 { margin: 12px 0 14px; }
.lp-section-head .lp-lead { margin: 0 auto; }

/* ── Buttons ── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}
.lp-btn-primary { background: var(--v-accent); color: var(--v-on-accent); }
.lp-btn-primary:hover { transform: translateY(-2px); }
.lp-btn-ghost { background: transparent; color: var(--v-text-1); border-color: var(--v-border-md); }
.lp-btn-ghost:hover { background: rgba(var(--v-fg), 0.05); }

/* ── Store badges ── */
.lp-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px 10px 16px; border-radius: 13px;
  background: var(--v-container); border: 1px solid var(--v-border-md);
  transition: transform 120ms ease, border-color 120ms ease;
}
.lp-badge:hover { transform: translateY(-2px); border-color: var(--v-accent); }
.lp-badge svg { width: 24px; height: 24px; flex-shrink: 0; fill: var(--v-text-1); }
.lp-badge > span { display: flex; flex-direction: column; align-items: flex-start; }
.lp-badge-top { font-size: 10px; letter-spacing: 0.5px; color: var(--v-text-3); text-transform: uppercase; line-height: 1.2; }
.lp-badge-name { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.15; }

/* ══════════════ NAV ══════════════ */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--v-bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--v-border);
}
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.lp-brand {
  display: flex;
  align-items: baseline;
  gap: var(--v-brand-gap);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  letter-spacing: var(--v-brand-track);
}
.lp-brand img { height: var(--v-brand-mark); width: auto; display: block; }
.lp-nav-links { display: flex; align-items: center; gap: 30px; }
.lp-nav-links a { font-size: 14px; font-weight: 600; color: var(--v-text-2); transition: color 120ms ease; }
.lp-nav-links a:hover { color: var(--v-text-1); }
.lp-nav-cta { display: flex; align-items: center; gap: 14px; }
.lp-menu-toggle, .lp-hamburger { display: none; }

/* Dark/light theme toggle (landing page only) */
.lp-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--v-border-md); border-radius: 50%;
  background: transparent; color: var(--v-text-1); cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.lp-theme-toggle:hover { background: rgba(var(--v-fg), 0.06); border-color: var(--v-accent); }
.lp-theme-ico { width: 19px; height: 19px; display: block; }
/* Show the icon for the theme you'd switch TO: moon while light, sun while dark. */
.lp-ico-sun { display: none; }
.lp-ico-moon { display: block; }
:root[data-theme="dark"] .lp-ico-sun { display: block; }
:root[data-theme="dark"] .lp-ico-moon { display: none; }

/* ══════════════ HERO ══════════════ */
.lp-hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.lp-hero::before {
  content: ''; position: absolute; top: -280px; left: 50%; transform: translateX(-30%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.22), transparent 60%);
}
.lp-hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.lp-hero h1 {
  font-size: clamp(38px, 6vw, 68px); font-weight: 900; letter-spacing: -2.4px;
  line-height: 0.98; margin: 18px 0 20px;
}
.lp-hero h1 .lp-accent { color: var(--v-accent); }
.lp-hero .lp-lead { margin-bottom: 30px; }
.lp-hero-actions { display: flex; flex-direction: column; gap: 16px; }
.lp-hero-note { font-size: 13px; color: var(--v-text-3); display: flex; align-items: center; gap: 7px; }
.lp-hero-note::before { content: '●'; color: var(--v-success); font-size: 8px; }

/* Swipe-card deck (signature) */
.lp-deck { position: relative; height: 460px; display: flex; align-items: center; justify-content: center; }
.lp-card {
  position: absolute; width: 280px; height: 380px; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--v-border-md);
  box-shadow: 0 18px 40px rgba(76, 40, 130, 0.16);
}
.lp-card-3 { transform: rotate(-9deg) translateY(14px) scale(0.92); opacity: 0.5; }
.lp-card-2 { transform: rotate(6deg) translateY(6px) scale(0.96); opacity: 0.7; }
.lp-card-1 { animation: lp-float 6s ease-in-out infinite; }
.lp-card-photo { position: absolute; inset: 0; }
.lp-card-1 .lp-card-photo { background: url('/assets/image/hero_profile.png') center 22% / cover no-repeat, linear-gradient(160deg, #7C3AED, #241a3b); }
.lp-card-2 .lp-card-photo { background: linear-gradient(160deg, #b06ab3, #2a2036); }
.lp-card-3 .lp-card-photo { background: linear-gradient(160deg, #4f46e5, #1c1a34); }
.lp-card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78) 16%, rgba(0,0,0,0.3) 44%, transparent 64%); }
.lp-card-info { position: absolute; left: 18px; right: 18px; bottom: 84px; }
.lp-card-name { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; color: #fff; display: flex; align-items: center; gap: 7px; }
.lp-card-verify { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--v-accent); color: var(--v-on-accent); font-size: 10px; font-weight: 900; }
.lp-card-meta { font-size: 13px; color: rgba(255, 255, 255, 0.8); margin-top: 3px; }
.lp-card-actions { position: absolute; bottom: 20px; left: 18px; right: 18px; display: flex; justify-content: center; gap: 16px; }
.lp-card-btn { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; background: rgba(20, 18, 26, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(4px); }
.lp-card-btn.like { color: var(--v-accent); }
.lp-card-btn.nope { color: rgba(255, 255, 255, 0.9); }
.lp-match-pill {
  position: absolute; top: 40px; right: -8px; z-index: 5;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: var(--lp-grad); color: #fff; box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
  animation: lp-pop 6s ease-in-out infinite;
}

@keyframes lp-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes lp-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ══════════════ STATS ══════════════ */
.lp-stats { border-top: 1px solid var(--v-border); border-bottom: 1px solid var(--v-border); }
.lp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--v-border); }
.lp-stat:last-child { border-right: none; }
.lp-stat-num { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -1px; }
/* Word-based proof points (used pre-launch, in place of figures) need a looser
   fit than the numerals this slot was scaled for. */
.lp-stat-num.is-word { font-size: clamp(22px, 2.3vw, 29px); letter-spacing: -0.6px; }
.lp-stat-num .lp-accent { color: var(--v-accent); }
.lp-stat-lbl { font-size: 13px; color: var(--v-text-3); margin-top: 4px; }

/* ══════════════ FEATURES ══════════════ */
.lp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feature {
  background: var(--v-container); border: 1px solid var(--v-border); border-radius: 18px;
  padding: 26px 24px; transition: transform 140ms ease, border-color 140ms ease;
}
.lp-feature:hover { transform: translateY(-4px); border-color: var(--v-border-md); }
.lp-feature-ico {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; background: rgba(var(--v-accent-rgb), 0.14);
}
.lp-feature h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 7px; }
.lp-feature p { font-size: 14px; color: var(--v-text-2); }

/* ══════════════ HOW IT WORKS ══════════════ */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-step { position: relative; padding-top: 8px; }
.lp-step-n {
  font-size: 15px; font-weight: 800; color: var(--v-accent);
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--v-border-md); margin-bottom: 18px;
}
.lp-step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.lp-step p { font-size: 14px; color: var(--v-text-2); max-width: 300px; }

/* ══════════════ PRICING ══════════════ */
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.lp-plan {
  background: var(--v-container); border: 1px solid var(--v-border); border-radius: 20px;
  padding: 30px 26px; position: relative;
}
.lp-plan.featured { border-color: var(--v-accent); box-shadow: 0 0 0 1px var(--v-accent), 0 24px 60px rgba(124, 58, 237, 0.18); }
.lp-plan-tag {
  position: absolute; top: -12px; left: 26px; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  background: var(--lp-grad); color: #fff;
}
.lp-plan-name { font-size: 15px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--v-text-2); }
.lp-plan-price { margin: 14px 0 4px; font-size: 42px; font-weight: 900; letter-spacing: -1.5px; }
.lp-plan-price span { font-size: 15px; font-weight: 600; color: var(--v-text-3); letter-spacing: 0; }
.lp-plan-desc { font-size: 13px; color: var(--v-text-3); min-height: 34px; }
.lp-plan-list { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.lp-plan-list li { font-size: 14px; color: var(--v-text-1); display: flex; align-items: flex-start; gap: 10px; }
.lp-plan-list li::before {
  content: '✓'; flex-shrink: 0; margin-top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900;
  background: rgba(var(--v-accent-rgb), 0.16); color: var(--v-accent);
}
.lp-plan .lp-btn { width: 100%; }

/* Add-ons */
.lp-addons { margin-top: 22px; background: var(--v-container); border: 1px solid var(--v-border); border-radius: 18px; padding: 26px; }
.lp-addons-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lp-addons-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.lp-addons-head p { font-size: 13px; color: var(--v-text-3); }
.lp-addons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-addon { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--v-border); border-radius: 14px; }
.lp-addon-ico { font-size: 24px; width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--v-raised); flex-shrink: 0; }
.lp-addon h4 { font-size: 15px; font-weight: 700; }
.lp-addon p { font-size: 13px; color: var(--v-text-3); margin-top: 2px; }

/* ══════════════ DOWNLOAD CTA ══════════════ */
.lp-cta { text-align: center; }
.lp-cta-box {
  position: relative; overflow: hidden;
  background: var(--v-container); border: 1px solid var(--v-border-md); border-radius: 28px;
  padding: 64px 32px;
}
.lp-cta-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% -20%, rgba(192, 132, 252, 0.22), transparent 55%);
}
.lp-cta-box > * { position: relative; }
.lp-cta-box .lp-h2 { margin-bottom: 14px; }
.lp-cta-box .lp-lead { margin: 0 auto 30px; }
.lp-cta-box .lp-badges { justify-content: center; }

/* ══════════════ FAQ ══════════════ */
.lp-faq { max-width: 760px; margin: 0 auto; }
.lp-faq details { border-bottom: 1px solid var(--v-border); }
.lp-faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 17px; font-weight: 600; letter-spacing: -0.2px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--v-accent); transition: transform 160ms ease;
}
.lp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq p { color: var(--v-text-2); font-size: 15px; padding: 0 40px 22px 0; }

/* ══════════════ FOOTER ══════════════ */
.lp-footer { border-top: 1px solid var(--v-border); padding: 60px 0 34px; }
.lp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.lp-footer-brand { max-width: 300px; }
.lp-footer-brand .lp-brand { margin-bottom: 14px; }
.lp-footer-brand p { font-size: 14px; color: var(--v-text-3); }
.lp-footer-col h4 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--v-text-3); margin-bottom: 16px; }
.lp-footer-col a { display: block; font-size: 14px; color: var(--v-text-2); margin-bottom: 11px; transition: color 120ms ease; }
.lp-footer-col a:hover { color: var(--v-text-1); }
.lp-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--v-border);
  font-size: 13px; color: var(--v-text-3);
}
.lp-footer-social { display: flex; gap: 10px; }
.lp-footer-social a {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--v-border); color: var(--v-text-2); transition: border-color 120ms ease, color 120ms ease;
}
.lp-footer-social a:hover { border-color: var(--v-accent); color: var(--v-text-1); }
.lp-footer-social svg { width: 17px; height: 17px; fill: currentColor; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .lp-deck { height: 400px; order: -1; }
  .lp-features-grid, .lp-steps, .lp-plans { grid-template-columns: 1fr; }
  .lp-stats-grid { grid-template-columns: 1fr 1fr; }
  .lp-stat:nth-child(2) { border-right: none; }
  .lp-stat:nth-child(1), .lp-stat:nth-child(2) { border-bottom: 1px solid var(--v-border); }
  .lp-addons-grid { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .lp-footer-brand { grid-column: 1 / -1; }

  /* Mobile menu (CSS-only) */
  .lp-nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--v-bg); border-bottom: 1px solid var(--v-border);
    max-height: 0; overflow: hidden; transition: max-height 240ms ease;
  }
  .lp-nav-links a { width: 100%; padding: 15px 24px; border-top: 1px solid var(--v-border); }
  .lp-menu-toggle:checked ~ .lp-nav-links { max-height: 320px; }
  .lp-hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
  .lp-hamburger span { width: 22px; height: 2px; background: var(--v-text-1); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }
  .lp-menu-toggle:checked ~ .lp-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .lp-menu-toggle:checked ~ .lp-hamburger span:nth-child(2) { opacity: 0; }
  .lp-menu-toggle:checked ~ .lp-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .lp-nav-cta { margin-left: auto; }
  .lp-hamburger { order: 5; margin-left: 10px; }
  .lp-nav-cta .lp-btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .lp-section { padding: 66px 0; }
  .lp-stats-grid { grid-template-columns: 1fr 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-cta-box { padding: 48px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-card-1, .lp-match-pill { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
