/* ============================================================
   GoGuru — homepage styles (index.html only)
   Legal pages keep using style.css; nothing here touches them.
   Mobile-first: base rules are for phones, media queries scale up.
   ============================================================ */

:root {
  --green:      #4ECBA0;
  --green-dark: #3bb189;
  --bg:         #F2EEFF;
  --white:      #FFFFFF;
  --text:       #1E1B3A;
  --muted:      #6F6C8F;  /* a touch darker than the app's #8B89A8 for readable body text on the web */
  --purple:     #7B6EEA;
  --coral:      #FF6B6B;
  --amber:      #FFD166;
  --wa:         #25D366;
  --border:     #E0DEFC;
  --mint-bg:    #D4F5EC;
  --shadow:     0 14px 34px rgba(123, 110, 234, 0.10);
  --radius:     20px;
  --ease:       180ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Lora', Georgia, serif; font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
section { padding: 56px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 16px/1.2 'DM Sans', sans-serif;
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 48px;
  text-align: center;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 9px 16px; min-height: 40px; font-size: 15px; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(78, 203, 160, 0.28); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: var(--white); color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.wordmark { font-family: 'Lora', serif; font-weight: 700; font-size: 23px; color: var(--green); letter-spacing: -0.4px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link { font-weight: 500; font-size: 15px; display: none; }
.nav-link:hover { color: var(--purple); }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; text-align: center; }
.pill {
  display: inline-block;
  background: var(--mint-bg); color: #24876a;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; letter-spacing: -0.6px; margin-bottom: 14px; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 470px; margin: 0 auto 24px; }

/* Store buttons */
.stores { display: flex; gap: 10px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: #fff;
  border-radius: 14px;
  flex: 1 1 0; max-width: 200px; min-width: 0;
  padding: 8px 12px; min-height: 54px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.store:hover { box-shadow: 0 10px 24px rgba(30, 27, 58, 0.25); }
.store:active { transform: scale(0.98); }
.store-ic { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; font-weight: 700; font-size: 16px; line-height: 1.1; white-space: nowrap; }
.store small { font-weight: 400; font-size: 10.5px; letter-spacing: 0.2px; opacity: 0.85; }
.store-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Phone mockup (pure CSS, decorative) */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 210px; height: 380px;
  background: var(--text);
  border-radius: 36px; padding: 10px;
  box-shadow: 0 30px 60px rgba(30, 27, 58, 0.25);
  animation: float 4s ease-in-out infinite;
}
.screen {
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--green) 0%, var(--purple) 100%);
  padding: 40px 14px 14px;
  text-align: left;
  position: relative;
}
.app-title { color: #fff; font-family: 'Lora', serif; font-weight: 700; font-size: 17px; }
.app-sub { color: rgba(255,255,255,0.88); font-size: 11.5px; margin-bottom: 14px; }
.mini {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.96);
  border-radius: 12px; padding: 10px 11px; margin-bottom: 9px;
  box-shadow: 0 6px 14px rgba(30,27,58,0.12);
}
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; flex: none; }
.av-purple { background: var(--purple); }
.av-green  { background: var(--green); }
.av-coral  { background: var(--coral); }
.lines { flex: 1; }
.lines i { display: block; height: 7px; border-radius: 4px; background: var(--text); opacity: 0.85; width: 72%; margin-bottom: 6px; }
.lines i + i { background: #8B89A8; opacity: 1; width: 46%; margin: 0; }
.tag { font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.tag-paid { background: var(--mint-bg); color: #24876a; }
.tag-due  { background: #FFE6E6; color: #d94848; }
.wa-chip {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--wa); color: #fff;
  font-weight: 700; font-size: 13px;
  border-radius: 999px; padding: 10px;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}
.wa-chip svg { width: 16px; height: 16px; }

/* ---------- Section heads ---------- */
.head { text-align: center; max-width: 600px; margin: 0 auto 30px; }
.head h2 { font-size: 30px; margin-bottom: 8px; }
.head p { color: var(--muted); font-size: 16px; }

/* ---------- Features ---------- */
.features { background: var(--white); }
.cards { display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card .ic { grid-row: span 2; }
.card h3 { font-size: 18px; margin: 2px 0 4px; }
.card p { color: var(--muted); font-size: 15px; }
.ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.ic svg { width: 24px; height: 24px; }
.ic-purple { background: #E6E2FF; color: var(--purple); }
.ic-green  { background: var(--mint-bg); color: #24876a; }
.ic-wa     { background: #DCF8E6; color: #1DA851; }
.ic-amber  { background: #FFF1CC; color: #B98A10; }
.ic-coral  { background: #FFE6E6; color: #E05555; }

/* ---------- Directory ---------- */
.dir-card {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.dir-card img { flex: none; border-radius: 22px; }
.dir-copy h2 { font-size: 26px; margin-bottom: 8px; }
.dir-copy p { color: var(--muted); font-size: 15.5px; }
.dir-proof { margin-top: 10px; }
.dir-proof strong { color: var(--text); }
.dir-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.dir-btns .btn { width: 100%; padding-left: 14px; padding-right: 14px; }

/* ---------- Download ---------- */
.download {
  position: relative;
  background: linear-gradient(120deg, var(--green) 0%, var(--purple) 100%);
  color: #fff; text-align: center;
}
.anchor { position: absolute; top: -70px; }
.download h2 { font-size: 30px; margin-bottom: 8px; }
.download p { color: rgba(255,255,255,0.9); margin-bottom: 22px; }
.store-light { background: #fff; color: var(--text); }
.store-light .store-ic { color: var(--text); }

/* ---------- Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 36px 0 26px; text-align: center; }
.footer-grid { display: grid; gap: 18px; justify-items: center; }
.footer .wordmark { font-size: 20px; }
.footer-tag { color: var(--muted); font-size: 14px; margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--muted); font-size: 15px; }
.footer-links a { padding: 6px 0; }
.footer-links a:hover { color: var(--green-dark); }
.footer-copy { color: var(--muted); font-size: 13px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------- Motion ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* No fade-in on the hero: on a slow phone the headline and store buttons
   must be visible on first paint, never waiting on an animation. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Larger screens
   ============================================================ */
@media (max-width: 359px) {
  .store { gap: 7px; padding: 8px 9px; }
  .store span { font-size: 14.5px; }
}

@media (min-width: 400px) {
  .nav-link { display: inline; }
}

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .hero h1 { font-size: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dir-btns { flex-direction: row; justify-content: center; }
  .dir-btns .btn { width: auto; padding-left: 24px; padding-right: 24px; }
  .store { flex: none; width: 190px; max-width: none; padding: 9px 16px 9px 14px; }
  .store-ic { width: 26px; height: 26px; }
  .store span { font-size: 18px; }
  .store small { font-size: 11px; }
}

@media (min-width: 960px) {
  section { padding: 84px 0; }
  .nav-inner { height: 68px; }
  .wordmark { font-size: 26px; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; text-align: left; }
  .hero h1 { font-size: 60px; }
  .hero-sub { font-size: 19px; margin-left: 0; }
  .hero .stores { justify-content: flex-start; }
  .phone { width: 270px; height: 530px; border-radius: 42px; padding: 12px; }
  .screen { border-radius: 32px; padding: 52px 18px 18px; }
  .app-title { font-size: 19px; }
  .mini { padding: 12px 13px; margin-bottom: 11px; }
  .head { margin-bottom: 44px; }
  .head h2, .download h2 { font-size: 40px; }
  .cards { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .card { grid-column: span 2; display: block; padding: 26px; background: var(--bg); }
  .card:nth-child(4) { grid-column: 2 / span 2; }
  .card h3 { margin: 16px 0 6px; font-size: 20px; }
  .dir-card { flex-direction: row; text-align: left; padding: 34px 38px; gap: 28px; }
  .dir-copy { flex: 1; }
  .dir-btns { flex-direction: column; width: auto; }
  .footer { text-align: left; }
  .footer-grid { grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .footer-copy { text-align: center; }
}
