/*
  Inwall App — clickable prototype (advertiser + Inwaller), no backend.
  Reuses every token from css/styles.css (Inwall design system). This
  file adds mobile-screen chrome: phone frame, step progress, stepper
  rows, and the feed's own floating chrome.
*/

body { background: var(--color-bg); }

.proto-banner {
  background: var(--brand-100);
  border: 1px solid var(--brand-300);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: 20px auto;
  max-width: 1100px;
  font-size: 0.9rem;
  color: var(--brand-700);
}
.proto-banner strong { color: var(--color-heading); }

.hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
.hub-head { text-align: center; padding: 40px 0 8px; }
.hub-head .brand-word { justify-content: center; margin-bottom: 16px; }
.hub-head h1 { font-family: var(--font-family-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.hub-head p { color: var(--color-text-subtle); max-width: 60ch; margin: 0 auto; }

.hub-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.hub-side h2 { font-family: var(--font-family-display); font-size: 1.3rem; margin: 0 0 4px; }
.hub-side .side-kicker { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; display: block; }
.hub-side.advertiser .side-kicker { color: var(--brand-700); }
.hub-side.inwaller .side-kicker { color: var(--brand-500); }
.hub-side p.side-desc { color: var(--color-text-subtle); font-size: 0.9rem; margin: 0 0 20px; }

.screen-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; }
.screen-strip a { text-decoration: none; flex-shrink: 0; text-align: center; }
.screen-strip .strip-label { display: block; margin-top: 8px; font-size: 0.8rem; font-weight: 600; color: var(--color-text); }

/* ---------- Phone device frame ---------- */

.device {
  width: 240px;
  height: 500px;
  border-radius: 36px;
  background: var(--brand-900);
  padding: 10px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.device .screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  background: var(--color-surface);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.device .statusbar { height: 24px; flex-shrink: 0; }
.device .screen-body { flex: 1; overflow: hidden; padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.device .screen-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-shrink: 0; }
.device .screen-nav .back { width: 28px; height: 28px; border-radius: 50%; background: var(--color-surface-tint); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--color-heading); flex-shrink: 0; }
.device .screen-nav .title { font-family: var(--font-family-display); font-weight: 700; font-size: 1rem; }

/* ---------- Step progress ---------- */

.step-progress { display: flex; gap: 6px; margin-bottom: 20px; flex-shrink: 0; }
.step-progress span { flex: 1; height: 4px; border-radius: 3px; background: var(--neutral-100); }
.step-progress span.done { background: var(--brand-700); }

/* ---------- Budget & steppers ---------- */

.budget-display { text-align: center; margin: 12px 0 20px; }
.budget-display .amt { font-family: var(--font-family-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.02em; color: var(--color-heading); font-variant-numeric: tabular-nums; }
.budget-display .lbl { font-size: 0.78rem; color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

.pps-label { font-size: 0.72rem; color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }

.pps-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 6px;
  border-bottom: 1px solid var(--color-border);
}
.pps-row:last-child { border-bottom: none; }
.pps-row .net { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; }
.pps-row .net .dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.pps-row .stepper { display: flex; align-items: center; gap: 10px; }
.pps-row .stepper-btn-sm {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-700);
  border: none; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pps-row .val { font-family: var(--font-family-mono); font-weight: 700; min-width: 32px; text-align: center; }

/* ---------- Target / settings rows ---------- */

.field-block { margin-bottom: 16px; }
.field-block label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--color-text-subtle); margin-bottom: 6px; }
.field-block .field-value {
  background: var(--color-surface-tint);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
}
.creative-drop {
  background: var(--brand-100);
  border: 1.5px dashed var(--brand-400);
  border-radius: var(--radius-md);
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-700); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 16px;
}

.social-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-surface-tint);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.social-row .dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.social-row .meta { flex: 1; }
.social-row .meta .h { font-size: 0.72rem; color: var(--color-text-subtle); }
.social-row .meta .u { font-size: 0.85rem; font-weight: 700; }
.social-row .followers { text-align: right; font-family: var(--font-family-mono); font-weight: 700; font-size: 0.85rem; }

/* ---------- Bottom CTA ---------- */

.screen-cta { margin-top: auto; padding-top: 12px; flex-shrink: 0; }
.screen-cta .btn { width: 100%; }

/* ---------- Success screen ---------- */

.success-body { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; text-align: center; }
.success-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient-cta);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.success-check svg { width: 30px; height: 30px; }
.success-body h3 { font-family: var(--font-family-display); font-size: 1.15rem; margin: 0 0 6px; }
.success-body p { color: var(--color-text-subtle); font-size: 0.85rem; margin: 0; }

/* ---------- Mini dashboard (in-device) ---------- */

.mini-stat-row { display: flex; gap: 8px; margin-bottom: 12px; }
.mini-stat { flex: 1; background: var(--color-surface-tint); border-radius: var(--radius-sm); padding: 10px; }
.mini-stat .l { font-size: 0.65rem; color: var(--color-text-subtle); margin-bottom: 2px; }
.mini-stat .v { font-family: var(--font-family-display); font-weight: 800; font-size: 1.1rem; }

.mini-bar-track { height: 8px; border-radius: 4px; background: var(--neutral-100); overflow: hidden; margin: 6px 0 14px; }
.mini-bar-fill { height: 100%; background: var(--gradient-cta); }

.mini-legend { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; }
.mini-legend .row { display: flex; align-items: center; gap: 8px; }
.mini-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.mini-legend .row span:last-child { margin-left: auto; font-family: var(--font-family-mono); }

/* ---------- Feed (Inwaller) ---------- */

.device.feed .screen { background: var(--brand-900); }
.feed-media {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, #C7A6F6, #6D3FD6 55%, #2A0D6B);
}
.feed-media.v2 { background: linear-gradient(155deg, #F6C6A6, #D65F3F 55%, #6B240D); }
.feed-media.v3 { background: linear-gradient(160deg, #A6E6F6, #3FA9D6 55%, #0D3E6B); }

.feed-topbar { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: flex-end; z-index: 2; }
.feed-views { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,0.35); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }

.feed-chrome { position: absolute; left: 14px; right: 14px; bottom: 64px; display: flex; align-items: flex-end; justify-content: space-between; z-index: 3; }
.feed-source { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); border-radius: var(--radius-pill); padding: 6px 12px 6px 6px; }
.feed-source .mark { width: 24px; height: 24px; border-radius: 50%; background: var(--gradient-hero); display: flex; align-items: center; justify-content: center; }
.feed-source .mark img { width: 12px; height: 12px; }
.feed-source .name { color: #fff; font-size: 0.82rem; font-weight: 700; }

.feed-share {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-hero);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feed-share img { width: 20px; height: 20px; }

.feed-payout {
  position: absolute; left: 14px; bottom: 126px; z-index: 3;
  background: var(--neutral-0); color: var(--brand-700);
  font-family: var(--font-family-mono); font-weight: 800; font-size: 0.85rem;
  padding: 6px 12px; border-radius: var(--radius-pill);
}

.tabbar-mini {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  height: 44px; background: rgba(34,8,99,0.9); backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 2;
}
.tabbar-mini .ic { width: 18px; height: 18px; opacity: 0.6; }
.tabbar-mini .ic.active { opacity: 1; }

/* ---------- Single-screen preview page ---------- */

.screen-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  text-align: center;
}
.screen-page .back-link { display: inline-block; margin-bottom: 20px; color: var(--brand-500); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.screen-page .device { margin: 0 auto; }
.screen-page .flow-nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.screen-page .flow-nav a.btn { text-decoration: none; }
.screen-page .flow-caption { color: var(--color-text-subtle); font-size: 0.85rem; max-width: 46ch; margin: 20px auto 0; }

@media (max-width: 760px) {
  .hub-sides { grid-template-columns: 1fr; }
}
