/* ---------------------------------------------------
   TapNation — design tokens
--------------------------------------------------- */
:root{
  --ink: #12181A;
  --ink-soft: #1D2626;
  --paper: #F1F4F1;
  --paper-alt: #E7ECE6;
  --brass: #C7973F;
  --brass-light: #E7C577;
  --signal: #2FBF8F;
  --slate: #4A5A57;
  --slate-light: #6E7C79;
  --line: #DDE3DA;
  --line-dark: #2B3A3A;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --wrap: 1120px;
}

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

html{ scroll-behavior: smooth; }

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

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em 0;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em 0; color: var(--slate); max-width: 62ch; }

a{ color: inherit; }

ul{ padding: 0; margin: 0; list-style: none; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow-line{
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass);
  margin: 0 0 0.9em 0;
  font-weight: 600;
}

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--brass);
  color: #201705;
}
.btn-primary:hover{ background: var(--brass-light); }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line-dark);
}
.section-ink .btn-ghost{ color: var(--paper); border-color: rgba(241,244,241,0.35); }
.btn-ghost:hover{ border-color: var(--brass); color: var(--brass); }

.btn-small{ padding: 0.6em 1.2em; font-size: 0.9rem; }
.btn-block{ width: 100%; }

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241,244,241,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark{ color: var(--brass); display: inline-flex; }

.main-nav{
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a{
  text-decoration: none;
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover{ color: var(--ink); }

.header-cta{ white-space: nowrap; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero{ padding: 76px 0 60px; }

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1{
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  max-width: 15ch;
}

.hero-sub{ font-size: 1.08rem; max-width: 48ch; }

.hero-actions{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 32px;
}

.hero-proof{
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-proof p{ margin: 0; font-size: 0.92rem; max-width: 34ch; }
.stars{ color: var(--brass); letter-spacing: 2px; font-size: 1rem; }

/* Hero visual: tap scene */
.hero-visual{ display: flex; justify-content: center; }
.tap-scene{
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tap-scene .phone{
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 18px 30px rgba(18,24,26,0.25));
}
.tap-scene .card{
  position: absolute;
  right: -10px;
  bottom: 6px;
  z-index: 3;
  transform: rotate(9deg);
  filter: drop-shadow(0 14px 22px rgba(199,151,63,0.35));
  animation: card-settle 900ms cubic-bezier(.2,.8,.3,1) both;
}
@keyframes card-settle{
  0%{ transform: rotate(24deg) translate(40px, -30px) scale(0.92); opacity: 0; }
  100%{ transform: rotate(9deg) translate(0,0) scale(1); opacity: 1; }
}

.ripples{
  position: absolute;
  right: 46px;
  bottom: 74px;
  z-index: 1;
  width: 0; height: 0;
}
.ripple{
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  margin-left: -15px; margin-top: -15px;
  border-radius: 50%;
  border: 2px solid var(--signal);
  opacity: 0;
  animation: ripple-out 1800ms ease-out 1;
}
.ripple.r1{ animation-delay: 500ms; }
.ripple.r2{ animation-delay: 750ms; }
.ripple.r3{ animation-delay: 1000ms; }
@keyframes ripple-out{
  0%{ transform: scale(0.4); opacity: 0.65; }
  100%{ transform: scale(3.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .tap-scene .card{ animation: none; }
  .ripple{ animation: none; opacity: 0; }
}

/* ---------------------------------------------------
   Trust strip
--------------------------------------------------- */
.trust-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.trust-inner{ padding: 20px 28px; text-align: center; }
.trust-inner p{
  margin: 0 auto;
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 60ch;
}

/* ---------------------------------------------------
   Generic section
--------------------------------------------------- */
.section{ padding: 96px 0; }
.section-ink{
  background: var(--ink);
  color: var(--paper);
}
.section-ink p{ color: #B9C4C1; }
.section-ink h2, .section-ink h3{ color: var(--paper); }
.section-ink .eyebrow-line{ color: var(--brass-light); }

.section-title{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 20ch;
  margin-bottom: 48px;
}

/* Steps */
.steps{
  display: grid;
  gap: 36px;
}
.step{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.step:last-child{ border-bottom: none; padding-bottom: 0; }
.step-index{
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brass);
}
.step h3{ font-size: 1.2rem; margin-bottom: 0.4em; }
.step p{ max-width: 60ch; margin: 0; }

/* ---------------------------------------------------
   Product section
--------------------------------------------------- */
.product-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.feature-list li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.98rem;
}
.section-ink .feature-list li,
.membership-card .feature-list li{ color: var(--paper); }
.feature-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
}

.pricing-card{
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(241,244,241,0.12);
}
.pricing-label{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.price{ display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.price-amount{
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
}
.pricing-card .price-amount{ color: var(--ink); }
.price-unit{ color: var(--slate); font-size: 1rem; }
.pricing-note{ font-size: 0.88rem; margin-bottom: 24px; }
.pricing-included{ margin-top: 22px; }
.pricing-included li{
  font-size: 0.9rem;
  color: var(--slate);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.pricing-included li:first-child{ border-top: none; padding-top: 22px; }

/* ---------------------------------------------------
   Reseller section
--------------------------------------------------- */
.reseller-grid{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.reseller-visual{ display: flex; justify-content: center; }

.membership-card{
  margin-top: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.membership-head{ margin-bottom: 20px; }
.membership-card .pricing-label{ color: var(--paper); }
.membership-card .price-amount{ color: var(--brass-light); }
.membership-card .price-unit{ color: #9FADAA; }
.membership-card .btn-block{ margin-top: 8px; }

/* ---------------------------------------------------
   FAQ
--------------------------------------------------- */
.faq-list{ border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-question{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 20px;
}
.faq-icon{
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after{
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.faq-icon::before{ left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after{ left: 8px; top: 0; width: 2px; height: 18px; }
.faq-question[aria-expanded="true"] .faq-icon::after{ transform: rotate(90deg); opacity: 0; }

.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p{ padding: 0 4px 22px; margin: 0; max-width: 68ch; }

/* ---------------------------------------------------
   Final CTA
--------------------------------------------------- */
.final-cta{ text-align: center; }
.final-cta-inner h2{
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  max-width: 18ch;
  margin: 0 auto 0.5em;
}
.final-cta-inner p{ margin: 0 auto 28px; }
.final-cta .hero-actions{ justify-content: center; }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer{
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  padding: 52px 0 32px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
.footer-logo{ font-size: 1.15rem; }
.footer-tag{ font-size: 0.9rem; margin-top: 10px; max-width: 30ch; }
.footer-links{ display: flex; flex-direction: column; gap: 10px; }
.footer-links a{ text-decoration: none; color: var(--slate); font-size: 0.92rem; }
.footer-links a:hover{ color: var(--ink); }
.footer-contact p{ font-size: 0.9rem; margin: 0 0 8px; }
.footer-copy{ color: var(--slate-light); font-size: 0.82rem; }

/* ---------------------------------------------------
   Noise overlay (subtle texture, very low opacity)
--------------------------------------------------- */
.noise-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 900px){
  .hero-grid, .product-grid, .reseller-grid, .footer-inner{
    grid-template-columns: 1fr;
  }
  .reseller-visual{ order: 2; max-width: 260px; margin: 0 auto; }
  .reseller-copy{ order: 1; }
  .main-nav{ display: none; }
  .header-cta{ display: none; }
  .nav-toggle{ display: flex; }

  .main-nav.open{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 28px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
}

@media (max-width: 640px){
  .section{ padding: 64px 0; }
  .hero{ padding: 48px 0 40px; }
  .tap-scene{ width: 260px; height: 260px; }
  .pricing-card, .membership-card{ padding: 26px; }
}
