/* =========================================================
   Domovoi · homepage
   Two states on one page, picked before first paint by the
   inline script in <head>:
     html:not([data-home=hub])  → .promo  (logged out)
     html[data-home=hub]        → .hub    (logged in)
   Built on colors_and_type.css: plum ink, 1.5px borders,
   hard offset shadows, coral pop.
   ========================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body); color: var(--fg-1); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

html[data-home="hub"] .promo { display: none; }
html:not([data-home="hub"]) .hub { display: none; }

.p-wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* ---------- shared bits ---------- */
.p-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-400); }
.p-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral-300); }
.orb { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; border: 1.5px solid var(--plum-800); font-size: 12px; font-weight: 800; color: var(--plum-800); }
.orb.a { background: var(--butter-200); }
.orb.b { background: var(--sky-200); }
.muted { color: var(--fg-3); }

.p-btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 15.5px; line-height: 1; color: var(--plum-800);
  border: 1.5px solid var(--plum-800); border-radius: 999px; padding: 14px 22px;
  background: var(--milk-50); box-shadow: 3px 3px 0 var(--plum-800);
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.p-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--plum-800); }
.p-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--plum-800); }
.p-btn:focus-visible, .p-tab:focus-visible, .cu-btn:focus-visible, .co-chip:focus-visible, .ca-recipe:focus-visible, .h-task:focus-visible { outline: 3px solid var(--plum-300); outline-offset: 3px; }
.p-btn.pop { background: var(--coral-300); color: #fff; }
.p-btn.ghost { box-shadow: none; background: transparent; }
.p-btn.ghost:hover { background: var(--milk-50); box-shadow: 3px 3px 0 var(--plum-800); }
.p-btn.sky { background: var(--sky-200); }
.p-btn.butter { background: var(--butter-200); }
.p-btn.coral { background: var(--coral-200); }
.p-btn.on-dark { border-color: var(--milk-50); box-shadow: 4px 4px 0 var(--milk-50); }
.p-btn.sm { font-size: 13.5px; padding: 9px 14px; box-shadow: 2px 2px 0 var(--plum-800); }

/* =========================================================
   PROMO
   ========================================================= */
.p-hero { padding: 56px 0 96px; position: relative; overflow: hidden; }
.p-hero::before { content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%; right: -160px; top: -220px; border: 2px solid var(--coral-300); opacity: 0.35; pointer-events: none; }
.p-hero::after  { content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%; right: -300px; top: -140px; border: 2px solid var(--plum-500); opacity: 0.25; pointer-events: none; }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.p-h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 6vw, 80px); line-height: 0.94; letter-spacing: -0.045em; margin: 18px 0 20px; text-wrap: balance; }
.p-h1 em { font-style: italic; font-weight: 500; color: var(--coral-300); letter-spacing: -0.035em; }
.p-lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--fg-2); margin: 0 0 28px; max-width: 54ch; }
.p-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.p-small { font-size: 14px; font-weight: 600; color: var(--fg-3); margin: 18px 0 0; }

/* hero: the live feed of a couple's evening */
.p-feed {
  position: relative; background: var(--milk-50); border: 1.5px solid var(--plum-800); border-radius: 28px;
  box-shadow: 8px 8px 0 var(--plum-800); padding: 20px 20px 22px; min-height: 420px;
}
.p-feed-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--milk-300); font-size: 14px; line-height: 1.3; }
.p-orbs { display: inline-flex; }
.p-orbs .orb + .orb { margin-left: -8px; }
.p-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-400); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral-300); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,85,119,0.55); } 70% { box-shadow: 0 0 0 10px rgba(242,85,119,0); } 100% { box-shadow: 0 0 0 0 rgba(242,85,119,0); } }
/* Fixed height: rows are a fixed height and the list clips, so a new row arriving (or the
   old one fading out) never changes the card's size and nothing below it moves. */
.p-feed-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; height: calc(5 * 62px + 4 * 10px); overflow: hidden; }
.p-feed-item {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 12px; border-radius: 16px; border: 1.5px solid var(--plum-800); background: var(--milk-100);
  height: 62px; flex: 0 0 62px; overflow: hidden;
  animation: feedIn 520ms var(--ease-spring) both;
}
.p-feed-item.k-catered { background: var(--butter-100); }
.p-feed-item.k-curated { background: var(--sky-100); }
.p-feed-item.k-considered { background: var(--coral-100); }
.p-feed-item .t { font-size: 14px; line-height: 1.35; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-feed-item .t b { font-weight: 800; }
.p-feed-item .when { font-size: 11.5px; font-weight: 700; color: var(--fg-3); white-space: nowrap; }
.p-feed-item img.thumb { width: 32px; height: 46px; object-fit: cover; border-radius: 6px; border: 1.5px solid var(--plum-800); }
.p-feed-item.out { animation: feedOut 360ms var(--ease) both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes feedOut { to { opacity: 0; transform: translateY(10px); } }
.p-feed-mascot { position: absolute; width: 120px; right: -40px; bottom: -86px; transform: rotate(8deg); pointer-events: none; filter: drop-shadow(6px 8px 0 rgba(26,10,46,0.08)); }

/* section heads */
.p-section-head { max-width: 760px; margin-bottom: 28px; }
.p-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.04em; line-height: 0.98; margin: 12px 0 10px; text-wrap: balance; }
.p-sub { font-size: 17px; line-height: 1.55; color: var(--fg-2); margin: 0; max-width: 60ch; }
.p-h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 14px; text-wrap: balance; }

/* demos */
.p-try { padding: 64px 0; background: var(--plum-800); color: var(--milk-50); }
.p-try .p-sub { color: rgba(252,251,246,0.75); }
.p-try .p-eyebrow { color: var(--butter-300); }
.p-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.p-tab {
  text-align: left; cursor: pointer; border-radius: 18px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px;
  border: 1.5px solid rgba(252,251,246,0.28); background: rgba(252,251,246,0.05); color: var(--milk-50);
  transition: background var(--dur) var(--ease), transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.p-tab:hover { background: rgba(252,251,246,0.1); }
.p-tab-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.p-tab-what { font-size: 13px; font-weight: 600; opacity: 0.75; }
.p-tab.active { color: var(--plum-800); border-color: var(--milk-50); box-shadow: 4px 4px 0 var(--milk-50); }
.p-tab.active .p-tab-what { opacity: 0.8; }
.p-tab.t-curated.active { background: var(--sky-200); }
.p-tab.t-catered.active { background: var(--butter-200); }
.p-tab.t-considered.active { background: var(--coral-200); }

.p-demo {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0;
  background: var(--milk-100); color: var(--fg-1); border: 1.5px solid var(--milk-50); border-radius: 28px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--coral-300);
}
.p-demo[hidden] { display: none; }
.p-stage { padding: 26px; min-width: 0; border-right: 1.5px solid var(--plum-800); position: relative; }
.d-curated .p-stage { background: var(--sky-100); }
.d-catered .p-stage { background: var(--butter-100); }
.d-considered .p-stage { background: var(--coral-100); }
.p-explain { padding: 30px 30px 32px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.p-name { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--plum-800); }
.n-curated { background: var(--sky-200); }
.n-catered { background: var(--butter-200); }
.n-considered { background: var(--coral-200); }
.p-points { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.p-points li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--fg-2); }
.p-points li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 9px; height: 9px; border-radius: 3px; background: var(--coral-300); border: 1.5px solid var(--plum-800); transform: rotate(45deg); }
.p-explain .p-btn { margin-top: auto; }

/* --- Curated demo --- */
.cu-phones { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 190px); justify-content: center; gap: 18px; align-items: start; position: relative; }
.cu-phone { background: var(--milk-50); border: 1.5px solid var(--plum-800); border-radius: 26px; padding: 12px; box-shadow: 4px 4px 0 var(--plum-800); }
.cu-phone.them { opacity: 0.92; margin-top: 34px; }
.cu-who { display: flex; justify-content: center; margin-bottom: 10px; }
.cu-who .orb { height: 24px; font-size: 11px; }
.cu-stack { position: relative; aspect-ratio: 2 / 3; }
.cu-card {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--plum-800); background: var(--plum-700);
  transition: transform 340ms var(--ease), opacity 300ms var(--ease);
}
.cu-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cu-card .cu-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 9px; color: var(--milk-50); background: linear-gradient(to top, rgba(26,10,46,0.95), rgba(26,10,46,0)); }
.cu-cap b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1.05; }
.cu-cap span { font-size: 11.5px; font-weight: 600; opacity: 0.85; }
.them .cu-cap b { font-size: 13px; }
.them .cu-cap span { display: none; }
.cu-card.under { transform: translateY(8px) scale(0.95); opacity: 0.7; }
.cu-card.go-yes { transform: translateX(130%) rotate(16deg); opacity: 0; }
.cu-card.go-no { transform: translateX(-130%) rotate(-16deg); opacity: 0; }
.cu-stamp { position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 8px; border: 2.5px solid currentColor; background: var(--milk-50); font-family: var(--font-display); font-weight: 800; font-size: 15px; text-transform: uppercase; }
.cu-stamp.yes { left: 10px; color: var(--pistachio-400); transform: rotate(-10deg); }
.cu-stamp.no { right: 10px; color: var(--coral-400); transform: rotate(10deg); }
.cu-btns { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.cu-btn { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--plum-800); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 3px 3px 0 var(--plum-800); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); }
.cu-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--plum-800); }
.cu-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--plum-800); }
.cu-btn.no { background: var(--milk-200); }
.cu-btn.yes { background: var(--coral-300); color: var(--plum-800); width: 64px; height: 64px; }
.cu-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.cu-them-note { text-align: center; font-size: 12px; font-weight: 700; color: var(--fg-3); margin-top: 10px; min-height: 18px; }
.cu-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--plum-800); font-size: 14px; line-height: 1.4; color: var(--fg-2); }
.cu-done b { font-family: var(--font-display); font-size: 20px; color: var(--plum-800); letter-spacing: -0.02em; }
.cu-match {
  position: absolute; left: 50%; top: 42%; z-index: 5; transform: translate(-50%, -50%) scale(0.6); opacity: 0; pointer-events: none;
  background: var(--coral-300); color: var(--plum-800); border: 1.5px solid var(--plum-800); box-shadow: 4px 4px 0 var(--plum-800);
  border-radius: 20px; padding: 12px 18px; text-align: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.05;
  transition: transform 320ms var(--ease-spring), opacity 200ms var(--ease);
}
.cu-match small { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0; margin-top: 4px; }
.cu-match.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.cu-list { margin: 18px auto 0; max-width: 478px; }
.cu-list-label, .ca-label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cu-list-label span, .ca-n { font-size: 11px; background: var(--plum-800); color: var(--milk-50); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }
.cu-list-row { display: flex; gap: 8px; min-height: 66px; align-items: center; flex-wrap: wrap; }
.cu-list-row img { width: 44px; height: 66px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--plum-800); box-shadow: 2px 2px 0 var(--plum-800); animation: feedIn 480ms var(--ease-spring) both; }
.cu-empty { font-size: 13.5px; font-weight: 600; color: var(--fg-3); }

/* --- Catered demo --- */
.ca-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.ca-hint { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--fg-3); }
.ca-recipe {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; margin-bottom: 8px;
  background: var(--milk-50); border: 1.5px solid var(--plum-800); border-radius: 14px; padding: 8px 10px 8px 8px; box-shadow: 2px 2px 0 var(--plum-800);
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), opacity var(--dur) var(--ease);
}
.ca-recipe:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--plum-800); }
.ca-recipe:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: 2px 2px 0 var(--plum-800); }
.ca-sw { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--plum-800); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.ca-recipe b { display: block; font-size: 13.5px; line-height: 1.2; }
.ca-recipe span.m { font-size: 11.5px; color: var(--fg-3); font-weight: 600; }
.ca-week ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ca-day { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 38px; padding: 5px 8px; border-radius: 12px; border: 1.5px dashed var(--milk-400); font-size: 13px; }
.ca-day .d { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.ca-day.full { border-style: solid; border-color: var(--plum-800); background: var(--milk-50); font-weight: 700; animation: feedIn 480ms var(--ease-spring) both; }
.ca-day.full .d { color: var(--plum-800); }
.ca-day .who { font-size: 10.5px; font-weight: 700; color: var(--fg-3); margin-left: 4px; }
.ca-shop-group { margin-bottom: 10px; }
.ca-aisle { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--butter-400); margin: 0 0 4px; }
.ca-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--milk-200); transition: background 600ms var(--ease); }
.ca-item .box { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--plum-800); flex-shrink: 0; background: var(--milk-50); display: inline-flex; align-items: center; justify-content: center; }
.ca-item .q { margin-left: auto; font-weight: 700; color: var(--fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ca-item.bump { background: var(--butter-200); }
.ca-item.new { animation: feedIn 480ms var(--ease-spring) both; }
.ca-item.ticked .n { text-decoration: line-through; color: var(--fg-3); }
.ca-item.ticked .box { background: var(--pistachio-300); }
.ca-item .by { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 6px; background: var(--sky-200); border: 1px solid var(--plum-800); }
.ca-empty { font-size: 13px; color: var(--fg-3); font-weight: 600; }

/* --- Considered demo --- */
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.co-chip { cursor: pointer; border: 1.5px solid var(--plum-800); background: var(--milk-50); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; transition: background var(--dur) var(--ease), transform 120ms var(--ease); }
.co-chip:hover { background: var(--coral-100); }
.co-chip[aria-pressed="true"] { background: var(--plum-800); color: var(--milk-50); }
.co-results { margin-top: 22px; }
.co-lead { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 12px; }
.co-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.co-card { background: var(--milk-50); border: 1.5px solid var(--plum-800); border-radius: 18px; padding: 14px; box-shadow: 3px 3px 0 var(--plum-800); display: flex; flex-direction: column; gap: 6px; animation: feedIn 480ms var(--ease-spring) both; }
.co-card:nth-child(2) { animation-delay: 80ms; }
.co-card:nth-child(3) { animation-delay: 160ms; }
.co-mono { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--plum-800); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.co-card b { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1.1; }
.co-card .from { font-size: 11.5px; font-weight: 700; color: var(--fg-3); }
.co-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.co-price { margin-top: auto; display: flex; gap: 3px; padding-top: 4px; }
.co-price i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--plum-800); }
.co-price i.on { background: var(--plum-800); }

/* made for two */
.p-two { padding: 72px 0 40px; }
.p-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p-steps li { position: relative; padding: 24px 22px 22px; border-top: 2px solid var(--plum-800); }
.p-step-n { font-family: var(--font-display); font-weight: 800; font-size: 15px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--butter-200); border: 1.5px solid var(--plum-800); }
.p-steps h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin: 14px 0 6px; }
.p-steps p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--fg-2); }

.p-band { padding: 32px 0 64px; }
.p-band-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--plum-800); color: var(--milk-50); border-radius: 28px; padding: 30px 36px; box-shadow: 8px 8px 0 var(--coral-300); }
.p-band-mascot { width: 84px; }
.p-band-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 8px; }
.p-band-title em { font-style: italic; font-weight: 500; color: var(--coral-300); }
.p-band-sub { margin: 0; font-size: 15px; color: rgba(252,251,246,0.75); }
.p-band-sub a { color: var(--butter-300); font-weight: 700; }

/* footer */
.p-foot { padding: 24px max(24px, env(safe-area-inset-right, 0px)) 28px max(24px, env(safe-area-inset-left, 0px)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--fg-3); font-weight: 500; max-width: 1180px; margin: 0 auto; }
.p-foot .right { display: inline-flex; align-items: center; gap: 6px; }
.p-foot .heart { width: 10px; height: 10px; background: var(--coral-300); transform: rotate(45deg); border-radius: 2px 2px 50% 50% / 2px 2px 50% 50%; display: inline-block; position: relative; }
.p-foot .heart::before, .p-foot .heart::after { content: ''; position: absolute; width: 10px; height: 10px; background: var(--coral-300); border-radius: 50%; }
.p-foot .heart::before { left: -5px; top: 0; }
.p-foot .heart::after { top: -5px; left: 0; }
.p-foot .footer-links { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; }
.p-foot .footer-links a { color: var(--fg-2); text-decoration: none; }
.p-foot .footer-links a:hover { color: var(--coral-400); }
.p-foot .footer-links .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--milk-400); }

/* =========================================================
   HUB
   ========================================================= */
.hub { padding: 36px 0 48px; min-height: 60vh; }
.h-skeleton { display: flex; flex-direction: column; gap: 18px; }
.sk { background: linear-gradient(90deg, var(--milk-200), var(--milk-50), var(--milk-200)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 22px; }
.sk-title { height: 64px; width: 46%; }
.sk-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.sk-row.three { grid-template-columns: repeat(3, 1fr); }
.sk-card { height: 220px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.h-greet { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.045em; line-height: 0.95; margin: 10px 0 8px; }
.h-greet em { font-style: italic; font-weight: 500; color: var(--coral-300); }
.h-sub { margin: 0; font-size: 16px; color: var(--fg-2); }
.h-pair { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--fg-2); }
.h-pair .orb { width: 40px; height: 40px; font-size: 16px; }
.h-pair .orb + .orb { margin-left: -12px; }

.h-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; align-items: start; }
.h-card { background: var(--milk-50); border: 1.5px solid var(--plum-800); border-radius: 24px; box-shadow: 5px 5px 0 var(--plum-800); padding: 22px; min-width: 0; }
.h-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h-card-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.025em; margin: 0; display: flex; align-items: center; gap: 10px; }
.h-count { font-family: var(--font-body); font-size: 12px; font-weight: 800; background: var(--coral-300); color: var(--plum-800); border: 1.5px solid var(--plum-800); border-radius: 999px; min-width: 24px; height: 24px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; }
.h-link { font-size: 13.5px; font-weight: 700; color: var(--coral-400); text-decoration: none; white-space: nowrap; }
.h-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* needs you */
.h-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.h-task {
  display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-decoration: none;
  padding: 12px 14px 12px 0; border-radius: 16px; border: 1.5px solid var(--plum-800); background: var(--milk-100); overflow: hidden;
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.h-task:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--plum-800); }
.h-task .bar { align-self: stretch; margin: -12px 0; }
.h-task.catered .bar { background: var(--butter-300); }
.h-task.curated .bar { background: var(--sky-300); }
.h-task.home .bar { background: var(--coral-300); }
.h-task.considered .bar { background: var(--coral-200); }
.h-task .tt { display: block; font-weight: 800; font-size: 15px; line-height: 1.25; }
.h-task .ts { display: block; font-size: 13px; color: var(--fg-2); margin-top: 2px; line-height: 1.4; }
.h-task .go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--plum-800); background: var(--milk-50); white-space: nowrap; }
.h-task .stack { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.h-task .stack img { width: 22px; height: 33px; object-fit: cover; border-radius: 4px; border: 1.5px solid var(--plum-800); }
.h-task .stack img + img { margin-left: -9px; }
.h-clear { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 15px; color: var(--fg-2); }
.h-clear img { width: 64px; }
.h-clear b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--plum-800); letter-spacing: -0.02em; }

/* tonight */
.h-tonight { background: var(--plum-800); color: var(--milk-50); box-shadow: 5px 5px 0 var(--coral-300); }
.h-tonight .h-card-title { color: var(--milk-50); }
.h-tonight .h-link { color: var(--butter-300); }
.h-tn { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1.5px solid rgba(252,251,246,0.16); }
.h-tn:first-of-type { border-top: 0; padding-top: 2px; }
.h-tn .art { width: 64px; height: 64px; border-radius: 14px; border: 1.5px solid var(--milk-50); object-fit: cover; display: flex; align-items: center; justify-content: center; background: rgba(252,251,246,0.08); }
.h-tn .art.poster { height: 92px; width: 62px; }
.h-tn .k { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--butter-300); }
.h-tn .v { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; line-height: 1.1; margin: 3px 0 4px; }
.h-tn .s { font-size: 13px; color: rgba(252,251,246,0.72); }
.h-tn .s a { color: var(--butter-300); font-weight: 700; }

/* product panels */
.h-products { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; align-items: stretch; }
.h-products .catered { grid-column: 1 / -1; }
.h-prod { display: flex; flex-direction: column; }
.h-prod .h-card-head { margin-bottom: 12px; }
.h-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--plum-800); }
.h-prod.catered .h-tag { background: var(--butter-200); }
.h-prod.curated .h-tag { background: var(--sky-200); }
.h-prod.considered .h-tag { background: var(--coral-200); }
.h-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--fg-3); font-weight: 600; }

.h-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.h-day { border: 1.5px dashed var(--milk-400); border-radius: 12px; min-height: 150px; padding: 6px; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; line-height: 1.2; min-width: 0; }
.h-day .dn { gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); display: flex; justify-content: space-between; }
.h-week.empty .h-day { min-height: 64px; }
.h-day.today { border-style: solid; border-color: var(--coral-300); background: var(--coral-50); }
.h-day.today .dn { color: var(--coral-400); }
.h-day.past { opacity: 0.55; }
.h-day.has { border-style: solid; border-color: var(--plum-800); background: var(--milk-50); }
.h-day img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; border: 1px solid var(--plum-800); }
.h-day .mt { font-size: 13px; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.h-day .plus { margin: auto; color: var(--milk-400); font-size: 18px; font-weight: 600; text-decoration: none; }
.h-day .plus:hover { color: var(--coral-400); }

.h-posters { display: flex; gap: 8px; overflow: hidden; }
.h-posters figure { margin: 0; width: 70px; flex-shrink: 0; }
.h-posters img { width: 70px; height: 105px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--plum-800); display: block; }
.h-posters figcaption { font-size: 11px; font-weight: 700; margin-top: 4px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.h-posters .pos { font-size: 10px; font-weight: 800; color: var(--coral-400); }
.h-sublabel { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 8px; }
.h-stat { display: flex; gap: 18px; margin-bottom: 14px; }
.h-stat div { font-size: 12.5px; color: var(--fg-3); font-weight: 600; }
.h-stat b { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; color: var(--plum-800); line-height: 1; }

.h-gift p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.h-gift .co-chips { margin-bottom: 4px; }
.h-gift .co-chip { text-decoration: none; font-size: 13.5px; padding: 7px 12px; }

/* activity */
.h-acts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.h-act { display: grid; grid-template-columns: 30px minmax(0, 1fr) 38px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--milk-200); }
.h-act .orb { width: 30px; height: 30px; min-width: 30px; padding: 0; font-size: 12px; }
.h-act .orb.both { background: var(--coral-200); font-size: 10px; }
.h-act .tx { font-size: 14px; line-height: 1.35; min-width: 0; }
.h-act .tx b { font-weight: 800; }
.h-act .meta { display: block; font-size: 12px; color: var(--fg-3); font-weight: 600; margin-top: 2px; }
.h-act .meta i { font-style: normal; font-weight: 800; }
.h-act .meta i.catered { color: var(--butter-400); }
.h-act .meta i.curated { color: var(--sky-400); }
.h-act .meta i.considered { color: var(--coral-400); }

/* Gifts coming up (hub) */
.h-gl { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; }
.h-gl li + li { border-top: 1.5px solid var(--milk-200); }
.h-gl a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 2px; color: inherit; text-decoration: none; }
.h-gl a:hover .h-gt { color: var(--coral-400); }
.h-gd { border: 1.5px solid var(--plum-800); border-radius: 9px; overflow: hidden; text-align: center; background: #fff; }
.h-gd small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--plum-800); color: var(--milk-50); padding: 1px 0; }
.h-gd b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; padding: 1px 0 2px; }
.h-gt { min-width: 0; font-weight: 800; font-size: 14.5px; display: flex; flex-direction: column; }
.h-gt small { font-weight: 500; font-size: 12.5px; color: var(--fg-3); }
.h-glock { display: inline-flex; vertical-align: 1px; margin-left: 6px; color: var(--fg-3); }
.h-gp { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--plum-800); white-space: nowrap; }
.h-gp.conf { background: var(--pistachio-100, #DCEFD3); }
.h-gp.idea { background: var(--butter-200); }
.h-gp.none { border-style: dashed; border-color: var(--milk-300); color: var(--fg-3); }
.h-act img { width: 38px; height: 54px; object-fit: cover; border-radius: 6px; border: 1.5px solid var(--plum-800); }
.h-act img.sq { height: 38px; }
.h-quiet { font-size: 14px; color: var(--fg-3); font-weight: 600; padding: 6px 0; }
.h-error { padding: 40px 0; text-align: center; color: var(--fg-2); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1040px) {
  .p-demo { grid-template-columns: 1fr; }
  .p-stage { border-right: 0; border-bottom: 1.5px solid var(--plum-800); }
}
@media (max-width: 900px) {
  .p-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .p-feed { min-height: 0; }
  .h-top { grid-template-columns: 1fr; }
  .h-acts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ca-grid { grid-template-columns: 1fr 1fr; }
  .ca-shop { grid-column: 1 / -1; }
  .co-cards { grid-template-columns: 1fr; }
  .p-steps { grid-template-columns: 1fr; gap: 6px; }
  .p-band-inner { grid-template-columns: 1fr; padding: 26px 24px; }
  .p-band-mascot { display: none; }
  .h-products { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .p-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .p-hero { padding: 32px 0 44px; }
  .p-feed-mascot { width: 100px; right: -14px; bottom: -36px; }
  .p-feed-item .t { font-size: 13px; }
  .p-tabs { gap: 8px; }
  .p-tab { padding: 10px 12px; border-radius: 14px; }
  .p-tab-name { font-size: 17px; }
  .p-tab-what { font-size: 11.5px; }
  .p-stage { padding: 16px; }
  .p-explain { padding: 22px 18px 24px; }
  .cu-phones { gap: 10px; }
  .cu-phone { padding: 8px; border-radius: 20px; }
  .cu-phone.them { margin-top: 24px; }
  .cu-match { font-size: 18px; padding: 10px 14px; }
  .ca-grid { grid-template-columns: 1fr; }
  .h-card { padding: 18px 16px; }
  .p-feed-mascot { display: none; }
  .p-hero { padding-bottom: 48px; }
  .cu-phones { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); }
  .h-week { grid-template-columns: 1fr; gap: 6px; }
  .h-day { min-height: 0; flex-direction: row; align-items: center; gap: 10px; padding: 7px 10px; }
  .h-day .dn { width: 64px; flex-shrink: 0; justify-content: flex-start; }
  .h-day img { width: 44px; height: 33px; aspect-ratio: auto; flex-shrink: 0; }
  .h-day .mt { -webkit-line-clamp: 1; }
  .h-day .plus { margin: 0 0 0 auto; font-size: 16px; }
  .h-task { grid-template-columns: 6px minmax(0, 1fr); }
  .h-task .go { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* Share-to-partner link (promo) */
.p-sharelink { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.p-sharelink:hover { color: var(--coral-400, var(--coral-300)); }
.p-sharelink:focus-visible { outline: 3px solid var(--plum-300); outline-offset: 3px; border-radius: 4px; }
.co-cal { margin-top: 22px; background: var(--milk-50); border: 1.5px solid var(--plum-800); border-radius: 16px; padding: 12px 14px 6px; }
.co-cal .ca-label { margin-bottom: 4px; }

/* ===== Install card (D1.2): src/ui/install-card.js ===== */
.h-install { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 12px 14px; align-items: start; margin: 0 0 22px; padding: 16px; border: 1.5px solid var(--plum-800); border-radius: 20px; background: var(--milk-50); box-shadow: 4px 4px 0 var(--plum-800); }
.h-install > img { width: 48px; height: 48px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(26, 10, 46, .12); }
.h-install .t { margin: 2px 32px 4px 0; font-family: var(--font-display, 'Bricolage Grotesque', sans-serif); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--plum-800); }
.h-install .s { margin: 0; font-size: 14px; line-height: 1.4; color: var(--fg-2, rgba(26, 10, 46, .72)); }
.h-install .acts { grid-column: 2; }
.h-install .acts[hidden], .h-install ol[hidden], .h-install .note[hidden] { display: none; }
.h-install .go { padding: 10px 18px; font-size: 14.5px; }
.h-install .x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 24px; line-height: 1; color: var(--fg-3, rgba(26, 10, 46, .55)); cursor: pointer; }
.h-install .x:hover { background: rgba(26, 10, 46, .06); }
.h-install .x:focus-visible, .h-install .go:focus-visible { outline: 3px solid var(--plum-300); outline-offset: 2px; }
.h-install ol { grid-column: 1 / -1; display: grid; gap: 10px; margin: 2px 0 0; padding: 14px 0 0; border-top: 1px dashed rgba(26, 10, 46, .25); list-style: none; counter-reset: step; }
.h-install li { counter-increment: step; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; font-size: 14px; line-height: 1.4; color: var(--plum-800); }
.h-install li svg { vertical-align: -4px; margin: 0 2px; }
.h-install li::before { content: counter(step); width: 24px; height: 24px; border-radius: 50%; background: var(--plum-800); color: var(--milk-50); font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; }
.h-install .note { grid-column: 1 / -1; margin: -2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--fg-3, rgba(26, 10, 46, .6)); }
