/* ErrandGo homepage. Tokens come from styles.css (brand colours mirror the apps). */
:root {
  --night: #16120E;
  --night-2: #221C16;
  --cream-2: #F4ECE0;
  --blue-2: #2450D6;
  --green: #1E8A45;
  --shadow: 0 1px 0 rgba(22, 18, 14, .04), 0 18px 40px -18px rgba(22, 18, 14, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --night: #0E0B09;
    --night-2: #1A1612;
    --cream-2: #1B1713;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}

body.home { overflow-x: hidden; }
.home main { padding: 0; }
.home h1, .home h2, .home h3 { color: var(--ink); }
.home p { margin: 0; }

.shell { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.shell.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 15px/1 "Plus Jakarta Sans", system-ui, sans-serif; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.pill svg { width: 16px; height: 16px; fill: currentColor; }
.pill.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
html body.home a.pill-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 0 -2px #B84E00; }
html body.home a.pill-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 0 -2px var(--blue-deep); }
html body.home a.pill-ink { background: var(--ink); color: var(--canvas); }
html body.home a.pill-white { background: #fff; color: var(--orange-text); box-shadow: 0 6px 0 -2px rgba(0,0,0,.18); }
html body.home a.pill-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.home .pill-ghost:hover { background: rgba(255,255,255,.1); }

/* ------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .shell { display: flex; align-items: center; gap: 16px; min-height: 64px; }
html body.home a.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.02em; }
.home .brand img { width: 36px; height: 36px; border-radius: 10px; }
.topnav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 600; }
html body.home .topnav a { color: var(--ink-80); text-decoration: none; }
.topnav a:hover { color: var(--orange-text); }
@media (max-width: 860px) { .topnav { display: none; } .top .pill { margin-left: auto; } }

/* --------------------------------------------------------------- hero */
.home .hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(244,108,4,.28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255,255,255,.08), transparent 60%),
    var(--blue);
  color: #fff;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFD2AE !important; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(244,108,4,.3); animation: pulse 2s infinite; }
.home .hero h1 {
  color: #fff; margin: 18px 0 18px;
  font: 800 clamp(44px, 8vw, 92px)/.95 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.045em;
}
.home .hero .lede { color: rgba(255,255,255,.88); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 34em; }
.hero .lede em { font-style: normal; color: #FFB27A; font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.home .hero .fine { color: rgba(255,255,255,.66); font-size: 14px; }

/* the meter */
.meter { margin: 0; justify-self: center; width: 100%; max-width: 420px; }
.meter-card {
  position: relative; background: var(--card); color: var(--ink); border-radius: 28px; padding: 20px 22px 26px;
  box-shadow: 0 40px 80px -30px rgba(0, 10, 60, .65); transform: rotate(-1.5deg);
}
.meter-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-60); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.meter-body { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; margin-top: 12px; }
.tank { width: 120px; height: auto; display: block; }
.tank-valve { fill: #3B342D; }
.tank-collar { fill: #6B6259; }
.tank-shell { fill: var(--cream-2); }
.tank-line { fill: none; stroke: rgba(22,18,14,.12); stroke-width: 2; }
.tank-shine { fill: #fff; opacity: .35; }
.tank-base { fill: var(--blue); }
.tank-led { fill: #7CFFB0; animation: pulse 1.6s infinite; }
.readout .kg { font: 800 56px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.04em; color: var(--ink); }
.readout .kg span { font: 600 16px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: 0; color: var(--ink-60); }
.readout .days { margin-top: 6px !important; font-weight: 700; color: var(--orange-text); }
.readout .bar { height: 8px; border-radius: 8px; background: var(--cream-2); margin: 14px 0 10px; overflow: hidden; }
.readout .bar i { display: block; height: 100%; width: 54%; border-radius: 8px; background: var(--orange); transition: background .3s; }
.readout .note { font-size: 13px; color: var(--ink-60); }
.toast {
  position: absolute; left: 18px; right: 18px; bottom: -62px;
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px;
  background: var(--night); color: #fff; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .35s ease, transform .35s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast b { display: block; font-size: 15px; }
.toast small { display: block; font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 2px; }
.toast-icon { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--orange); display: grid; place-items: center; }
.toast-icon svg { width: 20px; height: 20px; fill: #fff; }
.meter figcaption { margin-top: 84px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.6); }
@media (max-width: 420px) {
  .meter-body { grid-template-columns: 96px 1fr; gap: 14px; }
  .tank { width: 96px; }
  .readout .kg { font-size: 46px; }
}

/* ------------------------------------------------------------- moment */
.moment { padding: 96px 0 88px; }
.clock { font: 800 clamp(72px, 14vw, 160px)/.9 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.05em; color: var(--ink); }
.clock small { font-size: .28em; letter-spacing: 0; margin-left: 10px; color: var(--orange-text); vertical-align: super; }
.story { font: 700 clamp(22px, 3vw, 30px)/1.3 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink) !important; margin-top: 20px !important; }
.story.dim { font: 500 18px/1.65 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: 0; color: var(--ink-80) !important; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.fact .fig { font: 800 44px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.03em; color: var(--orange-text); }
.fact .fig small { font-size: .45em; letter-spacing: 0; color: var(--ink-60); }
.fact p:not(.fig) { font-size: 15.5px; }
html body.home .fact a { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ink-60); }

/* ---------------------------------------------------------- smart gas */
.smart { padding: 88px 0; background: var(--cream-2); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-text) !important; }
.eyebrow.light { color: #FFB27A !important; }
.home h2 { font: 800 clamp(32px, 5vw, 54px)/1.02 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.035em; margin: 12px 0 0; max-width: 16em; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { margin: 0; background: var(--card); border-radius: 28px; padding: 28px; position: relative; box-shadow: var(--shadow); }
.steps svg { width: 56px; height: 56px; }
.steps .n { position: absolute; top: 24px; right: 26px; font: 800 15px/1 "Bricolage Grotesque", sans-serif; color: var(--ink-60); }
.steps h3 { font: 800 26px/1.1 "Bricolage Grotesque", system-ui, sans-serif; margin: 18px 0 8px; letter-spacing: -.02em; }
.steps p { font-size: 15.5px; }
.ic-o { fill: var(--orange); } .ic-b { fill: var(--blue); } .ic-w { fill: #7CFFB0; } .ic-ink { fill: var(--ink); }
.ic-line { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ic-axis { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.status {
  margin-top: 20px; border-radius: 28px; padding: 28px; background: var(--night); color: #fff;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px 28px; align-items: center;
}
@media (max-width: 860px) { .status { grid-template-columns: 1fr; } }
.status-title { font: 800 20px/1.1 "Bricolage Grotesque", sans-serif; color: #fff !important; }
.status ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.status li { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; padding-left: 26px; position: relative; }
.status li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); }
.status li.done::before { background: #2FBF68; border-color: #2FBF68; }
.status li.now::before { background: var(--orange); border-color: var(--orange); animation: pulse 2s infinite; }

/* --------------------------------------------------------------- film */
.film { padding: 88px 0; }
.film-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; }
.film-head p { color: var(--ink-60); font-weight: 600; }
.film-frame { margin-top: 32px; border-radius: 28px; overflow: hidden; background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; display: block; }

/* ------------------------------------------------------------ errands */
.errands { padding: 88px 0; background: var(--cream-2); overflow: hidden; }
.errands-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .errands-grid { grid-template-columns: 1fr; } }
.tiles { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.tile { margin: 0; background: var(--card); border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px; position: relative; }
.tile b { font: 700 18px/1.2 "Bricolage Grotesque", sans-serif; color: var(--ink); }
.tile span { font-size: 15px; color: var(--ink-80); }
.tile em { position: absolute; top: 16px; right: 16px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--green); background: color-mix(in srgb, #2FBF68 16%, transparent); padding: 4px 10px; border-radius: 999px; }
.tile.gas { outline: 2px solid var(--orange); }
.tile.gas b { padding-right: 96px; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; margin: 0; width: 250px; border-radius: 34px; padding: 8px; background: var(--night); box-shadow: 0 40px 70px -30px rgba(0,0,0,.55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.phone.p1 { left: 6%; top: 0; transform: rotate(-5deg); }
.phone.p2 { right: 4%; top: 70px; transform: rotate(4deg); }
@media (max-width: 560px) {
  .phones { height: 430px; }
  .phone { width: 190px; }
  .phone.p1 { left: 0; } .phone.p2 { right: 0; top: 50px; }
}

/* ------------------------------------------------------------- safety */
.safety { padding: 96px 0; background: var(--night); }
.safety h2 { color: #fff !important; }
.rules { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 1px; background: rgba(255,255,255,.1); border-radius: 24px; overflow: hidden; }
.rule { flex: 1 1 300px; background: var(--night-2); padding: 26px; display: grid; gap: 12px; align-content: start; }
.rule span { font: 800 14px/1 "Bricolage Grotesque", sans-serif; color: #FFB27A; }
.rule p { color: rgba(255,255,255,.72); font-size: 15.5px; }
.rule b { color: #fff; }
html body.home .rule a { color: #9DB4FF; }

/* --------------------------------------------------------------- join */
.join { padding: 88px 0; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .join-grid { grid-template-columns: 1fr; } }
.join-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: grid; gap: 12px; align-content: start; }
.join-card h3 { font: 800 28px/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; margin: 0; }
.join-card p:not(.eyebrow) { font-size: 15.5px; }
.join-card .pill { justify-self: start; margin-top: 8px; }

/* --------------------------------------------------------------- band */
.band { background: var(--orange); padding: 64px 0; }
.band-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff !important; font-size: clamp(28px, 4vw, 44px); }
.band p { color: rgba(255,255,255,.9); margin-top: 12px !important; max-width: 36em; }

/* ---------------------------------------------------------------- faq */
.faq { padding: 88px 0 96px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 700 19px/1.3 "Bricolage Grotesque", sans-serif; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 500 28px/1 "Plus Jakarta Sans", sans-serif; color: var(--orange-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 16px; }
.faq .ask { margin-top: 28px !important; font-weight: 600; }

/* ------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; }
.foot-grid > div p { margin-top: 10px !important; color: var(--ink-60); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; }
html body.home .foot nav a { color: var(--ink-80); text-decoration: none; }
.foot .copy { grid-column: 1 / -1; color: var(--ink-60); font-size: 13px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.base-label { display: block; margin: 8px 0 0; width: 120px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 420px) { .base-label { width: 96px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .base-label { color: #9DB4FF; } }
