/* THE MOTHER'S TOUCH — app shell styles
   Palette per BRAND_CORE §6. Display: Zodiak (Fontshare). Body: Switzer (Fontshare). */

:root {
  --cream: #f6f2e9;
  --surface: #fffdf7;
  --forest: #1e3b2c;
  --forest-soft: #2c5340;
  --sage: #9db89b;
  --sage-tint: #e6ede4;
  --terracotta: #c4653c;
  --honey: #e0a32e;
  --ink: #23291f;
  --muted: #6f7a68;
  --line: rgba(30, 59, 44, 0.1);

  --font-display: "Zodiak", "Iowan Old Style", serif;
  --font-body: "Switzer", ui-sans-serif, system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(30, 59, 44, 0.05), 0 6px 18px -12px rgba(30, 59, 44, 0.25);
  --shadow-md: 0 2px 6px rgba(30, 59, 44, 0.06), 0 18px 40px -24px rgba(30, 59, 44, 0.35);
  --shadow-lg: 0 30px 70px -30px rgba(30, 59, 44, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #ece6d9;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- desktop phone frame ---------- */
.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(1000px 600px at 20% 0%, #f2ede0, transparent 60%),
    radial-gradient(800px 700px at 100% 100%, #e3e9dd, transparent 55%),
    #ece6d9;
}
.phone {
  position: relative;
  width: 390px;
  max-width: 100vw;
  height: 100dvh;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
@media (min-width: 760px) {
  .stage { padding: 28px; }
  .phone {
    height: min(880px, calc(100dvh - 56px));
    border-radius: 44px;
    box-shadow: var(--shadow-lg), 0 0 0 10px #1b2b22, 0 0 0 11px rgba(255, 255, 255, 0.12);
  }
  .desk-note { display: block; }
}
.desk-note {
  display: none;
  position: fixed;
  left: 28px;
  bottom: 26px;
  max-width: 230px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7565;
}
.desk-note b { font-family: var(--font-display); font-size: 14px; color: var(--forest); }

/* ---------- header ---------- */
.appbar {
  flex: 0 0 auto;
  padding: 14px 18px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(var(--cream) 70%, rgba(246, 242, 233, 0));
  z-index: 5;
}
.brandmark { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.brandmark svg { width: 24px; height: 24px; color: var(--forest); flex: 0 0 auto; }
.brandmark .bt { min-width: 0; overflow: hidden; display: block; }
.brandmark .bn, .brandmark .bs { display: block; max-width: 100%; }
.brandmark .bn {
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.05;
  color: var(--forest);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brandmark .bs {
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  overflow: hidden;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--sage-tint);
  border: 1px solid var(--line);
}
.lang button {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--forest-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--forest); color: #f7f4ea; }
.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 17px; height: 17px; color: var(--forest); }

/* ---------- scroll area ---------- */
.screen {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 4px 18px 120px;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.fade-in { animation: fadeUp 0.42s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- type helpers ---------- */
.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}
.h-display { font-size: 27px; line-height: 1.12; color: var(--forest); }
.h-section { font-size: 19px; line-height: 1.2; color: var(--forest); font-family: var(--font-display); font-weight: 600; }
.body { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.tiny { font-size: 11px; line-height: 1.5; color: var(--muted); }
.serif-quote { font-family: var(--font-display); font-size: 16px; line-height: 1.45; color: var(--forest-soft); }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.card-flush { padding: 0; overflow: hidden; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 26px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--sage-tint);
  color: var(--forest-soft);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill.honey { background: rgba(224, 163, 46, 0.16); color: #8a5f10; }
.pill.terra { background: rgba(196, 101, 60, 0.14); color: #97441f; }
.pill.forest { background: var(--forest); color: #f4f1e6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--forest);
  color: #f7f4ea;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), background 0.25s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.975); }
.btn svg { width: 16px; height: 16px; }
.btn.terra { background: var(--terracotta); }
.btn.ghost { background: transparent; color: var(--forest); border: 1px solid rgba(30, 59, 44, 0.22); box-shadow: none; }
.btn.sage { background: var(--sage-tint); color: var(--forest); box-shadow: none; }
.btn.sm { width: auto; padding: 9px 14px; font-size: 12.5px; }
.btn.added { background: var(--sage); }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px 4px;
  border-radius: 16px;
  color: #93a08d;
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}
.tab svg { width: 21px; height: 21px; }
.tab span { font-size: 9.5px; letter-spacing: 0.06em; font-weight: 600; text-transform: uppercase; }
.tab[aria-selected="true"] { color: var(--forest); background: var(--sage-tint); }
.tab .dot {
  position: absolute;
  margin-top: -3px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--terracotta);
  transform: translate(14px, 0);
}

/* ---------- today ---------- */
.hello { padding: 8px 2px 4px; }
.brew-card { position: relative; overflow: hidden; padding: 0; }
.brew-media { position: relative; height: 148px; background: #dfe6da; }
.brew-media img { width: 100%; height: 100%; object-fit: cover; }
.brew-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 59, 44, 0.05), rgba(30, 59, 44, 0.62));
}
.brew-media .badge { position: absolute; left: 14px; top: 14px; z-index: 2; }
.brew-media .cap { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; color: #fdfbf3; }
.brew-media .cap h3 { font-size: 21px; color: #fdfbf3; }
.brew-media .cap p { font-size: 12px; color: rgba(253, 251, 243, 0.82); margin-top: 2px; }
.brew-body { padding: 16px 18px 18px; display: flex; gap: 16px; align-items: center; }

.ring { position: relative; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .ring-track { stroke: var(--sage-tint); }
.ring .ring-bar { stroke: var(--terracotta); stroke-linecap: round; transition: stroke-dashoffset 0.9s var(--ease); }
.ring .ring-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  line-height: 1;
}
.ring .ring-num { font-family: var(--font-display); font-size: 20px; color: var(--forest); }
.ring .ring-sub { font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-top: 3px; }
.ring.sm .ring-num { font-size: 16px; }

.next-action { display: flex; gap: 12px; align-items: flex-start; }
.next-action .mark {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 12px;
  background: rgba(224, 163, 46, 0.16); display: grid; place-items: center;
}
.next-action .mark svg { width: 17px; height: 17px; color: #a4761a; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.stat .n { font-family: var(--font-display); font-size: 24px; color: var(--forest); line-height: 1; }
.stat .l { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.suggest { display: flex; gap: 14px; align-items: center; }
.suggest img { width: 74px; height: 74px; border-radius: var(--r-md); object-fit: cover; flex: 0 0 auto; }

/* ---------- bases ---------- */
.group-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.group-head .count { font-size: 11px; color: var(--sage); font-weight: 600; }
.kit-list { display: grid; gap: 12px; }
.kit {
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.kit:active { transform: scale(0.985); box-shadow: var(--shadow-md); }
.kit .thumb {
  width: 58px; height: 58px; border-radius: 14px; flex: 0 0 auto;
  object-fit: cover; background: var(--sage-tint);
}
.kit .kt { min-width: 0; flex: 1 1 auto; }
.kit .kn { font-family: var(--font-display); font-size: 15.5px; color: var(--forest); line-height: 1.2; }
.kit .kd {
  font-size: 12px; color: var(--muted); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kit .chev { color: var(--sage); flex: 0 0 auto; }
.kit .chev svg { width: 16px; height: 16px; }

.seg {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px;
  scrollbar-width: none; margin: 0 -18px; padding-inline: 18px;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--forest-soft);
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--forest); color: #f6f2e6; border-color: var(--forest); }

/* detail */
.detail-hero { position: relative; margin: 0 -18px 0; }
.detail-hero img { width: 100%; height: 216px; object-fit: cover; }
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 59, 44, 0.35) 0%, rgba(30, 59, 44, 0.05) 40%, var(--cream) 100%);
}
.detail-hero .back {
  position: absolute; left: 14px; top: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255, 253, 247, 0.9); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.detail-hero .back svg { width: 17px; height: 17px; color: var(--forest); }
.detail-title { position: relative; z-index: 2; margin-top: -46px; }

.add-list { display: grid; gap: 8px; }
.add-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
}
.add-item .bullet { width: 7px; height: 7px; border-radius: 999px; background: var(--terracotta); flex: 0 0 auto; }
.add-item .qty { margin-left: auto; font-size: 11.5px; color: var(--sage); }

.steps { counter-reset: s; display: grid; gap: 12px; }
.step { display: flex; gap: 12px; }
.step .n {
  counter-increment: s;
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px;
  background: var(--forest); color: #f5f1e5;
  font-size: 12px; font-weight: 600;
  display: grid; place-items: center;
}
.step .n::before { content: counter(s); }
.step p { font-size: 13.5px; line-height: 1.55; color: #414a3d; }

.disclaimer {
  border-radius: var(--r-md);
  border: 1px dashed rgba(30, 59, 44, 0.25);
  background: rgba(157, 184, 155, 0.12);
  padding: 13px 14px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #4d5748;
}
.disclaimer + .disclaimer { margin-top: 8px; }
.warn-hard {
  border-radius: var(--r-md);
  background: var(--terracotta);
  color: #fff6ef;
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}
.warn-hard .t {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.warn-hard p { font-size: 12px; line-height: 1.55; margin-top: 6px; color: rgba(255, 246, 239, 0.94); }

/* video slot */
.vslot {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #22352a;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  width: 100%;
  text-align: center;
}
.vslot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vslot::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(22, 36, 27, 0.28), rgba(22, 36, 27, 0.72));
}
.vslot .vinner { position: relative; z-index: 2; color: #f4f1e6; padding: 12px; }
.vslot .play {
  width: 48px; height: 48px; border-radius: 999px; margin: 0 auto 8px;
  background: rgba(255, 253, 247, 0.94); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.vslot .play svg { width: 18px; height: 18px; color: var(--forest); margin-left: 2px; }
.vslot .vt { font-family: var(--font-display); font-size: 15px; }
.vslot .vd { font-size: 11px; color: rgba(244, 241, 230, 0.8); margin-top: 2px; }

/* ---------- shopping list ---------- */
.shop-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.check {
  width: 24px; height: 24px; border-radius: 8px; flex: 0 0 auto;
  border: 1.5px solid var(--sage);
  display: grid; place-items: center;
  background: var(--surface);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity 0.18s; }
.check[aria-checked="true"] { background: var(--forest); border-color: var(--forest); }
.check[aria-checked="true"] svg { opacity: 1; }
.shop-item.done .sn { text-decoration: line-through; color: var(--sage); }
.shop-item .sn { font-size: 14px; }
.shop-item .sf { font-size: 11px; color: var(--sage); margin-top: 2px; }
.shop-item .kill { margin-left: auto; color: var(--sage); padding: 6px; }
.shop-item .kill svg { width: 15px; height: 15px; }

.empty {
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(30, 59, 44, 0.18);
  background: rgba(255, 253, 247, 0.6);
}
.empty svg { width: 34px; height: 34px; color: var(--sage); margin: 0 auto 12px; }

/* ---------- timers ---------- */
.timer-card { padding: 16px 18px; }
.timer-top { display: flex; gap: 16px; align-items: center; }
.timer-meta { min-width: 0; }
.timer-note {
  margin-top: 14px; padding: 12px 13px; border-radius: 14px;
  background: rgba(224, 163, 46, 0.13);
  font-size: 12px; line-height: 1.55; color: #7d5a12;
  display: flex; gap: 9px; align-items: flex-start;
}
.timer-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.bar { display: block; height: 6px; border-radius: 999px; background: var(--sage-tint); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sage), var(--terracotta)); transition: width 0.7s var(--ease); }
.timer-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.field { display: grid; gap: 7px; }
.field label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field select, .field input[type="text"], .field input[type="number"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 14px;
  appearance: none;
}
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice button {
  padding: 12px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--cream); font-size: 13px; font-weight: 600; color: var(--forest-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.choice button[aria-pressed="true"] { background: var(--forest); color: #f6f2e6; border-color: var(--forest); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper .sbtn {
  width: 42px; height: 42px; border-radius: 999px; background: var(--sage-tint);
  display: grid; place-items: center; color: var(--forest); font-size: 19px; font-family: var(--font-display);
}
.stepper .val { font-family: var(--font-display); font-size: 26px; color: var(--forest); min-width: 92px; text-align: center; }
.stepper .val small { font-family: var(--font-body); font-size: 12px; color: var(--muted); display: block; letter-spacing: 0.08em; text-transform: uppercase; }
.ph-step { display: flex; gap: 10px; align-items: center; }

/* ---------- watch ---------- */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vcard { text-align: left; width: 100%; }
.vthumb {
  display: block;
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 3; background: #2b3d31; box-shadow: var(--shadow-sm);
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,59,44,0.05), rgba(30,59,44,0.5)); }
.vthumb .dur {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(30, 59, 44, 0.78); color: #f6f2e6;
  font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 999px;
}
.vthumb .pp {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 999px; background: rgba(255,253,247,0.92);
  display: grid; place-items: center;
}
.vthumb .pp svg { width: 12px; height: 12px; color: var(--forest); margin-left: 1px; }
.vcard .vn { font-size: 13px; font-weight: 600; color: var(--forest); margin-top: 8px; line-height: 1.3; }
.vcard .vc { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-top: 3px; }

.player-wrap { margin: 0 -18px; background: #16241c; }
.player-wrap video { width: 100%; display: block; max-height: 52vh; background: #16241c; }
.coming-soon {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 18px;
  background: #1d2f25;
}
.coming-soon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.coming-soon .cs { position: relative; z-index: 2; color: #f2efe4; }
.coming-soon .cs .t { font-family: var(--font-display); font-size: 18px; }
.coming-soon .cs p { font-size: 12px; color: rgba(242, 239, 228, 0.78); margin-top: 6px; }

/* ---------- vessels ---------- */
.vessel {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px; box-shadow: var(--shadow-sm);
}
.vessel .vi {
  width: 54px; height: 66px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(160deg, #e7ecdf, #cfdac8);
  display: grid; place-items: center; overflow: hidden;
}
.vessel .vi img { width: 100%; height: 100%; object-fit: cover; }
.vessel .vv { min-width: 0; flex: 1 1 auto; }
.impact {
  border-radius: var(--r-lg);
  padding: 20px;
  color: #f4f1e5;
  background: linear-gradient(150deg, var(--forest) 0%, #16301f 70%);
  box-shadow: var(--shadow-md);
}
.impact .eyebrow { color: var(--sage); }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.impact-grid .n { font-family: var(--font-display); font-size: 25px; line-height: 1; }
.impact-grid .l { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244, 241, 229, 0.66); margin-top: 5px; }

.map {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  height: 168px; border: 1px solid var(--line);
  background:
    linear-gradient(0deg, rgba(157,184,155,0.28), rgba(157,184,155,0.28)),
    repeating-linear-gradient(90deg, rgba(30,59,44,0.09) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(30,59,44,0.09) 0 1px, transparent 1px 34px),
    #eef1e6;
}
.map .water { position: absolute; inset: auto -10% -18% 40%; height: 62%; background: rgba(120,164,178,0.35); transform: rotate(-8deg); border-radius: 40% 60% 0 0; }
.map .pin { position: absolute; transform: translate(-50%, -100%); }
.map .pin i {
  display: block; width: 13px; height: 13px; border-radius: 999px;
  background: var(--terracotta); border: 2.5px solid #fffdf7; box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.map .maplabel {
  position: absolute; left: 12px; bottom: 10px;
  background: rgba(255,253,247,0.92); border-radius: 999px; padding: 5px 11px;
  font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--forest-soft); font-weight: 600;
}
.station { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.station:last-child { border-bottom: 0; }
.station .sd { min-width: 0; flex: 1 1 auto; }
.station .dist { font-size: 11.5px; color: var(--sage); font-weight: 600; flex: 0 0 auto; }

/* ---------- sheet / modal ---------- */
.scrim {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(22, 36, 27, 0.42);
  backdrop-filter: blur(2px);
  animation: fade 0.28s var(--ease) both;
  display: flex; align-items: flex-end;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 88%;
  overflow-y: auto;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.34s var(--ease) both;
}
@keyframes slideUp { from { transform: translateY(22px); } to { transform: none; } }
.sheet .grab { width: 42px; height: 4px; border-radius: 999px; background: var(--sage-tint); margin: 4px auto 16px; }

/* onboarding */
.onboard {
  position: absolute; inset: 0; z-index: 60;
  background: linear-gradient(165deg, #1e3b2c 0%, #16301f 60%, #12261a 100%);
  color: #f4f1e5;
  display: flex; flex-direction: column;
  padding: 26px 24px calc(24px + env(safe-area-inset-bottom));
  animation: fade 0.4s var(--ease) both;
}
.onboard .ob-media {
  flex: 1 1 auto; min-height: 0;
  border-radius: var(--r-lg); overflow: hidden; margin: 18px 0 22px;
  background: rgba(255,255,255,0.06);
}
.onboard .ob-media img { width: 100%; height: 100%; object-fit: cover; }
.onboard h2 { font-size: 26px; line-height: 1.14; color: #fbf8ee; }
.onboard p { font-size: 14px; line-height: 1.6; color: rgba(244, 241, 229, 0.78); margin-top: 10px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 18px 0 16px; }
.dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(244,241,229,0.3); transition: width 0.3s var(--ease), background 0.3s; }
.dots i.on { width: 20px; background: var(--honey); }
.onboard .btn { background: var(--honey); color: #2a1f06; }
.onboard .skip { display: block; width: 100%; text-align: center; margin-top: 12px; font-size: 12.5px; color: rgba(244,241,229,0.6); }

/* toast */
.toast {
  position: absolute; left: 18px; right: 18px; bottom: 92px; z-index: 50;
  background: var(--forest); color: #f5f2e7;
  border-radius: var(--r-md); padding: 13px 16px;
  font-size: 13px; box-shadow: var(--shadow-md);
  display: flex; gap: 10px; align-items: center;
  animation: toastIn 0.3s var(--ease) both;
}
.toast svg { width: 16px; height: 16px; color: var(--sage); flex: 0 0 auto; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* scanner mock */
.scanbox {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden;
  background: #18291f; display: grid; place-items: center;
}
.scanbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.scanbox .frame {
  display: block;
  position: relative; z-index: 2; width: 62%; aspect-ratio: 1; border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(224, 163, 46, 0.9), 0 0 0 2000px rgba(18, 41, 31, 0.35);
}
.scanbox .laser {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--honey);
  box-shadow: 0 0 14px 2px rgba(224,163,46,0.7);
  animation: scan 2.1s var(--ease) infinite alternate;
}
@keyframes scan { from { top: 6%; } to { top: 94%; } }

.vthumb .dur.soon {
  left: 8px; right: auto;
  background: rgba(255, 253, 247, 0.9);
  color: var(--forest-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
