/* ==========================================================================
   SimplyLoyal — Brand Variables
   Edit colors, fonts, and spacing here — the rest of the site reads from these.
   ========================================================================== */
:root {
  /* Brand colors */
  --color-green: #0F3D2E;
  --color-green-dark: #0A2E22;
  --color-green-darker: #071F17;
  --color-green-tint: #E7EFEA;
  --color-coral: #FF6A4D;
  --color-coral-dark: #E85436;
  --color-coral-tint: #FFE7E0;
  --color-cream: #FBF6EE;
  --color-cream-deep: #F4EDE0;
  --color-white: #FFFFFF;
  --color-ink: #14231D;
  --color-ink-soft: #4E5D56;
  --color-border: #E4DFD3;

  /* On dark surfaces */
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, 0.72);
  --on-dark-faint: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', var(--font-body);

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 999px;
  --max-width: 1200px;
  --shadow-sm: 0 2px 10px rgba(15, 61, 46, 0.07);
  --shadow-md: 0 10px 30px rgba(15, 61, 46, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 61, 46, 0.18);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: 88px 0;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-coral-dark);
  background: rgba(255, 106, 77, 0.10);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-green);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--color-ink-soft);
  font-size: 1.08rem;
  margin-top: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-green);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--color-coral);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--color-coral-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: transparent;
  border-color: rgba(15, 61, 46, 0.25);
  color: var(--color-green);
}
.btn-secondary:hover {
  border-color: var(--color-green);
  background: var(--color-green-tint);
}
.btn-on-dark {
  background: transparent;
  border-color: var(--on-dark-faint);
  color: var(--color-white);
}
.btn-on-dark:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
}
.btn-light {
  background: var(--color-white);
  color: var(--color-green);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-green);
}
.brand img { height: 32px; width: 32px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a { position: relative; padding-block: 4px; }
.nav-links a:hover { color: var(--color-coral-dark); }

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--color-border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu .btn { margin-top: 12px; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 28px 0 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -12%, rgba(255,106,77,0.30), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(155deg, var(--color-green), var(--color-green-darker) 120%);
  border-radius: var(--radius-xl);
  padding: 56px 28px 64px;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content .eyebrow {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  color: var(--color-white);
  letter-spacing: -0.025em;
}
.hero-content p {
  font-size: 1.12rem;
  color: var(--on-dark-soft);
  margin-top: 20px;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  margin-inline: auto;
}
.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.hero-card-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.hero-card-badge {
  background: var(--color-coral);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.hero-card-qr {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.hero-card-qr svg { width: 100%; height: auto; max-width: 160px; }
.hero-card-points {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}
.hero-card-progress {
  margin-top: 10px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.16);
  overflow: hidden;
}
.hero-card-progress span {
  display: block;
  height: 100%;
  width: 70%;
  background: var(--color-coral);
  border-radius: var(--radius-full);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 36px;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--color-coral); flex-shrink: 0; }

@media (min-width: 900px) {
  .hero-panel { padding: 76px 64px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-content p { margin-inline: 0; }
}

/* ==========================================================================
   Stat Strip
   ========================================================================== */
.stat-strip {
  padding: 64px 0 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-green);
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item:not(:last-child) {
    border-right: 1px solid var(--color-border);
  }
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.steps {
  display: grid;
  gap: 24px;
}
.step {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.step--1 { background: linear-gradient(155deg, var(--color-green), var(--color-green-darker)); }
.step--2 { background: linear-gradient(155deg, #17493A, var(--color-green-dark)); }
.step--3 { background: linear-gradient(155deg, var(--color-green-dark), var(--color-green-darker)); }

.step-ghost-number {
  position: absolute;
  top: -18px;
  right: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 6.5rem;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-coral);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
}
.step-icon {
  display: none;
}
.step h3 { color: var(--color-white); margin-bottom: 10px; font-size: 1.25rem; position: relative; }
.step p { color: var(--on-dark-soft); font-size: 0.98rem; position: relative; max-width: 34ch; }

@media (min-width: 780px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Feature Grid (What the Business Gets)
   ========================================================================== */
.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, var(--color-green-tint), #DCEAE1);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.03rem; margin-bottom: 5px; }
.feature-card p { color: var(--color-ink-soft); font-size: 0.92rem; }

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Live Demo
   ========================================================================== */
.demo-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 10% -20%, rgba(255,106,77,0.20), transparent 55%),
    linear-gradient(155deg, var(--color-green), var(--color-green-darker));
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 64px 28px;
  max-width: calc(var(--max-width) - 40px);
  margin-inline: auto;
}
.demo-section .section-header h2,
.demo-section .section-header p { color: var(--color-white); }
.demo-section .section-header p { color: rgba(255,255,255,0.78); }

.demo-player {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.demo-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0A2E22, #123F2F);
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-play-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--color-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.demo-play-btn:hover { transform: scale(1.06); }
.demo-play-btn svg { width: 28px; height: 28px; color: var(--color-white); margin-left: 3px; }
.demo-caption {
  text-align: center;
  margin-top: 22px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Who It's For
   ========================================================================== */
.audience-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
.audience-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.audience-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 30%, rgba(0,0,0,0.35));
}
.audience-tile svg {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  position: relative;
  color: rgba(255,255,255,0.9);
}
.audience-tile h3 {
  color: var(--color-white);
  font-size: 1rem;
  position: relative;
}
.audience-tile--1 { background: linear-gradient(155deg, #17493A, var(--color-green-darker)); }
.audience-tile--2 { background: linear-gradient(155deg, var(--color-coral), var(--color-coral-dark)); }
.audience-tile--3 { background: linear-gradient(155deg, var(--color-green), var(--color-green-dark)); }
.audience-tile--4 { background: linear-gradient(155deg, #1F5A46, var(--color-green)); }
.audience-tile--5 { background: linear-gradient(155deg, var(--color-coral-dark), #B8391F); }
.audience-tile--6 { background: linear-gradient(155deg, var(--color-green-dark), var(--color-green-darker)); }

@media (min-width: 700px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .audience-grid { grid-template-columns: repeat(6, 1fr); }
  .audience-tile { aspect-ratio: 3 / 4; }
}

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefits-list {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.benefit-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.benefit-item svg {
  width: 26px;
  height: 26px;
  color: var(--color-coral-dark);
  flex-shrink: 0;
}
.benefit-item h3 { font-size: 1rem; margin-bottom: 3px; }
.benefit-item p { color: var(--color-ink-soft); font-size: 0.9rem; }

@media (min-width: 700px) {
  .benefits-list { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-card {
  position: relative;
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
  background: linear-gradient(165deg, var(--color-green), var(--color-green-darker));
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}
.pricing-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}
.pricing-card h3 { color: var(--color-white); }
.pricing-amount {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-white);
  font-size: clamp(2.6rem, 6vw, 3.2rem);
  margin: 12px 0 4px;
}
.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-dark-soft);
}
.pricing-note {
  color: var(--on-dark-soft);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.pricing-includes {
  text-align: left;
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
}
.pricing-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
}
.pricing-includes svg {
  width: 20px; height: 20px;
  color: var(--color-coral);
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-fineprint {
  margin-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.pricing-card .btn-light:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-green);
  cursor: pointer;
}
.faq-question svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-coral);
}
.faq-item[open] .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--color-ink-soft);
  font-size: 0.96rem;
}
.faq-question::-webkit-details-marker { display: none; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  padding: 40px 0 96px;
}
.final-cta .container {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(255,106,77,0.25), transparent 60%),
    linear-gradient(155deg, var(--color-green), var(--color-green-darker));
  border-radius: var(--radius-xl);
  color: var(--color-white);
  text-align: center;
  padding: 88px 32px;
  box-shadow: var(--shadow-lg);
}
.final-cta h2 { color: var(--color-white); font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.final-cta p { color: rgba(255,255,255,0.78); margin-top: 16px; max-width: 480px; margin-inline: auto; }
.final-cta .btn { margin-top: 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-green-darker);
  color: rgba(255,255,255,0.72);
  padding: 44px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.footer-links a:hover { color: var(--color-white); }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 12px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

@media (min-width: 700px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   Simple pages (privacy / terms)
   ========================================================================== */
.legal-page {
  padding: 64px 0 96px;
  max-width: 760px;
}
.legal-page h1 { margin-bottom: 20px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 36px; margin-bottom: 10px; }
.legal-page p, .legal-page li { color: var(--color-ink-soft); }
.legal-page ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal-page .back-link { display: inline-block; margin-bottom: 24px; color: var(--color-coral-dark); font-weight: 600; }
