/* ============================================
   zipKnowd Design System
   Brand colors from the iOS app Theme.swift
   ============================================ */

:root {
  --turquoise: #00D4C0;
  --turquoise-dark: #00bfa5;
  --turquoise-soft: #D0F5F0;
  --blue: #4F8EF7;
  --blue-soft: #DBEAFE;
  --purple: #8B5CF6;
  --purple-soft: #EDE9FE;
  --coral: #FF8C5A;
  --coral-soft: #FFF0E6;
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-tertiary: #9A9A9A;
  --divider: #EAE4DA;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-elevated: 0 8px 30px rgba(0,0,0,0.08);
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--turquoise-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--divider);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo-link:hover { text-decoration: none; }

.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--turquoise), var(--blue), var(--purple));
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(0,0,0,0.04);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--turquoise), var(--blue));
  color: white !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,212,192,0.35);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,212,192,0.45);
  text-decoration: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-bg-blob.one {
  width: 500px; height: 500px;
  background: var(--turquoise);
  top: -120px; right: -80px;
}
.hero-bg-blob.two {
  width: 400px; height: 400px;
  background: var(--purple);
  bottom: -80px; left: -100px;
}
.hero-bg-blob.three {
  width: 300px; height: 300px;
  background: var(--coral);
  top: 40%; left: 45%;
  opacity: 0.2;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--turquoise), var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--turquoise), var(--blue));
  color: white;
  box-shadow: 0 6px 20px rgba(0,212,192,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,212,192,0.45);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--divider);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover {
  border-color: var(--turquoise);
  color: var(--turquoise-dark);
}

.btn-coral {
  background: var(--coral);
  color: white;
  box-shadow: 0 6px 20px rgba(255,140,90,0.35);
}
.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,140,90,0.45);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--surface);
  border-radius: 40px;
  box-shadow: var(--shadow-elevated), 0 20px 60px rgba(0,0,0,0.12);
  border: 8px solid var(--text);
  overflow: hidden;
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.4s;
}
.phone-mockup:hover { transform: rotate(0deg) scale(1.02); }

.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-post {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid var(--divider);
  animation: floatIn 0.6s ease-out both;
}
.mock-post:nth-child(2) { animation-delay: 0.15s; }
.mock-post:nth-child(3) { animation-delay: 0.3s; }

.mock-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.mock-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--purple));
}
.mock-name { font-size: 12px; font-weight: 700; }
.mock-handle { font-size: 11px; color: var(--text-tertiary); }
.mock-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.mock-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  margin-top: 6px;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 90px 0;
}
.section-alt {
  background: var(--surface);
}
.section-gradient {
  background: linear-gradient(180deg, var(--bg) 0%, var(--turquoise-soft) 40%, var(--bg) 100%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--divider);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================
   HOW IT WORKS / STEPS
   ============================================ */
.steps {
  display: flex;
  gap: 24px;
  counter-reset: step;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
}
.step::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--divider);
}
.step:last-child::after { display: none; }

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--blue));
  color: white;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
  margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(0,212,192,0.35);
}
.step h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 6px;
}
.step p {
  font-size: 15px; color: var(--text-secondary);
}

/* ============================================
   CATEGORY SHOWCASE
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.category-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: default;
}
.category-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.category-chip .emoji { font-size: 20px; }

/* ============================================
   MAP PREVIEW SECTION
   ============================================ */
.map-preview {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-elevated);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--divider);
}
.map-visual {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #e0f7f4, #dbeafe, #ede9fe);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.map-pin {
  position: absolute;
  width: 36px; height: 36px;
  background: var(--coral);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  animation: pinDrop 0.8s ease-out both;
}
.map-pin::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
  top: 10px; left: 10px;
}
@keyframes pinDrop {
  from { opacity: 0; transform: rotate(-45deg) translateY(-20px) scale(0.5); }
  to   { opacity: 1; transform: rotate(-45deg) translateY(0) scale(1); }
}

/* ============================================
   BUSINESS CTA BANNER
   ============================================ */
.banner-cta {
  background: linear-gradient(135deg, var(--turquoise), var(--blue), var(--purple));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.banner-cta h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}
.banner-cta p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 24px;
  position: relative;
}
.banner-cta .btn-secondary {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: white;
  position: relative;
}
.banner-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 50px 0 30px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--text-tertiary);
}
.footer-col ul {
  list-style: none;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a {
  font-size: 15px;
  color: var(--text-secondary);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--divider);
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--turquoise-soft);
  border-color: var(--turquoise);
  color: var(--turquoise-dark);
  text-decoration: none;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }
.story-block h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
}
.story-block p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.story-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--turquoise-soft), var(--blue-soft), var(--purple-soft));
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  font-size: 80px;
  box-shadow: var(--shadow-soft);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.2s;
}
.value-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.value-card .emoji { font-size: 36px; margin-bottom: 12px; display: block; }
.value-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.value-card p { font-size: 14px; color: var(--text-secondary); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-item .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--turquoise-soft);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 15px; font-weight: 700; }
.contact-item span { font-size: 14px; color: var(--text-secondary); }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--divider);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--divider);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  background: var(--surface);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================
   BUSINESS PAGE
   ============================================ */
.business-hero {
  text-align: center;
  padding: 80px 0 50px;
}
.business-hero h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  margin-bottom: 12px;
}
.business-hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.tier-card {
  background: var(--surface);
  border: 2px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.tier-card:hover,
.tier-card.selected {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 4px var(--turquoise-soft);
}
.tier-card .best-badge {
  position: absolute;
  top: -10px; right: 14px;
  background: var(--coral);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.tier-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.tier-card .tier-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; }
.tier-card .tier-price {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--turquoise), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.business-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--divider);
}
.business-card h2 {
  font-size: 20px;
  margin-bottom: 14px;
}
.business-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 18px;
}

.input {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--divider);
  border-radius: var(--radius-md);
  font-size: 16px;
  margin-bottom: 12px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--turquoise);
  background: var(--surface);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { padding: 50px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero p { margin-left: auto; margin-right: auto; font-size: 17px; }
  .hero-badges { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 32px; }
  .phone-mockup { width: 240px; height: 480px; transform: rotate(0deg); margin: 0 auto; }
  .map-preview { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step::after { display: none; }
  .story-block { grid-template-columns: 1fr; }
  .story-block.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(250,246,240,0.97);
    backdrop-filter: blur(14px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--divider);
    gap: 4px;
  }
  .nav-links.open a { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .section { padding: 60px 0; }
}
