/* ─────────────────────────────────────────────────────────────
   Campfire public site — style-feature.css   (DEVICES & PICTURES)

   What goes INSIDE the five layouts: device frames for the
   screenshots, Home's diorama, and the small hand-built .sv-*
   illustrations used in tile visuals.

   ⚠ The .sv-* illustrations are hand-built HTML, not placeholders.
   Do not replace them with images or grey boxes.
   ───────────────────────────────────────────────────────────── */


/* ═══════════ SCREENSHOT WRAPPER — .shot ═══════════ */
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; width: 100%; }
.shot img { width: 100%; display: block; border-radius: var(--r-md); object-fit: cover; object-position: top; }
.shot > img { height: auto; }
.shot-phone { max-width: 320px; }
.shot-phone img { aspect-ratio: 390 / 800; }
.shot-wide img, .shot-tablet img { aspect-ratio: 16 / 10; }
.shot-wide > img { box-shadow: var(--shadow-lg); }


/* ═══════════ PHONE FRAME — .phone-lg ═══════════
   The screen, not the frame, carries the 390×800 ratio, so
   object-fit: cover has nothing to crop. */
.phone-lg {
  position: relative; z-index: 1;
  width: min(320px, 100%);
  background: #111;
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    0 60px 100px -30px rgba(15,27,46,.4),
    0 24px 50px -20px rgba(15,27,46,.25);
}
.phone-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 800;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
}
.phone-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 24px; background: #111; border-radius: 100px;
  z-index: 5;
}


/* ═══════════ TABLET FRAME — .tablet ═══════════ */
.tablet {
  position: relative; z-index: 1;
  width: min(620px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: #111;
  border-radius: 22px;
  padding: 10px;
  box-shadow:
    0 50px 90px -30px rgba(15,27,46,.4),
    0 20px 44px -20px rgba(15,27,46,.22);
}
.tablet-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.tablet-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
/* The stand. Device-chassis greys, deliberate literals like #111. */
.tablet::after {
  content: '';
  position: absolute; left: 50%; bottom: -12px;
  transform: translateX(-50%);
  width: 34%; height: 12px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #2A2A2E, #17171A);
  box-shadow: 0 10px 20px -8px rgba(15,27,46,.35);
  z-index: -1;
}
@media (max-width: 600px) {
  .tablet { width: 100%; padding: 6px; border-radius: 16px; }
  .tablet-inner { border-radius: 11px; }
  .tablet::after { display: none; }
}


/* ═══════════ HOME DIORAMA — .diorama ═══════════
   One device per part of Campfire: the kitchen tablet centred at
   the back, a phone either side in front. Everything upright and on
   one grid: both phones share a width, a top line and a bottom line;
   the tablet is centred between them. It should read as "a tablet
   and phones", not as screens to be read — no labels, no chips. */
.diorama {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 78;
}
.diorama-bg {
  position: absolute; inset: 4% 2% 0;
  background:
    radial-gradient(circle at 50% 35%, var(--blue-soft) 0%, transparent 60%),
    radial-gradient(circle at 15% 80%, var(--gold-soft) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, var(--teal-soft) 0%, transparent 45%);
  filter: blur(8px);
  z-index: 0;
}
.diorama .tablet {
  position: absolute;
  top: 0; left: 10%;
  width: 80%;
  margin: 0;
  border-radius: 18px; padding: 8px;
  z-index: 1;
}
.diorama .tablet-inner { border-radius: 11px; }
.diorama .tablet::after { display: none; }

.phone {
  position: absolute;
  bottom: 0;
  width: 28%;
  background: #111;
  border-radius: 28px;
  padding: 7px;
  box-shadow:
    0 40px 70px -24px rgba(15,27,46,.45),
    0 16px 32px -16px rgba(15,27,46,.25);
  z-index: 2;
}
.phone .phone-inner { border-radius: 22px; }
.phone .phone-notch { top: 6px; height: 15px; }
.phone.jobs { left: 0; }
.phone.chat { right: 0; }

@media (max-width: 940px) {
  .diorama { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .phone { border-radius: 20px; padding: 5px; }
  .phone .phone-inner { border-radius: 16px; }
  .phone .phone-notch { height: 10px; top: 4px; }
  .diorama .tablet { padding: 5px; border-radius: 12px; }
  .diorama .tablet-inner { border-radius: 8px; }
}


/* ═══════════ TILE ILLUSTRATIONS — .sv-* ═══════════
   Small, hand-built pictures of the app. Sized to sit inside a
   16:10 .tile-visual; they also stand alone. */
.sv-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.sv-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sv-row + .sv-row.ruled { border-top: 1px solid var(--line); padding-top: 10px; }
.sv-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px;
  flex: 0 0 auto;
}
.sv-avatar.teal   { background: var(--teal-soft); color: var(--teal-ink); }
.sv-avatar.yellow { background: var(--gold-soft); color: var(--gold-ink); }
.sv-avatar.blue   { background: var(--blue-soft); color: var(--blue-ink); }
.sv-name { font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
.sv-name small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 1px; }
.sv-sub { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.sv-amt { font-size: 13px; font-weight: 600; color: var(--ink); }

/* An on/off switch. */
.sv-toggle {
  width: 32px; height: 18px; border-radius: 100px;
  background: var(--line);
  position: relative;
  flex: 0 0 auto;
}
.sv-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.sv-toggle.on { background: var(--green); }
.sv-toggle.on::after { left: 16px; }

/* A small pill: a value, a status or a button. */
.sv-pill {
  font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent-ink);
  white-space: nowrap; flex: 0 0 auto;
}
.sv-pill.teal { background: var(--teal-soft); color: var(--teal-ink); }
.sv-pill.solid { background: var(--night); color: #fff; font-size: 12px; padding: 7px 14px; }

/* Emoji chip for a chore, the way the app shows it. */
.sv-emoji {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg);
  display: grid; place-items: center;
  font-size: 15px; line-height: 1;
  flex: 0 0 auto;
}

/* A check circle: empty, done, or mid press-and-hold. */
.sv-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-2);
  display: grid; place-items: center;
  flex: 0 0 auto; position: relative;
}
.sv-check svg { width: 12px; height: 12px; }
.sv-check.done { background: var(--green); border-color: var(--green); color: #fff; }
.sv-check.holding {
  border: 0;
  background: conic-gradient(var(--green) 0 68%, var(--line) 68% 100%);
}
.sv-check.holding::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--surface);
}

/* Colour dot for a person's calendar. Set --m-bg / --m-fg inline. */
.sv-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--m-fg); box-shadow: 0 0 0 3px var(--m-bg);
  flex: 0 0 auto;
}

/* PIN pad. */
.sv-pin-dots { display: flex; gap: 8px; justify-content: center; }
.sv-pin-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.sv-pin-dot.f { background: var(--orange); }
.sv-pin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sv-pin span {
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line);
  height: 28px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}

/* Pairing code boxes. */
.sv-code { display: flex; gap: 5px; justify-content: center; align-items: center; }
.sv-code span {
  width: 28px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.sv-code span.cur { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sv-code i { width: 6px; }

/* The Jobs balance card. ⚠ Four labels, exactly these words, in
   this order: To spend · On hold · Saved · Altogether. */
.sv-balance-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.sv-balance-big { margin-top: 2px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }

/* App icons with "Add to Home". */
.sv-install-row img {
  width: 30px; height: 30px; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15,27,46,.15);
  flex: 0 0 30px;
}
.sv-card.is-center { align-items: center; gap: 14px; }
