/* errandearn.com home page (2026-11-27). The legal pages keep site.css. */
:root {
  --forest: #0C3B2E;
  --forest-deep: #0A2A1F;
  --primary: #1F4D3A;
  --mint: #34D399;
  --wash: #EAF5EF;
  --paper: #F7FAF8;
  --ink: #0F1F17;
  --ink-2: #4A5A51;
  --line: #DDE7E1;
  --gold: #F5B301;
  --on-forest: #F2F7F4;
  --on-forest-2: #A9C2B5;
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(12, 59, 46, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: var(--on-forest); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--head); text-decoration: none; letter-spacing: -.02em; }
.brand span { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; }
.brand img { width: 20px; height: 18px; }
.top nav { margin-left: auto; display: flex; gap: 26px; }
.top nav a { text-decoration: none; font-size: 15px; color: var(--on-forest-2); }
.top nav a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 15px var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn-mint { background: var(--mint); color: var(--forest-deep); }
.btn-mint:hover { background: #4ade9f; }
.btn-ghost { background: transparent; color: var(--on-forest); box-shadow: inset 0 0 0 1.5px rgba(242, 247, 244, .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--mint); }
.auth { display: flex; gap: 10px; }
.top .btn { min-height: 40px; padding: 0 18px; }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.menu svg { width: 22px; height: 22px; }
.drawer { display: none; }
@media (max-width: 860px) {
  .top nav, .top .auth { display: none; }
  .menu { display: grid; place-items: center; }
  .drawer { display: block; position: fixed; inset: 64px 0 auto 0; background: var(--forest); padding: 8px var(--gutter) 24px; transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 40; }
  .drawer.open { transform: none; }
  .drawer-auth { display: flex; gap: 10px; padding-top: 18px; }
  .drawer-auth .btn { flex: 1; border-bottom: 0; padding: 0 16px; }
  .drawer > a { display: block; padding: 14px 0; color: var(--on-forest); text-decoration: none; font: 600 18px var(--head); border-bottom: 1px solid rgba(242, 247, 244, .12); }
}

/* ---------- store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; line-height: 1.1; opacity: .85; }
.store b { display: block; font: 600 18px/1.15 var(--head); letter-spacing: -.01em; }
.store:hover { box-shadow: inset 0 0 0 1.5px var(--mint); }

/* ---------- hero: three slides (owner, 2026-11-27) ---------- */
.hero { position: relative; background: radial-gradient(90% 70% at 70% 40%, #1b6a4c 0%, #0f4a35 45%, var(--forest-deep) 100%); color: var(--on-forest); overflow: hidden; }
.slides { display: grid; touch-action: pan-y; }
.slide { grid-area: 1 / 1; }
.js .slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.js .slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
html:not(.js) .slide:not(:first-child) { display: none; }
.slide .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding-top: clamp(32px, 4.5vw, 56px); padding-bottom: 8px; }
.hh { font-size: clamp(42px, 5.2vw, 76px); line-height: .98; font-weight: 800; letter-spacing: -.045em; }
h2.hh { font-size: clamp(34px, 3.7vw, 56px); }
.hh .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hh .ln > span { display: inline-block; }
.hero .lede { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--on-forest-2); }
.hero .acts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--on-forest-2); }

/* the phones: dealt out when their slide comes in */
.fan { position: relative; height: clamp(400px, 38vw, 520px); }
.fan .ph { position: absolute; top: 50%; left: 50%; width: clamp(168px, 14.5vw, 214px); filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .4)); transform-origin: 50% 90%; transition: transform 1s var(--ease), opacity .5s ease; }
.fan .ph img { width: 100%; height: auto; }
.fan .p1 { transform: translate(-50%, -50%) translate(-62%, 3%) rotate(-5deg) scale(.88); z-index: 1; }
.fan .p2 { transform: translate(-50%, -50%); z-index: 3; }
.fan .p3 { transform: translate(-50%, -50%) translate(62%, 3%) rotate(5deg) scale(.88); z-index: 2; }
.fan.duo .p1 { transform: translate(-50%, -50%) translate(-30%, 3%) rotate(-4deg) scale(.94); z-index: 1; }
.fan.duo .p2 { transform: translate(-50%, -50%) translate(30%, -3%) rotate(4deg); z-index: 2; }
.js .slide:not(.on) .fan .ph { opacity: 0; transform: translate(-50%, -44%) rotate(0deg); transition-duration: .3s; }
.js .slide.on .fan .p1 { transition-delay: .15s; } .js .slide.on .fan .p3 { transition-delay: .25s; }
.js .slide.on .fan.duo .p2 { transition-delay: .12s; }

/* dots with a filling bar, and arrows */
.carousel-ui { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: clamp(28px, 4vw, 44px); }
html:not(.js) .carousel-ui { display: none; }
.dots { display: flex; gap: 8px; }
.dot { position: relative; width: 44px; height: 32px; border: 0; background: none; cursor: pointer; padding: 0; }
.dot i { position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; background: rgba(242, 247, 244, .25); overflow: hidden; }
.dot i::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform: scaleX(0); transform-origin: 0 50%; }
.dot.on i::after { transform: scaleX(1); }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--on-forest); display: grid; place-items: center; cursor: pointer; }
.arrow:hover { background: rgba(255, 255, 255, .16); }
.arrow svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .slide .wrap { grid-template-columns: 1fr; }
  .fan { height: 400px; margin-top: 4px; }
  .fan .ph { width: 172px; }
  .fan .p1 { transform: translate(-50%, -50%) translate(-50%, 3%) rotate(-5deg) scale(.86); }
  .fan .p3 { transform: translate(-50%, -50%) translate(50%, 3%) rotate(5deg) scale(.86); }
  .fan.duo .p1 { transform: translate(-50%, -50%) translate(-28%, 3%) rotate(-4deg) scale(.94); }
  .fan.duo .p2 { transform: translate(-50%, -50%) translate(28%, -3%) rotate(4deg); }
  .carousel-ui { justify-content: center; }
}

/* ---------- feature bands ---------- */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band.wash { background: var(--wash); }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.feat.flip .copy { order: 2; }
.copy h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; font-weight: 800; max-width: 14em; }
.copy > p { margin-top: 18px; max-width: 32em; color: var(--ink-2); font-size: 18px; }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 32em; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.stage { position: relative; display: flex; justify-content: center; gap: 18px; padding: 24px 0; }
.stage .ph { width: min(290px, 70vw); filter: drop-shadow(0 26px 44px rgba(12, 59, 46, .28)); }
.stage.two .ph { width: min(250px, 44vw); }
.stage.two .ph:last-of-type { margin-top: 56px; }
.stage .ph { transform: rotate(var(--tilt, 0deg)); }
/* the ads' white sticker chips */
.chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(12, 59, 46, .18); font: 700 15px/1.2 var(--body); color: var(--ink); white-space: nowrap; z-index: 2; }
.chip i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; background: var(--wash); flex-shrink: 0; }
.chip.gold i { background: #FEF3C7; }
.chip { transform: rotate(var(--r)); }
.c-a { --r: -4deg; left: 0; top: 34%; }
.c-b { --r: 3deg; right: 0; bottom: 16%; }
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; }
  .feat.flip .copy { order: 0; }
  .chip { font-size: 13px; padding: 10px 14px 10px 10px; }
  .chip i { width: 28px; height: 28px; font-size: 15px; }
  .c-a { left: 2%; } .c-b { right: 2%; }
}

/* Market gets the gold price tag */
.price { display: inline-block; margin-top: 22px; padding: 6px 14px; border-radius: 10px; background: #FEF3C7; color: #7c4a03; font: 700 15px var(--body); }

/* errands: a real sequence, so numbered */
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; max-width: 32em; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--mint); display: grid; place-items: center; font: 800 15px var(--head); }
.steps b { display: block; font-family: var(--head); font-size: 17px; }
.steps span { color: var(--ink-2); font-size: 16px; }

/* ---------- universities ---------- */
.unis h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; font-weight: 800; max-width: 16em; }
.unis > .wrap > p { margin-top: 16px; color: var(--ink-2); max-width: 38em; }
.uni-grid { margin: 36px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.uni-grid li { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.uni-grid b { display: block; font: 800 18px var(--head); color: var(--primary); }
.uni-grid span { display: block; font-size: 13px; color: var(--ink-2); }
.small { margin-top: 18px; font-size: 14px; color: var(--ink-2); }

/* ---------- safety ---------- */
.safe-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.safe-grid h3 { font-size: 19px; }
.safe-grid p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-2); max-width: 36em; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 700 18px/1.35 var(--head); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 26px/1 var(--body); color: var(--primary); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* ---------- closing + footer ---------- */
.final { position: relative; overflow: hidden; background: radial-gradient(80% 90% at 50% 30%, #1b6a4c 0%, #0f4a35 45%, var(--forest-deep) 100%); color: var(--on-forest); padding: clamp(72px, 9vw, 120px) 0; }
.final { text-align: center; }
.final h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.final-copy > p { margin: 18px auto 0; color: var(--on-forest-2); max-width: 30em; font-size: 18px; }
.final .stores { justify-content: center; margin-top: 32px; }
.final .fine { margin-top: 14px; font-size: 14px; color: var(--on-forest-2); }
footer { background: var(--forest-deep); color: var(--on-forest-2); padding: 56px 0 40px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer h3 { color: var(--on-forest); font: 700 15px var(--body); letter-spacing: 0; margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; } footer a:hover { color: #fff; }
footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(242, 247, 244, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- buttons added 2026-11-27 ---------- */
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--primary); }
.cta-inline { margin-top: 32px; }

/* ---------- motion: on load, on scroll (never when reduced) ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: no-preference) {
  .js .slide.on .hh .ln > span { animation: rise .9s var(--ease) both; }
  .js .slide.on .hh .ln:nth-child(2) > span { animation-delay: .12s; }
  .js .slide.on .lede { animation: fadeUp .8s var(--ease) .3s both; }
  .js .slide.on .acts { animation: fadeUp .8s var(--ease) .42s both; }
  .js .slide.on .fine { animation: fadeUp .8s var(--ease) .52s both; }
  /* the active dot fills over the slide's time; JS moves on when it ends */
  .js .hero.auto .dot.on i::after { transform: scaleX(0); animation: fill 7s linear forwards; }
  .js .hero.auto.hold .dot.on i::after { animation-play-state: paused; }

  .js .rv { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  /* a phone rises flat, then settles into its tilt; its sticker pops after */
  .js .stage.rv { opacity: 1; transform: none; }
  .js .stage.rv .ph { opacity: 0; transform: translateY(90px) rotate(0deg) scale(.94); transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
  .js .stage.rv .ph:nth-of-type(2) { transition-delay: .14s; }
  .js .stage.rv.in .ph { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
  .js .stage.rv .chip { opacity: 0; transform: rotate(var(--r)) scale(.4); transition: opacity .4s ease .55s, transform .6s cubic-bezier(.34, 1.56, .64, 1) .55s; }
  .js .stage.rv.in .chip { opacity: 1; transform: rotate(var(--r)); }
  /* steps and lists cascade */
  .js .rv .steps li { opacity: 0; transform: translateX(-18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.25s + var(--i, 0) * 110ms); }
  .js .rv.in .steps li { opacity: 1; transform: none; }
  .js .rv-list > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 35ms); }
  .js .rv-list.in > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fan .ph, .js .slide, .js .slide.on { transition: none !important; }
}

/* ---------- floating WhatsApp button (owner, 2026-11-27) ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: #25D366; color: #fff; text-decoration: none; font: 700 15px var(--body); box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }
.wa-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.wa-float:hover { background: #1ebe5b; }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: waIn .5s cubic-bezier(.34, 1.56, .64, 1) 1.2s both; }
}
@keyframes waIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
