/* ==========================================================================
   LocalAds — company website styles
   Brand: #109F21 (green) · Font: Inter · Modern, clean, rounded
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand:        #109F21;
  --brand-dark:   #0C7D19;
  --brand-darker: #0A5F14;
  --brand-light:  #E9F7EB;
  --brand-tint:   #F4FBF5;

  --ink:      #16201A;
  --body:     #43514A;
  --muted:    #6B7A72;
  --line:     #E5EAE6;

  --bg:       #FFFFFF;
  --bg-soft:  #F6FAF7;

  --white:    #FFFFFF;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(16, 40, 24, 0.06);
  --shadow:    0 12px 34px rgba(16, 60, 30, 0.10);
  --shadow-lg: 0 26px 60px rgba(16, 60, 30, 0.16);

  --maxw: 1160px;
  --gap:  clamp(1rem, 2vw, 1.75rem);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--brand-tint); }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
  margin-top: 1rem;
}
.center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(16, 159, 33, 0.28);
}
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16, 159, 33, 0.34); }
.btn--ghost {
  background: var(--white);
  color: var(--brand-dark);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-tint); }
.btn--light {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.08rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--ink); font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand span b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a.link {
  color: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a.link:hover { color: var(--brand-dark); background: var(--brand-tint); }
.nav-links a.link.active { color: var(--brand-dark); background: var(--brand-light); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 22px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top:  7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(16,159,33,0.10), transparent 60%),
    radial-gradient(50% 50% at 5% 90%, rgba(16,159,33,0.08), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 900; letter-spacing: -0.03em; }
.hero h1 .hl { color: var(--brand); }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--muted); margin-top: 1.25rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.hero-note svg { color: var(--brand); flex-shrink: 0; }

/* trust row */
.trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin-top: 2.6rem; }
.trust div { display: flex; flex-direction: column; }
.trust b { font-size: 1.5rem; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.trust small { color: var(--muted); font-size: 0.85rem; }

/* ---------- Phone mockup (CSS drawn) ---------- */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::after {
  content: '';
  position: absolute;
  width: 78%; height: 78%;
  background: radial-gradient(circle, rgba(16,159,33,0.16), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 82vw;
  aspect-ratio: 300 / 610;
  background: #0d1512;
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg-soft);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #0d1512;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.app-top {
  background: var(--brand);
  color: #fff;
  padding: 34px 18px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-top .app-logo { font-weight: 800; font-size: 1.05rem; font-style: italic; }
.app-top .app-search {
  margin-top: 0; margin-left: auto;
  background: rgba(255,255,255,0.22);
  width: 34px; height: 34px; border-radius: 50%;
}
.app-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.app-pills { display: flex; gap: 8px; }
.app-pill { flex: 1; height: 58px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 0.62rem; color: var(--body); font-weight: 700; }
.app-pill .dot { width: 22px; height: 22px; border-radius: 8px; background: var(--brand-light); }
.app-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.app-card .thumb { height: 82px; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); position: relative; }
.app-card .thumb::after { content: 'FREE VOUCHER'; position: absolute; left: 10px; bottom: 10px; font-size: 0.6rem; font-weight: 800; color: #fff; background: rgba(0,0,0,0.22); padding: 2px 8px; border-radius: 20px; }
.app-card .meta { padding: 10px 12px; }
.app-card .meta .l1 { height: 9px; width: 70%; background: #E7EDE9; border-radius: 5px; }
.app-card .meta .l2 { height: 9px; width: 45%; background: #EEF3F0; border-radius: 5px; margin-top: 7px; }
.app-card .meta .price { color: var(--brand-dark); font-weight: 800; font-size: 0.8rem; margin-top: 8px; }
.app-tabbar { margin-top: auto; height: 52px; background: var(--white); border-top: 1px solid var(--line); display: flex; }
.app-tabbar i { flex: 1; display: block; }
.app-tabbar i::before { content: ''; display: block; width: 20px; height: 20px; margin: 16px auto 0; border-radius: 6px; background: #DCE5DF; }
.app-tabbar i.on::before { background: var(--brand); }

/* ---------- Generic grid + cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D7E5DB; }
.card .ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand-light);
  color: var(--brand-dark);
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.card p { font-size: 0.98rem; color: var(--muted); }

/* pillar cards (colored top) */
.pillar { text-align: left; }
.pillar .tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-dark); }

/* ---------- Split feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3rem, 6vw, 5.5rem); }
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  min-height: 300px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  border: 1px solid var(--line);
}
.feature-media.g1 { background: linear-gradient(140deg, #EAF8EC, #D4F0D8); }
.feature-media.g2 { background: linear-gradient(140deg, #FFF6E6, #FFE9C7); }
.feature-media.g3 { background: linear-gradient(140deg, #E9F1FF, #D3E4FF); }
.feature-media.g4 { background: linear-gradient(140deg, #F3EAFF, #E4D3FF); }
.feature-media.g5 { background: linear-gradient(140deg, #FFEAF0, #FFD3E0); }
.feature-media.g6 { background: linear-gradient(140deg, #EAF8EC, #C9EED0); }
.feature-media .glyph { font-size: clamp(3.5rem, 10vw, 6rem); line-height: 1; }
.feature-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.8rem; }
.feature-text p { color: var(--muted); margin-bottom: 1rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.6rem; color: var(--body); }
.check-list li svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.6rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(16,159,33,0.28);
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 6vw, 4.5rem);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(45% 60% at 0% 100%, rgba(255,255,255,0.14), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 1rem auto 2rem; font-size: 1.08rem; }
.store-badges { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* app store pill badge (drawn) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #0d1512;
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.25); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge .txt small { font-size: 0.62rem; opacity: 0.8; }
.store-badge .txt b { font-size: 1.02rem; font-weight: 700; }
.cta-band .store-badge { background: #fff; color: #0d1512; }

/* ---------- Merchant band (inverse) ---------- */
.merchant { background: var(--ink); color: #C9D6CD; }
.merchant h2 { color: #fff; }
.merchant .section-lead { color: #9FB0A6; }
.merchant .card { background: #1E2A23; border-color: #2A3830; }
.merchant .card h3 { color: #fff; }
.merchant .card p { color: #9FB0A6; }
.merchant .card .ic { background: rgba(16,159,33,0.18); color: #57D267; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: 0.9rem; margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(16,159,33,0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-info .info-item { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-info .info-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .info-item h4 { color: var(--ink); font-size: 1rem; margin-bottom: 0.15rem; }
.contact-info .info-item p, .contact-info .info-item a { color: var(--muted); font-size: 0.97rem; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.9rem;
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--brand); font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 0.8rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--brand-tint); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.page-hero p { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 620px; margin-top: 1rem; }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.stat-strip .stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--brand); font-weight: 900; letter-spacing: -0.02em; }
.stat-strip .stat span { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* ---------- Values ---------- */
.value h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; margin-bottom: 0.5rem; }
.value h3 .b { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9B8AF; padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: #8FA096; font-size: 0.95rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 0.02em; }
.footer-col a { display: block; color: #A9B8AF; padding: 0.35rem 0; font-size: 0.95rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--brand); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: #26332C; display: grid; place-items: center; color: #C9D6CD; transition: background 0.2s ease, color 0.2s ease; }
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid #2A3830; margin-top: 2.5rem; padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.88rem; color: #8FA096; }
.footer-bottom a { color: #8FA096; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 22px 1.4rem;
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform 0.28s ease;
    max-height: calc(100vh - 72px);
    overflow: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.link { padding: 0.85rem 1rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .trust { gap: 1.2rem 1.8rem; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
