/* ============================================================
   Alika marketing site — shared styles
   Brand palette matches src/theme/colors.ts in the Alika app.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --purple: #7100A5;
  --purple-dark: #4E0073;
  --purple-tint: #F3E5FB;
  --gold: #FFBC00;
  --gold-tint: #FFF6DC;

  --white: #FFFFFF;
  --bg: #FAFAFA;

  --text-primary: #1A1A1A;
  --text-secondary: #6B6B70;
  --text-muted: #B0AEB5;

  --green: #1F9D55;
  --green-tint: #E8F8EE;
  --red: #E0364A;
  --red-tint: #FDEAEC;

  --border: #ECECEE;

  --radius-card: 16px;
  --radius-btn: 12px;
  --shadow-card: 0 2px 10px rgba(26, 26, 26, 0.05);
  --shadow-pop: 0 12px 32px rgba(113, 0, 165, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
}
p { line-height: 1.6; margin: 0 0 16px; color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: var(--shadow-pop); }
.btn-primary:hover { background: #5c0086; }
.btn-gold { background: var(--gold); color: var(--purple-dark); }
.btn-gold:hover { background: #e6a900; }
.btn-outline { background: transparent; color: var(--purple); border: 1.5px solid var(--purple); }
.btn-outline:hover { background: var(--purple-tint); }
.btn-ghost { background: transparent; color: var(--text-primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 19px; color: var(--text-primary); }
.brand svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: 14.5px; color: var(--text-secondary); padding: 8px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--purple); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 5px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 24px 26px; gap: 6px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
  .nav-cta .btn { padding: 10px 16px; font-size: 13.5px; }
  .nav-cta .btn span.full { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  padding: 76px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255, 188, 0, 0.14);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); color: #fff; }
.hero .eyebrow { background: rgba(255,255,255,0.14); color: #fff; }
.hero p.lead { color: #E4C9F2; font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- event type strip ---------- */
.type-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.type-chip {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px; font-weight: 700; font-size: 14px; color: var(--text-primary);
}
.type-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--purple-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; margin-bottom: 0; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 0; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; margin-bottom: 0; }

/* ---------- stat cards ---------- */
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; flex: 1; min-width: 130px;
}
.stat-value { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 26px; }
.stat-label { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }

/* ---------- pricing ---------- */
.plan-card { position: relative; }
.plan-card.premium { border: 1.5px solid var(--gold); }
.badge-recommended {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-tint); color: var(--gold);
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 5px 10px; border-radius: 8px; margin-bottom: 10px;
}
.plan-price { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; color: var(--gold); margin: 14px 0 4px; }
.plan-price.free { color: var(--purple); }
.plan-list { list-style: none; padding: 0; margin: 16px 0 22px; }
.plan-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 420px; }
@media (max-width: 500px) { .pay-grid { grid-template-columns: repeat(2, 1fr); } }
.pay-tile {
  aspect-ratio: 1.6; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px; color: var(--text-secondary); text-align: center; padding: 6px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  border-radius: 24px; color: #fff; padding: 52px 40px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #E4C9F2; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; background: #fff; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* ---------- forms (dashboard login etc.) ---------- */
.form-field { margin-bottom: 16px; text-align: left; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.form-field input {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  font-family: 'Manrope', sans-serif; font-size: 14.5px; background: #fff; color: var(--text-primary);
}
.form-field input:focus { outline: none; border-color: var(--purple); }
.form-error {
  background: var(--red-tint); color: var(--red); font-size: 13.5px; font-weight: 600;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; display: none;
}
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-accepted { background: var(--green-tint); color: var(--green); }
.badge-declined { background: var(--red-tint); color: var(--red); }
.badge-pending { background: #F0F0F2; color: var(--text-secondary); }

/* ---------- utility ---------- */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.gap-20 { gap: 20px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0 72px; }
  .cta-band { padding: 40px 24px; }
}

/* ---------- icons (brand-colored line icons, replacing emoji) ---------- */
.icon {
  width: 22px;
  height: 22px;
  stroke: var(--purple);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.icon-gold { stroke: var(--gold); }
.icon-white { stroke: #fff; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- scroll reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* gentle stagger for items inside a grid/row, purely by position */
.grid > [data-reveal]:nth-child(3n+1) { --reveal-delay: 0s; }
.grid > [data-reveal]:nth-child(3n+2) { --reveal-delay: .1s; }
.grid > [data-reveal]:nth-child(3n)   { --reveal-delay: .2s; }
.steps > [data-reveal]:nth-child(1) { --reveal-delay: 0s; }
.steps > [data-reveal]:nth-child(2) { --reveal-delay: .1s; }
.steps > [data-reveal]:nth-child(3) { --reveal-delay: .2s; }
.steps > [data-reveal]:nth-child(4) { --reveal-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
