/* ErrandDrop website.
   Hand written, no framework, no build step. Aurora gradient and
   soft white, matching the app. */

:root {
  --teal:       #1BC8A7;
  --aurora:     #12B394;
  --deep:       #0B7A66;
  --wash:       #F0FEFA;
  --ink:        #0F1B2D;
  --body:       #5A6472;
  --muted:      #8A94A6;
  --line:       #E8EDF2;
  --soft:       #F7FAFC;

  --grad: linear-gradient(135deg, #1BC8A7 0%, #12B394 42%, #0EA5C4 100%);
  --grad-soft: linear-gradient(135deg, #F0FEFA 0%, #EAF8FF 100%);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1160px;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto,
               Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--body);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* The one place page width is decided. Desktop stays readable
   instead of stretching to the monitor, and phones keep a real
   margin rather than text against the glass. */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hide { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Type ── */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.8px; }
h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; letter-spacing: -1.6px; }
h2 { font-size: clamp(27px, 3.8vw, 42px); font-weight: 800; letter-spacing: -1.1px; }
h3 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; letter-spacing: -0.4px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lede { font-size: clamp(16.5px, 1.9vw, 19.5px); line-height: 1.65; max-width: 34em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wash); color: var(--deep);
  padding: 7px 15px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: .2px;
  border: 1px solid #D6F5EC; margin-bottom: 18px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--grad); color: #fff; border: none; cursor: pointer;
  padding: 15px 28px; border-radius: 14px;
  font-size: 16px; font-weight: 700; font-family: inherit;
  box-shadow: 0 8px 22px rgba(18,179,148,.26);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(18,179,148,.34); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--teal); box-shadow: 0 8px 22px rgba(15,27,45,.07); }

.btn-white { background: #fff; color: var(--deep); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.btn-lg { padding: 17px 34px; font-size: 17px; }

.cta-row { display: flex; gap: 13px; flex-wrap: wrap; }
.center .cta-row { justify-content: center; }

/* ── Header ── */
.top {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.top.glass {
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: rgba(15,27,45,.07);
  box-shadow: 0 6px 26px rgba(15,27,45,.06);
}
@supports not (backdrop-filter: blur(1px)) {
  .top.glass { background: rgba(255,255,255,.98); }
}

.top-in { display: flex; align-items: center; gap: 30px; height: 76px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.logo span { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav > a, .drop > button {
  font-size: 15.5px; font-weight: 600; color: var(--body);
  background: none; border: none; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0; transition: color .18s var(--ease);
}
.nav > a:hover, .drop > button:hover, .nav > a.on { color: var(--deep); }
.nav > a.on { font-weight: 700; }

/* Dropdown */
.drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 10px; min-width: 290px;
  box-shadow: 0 20px 50px rgba(15,27,45,.14);
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.drop:hover .drop-menu, .drop.open .drop-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.drop-menu a {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px; border-radius: 12px;
  transition: background .18s var(--ease);
}
.drop-menu a:hover { background: var(--soft); }
.drop-ic {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px;
}
.drop-menu b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; }
.drop-menu small { font-size: 13px; color: var(--muted); line-height: 1.45; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; font-size: 18px; color: var(--ink);
}

/* ── Sections ── */
section { padding: clamp(56px, 8vw, 100px) 0; }
.sec-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.sec-head h2 { margin-bottom: 14px; }

.soft-bg { background: var(--soft); }
.wash-bg { background: var(--grad-soft); }

/* ── Cards ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15,27,45,.09);
  border-color: #D6F5EC;
}
.card-ic {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; font-size: 25px; margin-bottom: 18px;
  background: var(--wash);
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: 15.5px; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ── Phone frames ── */
.phone {
  border-radius: 34px; overflow: hidden;
  border: 8px solid #0F1B2D;
  box-shadow: 0 30px 70px rgba(15,27,45,.22);
  background: #0F1B2D;
}
.phone img { width: 100%; display: block; }

/* ── Logo carousel ── */
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 46px; width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee img {
  height: 62px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .62;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.marquee img:hover { filter: none; opacity: 1; }

/* ── Store badges ── */
.badges { display: flex; gap: 13px; flex-wrap: wrap; }
.center .badges { justify-content: center; }
.badges img {
  height: 54px; width: auto;
  transition: transform .2s var(--ease);
}
.badges a:hover img { transform: translateY(-2px); }

/* ── Footer ── */
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.foot-brand img { width: 36px; height: 36px; border-radius: 10px; }
.foot-brand span { color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.4px; }
.foot p { font-size: 14.5px; line-height: 1.7; max-width: 30em; }
footer h4 {
  color: #fff; font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
footer nav a {
  display: block; font-size: 14.5px; margin-bottom: 11px;
  color: rgba(255,255,255,.7); transition: color .18s var(--ease);
}
footer nav a:hover { color: #fff; }
.foot-base {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0 26px; font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ── Tablet ── */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

/* ── Phone ──
   The gutter grows rather than shrinks. Content sitting against the
   edge of the glass is the single most common way a site built on a
   laptop feels wrong in the hand. */
@media (max-width: 760px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }

  .top-in { height: 66px; gap: 12px; }
  .logo img { width: 34px; height: 34px; }
  .logo span { font-size: 18px; }
  .top .btn { display: none; }
  .burger { display: grid; place-items: center; }

  .nav {
    position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 14px 22px 40px; margin: 0;
    overflow-y: auto; display: none; z-index: 95;
  }
  .nav.open { display: flex; animation: navIn .28s var(--ease); }
  @keyframes navIn { from { opacity: 0; transform: translateY(-10px); } }

  .nav > a, .drop > button {
    padding: 16px 2px; font-size: 17px; width: 100%;
    border-bottom: 1px solid var(--line); justify-content: space-between;
  }
  .drop { width: 100%; }
  .drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    border: none; box-shadow: none; padding: 4px 0 10px;
    min-width: 0; display: none;
  }
  .drop.open .drop-menu { display: block; transform: none; }
  .drop-menu a { padding: 12px 0; }
  .nav .btn { display: flex; margin-top: 20px; padding: 16px; }

  section { padding: 52px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 22px; border-radius: 20px; }
  .card-ic { width: 48px; height: 48px; font-size: 22px; margin-bottom: 15px; }

  .marquee-track { gap: 32px; animation-duration: 24s; }
  .marquee img { height: 46px; }

  .badges img { height: 48px; }
  .phone { border-width: 6px; border-radius: 28px; }

  .foot { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .foot-base { flex-direction: column; gap: 8px; font-size: 12.5px; }
}

@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .badges { flex-direction: column; align-items: center; }
}

/* ════════════════════════════════════════════════════════
   APP UI, RECREATED IN CSS
   Not screenshots. Every element below is real markup, so it
   stays sharp at any size, loads instantly, and can animate.
   ════════════════════════════════════════════════════════ */

.device {
  position: relative;
  width: 300px; border-radius: 42px; padding: 10px;
  background: linear-gradient(150deg, #1B2537, #0F1B2D 60%);
  box-shadow: 0 40px 90px rgba(15,27,45,.30), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.device::after {
  content: ''; position: absolute; top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 24px; border-radius: 14px;
  background: #0F1B2D; z-index: 6;
}
.screen {
  border-radius: 33px; overflow: hidden; background: #F7F9FB;
  height: 610px; position: relative;
  display: flex; flex-direction: column;
}

/* App header, aurora gradient like the real one */
.app-top {
  background: var(--grad); padding: 44px 16px 16px; color: #fff; flex-shrink: 0;
}
.app-user { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.5);
  flex-shrink: 0;
}
.app-hello { font-size: 15px; font-weight: 700; line-height: 1.2; }
.app-loc { font-size: 11px; opacity: .88; display: flex; align-items: center; gap: 4px; }
.app-search {
  background: rgba(255,255,255,.22); border-radius: 12px;
  padding: 10px 13px; font-size: 12.5px; color: rgba(255,255,255,.85);
  display: flex; align-items: center; gap: 8px;
}

.app-body { flex: 1; overflow: hidden; padding: 14px 16px; }
.app-sec {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 11px;
}
.app-sec b { font-size: 13.5px; color: var(--ink); font-weight: 800; }
.app-sec span { font-size: 11.5px; color: var(--deep); font-weight: 700; }

.app-tabs {
  display: flex; background: #EDF1F5; border-radius: 11px;
  padding: 3px; margin-bottom: 13px;
}
.app-tab {
  flex: 1; text-align: center; padding: 7px 0;
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  border-radius: 9px; transition: all .4s var(--ease);
}
.app-tab.on { background: #fff; color: var(--deep); box-shadow: 0 2px 8px rgba(15,27,45,.08); }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-card {
  background: #fff; border-radius: 13px; overflow: hidden;
  border: 1px solid #EDF1F5;
}
.app-thumb { height: 76px; position: relative; }
.app-card-b { padding: 8px 9px 10px; }
.app-card-b b { display: block; font-size: 11.5px; color: var(--ink); font-weight: 700; line-height: 1.3; }
.app-price { font-size: 12.5px; font-weight: 800; color: var(--ink); margin-top: 3px; }
.app-pill {
  display: inline-block; margin-top: 6px;
  font-size: 8.5px; font-weight: 800; padding: 2px 7px; border-radius: 5px;
  letter-spacing: .3px;
}

/* Bottom bar */
.app-nav {
  background: #fff; border-top: 1px solid #EDF1F5;
  display: flex; justify-content: space-around; align-items: center;
  padding: 9px 0 14px; flex-shrink: 0;
}
.nav-ic {
  width: 19px; height: 19px; display: block; margin: 0 auto 3px;
  fill: none; stroke: #C3CBD6; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.app-nav span { font-size: 8.5px; color: var(--muted); font-weight: 600; }
.app-nav .on .nav-ic { stroke: var(--aurora); }
.app-nav .on span { color: var(--deep); }
.app-sell-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); margin-top: -18px;
  box-shadow: 0 6px 16px rgba(18,179,148,.4);
  display: grid; place-items: center;
}
.app-sell-btn .nav-ic { stroke: #fff; width: 20px; height: 20px; margin: 0; }

/* ── Floating cards around the phone ── */
.float {
  position: absolute; background: #fff; border-radius: 16px;
  padding: 13px 15px; box-shadow: 0 18px 44px rgba(15,27,45,.16);
  border: 1px solid rgba(255,255,255,.9);
  z-index: 5; animation: bob 5s ease-in-out infinite;
  /* Capped, or long text stretches the card past the screen edge on
     a phone. This was the main mobile problem. */
  width: max-content; max-width: 230px;
}
.float small { display: block; line-height: 1.35; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.float.f2 { animation-delay: -1.6s; }
.float.f3 { animation-delay: -3.2s; }

.float-row { display: flex; align-items: center; gap: 10px; }
.float-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float b { display: block; font-size: 13px; color: var(--ink); font-weight: 700; line-height: 1.3; }
.float small { font-size: 11.5px; color: var(--muted); }

/* ── Icons ── */
/* Every icon on the site. stroke: currentColor is the important
   line: without it an icon inherits nothing, and browsers fall back
   to a solid black fill, which is what made them look like blobs. */
svg.ic, svg.ic-lg, svg.thumb-ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.ic { width: 22px; height: 22px; }
svg.ic-lg { width: 26px; height: 26px; }

/* Anything that slipped through without a class still behaves. */
svg:has(use) { fill: none; stroke: currentColor; }

/* ════════════════════════════════════════════════════════
   HERO CAROUSEL
   Services, Shop and Rent cycle on a loop. The tab, the
   listings and the floating cards all move together, so it
   reads as one screen changing rather than three things
   animating separately.
   ════════════════════════════════════════════════════════ */

.stage { position: relative; }

/* Each slide holds a full set of listings. Only one is visible. */
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transform: translateX(18px);
}
.slide.on { opacity: 1; visibility: visible; transform: none; }
.slide.out { opacity: 0; transform: translateX(-18px); }

.app-grid.stage { height: 296px; }

/* The pill slides under the active tab rather than each tab
   changing colour on its own. */
.app-tabs { position: relative; }
.tab-pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / 3);
  background: #fff; border-radius: 9px;
  box-shadow: 0 2px 8px rgba(15,27,45,.10);
  transition: transform .55s var(--ease);
  z-index: 0;
}
.app-tab { position: relative; z-index: 1; background: none !important; box-shadow: none !important; }

/* Listing photos. A tinted block sits behind, so a missing or slow
   image looks deliberate instead of broken. */
.app-thumb { overflow: hidden; }
.app-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative; z-index: 1;
}
.app-thumb .thumb-ic { z-index: 0; }

/* Floating cards swap with the slide they belong to. */
.float {
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.float.hide { opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; }

/* ── Photos elsewhere on the page ── */
.photo {
  position: relative; overflow: hidden; border-radius: 20px;
  background: var(--grad-soft);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,27,45,.55));
  pointer-events: none;
}
.photo-cap {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff;
}
.photo-cap b { display: block; font-size: 16px; font-weight: 700; }
.photo-cap small { font-size: 13px; opacity: .88; }


/* ── Floating cards on a phone ──
   These were stretching past the screen edge. The cap on .float
   handles the width; these pull them in against the device and
   shrink the type so they read at that size. */
@media (max-width: 760px) {
  .float {
    max-width: 180px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
  }
  .float b { font-size: 12px; }
  .float small { font-size: 10.5px; line-height: 1.35; }
  .float-ic { width: 27px; height: 27px; }
  .float-ic .ic { width: 15px; height: 15px; }

  /* Tucked against the phone rather than hanging off the sides. */
  .float[style*="left:-"] { left: -6px !important; }
  .float[style*="right:-"] { right: -6px !important; }
}

@media (max-width: 420px) {
  /* Below this the phone fills the width and there is genuinely no
     room beside it. Two cards overlap the device instead. */
  .float { max-width: 158px !important; }
  .float small { display: none; }
  .float.f3 { display: none; }
}