/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  /* SpisePay Brand Palette */
  --cream:       #FAF6F0;
  --cream-dk:    #F2EBE0;
  --warm-white:  #FFFDF9;
  --orange:      #E8702A;
  --orange-lt:   #F0894A;
  --orange-dk:   #C4581A;
  --green:       #5A8A5A;
  --green-lt:    #7AAD7A;
  --green-dk:    #3D6B3D;
  --brown:       #3C2E24;
  --brown-lt:    #6B5347;
  --txt:         #2A1F18;
  --txt2:        #6B5347;
  --txt3:        #9C8778;
  --border:      rgba(60,46,36,.12);
  --shadow-sm:   0 2px 8px rgba(60,46,36,.10);
  --shadow-md:   0 8px 32px rgba(60,46,36,.14);
  --shadow-lg:   0 24px 64px rgba(60,46,36,.16);

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 40px;

  /* Nav height */
  --nav-h: 72px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--warm-white);
  color: var(--txt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, button { outline: none; }

/* ═══════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-header p {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--txt2);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  transition: all .22s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 12px 24px;
  box-shadow: 0 4px 16px rgba(232,112,42,.30);
}
.btn-primary:hover {
  background: var(--orange-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,112,42,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--brown);
  border: 1.5px solid var(--border);
  padding: 12px 24px;
}
.btn-ghost:hover {
  background: var(--cream);
  border-color: var(--brown-lt);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  padding: 12px 28px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  transition: all .22s var(--ease);
  display: inline-flex;
}
.btn-outline:hover {
  background: var(--orange);
  color: #fff;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: var(--nav-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
#nav.scrolled {
  background: rgba(250,246,240,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt2);
  border-radius: var(--r-sm);
  transition: all .18s var(--ease);
}
.nav-links a:hover { color: var(--txt); background: var(--cream); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  transition: all .22s var(--ease);
}
.hamburger:hover { border-color: var(--orange); }
.hamburger .bar {
  width: 20px; height: 2px;
  background: var(--brown);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform .28s var(--ease), opacity .2s;
  transform-origin: center;
}
.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(80vw, 300px);
  height: 100%;
  background: var(--warm-white);
  z-index: 9100;
  padding: 96px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: right .32s var(--ease);
  box-shadow: -8px 0 40px rgba(60,46,36,.12);
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 8px; }
.mob-link {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--txt2);
  border-radius: var(--r-sm);
  transition: all .18s;
}
.mob-link:hover { color: var(--brown); background: var(--cream); }
.mob-cta { margin-top: auto; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 9050;
  background: rgba(60,46,36,.35);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: all .3s var(--ease);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  background: var(--cream);
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-banner-wrap {
  width: 100%;
  line-height: 0; /* remove inline-block gap */
}
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 90vh;
  object-fit: cover;
  object-position: center center;
}
.hero-cta-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 32px clamp(20px, 5vw, 64px) 48px;
  flex-wrap: wrap;
}
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: 60px; }

/* ═══════════════════════════════════════════════════
   WHAT HELPS SECTION
═══════════════════════════════════════════════════ */
.what-helps {
  background: #fff;
  padding: 100px 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}
.card {
  background: var(--cream);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dk);
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--brown);
  padding: 20px 20px 10px;
  line-height: 1.3;
}
.card p {
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.65;
  padding: 0 20px 24px;
}

/* ═══════════════════════════════════════════════════
   FEATURES DEEP DIVE
═══════════════════════════════════════════════════ */
.features-deep {
  background: var(--cream);
  padding: 100px 0;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-img img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  max-height: 420px;
}
.feature-tag {
  display: inline-block;
  background: rgba(232,112,42,.12);
  color: var(--orange-dk);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.feature-text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 16px;
  line-height: 1.2;
}
.feature-text p {
  font-size: 16px;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--txt2);
  font-weight: 500;
}
.feature-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   SECURITY
═══════════════════════════════════════════════════ */
.security-section {
  background: #fff;
  padding: 100px 0;
}
.security-card {
  background: var(--cream);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.security-left {
  padding: clamp(32px, 5vw, 64px);
  border-right: 1px solid var(--border);
}
.security-icon {
  width: 56px; height: 56px;
  margin-bottom: 24px;
}
.security-icon svg { width: 100%; height: 100%; }
.security-left h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 14px;
  line-height: 1.2;
}
.security-left > p {
  font-size: 15px;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 36px;
}
.security-pillars { display: flex; flex-direction: column; gap: 22px; }
.pillar { display: flex; align-items: flex-start; gap: 14px; }
.pillar-icon {
  font-size: 20px;
  width: 40px; height: 40px;
  background: var(--cream-dk);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pillar strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 4px;
}
.pillar p {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.55;
  margin: 0;
}
.security-right {
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.never-box {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--border);
  flex: 1;
}
.never-box h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 20px;
}
.never-box ul { display: flex; flex-direction: column; gap: 12px; }
.never-box li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--txt2);
  font-weight: 500;
}
.check {
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.never-footer {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.open-banking-note {
  background: rgba(90,138,90,.10);
  border: 1px solid rgba(90,138,90,.25);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--green-dk);
  line-height: 1.6;
}
.open-banking-note strong { color: var(--green-dk); }

/* ═══════════════════════════════════════════════════
   WAITLIST
═══════════════════════════════════════════════════ */
.waitlist-section {
  background: var(--cream);
  padding: 100px 0;
}
.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.waitlist-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 16px;
  margin-top: 12px;
  line-height: 1.2;
}
.waitlist-text > p {
  font-size: 16px;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 32px;
}
.waitlist-perks { display: flex; flex-direction: column; gap: 14px; }
.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--txt2);
  font-weight: 500;
}
.perk span {
  width: 36px; height: 36px;
  background: rgba(232,112,42,.12);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.waitlist-form-wrap {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.waitlist-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
  margin-top: 10px;
}
.waitlist-form input {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--txt);
  transition: border-color .18s;
  margin-bottom: 6px;
}
.waitlist-form input:focus {
  border-color: var(--orange);
  background: var(--warm-white);
}
.waitlist-form input::placeholder { color: var(--txt3); }
.waitlist-form .btn-primary { margin-top: 8px; }
.form-note {
  font-size: 12px;
  color: var(--txt3);
  text-align: center;
  line-height: 1.5;
  margin-top: 8px;
}
.form-note a { color: var(--orange); text-decoration: underline; }
.form-success {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 64px; height: 64px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--brown);
  margin-bottom: 10px;
}
.form-success p { color: var(--txt2); font-size: 15px; }

/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */
.about-section {
  background: #fff;
  padding: 100px 0;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .feature-tag { margin-bottom: 16px; }
.about-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 20px;
  margin-top: 12px;
  line-height: 1.2;
}
.about-text p {
  font-size: 16px;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-text .btn-outline { margin-top: 12px; }
.about-visual img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--brown);
  color: rgba(250,246,240,.85);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,246,240,.12);
  margin-bottom: 32px;
}
.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) sepia(1) saturate(0) brightness(2);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(250,246,240,.7);
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 280px;
}
.footer-company {
  font-size: 12px !important;
  color: rgba(250,246,240,.45) !important;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(250,246,240,.5);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 14px;
  color: rgba(250,246,240,.75);
  transition: color .18s;
}
.footer-col a:hover { color: var(--orange-lt); }
.footer-bottom {
  font-size: 12px;
  color: rgba(250,246,240,.4);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-bottom strong { color: rgba(250,246,240,.55); }

/* ═══════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   LEGAL PAGE
═══════════════════════════════════════════════════ */
.legal-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.legal-hero {
  background: var(--cream);
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 12px;
}
.legal-hero p {
  color: var(--txt2);
  font-size: 15px;
}
.legal-tabs {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  overflow-x: auto;
}
.legal-tabs-inner {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.tab-btn {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--txt2);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .18s;
  white-space: nowrap;
  font-family: inherit;
}
.tab-btn:hover { color: var(--brown); }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.legal-content {
  background: #fff;
  padding: 60px 0 100px;
}
.legal-panel { display: none; }
.legal-panel.active { display: block; }
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
}
.legal-doc h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 8px;
}
.legal-doc .doc-meta {
  font-size: 13px;
  color: var(--txt3);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-doc h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
  margin-top: 36px;
  margin-bottom: 10px;
}
.legal-doc p {
  font-size: 15px;
  color: var(--txt2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-doc ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}
.legal-doc ul li {
  font-size: 15px;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal-doc a { color: var(--orange); text-decoration: underline; }
.doc-info-box {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.7;
}
.doc-info-box strong { color: var(--brown); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-banner-img {
    max-height: 60vh;
    object-position: 65% center;
  }
  .hero-cta-bar {
    padding: 24px 20px 40px;
    gap: 12px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature-row--reverse { direction: ltr; }

  .security-card { grid-template-columns: 1fr; }
  .security-left { border-right: none; border-bottom: 1px solid var(--border); }

  .waitlist-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .legal-tabs-inner { gap: 0; }
  .tab-btn { padding: 14px 14px; font-size: 13px; }
  .hero-heading { font-size: 36px; }
  .section-header h2 { font-size: 26px; }
}
