/* ============================================================
   Roaminder site — 2026-09-15 rebuild layer.
   Sits on top of site.css: app mockups, Roami, the Fred story,
   and the simpler, shorter page sections.
   App colours are the app's dark theme (v5_app/src/theme/theme.ts,
   default "sky" accent).
   ============================================================ */

:root {
  --app-bg: #15171A;
  --app-surface: #1F2226;
  --app-border: #33373D;
  --app-text: #F1F2F4;
  --app-muted: #9CA3AF;
  --app-faint: #6B7280;
  --app-primary: #38BDF8;
  --app-primary-on: #7DD3FC;
  --app-primary-bg: #12303F;
  --app-accent: #F59E0B;
  --app-accent-bg: #3A2A12;
  --app-chip: #2A2D32;
  --app-chip-text: #E4E4E7;
  --app-nearby: #6BD183;
  --app-grad: linear-gradient(135deg, #38BDF8, #0EA5E9 55%, #0284C7);
}

/* ---------- header additions ---------- */
.nav-mylist {
  padding: 8px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--border-2); color: var(--text);
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.nav-mylist:hover { border-color: var(--teal-500); color: var(--text); }
.nav-mylist b { color: var(--teal-300); font-weight: 800; }
.nav-mylist .pre { color: var(--muted); }
@media (max-width: 1160px) { .nav-mylist .pre { display: none; } }
.nav-links .only-menu { display: none; }
@media (max-width: 900px) {
  .nav-mylist { display: none; }
  .nav-links .only-menu { display: block; }
  .nav-links .only-menu.cta { color: var(--teal-300); font-weight: 800; }
}

/* ---------- type rhythm: short and big ---------- */
.big-lede { font-size: clamp(1.15rem, 2.3vw, 1.45rem); color: var(--muted); line-height: 1.5; max-width: 34ch; }
.center .big-lede { margin-inline: auto; }
#fred .big-lede { max-width: 56ch; } /* keep Fred's line unbroken */
.kicker { font-weight: 800; color: var(--text); }
.hero h1 { font-size: clamp(2.5rem, 6.6vw, 4.6rem); }
.returning {
  margin-top: 18px; font-size: .95rem; color: var(--muted);
}
.returning a { font-weight: 700; }
.beta-note { font-size: .85rem; color: var(--faint); margin-top: 12px; }

/* ---------- phone mockup (HTML, not a picture) ---------- */
.mphone {
  position: relative; width: 100%; max-width: 300px; margin-inline: auto;
  aspect-ratio: 300 / 620;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2B3038, #0D0F12);
  box-shadow: 0 0 0 1px #3A404A, var(--shadow-lg), 0 30px 80px -30px rgba(56,189,248,.35);
}
.mphone::after { /* camera */
  content: ""; position: absolute; top: 22px; left: 50%; width: 11px; height: 11px; margin-left: -5px;
  border-radius: 50%; background: #06080A; box-shadow: 0 0 0 2px #1B1F24; z-index: 5;
}
.ms {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 34px; background: var(--app-bg); color: var(--app-text);
  font-family: var(--font); font-size: 12px; line-height: 1.3;
  display: flex; flex-direction: column;
  container-type: inline-size;
}
.ms * { box-sizing: border-box; }
.ms-status { height: 34px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 22px 0; font-size: 10.5px; font-weight: 700; color: var(--app-text); }
.ms-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; }
.ms-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.ms-gear { width: 28px; height: 28px; border-radius: 50%; background: var(--app-chip); display: grid; place-items: center; font-size: 14px; }
.ms-label { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--app-faint); padding: 0 16px 6px; text-transform: uppercase; }
.ms-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.ms-pill { background: var(--app-chip); color: var(--app-chip-text); border-radius: 999px; padding: 6px 11px; font-size: 11px; font-weight: 700; }
.ms-pill.add { background: transparent; border: 1px dashed var(--app-border); color: var(--app-muted); }
.ms-sec { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 16px 12px; }
.ms-sec b { font-size: 15px; font-weight: 800; }
.ms-sec span { font-size: 10.5px; color: var(--app-muted); }
.ms-body { flex: 1; overflow: hidden; padding: 0 12px; }
.ms-store {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--app-surface); border: 1px solid var(--app-border);
  border-radius: 14px; padding: 12px; margin-bottom: 9px;
}
.ms-store.best { background: var(--app-accent-bg); border: 2px solid var(--app-accent); margin-top: 10px; padding-top: 15px; }
.ms-badge {
  position: absolute; top: -9px; left: 12px; padding: 1px 8px; border-radius: 999px;
  background: var(--app-bg); border: 1.5px solid var(--app-accent); color: var(--app-accent);
  font-size: 9.5px; font-weight: 800;
}
.ms-store .nm { flex: 1; min-width: 0; }
.ms-store .nm b { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-store .nm span { display: block; font-size: 10px; color: var(--app-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-store .nm .near { color: var(--app-nearby); font-weight: 700; }
.ms-count { flex: none; background: var(--app-bg); border: 1px solid var(--app-border); color: var(--app-primary); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; }

.ms-tabs { flex: none; position: relative; height: 62px; display: flex; align-items: flex-start; justify-content: space-around; padding-top: 8px; background: var(--app-surface); border-top: 1px solid var(--app-border); }
.ms-tab { display: grid; justify-items: center; gap: 1px; font-size: 9px; color: var(--app-faint); font-weight: 600; width: 44px; }
.ms-tab i { font-style: normal; font-size: 16px; line-height: 1.2; }
.ms-tab.on { color: var(--app-primary); }
.ms-fab { width: 50px; height: 50px; margin-top: -6px; z-index: 5; border-radius: 50%; background: var(--app-grad); border: 4px solid var(--app-surface); display: grid; place-items: center; color: #0C1116; font-size: 26px; font-weight: 500; line-height: 1; }

.ms-notif {
  position: absolute; left: 10px; right: 10px; top: 40px; z-index: 6;
  display: flex; gap: 9px; align-items: flex-start;
  background: rgba(31,34,38,.97); border: 1px solid rgba(125,211,252,.45);
  border-radius: 16px; padding: 10px 11px; box-shadow: 0 16px 34px -10px rgba(0,0,0,.7);
  transform-origin: top center;
  animation: notifDrop 8s cubic-bezier(.22,1,.36,1) infinite;
}
@keyframes notifDrop {
  0%       { opacity: 0; transform: translateY(-140%) scale(.96); }
  6%       { opacity: 1; transform: translateY(0) scale(1); }
  10%, 62% { opacity: 1; transform: translateY(0) scale(1); }
  72%      { opacity: 0; transform: translateY(-140%) scale(.96); }
  100%     { opacity: 0; transform: translateY(-140%) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  .ms-notif { animation: none; }
}
.ms-notif .ic { width: 26px; height: 26px; flex: none; border-radius: 7px; background: #14BDB6 url("../img/icon.png") center/cover; }
.ms-notif small { display: block; font-size: 9px; letter-spacing: .08em; font-weight: 800; color: var(--app-primary-on); text-transform: uppercase; }
.ms-notif p { margin: 1px 0 0; font-size: 11.5px; font-weight: 600; color: var(--app-text); line-height: 1.3; }

/* items */
.ms-seg { display: flex; margin: 2px 16px 10px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 999px; padding: 3px; }
.ms-seg span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; padding: 5px 0; border-radius: 999px; color: var(--app-muted); }
.ms-seg span.on { background: var(--app-primary); color: #0C1116; }
.ms-group { font-size: 10px; font-weight: 800; color: var(--app-muted); padding: 2px 16px 6px; }
.ms-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 12px 6px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 12px; }
.ms-row .ck { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--app-border); }
.ms-row .ck.done { background: var(--app-primary); border-color: var(--app-primary); position: relative; }
.ms-row .ck.done::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #0C1116; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ms-row .tx { flex: 1; min-width: 0; }
.ms-row .tx small { display: block; font-size: 9px; color: var(--app-muted); }
.ms-row .tx b { display: block; font-size: 12px; font-weight: 600; }
.ms-row .tx b.x { text-decoration: line-through; color: var(--app-faint); }
.ms-row .dots { color: var(--app-faint); font-weight: 900; }
.ms-row .tag { font-size: 10px; }
.ms-foot { padding: 8px 14px 10px; flex: none; }
.ms-btn { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 10px; font-size: 12px; font-weight: 800; border: 1.5px solid var(--app-primary); color: var(--app-primary); }
.ms-btn.solid { background: var(--app-grad); color: #fff; border-color: transparent; }

/* lists tiles */
.ms-tile { display: flex; align-items: center; gap: 12px; margin: 0 14px 10px; padding: 16px 14px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 18px; }
.ms-tile .em { font-size: 24px; }
.ms-tile b { display: block; font-size: 14px; font-weight: 800; }
.ms-tile span { display: block; font-size: 10.5px; color: var(--app-muted); }

/* roami pop-in inside a phone */
.ms-roami { position: absolute; left: 0; right: 0; bottom: 60px; z-index: 4; padding: 0 10px; }
.ms-bubble { position: relative; border-radius: 22px; padding: 12px; background: linear-gradient(0deg, #0284C7, #0EA5E9 60%, #38BDF8); box-shadow: 0 8px 22px rgba(2,132,199,.28); display: grid; gap: 6px; margin-bottom: 12px; }
.ms-bubble::after { content: ""; position: absolute; bottom: -9px; left: 50%; margin-left: -9px; border: 9px solid transparent; border-top-color: #0284C7; border-bottom: 0; }
.ms-say { max-width: 85%; padding: 7px 10px; border-radius: 15px; font-size: 11.5px; line-height: 1.3; }
.ms-say.you { justify-self: start; background: #fff; color: #0284C7; font-weight: 600; border-bottom-left-radius: 5px; }
.ms-say.her { justify-self: end; background: rgba(255,255,255,.2); color: #fff; border-bottom-right-radius: 5px; }
.ms-ball { width: 46px; height: 46px; margin: 0 auto -8px; border-radius: 50%; background: var(--app-surface); overflow: hidden; position: relative; z-index: 2; box-shadow: 0 0 0 3px rgba(56,189,248,.35); }
.ms-ball svg, [data-roami] svg { width: 100%; height: 100%; display: block; }
.ms-dim { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 3; }
/* Roami screen: she sits bottom-right above the tab bar, bubble above her */
.ms-talk .ms-roami { left: auto; right: 12px; bottom: 76px; width: 82%; padding: 0; }
.ms-talk .ms-bubble { margin-bottom: 16px; }
/* curved tail: leaves the bubble left of centre, sweeps right and down to her */
.ms-talk .ms-bubble::after {
  left: auto; right: 46px; bottom: -22px; margin: 0; border: 0; width: 34px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath d='M0 0 H24 C23 9 26 16 34 22 C20 21 7 14 0 0 Z' fill='%230284C7'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.ms-talk .ms-ball { margin: 0 0 0 auto; }
/* the + is drawn, not typed, so it sits dead centre in the circle */
.ms-fab { position: relative; font-size: 0; }
.ms-fab::before, .ms-fab::after, .plus-chip::before, .plus-chip::after { content: ""; position: absolute; left: 50%; top: 50%; background: #0C1116; border-radius: 2px; transform: translate(-50%, -50%); }
.ms-fab::before { width: 18px; height: 3px; }
.ms-fab::after { width: 3px; height: 18px; }
.plus-chip { position: relative; display: inline-block; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--app-grad); vertical-align: -.12em; box-shadow: 0 4px 14px rgba(14,165,233,.35); }
.plus-chip::before { width: 48%; height: 11%; }
.plus-chip::after { width: 11%; height: 48%; }
/* soft snap: centre a few whole sections when the reader stops near one */
/* soft snap is done in site.js (bindSoftSnap) so its pull can be tuned; CSS proximity was too strong */

/* camera / smart add */
.ms-cam { position: relative; flex: 1; background: radial-gradient(circle at 50% 40%, #3b3328, #16130f 75%); display: grid; place-items: center; }
.ms-paper { width: 64%; aspect-ratio: 3/4; background: #FFFBEB; border-radius: 4px; transform: rotate(-4deg); box-shadow: 0 12px 30px rgba(0,0,0,.5); padding: 16% 12%; background-image: repeating-linear-gradient(0deg, transparent 0 21px, #BFDBFE 21px 22px); }
.ms-paper p { margin: 0; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; color: #1E3A8A; font-size: 15px; line-height: 22px; }
.ms-frame { position: absolute; inset: 14% 12%; border: 2px solid rgba(255,255,255,.0); }
.ms-frame i { position: absolute; width: 22px; height: 22px; border: 3px solid var(--app-primary); }
.ms-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.ms-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.ms-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.ms-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.ms-found { background: var(--app-surface); border-top: 1px solid var(--app-border); padding: 12px 14px 14px; flex: none; }
.ms-found b { display: block; font-size: 12px; margin-bottom: 8px; }

/* 8-ball / magic */
.ms-magic { margin: 0 14px 10px; border-radius: 20px; padding: 18px 14px; text-align: center; background: radial-gradient(circle at 50% 30%, #1E3A5F, #0B1220 80%); border: 1px solid #1E3A5F; }
.ms-8 { width: 78px; height: 78px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4B5563, #030712 70%); display: grid; place-items: center; }
.ms-8 span { width: 34px; height: 34px; border-radius: 50%; background: #F9FAFB; color: #111; font-weight: 900; font-size: 18px; display: grid; place-items: center; }
.ms-magic b { display: block; font-size: 14px; }
.ms-magic span.s { display: block; font-size: 10.5px; color: var(--app-muted); margin-top: 3px; }
.ms-rec { margin: 0 14px 10px; border-radius: 16px; background: var(--app-surface); border: 1px solid var(--app-border); overflow: hidden; }
.ms-rec .ph { height: 64px; background: linear-gradient(135deg, #F59E0B, #B45309); display: grid; place-items: center; font-size: 30px; }
.ms-rec .in { padding: 10px 12px; }
.ms-rec b { font-size: 13px; display: block; }
.ms-rec span { font-size: 10.5px; color: var(--app-muted); }

/* ---------- browser + widget + watch mini mockups ---------- */
.mbrowser { border-radius: 16px; overflow: hidden; background: #fff; color: #111827; box-shadow: var(--shadow-lg); max-width: 420px; margin-inline: auto; border: 1px solid var(--border); }
.mbrowser .bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #E5E7EB; }
.mbrowser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #F87171; }
.mbrowser .bar i:nth-child(2) { background: #FBBF24; } .mbrowser .bar i:nth-child(3) { background: #34D399; }
.mbrowser .url { flex: 1; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; color: #4B5563; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mbrowser .pg { padding: 18px; font-size: 14px; }
.mbrowser h5 { margin: 0 0 2px; font-size: 18px; font-weight: 800; }
.mbrowser .ev { color: #6B7280; font-size: 12.5px; margin-bottom: 12px; }
.mb-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #E5E7EB; }
.mb-row span { flex: 1; font-weight: 600; }
.mb-row small { color: #6B7280; font-size: 12px; }
.mb-claim { border: 1.5px solid #0EA5E9; color: #0369A1; border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; }
.mb-claim.got { background: #E0F2FE; border-color: #E0F2FE; }

.mwidget { max-width: 300px; margin-inline: auto; border-radius: 26px; padding: 14px; background: rgba(31,34,38,.92); border: 1px solid var(--app-border); color: var(--app-text); box-shadow: var(--shadow-lg); font-size: 13px; }
.mwidget .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 800; }
.mwidget .hd span { color: var(--app-primary); font-size: 12px; }
.mwidget .it { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--app-border); }
.mwidget .it i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--app-border); flex: none; }

/* ---------- feature rows ---------- */
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.frow + .frow { margin-top: clamp(64px, 9vw, 120px); }
.frow.flip > :first-child { order: 2; }
.frow h2 { margin-bottom: 14px; }
.frow .art { display: flex; justify-content: center; }
@media (max-width: 820px) {
  .frow { grid-template-columns: 1fr; }
  .frow.flip > :first-child { order: 0; }
  .frow .art { order: 2; }
}
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-teal); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.28em + 4px); width: 4px; height: 8px; border: solid #032523; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks b { color: var(--text); }

.minicards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; }
.mini .em { font-size: 26px; line-height: 1; margin-bottom: 12px; display: block; }
.mini h3 { font-size: 1.12rem; margin-bottom: 6px; }
.mini p { color: var(--muted); margin: 0; font-size: .96rem; line-height: 1.5; }

.roami-hero { width: 128px; height: 128px; border-radius: 50%; background: var(--app-surface); box-shadow: 0 0 0 6px rgba(56,189,248,.14), 0 20px 50px -20px rgba(56,189,248,.6); overflow: hidden; margin-bottom: 18px; }

/* Roami idles like the app: a travelling route, a rare blink */
.roami-route { animation: roamiRoute 2.6s linear infinite; }
@keyframes roamiRoute { to { stroke-dashoffset: -28; } }
.roami-lids { transform-box: fill-box; transform-origin: 50% 0%; animation: roamiBlink 5.2s infinite; }
@keyframes roamiBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ---------- Fred ---------- */
.fred {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); background: #0C0E11; box-shadow: var(--shadow-lg);
}
.fred-stage { position: relative; aspect-ratio: 8 / 5; }
.fred-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fred-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px; background: var(--surface); border-top: 1px solid var(--border); position: relative; }
.fred-play { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad-teal); color: #032523; display: grid; place-items: center; }
.fred-play svg { width: 18px; height: 18px; }
.fred-cap { margin: 0; flex: 1; font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 700; color: var(--text); line-height: 1.35; min-height: 2.7em; display: flex; align-items: center; }
.fred-prog { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; }
.fred-prog i { display: block; height: 100%; width: 0; background: var(--grad-warm); }
.fred-sound { position: absolute; left: 14px; top: 14px; z-index: 3; border: 0; border-radius: 999px; padding: 8px 14px; font: 700 .9rem/1 inherit; font-family: inherit; color: #fff; background: rgba(10,20,30,.72); cursor: pointer; backdrop-filter: blur(4px); }
.fred-sound:hover { background: rgba(10,20,30,.9); }
.fred-sound[hidden] { display: none; }
.fred-stage.is-table { aspect-ratio: 17 / 10; background: #9d6936; }
.fred-stage.is-table text, .fred-board text { font-family: var(--font); }
.fred-track { flex: 1; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; position: relative; }
.fred-track::before { content: ""; position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--border); }
.fred-track i { position: relative; display: block; height: 6px; width: 0; border-radius: 3px; background: var(--grad-warm); }
.fred-time { flex: none; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.fred-cc { flex: none; height: 30px; padding: 0 9px; border-radius: 7px; border: 1.5px solid var(--border); background: transparent; color: var(--muted); font: 800 .78rem/1 var(--font); letter-spacing: .04em; cursor: pointer; }
.fred-cc[aria-pressed="true"] { border-color: var(--text); color: var(--text); }
.fred-credit { margin: 0; padding: 0 18px 12px; background: var(--surface); font-size: .75rem; color: var(--text-muted, #8a97a6); text-align: right; }
.fred-credit a { color: inherit; text-decoration: underline; }
.fred.is-board .fred-credit { display: none; }
.fred-fs { flex: none; width: 34px; height: 30px; border-radius: 7px; border: 1.5px solid var(--border); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.fred-fs svg { width: 17px; height: 17px; }
/* full screen: the film as large as fits, controls and credit under it */
.fred.is-fs {
  --fsw: min(100vw, calc(100dvh * 1.7)); --fsh: calc(var(--fsw) / 1.7);
  position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100dvh; max-width: none; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; background: #000;
  display: flex; flex-direction: column; justify-content: center;
}
.fred.is-fs .fred-stage { width: var(--fsw); margin: 0 auto; flex: none; }
.fred.is-fs .fred-credit { display: none; }
.fred.is-fs .fred-bar { transition: opacity .3s; }
.fred.is-fs.is-idle .fred-bar { opacity: 0; pointer-events: none; }
.fred.is-fs.is-idle { cursor: none; }
.fred.is-fs .fred-bar {
  position: absolute; z-index: 4; left: calc((100vw - var(--fsw)) / 2); width: var(--fsw);
  bottom: calc((100dvh - var(--fsh)) / 2); background: none; border-top: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.7));
}
.fred.is-fs .fred-time, .fred.is-fs .fred-cc, .fred.is-fs .fred-fs { color: #fff; border-color: rgba(255,255,255,.7); }
.fred.is-fs .fred-end[hidden] { display: none; }
[data-fred-table].is-fs .fred-end {
  position: absolute; display: block; padding: 0; background: none;
  left: calc((100vw - var(--fsw)) / 2); width: var(--fsw);
  top: calc((100dvh - var(--fsh)) / 2); height: var(--fsh); bottom: auto;
}
[data-fred-table].is-fs .fe-side { position: absolute; transform: translate(-50%, -50%); }
[data-fred-table].is-fs .fred-end .btn { padding: clamp(7px, calc(var(--fsw) * .02), 15px) clamp(12px, calc(var(--fsw) * .035), 28px); font-size: clamp(.72rem, calc(var(--fsw) * .022), 1.05rem); }
[data-fred-table].is-fs .fe-side { gap: clamp(6px, calc(var(--fsw) * .018), 14px); }
[data-fred-table].is-fs .fe-os { height: clamp(30px, calc(var(--fsw) * .065), 50px); }
html.fred-fs-lock, html.fred-fs-lock body { overflow: hidden; }
.fred-said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
@media (max-width: 420px) { .fred-time { display: none; } }
/* end card: each side sits midway between the video edge and the phone (phone spans 35%-65%) */
[data-fred-table] .fred-end { top: 0; bottom: 101px; padding: 0; display: block; }
[data-fred-table] .fe-side { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
[data-fred-table] .fe-left { left: 17.6%; }
[data-fred-table] .fe-right { left: 82.4%; }
[data-fred-table] .fred-end .btn { padding: 15px 28px; font-size: 1.05rem; white-space: nowrap; }
[data-fred-table] .fe-side { align-items: stretch; }
.fe-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fe-os { height: 50px; border-radius: 12px; display: grid; place-items: center; background: #0C0E11; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.fe-os svg { width: 24px; height: 24px; }
.fe-android svg { fill: #3DDC84; }
.fe-apple svg { fill: #fff; }
@media (max-width: 560px) {
  [data-fred-table] .fred-end { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 14px 16px 6px; }
  [data-fred-table] .fe-side { position: static; transform: none; }
  [data-fred-table] .fred-end .btn { padding: 11px 18px; font-size: .9rem; }
}
.fred-end {
  position: absolute; left: 0; right: 0; bottom: 78px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 0 16px 6%;
  animation: fredEnd .5s var(--ease) both;
}
@keyframes fredEnd { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .fred-end { position: static; padding: 14px 16px 4px; background: #0C0E11; }
  .fred-end .btn { padding: 11px 18px; font-size: .9rem; }
}
.fred.is-board .fred-bar { display: none; }
.fred.is-board .fred-end { position: static; padding: 18px; animation: none; }
.fred.is-board .fred-end[hidden] { display: flex !important; }
.fred-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 16px; }
.fred-board figure { margin: 0; }
.fred-board figure > div { position: relative; aspect-ratio: 8/5; border-radius: 12px; overflow: hidden; }
.fred-board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fred-board figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; font-weight: 600; }

/* ---------- misc ---------- */
.privacy-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.privacy-list li { display: flex; gap: 12px; align-items: baseline; font-size: 1.08rem; }
.privacy-list li span { color: var(--teal-300); font-weight: 900; }
.faq-group + .faq-group { margin-top: 42px; }
.faq-group > h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 16px; }
.fred-end[hidden] { display: none; }
@media (min-width: 900px) { .minicards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .hero .hero-art { order: 0; }
  .mphone { max-width: 280px; }
}
.ms-pills { flex-wrap: nowrap; overflow: hidden; }
.ms-found .ms-pills { flex-wrap: wrap; }
.fred.is-board [data-fred-replay] { display: none; }
@media (min-width: 900px) { .fred-board { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   Features page
   ============================================================ */
/* Lists: the three tiles share the space between header and tab bar, as in the app */
.ms-tiles { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 0 14px 12px; min-height: 0; }
.ms-tiles .ms-tile { flex: 1; margin: 0; flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
.ms-tiles .ms-tile .em { font-size: 34px; }

/* layered screens inside one phone */
.ms-layer { position: absolute; inset: 34px 0 62px; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .45s ease; background: var(--app-bg); z-index: 6; }

/* Smart Complete demo */
.ms-rows { position: relative; }
.ms-row .ck { transition: background .3s, border-color .3s; position: relative; }
.ms-row .tx b { transition: color .3s; background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0 1.5px; }
.ms-row.ok .ck { background: #4ADE80; border-color: #4ADE80; }
.ms-row.ok .ck::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #0C1116; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ms-row.ok .tx b { color: var(--app-faint); background-size: 100% 1.5px; transition: color .3s, background-size .45s ease; }
.sc-btn.pulse { animation: scPulse 1s ease-in-out 2; }
@keyframes scPulse { 50% { transform: scale(1.05); background: var(--app-primary-bg); } }
.ms-anim.cam .sc-cam { opacity: 1; }
.sc-cam .ms-cam { position: relative; }
.sc-cart { display: flex; gap: 6px; font-size: 44px; padding: 28px 18px; border-radius: 18px; background: repeating-linear-gradient(90deg, #6b7280 0 3px, transparent 3px 22px), repeating-linear-gradient(0deg, #6b7280 0 3px, transparent 3px 22px); transform: rotate(-3deg); }
.sc-scan { position: absolute; left: 12%; right: 12%; top: 14%; height: 3px; background: var(--app-primary); box-shadow: 0 0 14px var(--app-primary); animation: scScan 1.4s ease-in-out infinite alternate; }
@keyframes scScan { to { top: 84%; } }
.sc-cam .ms-found { transform: translateY(100%); transition: transform .45s cubic-bezier(.22,1,.36,1); }
.ms-anim.found .sc-cam .ms-found { transform: none; }

/* 8-Ball demo */
.eb-stage { position: relative; flex: 1; }
.eb-stage .ms-layer { inset: 0; }
[data-show="ask"] .eb-ask, [data-show="think"] .eb-think, [data-show="plan"] .eb-plan { opacity: 1; }
.ms-anim:not([data-show]) .eb-ask { opacity: 1; }
.eb-label { font-size: 10px; font-weight: 800; color: var(--app-muted); padding: 2px 16px 6px; }
.eb-input { margin: 0 14px 12px; min-height: 36px; padding: 9px 12px; border-radius: 12px; background: var(--app-surface); border: 1.5px solid var(--app-primary); font-size: 12px; font-weight: 600; display: flex; align-items: center; }
.eb-caret { display: inline-block; width: 1.5px; height: 14px; background: var(--app-primary); margin-left: 1px; animation: ebBlink 1s steps(1) infinite; }
@keyframes ebBlink { 50% { opacity: 0; } }
.eb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.eb-chips span { background: var(--app-chip); color: var(--app-chip-text); border-radius: 999px; padding: 6px 10px; font-size: 10.5px; font-weight: 700; }
.eb-chips span.on { background: var(--app-primary-bg); color: var(--app-primary-on); box-shadow: inset 0 0 0 1.5px var(--app-primary); }
.eb-think { align-items: center; justify-content: center; gap: 14px; text-align: center; }
.eb-think b { font-size: 14px; }
.ms-8.big { width: 110px; height: 110px; margin: 0; }
[data-show="think"] .ms-8.big { animation: ebShake .5s ease-in-out infinite; }
@keyframes ebShake { 25% { transform: rotate(-12deg) translateX(-6px); } 75% { transform: rotate(12deg) translateX(6px); } }
.ms-rec .eb-ph { background: linear-gradient(135deg, #6366F1, #1E1B4B); }
.eb-items { margin: 0 14px 10px; display: grid; gap: 6px; }
.eb-items div { display: flex; justify-content: space-between; align-items: center; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 10px; padding: 7px 10px; font-size: 11px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.eb-items small { color: var(--app-muted); font-size: 10px; }
[data-show="plan"] .eb-items div { opacity: 1; transform: none; }
[data-show="plan"] .eb-items div:nth-child(2) { transition-delay: .15s; }
[data-show="plan"] .eb-items div:nth-child(3) { transition-delay: .3s; }
[data-show="plan"] .eb-items div:nth-child(4) { transition-delay: .45s; }
.eb-store { position: relative; margin: 6px 14px 10px; padding: 12px 12px 9px; border-radius: 12px; background: var(--app-accent-bg); border: 2px solid var(--app-accent); display: flex; align-items: baseline; gap: 8px; }
.eb-store b { font-size: 13px; }
.eb-store > span:last-child { font-size: 10.5px; color: var(--app-muted); }

/* recipe steps demo */
.rc-hero { margin-top: 4px; }
.rc-hero .ph { height: 84px; font-size: 40px; }
.rc-mode { display: flex; margin: 0 14px 10px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 999px; padding: 3px; }
.rc-mode span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; padding: 5px 0; border-radius: 999px; color: var(--app-muted); }
.rc-mode span.on { background: var(--app-primary-bg); color: var(--app-primary-on); }
.rc-steps { position: relative; margin: 0 14px; height: 128px; }
.rc-step { position: absolute; inset: 0; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 16px; padding: 14px; opacity: 0; transform: translateX(40px); transition: opacity .45s, transform .45s cubic-bezier(.22,1,.36,1); }
.rc-step.past { transform: translateX(-40px); }
.rc-step.on { opacity: 1; transform: none; }
.rc-step em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--app-primary); text-transform: uppercase; }
.rc-step p { margin: 8px 0 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
.rc-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.rc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-border); transition: background .3s, width .3s; }
.rc-dots i.on { width: 16px; border-radius: 3px; background: var(--app-primary); }

/* Cook Mode demo */
.ck-mode { background: #0F1114; }
.ck-top { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 16px 8px; }
.ck-top b { font-size: 16px; font-weight: 800; }
.ck-top span { font-size: 10.5px; font-weight: 700; color: var(--app-primary); }
.ck-step { margin: 0 14px 12px; padding: 16px; border-radius: 18px; background: var(--app-surface); border: 1px solid var(--app-border); font-size: 19px; font-weight: 700; line-height: 1.3; }
.ck-step b { color: var(--app-accent); }
.ck-timers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 14px; }
.ck-timer { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 14px; padding: 9px 10px; }
.ck-timer span { display: block; font-size: 10px; color: var(--app-muted); font-weight: 700; }
.ck-timer b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--app-text); }
.ck-roami { position: relative; display: grid; justify-items: center; gap: 6px; padding-bottom: 8px; }
.ck-said { position: absolute; bottom: 100%; margin-bottom: 4px; padding: 7px 11px; border-radius: 14px; background: #fff; color: #0284C7; font-size: 11px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.ck-said.on { opacity: 1; transform: none; }
.ck-ball { position: relative; }
.ck-ball::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--app-primary); opacity: .5; animation: ckRing 1.6s ease-out infinite; }
@keyframes ckRing { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.3); opacity: 0; } }
.ck-ball .ms-ball { margin: 0; width: 52px; height: 52px; }
.ck-listen { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; color: var(--app-primary); text-transform: uppercase; }
.ck-nav { flex: none; display: flex; gap: 8px; padding: 8px 14px 16px; }
.ck-nav span { flex: 1; text-align: center; padding: 11px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1.5px solid var(--app-border); color: var(--app-muted); }
.ck-nav span.on { background: var(--app-grad); color: #fff; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .ck-ball::before, .sc-scan, [data-show="think"] .ms-8.big { animation: none; } }

/* Shared list on a desktop monitor */
.frow.wide-art { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
/* Family Lists demo */
.fm-who { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 10px; padding: 9px 12px; border-radius: 12px; background: var(--app-surface); border: 1px solid var(--app-border); font-size: 11px; font-weight: 700; }
.fm-live { color: var(--app-muted); font-size: 10px; }
.ms-row .tx small.fm-tag, .ms-row .tx small.fm-sub { font-size: 9.5px; font-weight: 700; margin-top: 2px; }
.fm-tag { display: inline-block !important; padding: 1px 7px; border-radius: 999px; background: var(--app-accent-bg); color: var(--app-accent) !important; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.ms-row.claimed .fm-tag { opacity: 1; transform: none; }
.fm-sub { color: var(--app-nearby) !important; opacity: 0; transition: opacity .3s .2s; }
.ms-row.ok .fm-sub { opacity: 1; }
.fm-toast { position: absolute; left: 50%; bottom: 78px; transform: translate(-50%, 12px); padding: 8px 14px; border-radius: 999px; background: #14532D; color: #BBF7D0; font-size: 11px; font-weight: 800; white-space: nowrap; opacity: 0; transition: opacity .35s, transform .35s; z-index: 6; }
.fm-toast.on { opacity: 1; transform: translate(-50%, 0); }

.frow.wide-art.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 900px) { .frow.wide-art, .frow.wide-art.flip { grid-template-columns: 1fr; } }
.mmonitor { width: 100%; max-width: 640px; margin-inline: auto; }
.mm-screen { padding: 14px; border-radius: 18px; background: linear-gradient(160deg, #2B3038, #0D0F12); box-shadow: 0 0 0 1px #3A404A, var(--shadow-lg); }
.mm-screen .mbrowser { max-width: none; border-radius: 8px; border: 0; box-shadow: none; }
.mm-neck { width: 18%; height: 38px; margin: 0 auto; background: linear-gradient(90deg, #1b1f24, #3a3f46, #1b1f24); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.mm-base { width: 36%; height: 10px; margin: 0 auto; border-radius: 6px 6px 3px 3px; background: linear-gradient(#3a3f46, #16191d); }
.mm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.mb-cal { flex: none; background: #0EA5E9; color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; }
.mm-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (max-width: 520px) { .mm-cols { grid-template-columns: 1fr; } }
.ms-rows .tx b { width: fit-content; max-width: 100%; }
.sc-cam { overflow: hidden; }
.mb-row .mb-claim { flex: none; }
.mm-cols .mb-row span:first-child { white-space: nowrap; }

/* Roami chat demo (site.js bindRoamiChat), timed from the app's RoamiPopIn:
   she grows in place with a spark burst, the bubble springs out of its tail,
   lines zoom in, her dots bounce; leaving is the same backwards. No dimming. */
.ms-talk.r-anim .ms-dim { display: none; }
.ms-talk.r-anim .ms-ball { transform: scale(0); }
.ms-talk.r-anim.r-in .ms-ball { animation: roamiGrow .72s cubic-bezier(.2,.8,.3,1) both; }
.ms-talk.r-anim.r-out .ms-ball { animation: roamiShrink .57s cubic-bezier(.5,0,.75,0) both; }
@keyframes roamiGrow { 0% { transform: scale(0); } 62% { transform: scale(1.14); } 82% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes roamiShrink { from { transform: scale(1); } to { transform: scale(0); } }
.ms-talk .r-burst { position: absolute; right: 23px; bottom: 23px; width: 0; height: 0; z-index: 1; pointer-events: none; }
.ms-talk .r-burst i { position: absolute; left: -1.5px; top: -5px; width: 3px; height: 10px; border-radius: 2px; background: var(--app-primary); opacity: 0; }
.ms-talk .r-burst i:nth-child(even) { left: -4px; width: 8px; border-radius: 4px 4px 5px 5px; background: #0284C7; }
.ms-talk .r-burst.go i { animation: roamiSpark .72s cubic-bezier(.2,.7,.3,1) both; }
@keyframes roamiSpark {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(-38px) scale(.3); }
  35% { opacity: 1; transform: rotate(var(--a)) translateY(-42px) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-52px) scale(.4); }
}
.ms-talk.r-anim .ms-roami .ms-ball { position: relative; z-index: 2; }
.ms-talk.r-anim .ms-bubble { opacity: 0; transform: scale(0); transform-origin: calc(100% - 50px) calc(100% + 20px); }
.ms-talk.r-anim.r-bub .ms-bubble { animation: bubbleIn .63s cubic-bezier(.2,.8,.3,1) both; }
.ms-talk.r-anim.r-bubout .ms-bubble { animation: bubbleOut .42s cubic-bezier(.5,0,.75,0) both; }
@keyframes bubbleIn { 0% { opacity: 0; transform: scale(0); } 17% { opacity: 1; } 55% { transform: scale(1.07); } 80% { transform: scale(.98); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bubbleOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0); } }
.ms-talk.r-anim .ms-say { display: none; }
.ms-talk.r-anim.r-you .ms-say.you, .ms-talk.r-anim.r-dots .ms-dots, .ms-talk.r-anim.r-her .ms-say.her { display: block; animation: lineZoom .3s ease-out both; }
.ms-talk.r-anim.r-her .ms-dots { display: none; }
@keyframes lineZoom { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.ms-dots { display: none; justify-self: end; padding: 9px 12px; border-radius: 15px; border-bottom-right-radius: 5px; background: rgba(255,255,255,.2); }
.ms-dots i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #fff; animation: dotBob .9s ease-in-out infinite; }
.ms-dots i:nth-child(2) { animation-delay: .15s; } .ms-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotBob { 50% { transform: translateY(-4px); opacity: .6; } }

/* header tagline beside the word-logo */
.brand-tag { font-style: italic; font-weight: 600; font-size: .92rem; color: var(--teal-300); white-space: nowrap; margin-left: -2px; }
@media (max-width: 1100px) and (min-width: 901px), (max-width: 480px) { .brand-tag { display: none; } }

/* Smart Add demo: the scan sweeps the list, then the results slide up */
[data-demo="add"] .ms-cam { position: relative; }
[data-demo="add"] .sc-scan { opacity: 0; animation: none; }
[data-demo="add"].scan .sc-scan { opacity: 1; animation: scScan 1.2s ease-in-out infinite alternate; }
[data-demo="add"] .ms-found { transform: translateY(100%); transition: transform .45s cubic-bezier(.22,1,.36,1); }
[data-demo="add"].found .ms-found, [data-demo="add"]:not(.ms-anim) .ms-found { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-demo="add"] .ms-found { transform: none; } }
