/* Hella Sea Moss: the East Bay Line */
:root {
  --green: #1E6D57;        /* logo green, owns whole fields */
  --green-deep: #0F3B30;   /* ink on white */
  --green-ink: #155442;
  --gold: #CF8913;         /* the line and lit stations only */
  --gold-text: #8A5807;    /* gold that reads on white and paper */
  --ink-on-gold: #08291F;  /* text on the gold fill, 5:1+ */
  --gold-soft: #F3E3C3;
  --white: #FFFFFF;
  --leaf: #7FE0AE;         /* Oakland's stop glowing on the map intro */
  --mist: #EEF3F0;         /* quiet green-tinted surface */
  --on-green: #FFFFFF;
  --on-green-2: #CFE3DA;   /* secondary text on green */

  --display: "Overpass", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.84rem, .8rem + .15vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);

  --gutter: max(18px, env(safe-area-inset-left, 0px));
  --gutter-r: max(18px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--white); color: var(--green-deep);
  font: 400 var(--step-0)/1.6 var(--body);
  caret-color: var(--gold);
  scrollbar-color: var(--green) var(--mist);
}
::selection { background: var(--gold); color: var(--ink-on-gold); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .way--local :focus-visible, .terminus :focus-visible, .foot :focus-visible, .cart__head :focus-visible { outline-color: var(--white); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p, li { text-wrap: pretty; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink-on-gold); padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }
.skip:hover { color: var(--ink-on-gold); }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid #DCE6E1; padding-top: env(safe-area-inset-top, 0px); }
.nav__in { max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter-r) 12px var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav__logo img { width: clamp(150px, 18vw, 220px); height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-family: var(--display); font-weight: 700; font-size: .98rem; }
.nav__links a { color: var(--green-deep); text-decoration: none; padding: 6px 0; border-bottom: 2px dashed transparent; }
.nav__links a:hover { border-bottom-color: var(--gold); }
.nav__cart { display: inline-flex; align-items: center; gap: 8px; font: 700 .98rem var(--display); color: var(--green-deep); background: none; border: 2px solid var(--green); border-radius: 999px; padding: 8px 14px 6px; cursor: pointer; }
.nav__cart:hover { background: var(--mist); }
.nav__count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--green); color: var(--white); display: inline-grid; place-items: center; font-size: .8rem; padding: 0 6px; font-variant-numeric: tabular-nums; transition: background .4s var(--ease), color .4s var(--ease); }
.nav__count.is-full { background: var(--gold); color: var(--ink-on-gold); }
@media (max-width: 860px) { .nav__links { display: none; } .nav__cart { margin-left: auto; } }

/* hero field */
.hero { background: var(--green); color: var(--on-green); padding-bottom: clamp(36px, 5vw, 72px); }
.map { max-width: 1240px; margin: 0 auto; padding: 8px var(--gutter-r) 0 var(--gutter); }
.map__scroll { overflow-x: auto; scrollbar-width: none; }
.map__scroll::-webkit-scrollbar { display: none; }
@media (min-width: 861px) { .map__scroll { overflow: visible; } .map { position: relative; z-index: 1; } }
.map__svg { width: 100%; min-width: 860px; height: auto; display: block; overflow: visible; }
.map__svg.is-compact { min-width: 0; max-width: 540px; }
.map__svg.is-compact .lbl { font-size: 21px; }
.map__svg.is-compact .lbl--origin { font-size: 23px; }
.map__svg.is-compact .shiplbl { font-size: 16px; }
.map__svg .track { stroke: var(--green-deep); stroke-width: 9; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s var(--ease), opacity .5s var(--ease); }
.map__svg .lit { stroke: var(--gold); stroke-width: 9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map__svg .ship { stroke: var(--on-green-2); stroke-width: 3; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .55; transition: opacity .5s var(--ease), stroke .5s var(--ease); }
.map__svg .st { fill: var(--green); stroke: var(--gold); stroke-width: 3; stroke-dasharray: 4 4; transition: fill .45s var(--ease), stroke-dasharray .45s var(--ease), r .45s var(--ease); }
.map__svg .st--origin { fill: var(--white); stroke-dasharray: none; stroke-width: 4; }
.map__svg .st.is-lit { fill: var(--gold); stroke: var(--white); stroke-dasharray: none; }
.map__svg .lbl { fill: var(--on-green); font: 700 15px var(--display); letter-spacing: .01em; transition: fill .4s var(--ease), opacity .4s var(--ease); }
.map__svg .lbl--origin { fill: var(--white); font-size: 16px; font-weight: 900; }
.map__svg .lbl--sub { fill: var(--ink-on-gold); font: 700 11.5px var(--body); }
.map__svg .ribbon-shape { fill: var(--gold-soft); }
.map__svg .lbl.is-lit { fill: var(--gold-soft); }
.map__svg .shiplbl { fill: var(--on-green-2); font: 700 13px var(--display); transition: fill .4s var(--ease); }
.map.is-out .track, .map.is-out .st:not(.st--origin), .map.is-out .lbl:not(.lbl--origin) { opacity: .4; }
.map.is-out .ship { opacity: 1; stroke: var(--gold); stroke-dasharray: 10 8; }
.map.is-out .shiplbl { fill: var(--gold-soft); }

.hero__in { max-width: 1240px; margin: 0 auto; padding: 4px var(--gutter-r) 0 var(--gutter); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-areas: "gallery head" "gallery buy"; grid-template-rows: auto 1fr; column-gap: clamp(28px, 5vw, 72px); row-gap: 18px; align-items: start; }
.gallery { grid-area: gallery; }
.buy__head { grid-area: head; display: grid; gap: 12px; }
.buy { grid-area: buy; container: buy / inline-size; min-width: 0; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; grid-template-areas: "head" "gallery" "buy"; row-gap: 22px; }
}

/* gallery pinned to the origin station */
.gallery { margin: 0; position: relative; }
.gallery__frame { background: var(--mist); border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 24px 50px -24px rgba(5, 30, 23, .55); }
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .55s var(--ease); }
.gallery__frame img.is-swap { opacity: 0; transform: translateX(-4%) scale(.97); transition-duration: .2s; }

/* buy box */
.buy { display: flex; flex-direction: column; gap: 10px; }
.buy__title { font-size: clamp(2.3rem, 1.5rem + 2.2vw, 3.2rem); font-weight: 900; color: var(--white); max-width: 15ch; padding-top: clamp(0px, 1vw, 12px); }
.buy__lede { color: var(--on-green-2); max-width: 46ch; font-size: var(--step-1); line-height: 1.45; }
.flavors { display: flex; flex-wrap: wrap; gap: 6px; }
.flv { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 4px 7px; border-radius: 999px; border: 2px dashed rgba(255,255,255,.45); font: 700 .86rem var(--display); cursor: pointer; transition: background .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease); }
.flv input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.flv__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gel); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.flv:hover { border-color: var(--gold-soft); }
.flv:has(input:checked) { background: var(--gold); border: 2px solid var(--gold); color: var(--ink-on-gold); }
.flv:has(input:checked) .flv__dot { box-shadow: inset 0 0 0 2px var(--ink-on-gold); }
.flv:has(input:focus-visible) { outline: 3px solid var(--white); outline-offset: 3px; }
.flv__note { color: var(--on-green-2); font-size: .9rem; margin-top: 6px; }
.buy__note.buy__note--light { color: var(--green-ink); border-top-color: #DCE6E1; margin-top: 0; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.buy__price { font: 800 var(--step-3)/1 var(--display); color: var(--white); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 12px; }
.buy__per { font: 500 var(--step-0) var(--body); color: var(--on-green-2); }
.buy__fresh { color: var(--on-green-2); font-size: var(--step--1); max-width: 48ch; }
.buy__note { color: var(--on-green-2); font-size: .8rem; max-width: 52ch; border-top: 1px dashed rgba(255,255,255,.35); padding-top: 8px; margin-top: -6px; }
.mini { width: 100%; max-width: 360px; height: auto; }
.mini__track { stroke: var(--green-deep); stroke-width: 7; stroke-linecap: round; fill: none; }
.mini__route { stroke: var(--gold); stroke-width: 7; stroke-linecap: round; fill: none; }
.mini__ship { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 8 7; stroke-linecap: round; fill: none; }
.mini__st { fill: var(--green); stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 3 3; }
.mini__st--origin { fill: var(--white); stroke-dasharray: none; stroke-width: 3; }
.mini__st--to { fill: var(--gold); stroke: var(--gold); stroke-dasharray: none; }
.mini__lbl { fill: var(--white); font: 700 13px var(--display); }
.mini__lbl--to { fill: var(--gold-soft); }
@media (min-width: 861px) { .mini { display: none; } }

.opts { border: 0; padding: 0; margin: 0; min-width: 0; }
.opts > legend { margin-bottom: 8px; }
.opts__grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.opts__label { font: 800 .95rem var(--display); color: var(--white); margin-bottom: 2px; padding: 0; }
.opt { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; border: 2px dashed rgba(255,255,255,.45); cursor: pointer; transition: background .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease); }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt__ring { width: 20px; height: 20px; border-radius: 50%; border: 2px dashed var(--on-green-2); transition: all .45s var(--ease); }
.opt__text { font: 700 1.05rem var(--display); }
.opt__meta em { font-style: normal; }
.ribbon { display: inline-block; font: 800 .74rem/1 var(--display); letter-spacing: .02em; padding: 5px 12px 4px; background: var(--gold-soft); color: var(--ink-on-gold); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%, 6px 50%); margin-top: 3px; }
.opt:has(input:checked) .ribbon { background: var(--white); }
.opt__meta { font-size: .92rem; color: var(--on-green-2); font-variant-numeric: tabular-nums; transition: color .45s var(--ease); }
.opt:hover { border-color: var(--gold-soft); }
.opt:has(input:checked) { background: var(--gold); border: 2px solid var(--gold); color: var(--ink-on-gold); }
.opt:has(input:checked) .opt__ring { border: 6px solid var(--ink-on-gold); background: var(--white); }
.opt:has(input:checked) .opt__meta { color: var(--ink-on-gold); }
.opt:has(input:focus-visible) { outline: 3px solid var(--white); outline-offset: 3px; }

.qty-row { display: flex; align-items: center; gap: 18px; }
.qty { display: inline-flex; align-items: center; border: 2px solid rgba(255,255,255,.55); border-radius: 999px; }
.qty__btn { width: 44px; height: 44px; border: 0; background: none; color: var(--white); cursor: pointer; border-radius: 999px; display: grid; place-items: center; }
.qty__btn:hover { background: rgba(255,255,255,.12); }
.qty__btn:disabled { opacity: .35; cursor: default; background: none; }
.qty__val { min-width: 34px; text-align: center; font: 800 1.15rem var(--display); font-variant-numeric: tabular-nums; }

.stop { display: grid; gap: 8px; }
.stop__row { display: grid; grid-template-columns: minmax(130px, 170px) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.stop__row input { width: 100%; font: 700 1.15rem var(--display); letter-spacing: .08em; padding: 13px 16px 11px; border-radius: 12px; border: 2px dashed var(--gold); background: var(--white); color: var(--green-deep); }
.stop__row input::placeholder { color: #557067; letter-spacing: .02em; font-weight: 600; }
.stop__row input.is-set { border-style: solid; }
.stop__msg { color: var(--on-green-2); font-size: .98rem; min-height: 1.6em; max-width: 46ch; }
.stop__msg b { color: var(--white); }

.cta { appearance: none; border: 0; cursor: pointer; background: var(--gold); color: var(--ink-on-gold); font: 900 1.15rem var(--display); padding: 18px 26px 15px; border-radius: 14px; text-decoration: none; display: inline-flex; justify-content: center; gap: .3em; box-shadow: 0 10px 22px -12px rgba(5, 30, 23, .7); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); font-variant-numeric: tabular-nums; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -14px rgba(5, 30, 23, .8); background: #DA9622; color: var(--ink-on-gold); }
.cta:active { transform: translateY(0); }
.cta.is-added { background: var(--white); }

/* route: every section is a stop */
.route { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter-r) 0 calc(var(--gutter) + 46px); }
.route::before { content: ""; position: absolute; left: calc(var(--gutter) + 12px); top: 0; bottom: 0; width: 6px; border-radius: 3px; background: linear-gradient(var(--gold), var(--gold)) top / 100% var(--progress, 0%) no-repeat, var(--gold-soft); }
.stop-sec { padding-bottom: clamp(64px, 9vw, 120px); }
.stop-sec__h { position: relative; font-size: var(--step-3); font-weight: 900; color: var(--green-deep); margin-bottom: clamp(18px, 2.4vw, 28px); max-width: 20ch; }
.station { position: absolute; left: -46px; top: .18em; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 4px dashed var(--gold); transition: background .45s var(--ease), border-style .45s var(--ease); }
.station.is-on { background: var(--gold); border: 4px solid var(--green-deep); }
.stop-sec__lede { max-width: 58ch; font-size: var(--step-1); line-height: 1.5; margin: -6px 0 28px; color: var(--green-ink); }

.inside { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.inside__img { border-radius: 20px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.inside__text { display: grid; gap: 28px; }
.ingredients { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ingredients li { display: grid; gap: 2px; padding: 14px 4px; background: var(--white); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.ingredients li + li { border-top: 0; }
.ingredients b { font: 800 var(--step-1) var(--display); color: var(--green); }
.facts { border: 2px solid var(--green-deep); border-radius: 12px; padding: 10px 18px 12px; font-size: .97rem; max-width: 460px; font-variant-numeric: tabular-nums; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid #DCE6E1; }
.facts > div:last-child { border-bottom: 0; }
.facts__head { font: 900 1.15rem var(--display); border-bottom: 6px solid var(--green-deep) !important; padding-bottom: 8px !important; }
.facts__big { font: 800 1.2rem var(--display); border-bottom: 3px solid var(--green-deep) !important; }
@media (max-width: 760px) { .inside { grid-template-columns: 1fr; } }

.uses { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: clamp(16px, 2.4vw, 28px); }
.use { margin: 0; display: grid; gap: 12px; align-content: start; }
.use img { border-radius: 20px; width: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.use--big { grid-row: span 2; }
.use--big img, .use__video { aspect-ratio: 4 / 5; }
.use__video { width: 100%; border-radius: 20px; object-fit: cover; display: block; background: var(--mist); }
.use figcaption { max-width: 44ch; color: var(--green-ink); }
.use figcaption b { display: block; font: 800 var(--step-1) var(--display); color: var(--green-deep); margin-bottom: 2px; }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; } .use--big { grid-row: auto; } }

.ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.way { border-radius: 20px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; align-content: start; }
.way h3 { font-size: var(--step-2); font-weight: 900; }
.way--local { background: var(--green); color: var(--on-green); }
.way--local p { color: var(--on-green-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cardmap { overflow-x: auto; margin: 2px -8px 0; padding: 0 8px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.cardmap svg { width: 100%; min-width: 0; height: auto; display: block; }
.stops__branch { font-size: .95rem; }
.way__link { color: var(--white); font: 800 1.05rem var(--display); text-decoration-style: dashed; text-decoration-color: var(--gold); text-decoration-thickness: 2px; justify-self: start; }
.way__link:hover { color: var(--gold-soft); }
.way--ship { background: var(--mist); grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.4vw, 28px); }
.way--ship img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.way--ship h3 { color: var(--green-deep); margin-bottom: 10px; }
.band { margin-top: clamp(16px, 2.4vw, 28px); background: var(--white); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); padding: 14px 4px; font: 800 var(--step-1) var(--display); color: var(--green-deep); text-align: center; }
@media (max-width: 860px) { .ways, .way--ship { grid-template-columns: 1fr; } }

.story { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, .8fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; }
.story__badge { width: 180px; }
.story__text { display: grid; gap: 18px; }
.story__line { font: 800 var(--step-2)/1.2 var(--display); color: var(--green); max-width: 22ch; }
.slot { border: 2px dashed var(--gold); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; color: var(--green-ink); background: #FFFBF3; }
.slot b { color: var(--gold-text); font-family: var(--display); font-weight: 800; }
.story__photo { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story__badge { width: 140px; } .story__photo { max-width: 420px; } }

.faq { display: grid; max-width: 760px; }
.faq details { border-bottom: 2px dashed #DCE6E1; }
.faq details[open] { border-bottom-style: solid; border-bottom-color: var(--gold); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 16px 0; font: 800 var(--step-1) var(--display); color: var(--green-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; max-width: 62ch; color: var(--green-ink); }

.terminus { position: relative; background: var(--green); color: var(--white); border-radius: 26px; margin-bottom: clamp(40px, 6vw, 72px); margin-left: -46px; padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px); display: grid; gap: 22px; justify-items: start; }
.terminus h2 { font-size: var(--step-4); font-weight: 900; max-width: 14ch; }
.station--end { position: static; width: 40px; height: 40px; background: var(--gold); border: 5px solid var(--white); }

/* footer */
.foot { background: var(--green); color: var(--on-green-2); padding: 34px var(--gutter-r) calc(34px + env(safe-area-inset-bottom, 0px)) var(--gutter); }
.foot__in { max-width: 1240px; margin: 0 auto; display: grid; gap: 12px; }
.foot__in img { width: 200px; }
.foot a { color: var(--white); }
.foot__demo { font-size: .88rem; }

/* sticky phone bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid #DCE6E1; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter); box-shadow: 0 -10px 24px -16px rgba(5, 30, 23, .5); }
.bar__name { font: 800 .98rem var(--display); color: var(--green-deep); }
.cta--bar { margin-left: auto; padding: 13px 18px 11px; font-size: 1rem; }
@media (min-width: 861px) { .bar { display: none !important; } }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(8, 32, 25, .45); z-index: 60; opacity: 0; transition: opacity .35s var(--ease); }
.scrim.is-open { opacity: 1; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--white); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 40px -20px rgba(5, 30, 23, .5); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.cart.is-open { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--green); color: var(--white); }
.cart__head h2 { font-size: 1.5rem; font-weight: 900; }
.cart__x { background: none; border: 0; color: var(--white); cursor: pointer; padding: 6px; border-radius: 12px; }
.cart__body { flex: 1; overflow-y: auto; padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 2px dashed #DCE6E1; }
.line img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.line__name { font: 800 1.05rem var(--display); }
.line__plan { font-size: .9rem; color: var(--green-ink); }
.line__price { font: 800 1.05rem var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.line__ctl { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.line__ctl button { display: inline-grid; place-items: center; border: 1.5px solid #DCE6E1; background: var(--white); color: var(--green-deep); border-radius: 999px; width: 30px; height: 30px; cursor: pointer; font: 700 1rem var(--body); }
.line__ctl .rm { width: auto; padding: 0 10px; font-size: .82rem; }
.sum { display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum__total { font: 900 1.3rem var(--display); border-top: 3px solid var(--green-deep); padding-top: 10px; margin-top: 4px; }
.sum__note { font-size: .9rem; color: var(--green-ink); }
.cart__zip { display: flex; gap: 8px; align-items: center; }
.cart__zip input { width: 130px; font: 700 1rem var(--display); letter-spacing: .06em; padding: 10px 12px 8px; border-radius: 12px; border: 2px dashed var(--gold); }
.cart .cta { width: 100%; }
.empty { display: grid; gap: 14px; justify-items: start; color: var(--green-ink); }
.empty b { font: 900 1.4rem var(--display); color: var(--green-deep); }
.ghost { background: none; border: 2px solid var(--green); color: var(--green-deep); font: 800 1rem var(--display); border-radius: 12px; padding: 12px 16px 10px; cursor: pointer; }

/* signature: one pulse when your stop lights */
@keyframes stationPulse { 0% { r: 9; } 40% { r: 15; } 100% { r: 11; } }
.map__svg .st.is-pulse { animation: stationPulse .7s var(--ease) both; }

/* desktop: keep the whole buy box inside the first screen */
@media (min-width: 861px) {
  .map__svg { max-height: 176px; }
}
.opts__save { display: none; margin-left: 8px; vertical-align: middle; }

@media (min-width: 861px) and (max-height: 830px) { .map__svg { max-height: 136px; } .buy__title { font-size: 2.6rem; } }

/* 102 Blend: a note, not a flavor (Ken, 2026-11-11) */
.inside__aside { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--green-deep); font-size: .92rem; max-width: 52ch; }

/* Plan options size to the buy column, not the window (half-screen windows squeezed 3 pills into ~450px). */
.opt__meta em.ribbon { margin: 0 0 0 6px; vertical-align: middle; }
@container buy (min-width: 600px) {
  .opts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opt { grid-template-columns: 18px 1fr; column-gap: 10px; row-gap: 1px; padding: 10px 12px; }
  .opt__ring { width: 18px; height: 18px; grid-row: span 2; }
  .opt__text { white-space: nowrap; }
  .opt__meta { grid-column: 2; }
  .opt__meta em.ribbon { display: none; }
  .opts__save { display: inline-block; }
}
@container buy (max-width: 360px) {
  .stop__row { grid-template-columns: 1fr; }
  .opt { padding: 12px 14px; gap: 10px; }
  .opt__meta em.ribbon { display: none; }
  .opts__save { display: inline-block; }
}

/* estimated cold shipping, in the ship card */
.rates { margin: 14px 0 0; display: grid; gap: 0; }
.rates > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #C9D6D0; }
.rates dt { font: 800 1rem var(--display); color: var(--green-deep); }
.rates dt span { display: block; font: 500 .82rem var(--body); color: var(--green-ink); margin-top: 1px; }
.rates dd { margin: 0; font: 800 1rem var(--display); color: var(--green-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rates__more { margin-top: 10px; font-size: .92rem; color: var(--green-ink); }

/* trains on the line (see app.js): a car runs the track, stops flash gold as it passes, Oakland glows green */
.map__svg .trainpath { fill: none; stroke: none; }
.map__svg .train { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 3; transition: opacity .4s var(--ease); }
.map__svg .train.is-gone { opacity: 0; }
@keyframes stopFlash { 0% { fill: var(--green); } 25% { fill: var(--gold); r: 12; } 100% { fill: var(--green); } }
.map__svg .st.is-flash:not(.is-lit) { animation: stopFlash .55s var(--ease) both; stroke-dasharray: none; }
.map__svg .lbl.is-flash { fill: var(--gold-soft); }
@keyframes homeGlow { 0%, 100% { fill: var(--white); stroke: var(--white); } 50% { fill: var(--leaf); stroke: var(--white); } }
.map__svg .st--origin.is-home { animation: homeGlow 2.4s ease-in-out infinite; }
.map__svg .coldbox rect { fill: var(--white); stroke: var(--gold); stroke-width: 2.5; }
.map__svg .coldbox path { stroke: var(--gold); stroke-width: 2; fill: none; stroke-linecap: round; }
.map__svg .coldbox .coldbox__flake { stroke: var(--green); }

/* flavor: a ring in the gel color frames the jar photo */
.gallery__frame { outline: 4px solid var(--gel); outline-offset: 5px; transition: outline-color .6s var(--ease); }

/* subscription savings under the price */
.price-col { display: grid; gap: 4px; min-width: 0; }
.buy__save { color: var(--on-green-2); font-size: .95rem; margin: 0; }
.buy__save b { color: var(--white); font-weight: 800; }
.buy__save.is-on b { color: var(--gold-soft); }

/* where the "How often" ribbon is showing, it carries the savings and the line under the price stays for screen readers only */
@container buy (min-width: 600px) { .buy__save { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@container buy (max-width: 360px) { .buy__save { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* pause for the always-running trains (top-left of the hero map) */
.hero { position: relative; }
.trains-toggle { position: absolute; z-index: 2; top: 10px; left: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: none; border: 2px dashed rgba(255,255,255,.45); color: var(--on-green-2); cursor: pointer; transition: border-color .3s var(--ease), color .3s var(--ease); }
.trains-toggle:hover { border-color: var(--gold-soft); color: var(--white); }
.trains-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.trains-toggle path { stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.trains-toggle .i-play { display: none; fill: currentColor; }
.trains-toggle[aria-pressed="true"] .i-play { display: block; }
.trains-toggle[aria-pressed="true"] .i-pause { display: none; }

/* checkout preview: the steps ride the same line as the map */
.co { display: grid; gap: 16px; align-content: start; }
.co h3 { font-size: 1.6rem; font-weight: 900; margin-top: 4px; }
.co h3:focus { outline: none; }
.co h3:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; }
.co-line { list-style: none; margin: 0 0 2px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.co-line li { position: relative; display: grid; justify-items: center; gap: 6px; font: 700 .78rem/1.2 var(--display); color: var(--green-ink); text-align: center; }
.co-line li::before { content: ''; position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid #B9CEC5; }
.co-line li::after { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 4px; background: #DCE6E1; }
.co-line li:first-child::after { display: none; }
.co-line li.is-past::before { background: var(--green); border-color: var(--green); }
.co-line li.is-past::after, .co-line li.is-here::after { background: var(--gold); }
.co-line li.is-here { color: var(--green-deep); font-weight: 900; }
.co-line li.is-here::before { background: var(--gold); border-color: var(--green-deep); }
.fld { display: grid; gap: 5px; font: 700 .92rem var(--display); color: var(--green-deep); min-width: 0; }
.fld input { width: 100%; min-width: 0; font: 400 1rem var(--body); color: var(--green-deep); background: var(--white); padding: 11px 12px; border: 1.5px solid #9DB8AC; border-radius: 12px; transition: border-color .2s var(--ease); }
.fld input:hover { border-color: var(--green); }
.fld input:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 1px; border-color: var(--green); }
.fld input.code { font: 800 1.4rem var(--display); letter-spacing: .4em; padding: 10px 14px 8px; max-width: 220px; }
.fld--state input { text-transform: uppercase; }
.co-form { display: grid; gap: 12px; }
.co-row { display: grid; grid-template-columns: 1fr 64px 96px; gap: 10px; }
.co-note { font-size: .9rem; color: var(--green-ink); }
.co-note--preview { border-top: 2px dashed var(--gold); padding-top: 8px; color: var(--gold-text); font-weight: 600; }
.co-err { color: #A1261B; font-weight: 700; }
.chk { display: flex; gap: 10px; align-items: center; font-size: .95rem; cursor: pointer; }
.chk input, .co-who input, .co-pick input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; flex: none; }
.co-who { margin: 0; border: 2px dashed var(--gold); border-radius: 14px; padding: 6px 10px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.co-who legend { font: 700 .82rem var(--display); color: var(--gold-text); padding: 0 6px; }
.co-who label { flex: 1 1 130px; display: flex; gap: 8px; align-items: center; font: 800 .98rem var(--display); padding: 9px 10px 7px; border-radius: 10px; cursor: pointer; }
.co-who label:has(:checked) { background: var(--gold-soft); }
.co-pick, .co-days { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.co-pick legend, .co-days legend { font: 800 1rem var(--display); margin-bottom: 8px; padding: 0; }
.co-pick label { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid #9DB8AC; border-radius: 14px; cursor: pointer; line-height: 1.45; transition: border-color .2s var(--ease), background .2s var(--ease); }
.co-pick label:has(:checked) { border: 2px solid var(--green); background: var(--mist); padding: 13.5px; }
.co-pick input { margin-top: 3px; }
.co-days { grid-template-columns: repeat(3, 1fr); }
.co-days legend { grid-column: 1 / -1; }
.co-days label { position: relative; display: grid; place-items: center; text-align: center; padding: 12px 6px 10px; border: 1.5px solid #9DB8AC; border-radius: 12px; font: 800 .95rem/1.2 var(--display); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.co-days input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.co-days label:hover { border-color: var(--green); }
.co-days label:has(:checked) { background: var(--green); border-color: var(--green); color: var(--white); }
.co-days label:has(:focus-visible) { outline: 3px solid var(--green-deep); outline-offset: 2px; }
.co-opt { border: 2px solid var(--green); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; background: var(--mist); }
.co-opt > div { display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.co-opt p { font-size: .92rem; color: var(--green-ink); }
.co-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--green-ink); }
.co-list li::marker { color: var(--gold); }
.co-sum { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 6px; border-bottom: 2px dashed #DCE6E1; font-variant-numeric: tabular-nums; }
.co-sum li { display: flex; justify-content: space-between; gap: 12px; }
.co-dl { margin: 0; display: grid; gap: 10px; }
.co-dl div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; font-size: .95rem; }
.co-dl dt { font: 800 .92rem var(--display); }
.co-dl dd { margin: 0; color: var(--green-ink); overflow-wrap: anywhere; }
.co-pay { border: 2px dashed var(--gold); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.co-pay b { font: 800 1rem var(--display); }
.co-pay p { font-size: .92rem; color: var(--green-ink); }
.co-link { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--green); font: 600 .9rem var(--body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.co .ghost { width: 100%; }
