/* =========================================================================
   Sphot — Landing page · "From Maps to Website" Figma build
   White canvas, Roboto type, colourful Google-style wordmark, a single
   paste-to-build field beside a hero illustration, a handwritten business
   strip, a "Made with Sphot" gallery, pricing, a closing CTA and a wide
   city illustration. Scoped under .marketing.
   Loaded AFTER style.css to override the base marketing styles.
   ========================================================================= */

.marketing {
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;

  --ink:    #202124;   /* near-black */
  --ink-2:  #3c4043;
  --muted:  #5f6368;
  --faint:  #80868b;
  --bg:     #ffffff;
  --line:   #dadce0;
  --line-2: #e8eaed;
  --well:   #f8f9fa;

  --g-red:    #ea4335;
  --g-orange: #f9920a;
  --g-yellow: #fbbc04;
  --g-green:  #34a853;
  --g-blue:   #1a73e8;

  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-family: var(--font);
}
body.marketing { background: var(--bg); }
body.marketing::before { display: none; }
::selection { background: rgba(26,115,232,.16); }

.marketing .container { max-width: 1340px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.marketing h1, .marketing h2 { font-family: var(--font); color: var(--ink); }

/* ===================== Reusable image placeholder ===================== *
   Shows a clean dashed labelled box until the real asset is dropped at the
   referenced path; once the image loads it simply renders the image.       */
.marketing .illus { display: block; line-height: 0; }
.marketing .illus img { display: block; width: 100%; height: auto; }
.marketing .illus.empty {
  line-height: normal;
  border: 1px dashed var(--line);
  border-radius: 3px;
  background: var(--well);
  display: grid; place-items: center;
  min-height: var(--ph-h, 220px);
}
.marketing .illus.empty::after {
  content: attr(data-label);
  color: var(--faint); font-size: .9rem; letter-spacing: .01em;
}

/* ===================== NAV ============================================= */
.marketing nav.top {
  display: block;
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.marketing nav.top .nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.marketing nav.top.scrolled { border-bottom-color: var(--line-2); box-shadow: 0 1px 0 rgba(60,64,67,.05); }

/* colourful Sphot wordmark with a location-pin "o" */
.marketing nav.top .logo { display: inline-flex; align-items: center; }
.marketing nav.top .logo img { height: 30px; width: auto; }
.marketing nav.top .logo .wm {
  font-family: var(--font); font-weight: 700; font-size: 1.7rem;
  letter-spacing: -.02em; line-height: 1; display: inline-flex; align-items: center;
}
.marketing .logo .wm .c1 { color: var(--g-red); }
.marketing .logo .wm .c2 { color: var(--g-orange); }
.marketing .logo .wm .c3 { color: var(--g-green); }
.marketing .logo .wm .c5 { color: var(--g-blue); }
.marketing .logo .wm .pin {
  width: .66em; height: .66em; border-radius: 50%; background: var(--g-green);
  display: inline-block; position: relative; margin: 0 .02em; vertical-align: -.02em;
}
.marketing .logo .wm .pin::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: .3em; height: .3em; border-radius: 50%; background: #fff;
}

.marketing nav.top .nav-links { display: flex; align-items: center; gap: 10px; }
.marketing nav.top .btn {
  font-family: var(--font); font-weight: 500; font-size: .95rem;
  padding: 9px 20px; border-radius: 3px; line-height: 1;
  transition: background .16s ease, box-shadow .16s ease, color .16s ease;
}
.marketing nav.top .btn.login { background: var(--well); color: var(--ink); border: 1px solid var(--line-2); }
.marketing nav.top .btn.login:hover { background: #eef0f1; opacity: 1; transform: none; }
.marketing nav.top .btn.primary { background: #111; color: #fff; border: 1px solid #111; }
.marketing nav.top .btn.primary:hover { background: #000; opacity: 1; transform: none; }

/* ===================== HERO =========================================== */
.marketing .lp-hero { padding: clamp(40px, 7vw, 92px) 0 clamp(40px, 6vw, 80px); }
.marketing .lp-hero .container { position: relative; }
.marketing .lp-hero .hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }

.marketing .lp-hero h1 {
  font-weight: 700; line-height: 1.16; letter-spacing: -.015em;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin: 0 auto 22px; color: var(--ink); max-width: none;
}
.marketing .lp-hero .lead {
  color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.06rem);
  line-height: 1.55; max-width: 56ch; margin: 0 auto clamp(28px, 4vw, 40px);
}

/* hero illustration sits to the right of the form on wide screens */
.marketing .illus-hero { --ph-h: 200px; max-width: 420px; margin: 0 auto; }
@media (min-width: 980px) {
  .marketing .illus-hero {
    position: absolute; right: clamp(0px, 2vw, 24px); bottom: -230px;
    width: clamp(320px, 34vw, 440px); margin: 0; z-index: 0; pointer-events: none;
  }
  .marketing .lp-hero .hero-copy { position: relative; z-index: 1; }
}

/* paste-to-build field (shared by hero + CTA) */
.marketing .capture {
  display: flex; align-items: center; gap: 10px;
  max-width: 660px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 1px 3px rgba(60,64,67,.08);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.marketing .capture:focus-within { border-color: var(--g-blue); box-shadow: 0 1px 6px rgba(26,115,232,.22); }
.marketing .capture input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 1.02rem; color: var(--ink); padding: 14px 0;
  box-shadow: none !important;
}
.marketing .capture input::placeholder { color: var(--faint); }
.marketing .capture .btn.build {
  flex: none; background: #111; color: #fff; border: 1px solid #111;
  font-family: var(--font); font-weight: 500; font-size: 1rem;
  padding: 14px 26px; border-radius: 3px; cursor: pointer;
  transition: background .16s ease;
}
.marketing .capture .btn.build:hover { background: #000; opacity: 1; transform: none; }
@media (max-width: 540px) {
  .marketing .capture { flex-wrap: wrap; border-radius: 3px; padding: 12px; }
  .marketing .capture input { flex-basis: 100%; padding: 8px 12px; }
  .marketing .capture .btn.build { width: 100%; }
}

/* small social-proof + speed line under the hero field */
.marketing .hero-proof {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 7px 13px; margin: 18px auto 0; max-width: 100%;
  font-size: .8rem; line-height: 1.2; color: var(--muted);
}
.marketing .hero-proof b { color: var(--ink); font-weight: 700; }
.marketing .hero-proof .hp-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--g-green);
  box-shadow: 0 0 0 0 rgba(52,168,83,.55); animation: hpPulse 2s infinite;
}
.marketing .hero-proof .hp-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
@keyframes hpPulse { 70% { box-shadow: 0 0 0 7px rgba(52,168,83,0); } 100% { box-shadow: 0 0 0 0 rgba(52,168,83,0); } }
@media (prefers-reduced-motion: reduce) { .marketing .hero-proof .hp-dot { animation: none; } }

/* ===================== Section rhythm ================================= */
.marketing .section { padding: clamp(36px, 5vw, 60px) 0; }
.marketing .lp-built { padding-top: clamp(120px, 14vw, 200px); }

.marketing .lp-built h2,
.marketing .lp-made h2 {
  font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  letter-spacing: -.01em; margin: 0 0 clamp(22px, 3vw, 34px); color: var(--ink);
}

/* ===================== Built for every local business ================ *
   Horizontal auto-scrolling marquee — two identical tracks translate left
   by exactly one track-width for a seamless infinite loop.                  */
.marketing .biz-marquee {
  display: flex; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(80px, 12vw, 180px), #000 calc(100% - clamp(80px, 12vw, 180px)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 clamp(80px, 12vw, 180px), #000 calc(100% - clamp(80px, 12vw, 180px)), transparent 100%);
}
.marketing .biz-track {
  display: flex; flex: none; align-items: baseline;
  gap: clamp(28px, 5vw, 64px); padding-right: clamp(28px, 5vw, 64px);
  animation: bizScroll 26s linear infinite;
}
.marketing .biz-marquee:hover .biz-track { animation-play-state: paused; }
.marketing .biz-track .biz {
  font-family: var(--hand); font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--ink);
  letter-spacing: .01em; white-space: nowrap;
}
@keyframes bizScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marketing .biz-track { animation: none; } }

/* ===================== People-at-a-table illustration ================ */
.marketing .lp-table { text-align: center; padding-top: clamp(20px, 3vw, 36px); }
.marketing .illus-table { --ph-h: 240px; max-width: 860px; margin: 0 auto; }

/* ===================== Made with Sphot =============================== */
.marketing .made-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px);
}
.marketing .made-card {
  display: block; overflow: hidden; border-radius: 3px;
  background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 1px 3px rgba(60,64,67,.08);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.marketing .made-card:hover {
  box-shadow: 0 18px 40px -18px rgba(60,64,67,.45);
  transform: translateY(-3px); border-color: var(--line);
}
.marketing .made-card .illus { --ph-h: 260px; }
.marketing .made-card .illus.empty { border: none; border-radius: 0; }
.marketing .made-card .illus img { aspect-ratio: 16 / 11; object-fit: cover; }
@media (max-width: 640px) { .marketing .made-grid { grid-template-columns: 1fr; } }

/* ===================== Pricing ======================================= */
.marketing .lp-pricing .container { display: block; }
.marketing .pricing-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.marketing .pricing-head .pricing-sub { margin-left: auto; margin-right: auto; max-width: 52ch; }
.marketing .plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px); max-width: 880px; margin: 0 auto; align-items: stretch;
}
.marketing .plan-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 3px;
  padding: clamp(24px, 3vw, 34px);
}
.marketing .plan-card.featured { border: 2px solid var(--ink); box-shadow: 0 24px 50px -34px rgba(20,20,18,.5); }
.marketing .plan-badge {
  position: absolute; top: -12px; left: clamp(24px, 3vw, 34px);
  background: var(--g-green); color: #fff; font-weight: 700; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.marketing .plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.marketing .plan-top h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.marketing .plan-price { display: flex; align-items: baseline; gap: 4px; }
.marketing .plan-price .amount { font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.marketing .plan-price .per { color: var(--muted); font-size: .92rem; font-weight: 500; }
.marketing .plan-tag { color: var(--muted); font-size: .94rem; margin: 0 0 18px; }
.marketing .plan-card .pricing-feats { margin-bottom: 24px; }
.marketing .plan-card .btn.buy {
  display: inline-flex; align-items: center; justify-content: center; margin-top: auto;
  background: #111; color: #fff; border: 1px solid #111;
  font-family: var(--font); font-weight: 700; font-size: .98rem;
  padding: 13px 30px; border-radius: 3px; transition: background .16s ease, transform .16s ease;
}
.marketing .plan-card .btn.buy:hover { background: #000; opacity: 1; transform: translateY(-1px); }
.marketing .plan-card .btn.buy.ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.marketing .plan-card .btn.buy.ghost:hover { background: var(--bg-2); }
.marketing .plan-card .pricing-note { display: block; text-align: center; margin-top: 12px; font-size: .8rem; color: var(--faint); }
@media (max-width: 720px) { .marketing .plans { grid-template-columns: 1fr; max-width: 440px; } }

.marketing .btn.is-loading { opacity: .6; pointer-events: none; }

.marketing .pricing-eyebrow {
  display: inline-block; font-weight: 700; font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--g-green); margin-bottom: 12px;
}
.marketing .pricing-copy h2 {
  font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -.02em; margin: 0 0 12px; color: var(--ink);
}
.marketing .pricing-sub {
  color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.04rem);
  line-height: 1.55; max-width: 44ch; margin: 0 0 22px;
}
.marketing .pricing-copy .price { display: flex; align-items: baseline; gap: 5px; margin: 0 0 22px; }
.marketing .pricing-copy .price .amount { font-size: clamp(2.8rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.marketing .pricing-copy .price .per { color: var(--muted); font-size: 1.05rem; font-weight: 500; }

.marketing .pricing-feats { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.marketing .pricing-feats li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: clamp(.9rem, 1.25vw, .98rem); line-height: 1.45; color: var(--ink-2);
}
.marketing .pricing-feats li b { color: var(--ink); font-weight: 700; }
.marketing .pricing-feats li svg {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  fill: none; stroke: var(--g-green); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  background: var(--hl-green, #e9f7e4); border-radius: 50%; padding: 3px;
}

.marketing .pricing-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.marketing .pricing-copy .btn.buy {
  display: inline-flex; align-items: center; justify-content: center;
  background: #111; color: #fff; border: 1px solid #111;
  font-family: var(--font); font-weight: 700; font-size: .98rem;
  padding: 13px 30px; border-radius: 3px; transition: background .16s ease, transform .16s ease;
}
.marketing .pricing-copy .btn.buy:hover { background: #000; opacity: 1; transform: translateY(-1px); }
.marketing .pricing-note { font-size: .8rem; color: var(--faint); }

.marketing .illus-pricing { --ph-h: 220px; }
@media (max-width: 760px) {
  .marketing .lp-pricing .container { grid-template-columns: 1fr; gap: 32px; }
}

/* ===================== Closing CTA =================================== */
.marketing .lp-cta {
  text-align: center;
  padding: clamp(56px, 8vw, 104px) 0;
}
.marketing .lp-cta .cta-eyebrow {
  display: inline-block; font-weight: 700; font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--g-green); margin-bottom: 14px;
}
.marketing .lp-cta h2 {
  font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -.015em; margin: 0 auto 18px; max-width: 18ch; color: var(--ink);
}
.marketing .lp-cta .lead {
  color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.06rem);
  line-height: 1.55; max-width: 56ch; margin: 0 auto clamp(26px, 4vw, 38px);
}
.marketing .lp-cta .cta-note {
  margin: 16px auto 0; font-size: .82rem; color: var(--faint);
}

/* ===================== Bottom city illustration ===================== */
.marketing .lp-city { text-align: center; padding-top: clamp(20px, 3vw, 40px); }
.marketing .illus-city { --ph-h: 300px; max-width: 760px; margin: 0 auto; }

/* ===================== Footer ========================================= */
.marketing footer.lp-footer {
  border-top: 1px solid var(--line-2); margin-top: clamp(40px, 6vw, 80px);
  padding: 28px 0;
}
.marketing footer.lp-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.marketing footer.lp-footer .copy { color: var(--muted); font-size: .9rem; margin: 0; }
.marketing footer.lp-footer .flinks { display: flex; gap: clamp(20px, 4vw, 40px); }
.marketing footer.lp-footer .flinks a { color: var(--muted); font-size: .9rem; }
.marketing footer.lp-footer .flinks a:hover { color: var(--ink); }

/* ===================== Reveal-on-load ================================= */
.marketing .reveal { opacity: 0; transform: translateY(14px); animation: lpReveal .55s cubic-bezier(.2,.7,.3,1) forwards; }
.marketing .reveal.d1 { animation-delay: .07s; }
.marketing .reveal.d2 { animation-delay: .14s; }
@keyframes lpReveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .marketing .reveal { animation: none; opacity: 1; transform: none; } }
