/* ═══════════════════════════════════════════════════════════════════
   Milo App Mockups — Chat + Calendar phones (exact-match to iOS app)
   ═══════════════════════════════════════════════════════════════════ */

/* ───────── Section grid ───────── */
.app-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  /* minmax(0, 1fr) instead of 1fr — removes the implicit min-content floor so
     all columns shrink equally as the viewport narrows, instead of one column
     refusing to shrink past its widest content. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  justify-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .app-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ───────── Phone shell ───────── */
.iphone {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 19.5;
  border-radius: 52px;
  background: #1d1d1f;
  padding: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 50px 100px -24px rgba(0,0,0,0.30),
    0 16px 40px -10px rgba(0,0,0,0.18);
  position: relative;
}
.iphone .screen {
  /* Absolute + 4 explicit offsets give the screen a definite size derived
     from the iphone's frame, regardless of how aspect-ratio interacts with
     percentage heights (Safari was sometimes letting content push the screen
     below the iphone silhouette on mobile). */
  position: absolute;
  top: 8px; right: 8px; bottom: 8px; left: 8px;
  border-radius: 44px;
  overflow: hidden;
  background: #fff;
  display: flex; flex-direction: column;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.015em;
}
.iphone .notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; background: #0a0a0a; border-radius: 16px; z-index: 20;
}

/* Status bar */
.app-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px 0;
  font-size: 14px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
  height: 44px;
  flex-shrink: 0;
}
.app-status .icons {
  display: inline-flex; gap: 5px; align-items: center;
  color: var(--ink);
}

/* Top app bar (sidebar + plus) */
.app-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 8px;
  flex-shrink: 0;
}
.app-bar .icn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(10,10,10,0.06);
  display: grid; place-items: center;
  color: var(--ink);
}

/* Bottom tab bar */
.app-tabbar {
  position: relative;
  margin: auto 16px 24px;
  display: flex; align-items: center; justify-content: space-around;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow:
    0 1px 0 rgba(10,10,10,0.02),
    0 10px 30px -8px rgba(10,10,10,0.10);
  flex-shrink: 0;
}
.app-tabbar .tab {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: #B0B0B5;
  transition: color .2s;
}
.app-tabbar .tab.active { color: var(--ink); }
.app-tabbar .tab.brand {
  width: 32px; height: 32px;
}
.app-tabbar .tab.brand img { width: 32px; height: 32px; object-fit: contain; }

/* iOS home indicator */
.iphone .home-bar {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 5px;
  background: #0a0a0a;
  border-radius: 3px;
  opacity: 0.92;
  z-index: 30;
}


/* ═════════════════════════════════════════
   CHAT PHONE
   ═════════════════════════════════════════ */
.chat-screen {
  background: #fff;
}
.chat-thread {
  flex: 1;
  overflow: hidden;
  padding: 8px 14px 12px;
  display: flex; flex-direction: column;
  gap: 8px;
  position: relative;
}
.chat-thread .msg {
  display: flex; max-width: 100%;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.chat-thread .msg.in { opacity: 1; transform: none; }
.chat-thread .msg.user { justify-content: flex-end; }
.chat-thread .msg.milo { justify-content: flex-start; }

.chat-bubble {
  padding: 10px 15px;
  font-size: 13.5px;
  line-height: 1.38;
  letter-spacing: -0.015em;
  font-weight: 500;
  border-radius: 22px;
  max-width: 86%;
}
.msg.user .chat-bubble {
  background: #2997FF;
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg.milo .chat-bubble {
  background: #F2F4F7;
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

/* "All set" rich bubble */
.chat-bubble.all-set {
  padding: 14px 18px 14px 16px;
  background: linear-gradient(180deg, #EFF4FF 0%, #F8F4F4 100%);
  font-size: 13px;
  line-height: 1.45;
}
.chat-bubble.all-set .heading {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.chat-bubble.all-set ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.chat-bubble.all-set li {
  position: relative;
  padding-left: 14px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.chat-bubble.all-set li::before {
  content: "•";
  position: absolute;
  left: 0; top: 0;
  color: var(--ink);
  font-weight: 700;
}
.chat-bubble.all-set li .emoji {
  display: inline-block;
  margin-right: 4px;
  font-size: 13px;
  vertical-align: -1px;
}

/* Typing indicator */
.typing-dots {
  display: inline-flex; gap: 4px; padding: 6px 4px;
}
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #B0B0B5;
  animation: chatDot 1.4s infinite both;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* Composer */
.chat-composer {
  padding: 8px 14px 14px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.chat-composer .c-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(10,10,10,0.05);
  display: grid; place-items: center;
  color: #6E6E73;
  flex-shrink: 0;
}
.chat-composer .c-input {
  flex: 1;
  background: rgba(10,10,10,0.04);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  color: #B0B0B5;
}
.chat-composer .send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(10,10,10,0.05);
  display: grid; place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}


/* ═════════════════════════════════════════
   CALENDAR PHONE
   ═════════════════════════════════════════ */
.cal-screen { background: #fff; }
.cal-header {
  padding: 8px 22px 0;
  display: flex; align-items: baseline; justify-content: space-between;
}
.cal-header .day-big {
  font-size: 32px; font-weight: 800; letter-spacing: -0.04em;
  line-height: 1;
}
.cal-header .reminders-ct {
  font-size: 14px; color: var(--muted); font-weight: 500;
  letter-spacing: -0.01em;
}

.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 18px 18px 10px;
  border-bottom: 1px solid rgba(10,10,10,0.06);
}
.cal-week .d {
  text-align: center;
  font-size: 11px; color: #B0B0B5;
  font-weight: 500;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cal-week .d .num {
  font-size: 15px; font-weight: 600; color: var(--ink);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}
.cal-week .d.today .num { color: var(--red); }
.cal-week .d.selected .num {
  background: rgba(10,10,10,0.85);
  color: #fff;
  border-radius: 50%;
}

/* Timeline body */
.cal-body {
  flex: 1;
  overflow: hidden;
  padding: 4px 0 0;
  position: relative;
}

.cal-allday {
  padding: 10px 18px 12px;
  border-bottom: 1px solid rgba(10,10,10,0.06);
}
.cal-allday .lbl {
  font-size: 11px; color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 4px;
}
.cal-allday .rem-row {
  display: flex; align-items: center; gap: 8px;
  background: #EFF4FF;
  border-radius: 999px;
  padding: 7px 12px 7px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.cal-allday .rem-row:last-child { margin-bottom: 0; }
.cal-allday .rem-row .circle {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.6px solid var(--red);
  flex-shrink: 0;
}

/* Hourly rows */
.cal-hours {
  display: flex; flex-direction: column;
  padding: 4px 0;
}
.cal-hours .hr {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  border-bottom: 1px solid rgba(10,10,10,0.04);
  min-height: 36px;
  padding: 4px 12px 4px 0;
}
.cal-hours .hr .label {
  font-size: 11px; color: #B0B0B5;
  text-align: right;
  padding-right: 10px;
  padding-top: 2px;
  font-weight: 500;
}
.cal-hours .hr .lane {
  display: flex; flex-direction: column;
  gap: 4px;
}
.cal-hours .hr.tall { min-height: 92px; }

/* Reminder row inside hour */
.cal-reminder {
  background: #EFF4FF;
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.cal-reminder .circle {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.6px solid var(--red);
  flex-shrink: 0;
}
.cal-reminder.empty .circle { border-color: #B0B0B5; }
.cal-reminder.orange .circle { border-color: var(--orange); }

/* Event row */
.cal-event {
  background: #EFF4FF;
  border-left: 3px solid var(--milo);
  border-radius: 3px 10px 10px 3px;
  padding: 8px 12px;
  display: flex; flex-direction: column;
  gap: 1px;
  position: relative;
}
.cal-event .t {
  font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em;
}
.cal-event .time {
  font-size: 10.5px; color: var(--muted); font-weight: 500;
}
.cal-event .place { font-size: 10.5px; color: var(--muted); }
.cal-event .tag {
  position: absolute; top: 8px; right: 10px;
  font-size: 10px; font-weight: 600;
  color: var(--milo);
  display: flex; align-items: center; gap: 4px;
}
.cal-event .tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--milo);
}
.cal-event.tall {
  min-height: 80px;
}

/* Pop animation on freshly-created items */
.cal-pop {
  opacity: 0;
  transform: scale(0.94) translateY(4px);
  transition: opacity .4s ease, transform .4s ease, box-shadow .4s ease;
}
.cal-pop.in {
  opacity: 1;
  transform: none;
}
.cal-pop.glow.in {
  box-shadow:
    0 0 0 2px rgba(26,102,255,0.30),
    0 12px 26px -10px rgba(26,102,255,0.35);
  animation: calBounce 0.7s ease-out;
}
.cal-pop.glow-red.in {
  box-shadow:
    0 0 0 2px rgba(255,59,48,0.25),
    0 8px 20px -8px rgba(255,59,48,0.30);
  animation: calBounce 0.7s ease-out;
}
@keyframes calBounce {
  0% { transform: scale(0.92) translateY(4px); }
  60% { transform: scale(1.04) translateY(0); }
  100% { transform: scale(1); }
}

/* "Just added by Milo" floating chip */
.added-pill {
  position: absolute;
  top: 52%; right: -12px;
  background: var(--milo);
  color: #fff;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow:
    0 12px 24px -6px rgba(26,102,255,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25);
  z-index: 25;
  opacity: 0;
  transform: translateX(8px) scale(0.9);
  transition: opacity .35s ease, transform .35s ease;
}
.added-pill.in {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: pillFloat 3.4s ease-in-out 0.5s infinite;
}
.added-pill .avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(155deg, #FFF7C6 0%, #FFD60A 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.added-pill .avatar img { width: 18px; height: 18px; object-fit: contain; }
@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Replay button */
.replay-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 32px auto 0;
  padding: 10px 18px;
  background: rgba(10,10,10,0.05);
  border: 1px solid rgba(10,10,10,0.06);
  border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
}
.replay-btn:hover { background: rgba(10,10,10,0.08); }
.replay-btn svg { transition: transform .3s; }
.replay-btn:hover svg { transform: rotate(-45deg); }


/* ═════════════════════════════════════════
   ROADMAP SECTION (inline)
   ═════════════════════════════════════════ */
.roadmap-stats {
  margin: 0 auto;
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  position: relative; z-index: 1;
}
.roadmap-stats .item {
  padding: 9px 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-dim); font-weight: 500;
  border-radius: 999px;
}
.roadmap-stats .item strong { color: var(--ink); font-weight: 700; }
.roadmap-stats .item .swatch { width: 8px; height: 8px; border-radius: 50%; }

.roadmap-filters {
  margin: 28px auto 0;
  display: flex; justify-content: center;
  position: relative; z-index: 2;
}
.roadmap-filters .bar {
  display: flex; gap: 6px;
  padding: 6px;
  border-radius: 999px;
}
.roadmap-chip {
  background: transparent;
  border: 0;
  padding: 9px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px; font-weight: 500; color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.roadmap-chip:hover { color: var(--ink); }
.roadmap-chip.active {
  background: linear-gradient(180deg, #3D87FF 0%, #1A66FF 100%);
  color: #fff;
  box-shadow:
    0 6px 14px -4px rgba(26,102,255,0.55),
    inset 0 1px 0 rgba(255,255,255,0.28);
}
.roadmap-chip.active:hover { filter: brightness(1.05); }
.roadmap-chip .count {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(10,10,10,0.06);
  color: var(--muted);
}
.roadmap-chip.active .count { background: rgba(255,255,255,0.20); color: rgba(255,255,255,0.92); }

.roadmap-grid {
  max-width: 1180px; margin: 56px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: relative; z-index: 1;
}
@media (max-width: 820px) { .roadmap-grid { grid-template-columns: 1fr; } }

.rm-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 22px;
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
}
.rm-card.hidden { display: none; }
.rm-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(10,10,10,0.04),
    0 16px 40px -16px rgba(10,10,10,0.14),
    0 40px 80px -40px rgba(10,10,10,0.14);
}
.rm-card .top {
  display: flex; align-items: flex-start; gap: 14px;
}
.rm-vote {
  flex-shrink: 0;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  padding: 8px 10px 7px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 52px;
  transition: all .2s;
  font: inherit;
  color: var(--ink);
}
.rm-vote:hover { border-color: var(--milo); background: rgba(26,102,255,0.06); color: var(--milo); }
.rm-vote.voted {
  background: linear-gradient(180deg, #3D87FF 0%, #1A66FF 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 6px 14px -4px rgba(26,102,255,0.55),
    inset 0 1px 0 rgba(255,255,255,0.28);
}
.rm-vote svg { width: 12px; height: 12px; }
.rm-vote .num { font-weight: 700; font-size: 14px; letter-spacing: -0.02em; }
.rm-card .body { flex: 1; min-width: 0; }
.rm-card .row-1 {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.rm-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
}
.rm-status .sw { width: 7px; height: 7px; border-radius: 50%; }
.rm-status[data-s="planned"]   { background: rgba(110,110,115,0.12); color: var(--ink-dim); }
.rm-status[data-s="planned"] .sw { background: var(--faint); }
.rm-status[data-s="progress"]  { background: rgba(255,159,10,0.18); color: #7a4500; }
.rm-status[data-s="progress"] .sw { background: var(--orange); }
.rm-status[data-s="shipped"]   { background: rgba(52,199,89,0.18); color: #1f6b3a; }
.rm-status[data-s="shipped"] .sw { background: var(--green); }
.rm-status[data-s="review"]    { background: rgba(175,82,222,0.18); color: #6b2a9f; }
.rm-status[data-s="review"] .sw { background: var(--purple); }
.rm-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10,10,10,0.06);
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.rm-card .title {
  margin: 4px 0 6px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.25;
  color: var(--ink);
}
.rm-card .desc {
  margin: 0; font-size: 14px; color: var(--ink-dim); font-weight: 500; line-height: 1.5;
}
.rm-card .foot {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(10,10,10,0.06);
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted); font-weight: 500;
  flex-wrap: wrap;
}
.rm-card .foot .pair { display: inline-flex; align-items: center; gap: 6px; }
.rm-card .foot a {
  margin-left: auto;
  color: var(--milo); text-decoration: none; font-weight: 500;
}
.rm-card .foot a:hover { text-decoration: underline; }

/* Submit-idea card (light mode) */
.rm-submit {
  grid-column: 1 / -1;
  padding: 32px 34px;
  border-radius: 24px;
  background: #FFFFFF;
  color: var(--ink);
  display: flex; align-items: center; gap: 24px;
  border: 1px solid rgba(10,10,10,0.06);
  box-shadow:
    0 1px 0 rgba(10,10,10,0.03),
    0 12px 30px -16px rgba(10,10,10,0.08);
}
@media (max-width: 620px) { .rm-submit { flex-direction: column; align-items: stretch; } }
.rm-submit h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.rm-submit p { margin: 6px 0 0; font-size: 14px; color: var(--muted); font-weight: 500; }
.rm-submit .field {
  flex: 1;
  display: flex; gap: 8px;
  padding: 5px 5px 5px 20px;
  border-radius: 999px;
  background: #F5F5F7;
  border: 1px solid rgba(10,10,10,0.06);
}
.rm-submit input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14px; color: var(--ink);
  padding: 10px 0;
}
.rm-submit input::placeholder { color: var(--faint); }
.rm-submit button {
  border: 0;
  background: linear-gradient(180deg, #3D87FF 0%, #1A66FF 100%);
  color: #fff;
  padding: 10px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 14px -4px rgba(26,102,255,0.55), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: filter .2s;
}
.rm-submit button:hover { filter: brightness(1.07); }

/* Two-field idea form: title + description + send.
   Minimalist — underlined fields sit directly on the white card, no nested
   pill. Matches the site's clean Apple-style input pattern. */
.rm-submit .rm-idea-form {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
}
.rm-submit .rm-idea-form input,
.rm-submit .rm-idea-form textarea {
  width: 100%;
  border: 0; outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 12px 2px;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  box-sizing: border-box;
  transition: border-color .15s ease;
}
.rm-submit .rm-idea-form input {
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
}
.rm-submit .rm-idea-form textarea {
  font-size: 14px; font-family: inherit; line-height: 1.5;
  resize: vertical; min-height: 56px;
  border-bottom: 0;
  padding-bottom: 4px;
}
.rm-submit .rm-idea-form input::placeholder,
.rm-submit .rm-idea-form textarea::placeholder {
  color: var(--faint); font-weight: 400;
}
.rm-submit .rm-idea-form input:focus,
.rm-submit .rm-idea-form textarea:focus { border-bottom-color: var(--milo); }
.rm-submit .rm-idea-actions {
  display: flex; justify-content: flex-end;
  margin-top: 10px;
}
.rm-submit .rm-idea-actions button { padding: 9px 20px; font-size: 13.5px; }

/* Load-more button */
.roadmap-loadmore {
  display: flex;
  justify-content: center;
  margin: 28px auto 0;
}
.roadmap-loadmore button {
  border: 0;
  background: linear-gradient(180deg, #3D87FF 0%, #1A66FF 100%);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 14.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 8px 18px -6px rgba(26,102,255,0.55),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform .2s, filter .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.roadmap-loadmore button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.roadmap-loadmore button[disabled] { opacity: 0.55; cursor: default; transform: none; filter: none; }
.rm-card.rm-hidden { display: none; }


/* ═══════════════════════════════════════════════════════════════════
   FEATURES MOCKUPS — Reminders / Notes / Personality / Widgets
   Reuses .iphone, .screen, .notch, .app-status, .app-bar, .app-tabbar,
   .home-bar, .cal-pop, .added-pill, .replay-btn from above.
   ═══════════════════════════════════════════════════════════════════ */

/* ───────── 4-column features-mockups grid ───────── */
.app-grid.two-by-two {
  max-width: 1500px;
  /* See note on .app-grid above — minmax(0, 1fr) keeps all 4 columns equal
     even when the widget/reminders mockups have wider min-content than the
     notes/personality ones. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  row-gap: 56px;
}
.app-grid.two-by-two .iphone {
  max-width: 360px;
}
@media (max-width: 1100px) {
  .app-grid.two-by-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; row-gap: 64px; }
}
@media (max-width: 640px) {
  .app-grid.two-by-two { grid-template-columns: 1fr; row-gap: 48px; }
}

.features-mockups { padding-top: 40px; }
.features-mockups .blob.blob-a { top: -80px; left: -120px; width: 460px; height: 460px; background: var(--purple); opacity: 0.16; }
.features-mockups .blob.blob-b { bottom: -100px; right: -140px; width: 480px; height: 480px; background: var(--milo); opacity: 0.18; }


/* ───────── Shared header inside the screens ───────── */
.rem-header {
  padding: 4px 22px 12px;
  flex-shrink: 0;
}
.rem-header .day-big {
  font-size: 30px; font-weight: 800; letter-spacing: -0.04em;
  line-height: 1;
}

/* ───────── Shared sort chips (Reminders + Notes) ───────── */
.rem-sort {
  display: flex; gap: 8px;
  padding: 0 18px 14px;
  flex-shrink: 0;
}
.rem-sort .chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--ink);
  background: transparent;
  border: 1px solid rgba(10,10,10,0.10);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}
.rem-sort .chip.active {
  background: linear-gradient(180deg, #3D87FF 0%, #1A66FF 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px -3px rgba(26,102,255,0.50), inset 0 1px 0 rgba(255,255,255,0.28);
}


/* ═════════════════════════════════════════
   REMINDERS PHONE
   ═════════════════════════════════════════ */
.rem-screen { background: #fff; }

.rem-section-label {
  padding: 4px 22px 8px;
  font-size: 17px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.rem-section-label .ct { color: var(--faint); font-weight: 600; margin-left: 4px; }

.rem-list {
  flex: 1;
  overflow: hidden;
  padding: 0 18px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.rem-item {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer;
}
.rem-item .circle {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.8px solid var(--faint);
  flex-shrink: 0;
  margin-top: 2px;
  transition: background .2s ease, border-color .2s ease;
  position: relative;
}
.rem-item .circle.red    { border-color: var(--red); }
.rem-item .circle.orange { border-color: var(--orange); }
.rem-item .circle.blue   { border-color: var(--milo); }
.rem-item.checked .circle {
  background: var(--green);
  border-color: var(--green);
}
.rem-item.checked .circle::after {
  content: "";
  position: absolute;
  top: 4px; left: 6px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.rem-item .rem-body { flex: 1; min-width: 0; }
.rem-item .t {
  font-size: 14px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
  transition: text-decoration-color .2s, color .2s;
}
.rem-item.checked .t { color: var(--muted); text-decoration: line-through; }
.rem-item .sub {
  font-size: 11.5px; color: var(--muted); font-weight: 500;
  margin-top: 2px;
}


/* ═════════════════════════════════════════
   NOTES PHONE
   ═════════════════════════════════════════ */
.notes-screen { background: #fff; }

.notes-group {
  padding: 0 22px 8px;
  font-size: 13px; color: var(--muted); font-weight: 500;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.notes-list {
  flex: 1;
  overflow: visible;
  padding: 6px 18px 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.note-card {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 10px 4px 10px 32px;
  position: relative;
  border-bottom: 1px solid rgba(10,10,10,0.06);
  transition: transform .2s ease;
}
.note-card:last-child { border-bottom: 0; }
.note-card::before {
  content: "";
  position: absolute;
  left: 6px; top: 14px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.6px solid var(--faint);
}
.note-card:hover { transform: translateX(2px); }
.note-card .nc-top {
  display: flex; align-items: center; justify-content: space-between;
}
.note-card .t {
  font-size: 14px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
}
.note-card .chev {
  font-size: 18px; color: var(--faint); font-weight: 300;
  flex-shrink: 0;
}
.note-card .date {
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.note-card .preview {
  font-size: 11.5px; color: var(--muted); font-weight: 500;
  line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* ═════════════════════════════════════════
   PERSONALITY PHONE
   ═════════════════════════════════════════ */
.pers-screen { background: #fff; }

.pers-bar {
  position: relative;
  padding: 14px 18px 4px;
}
.pers-bar .icn {
  background: rgba(10,10,10,0.04);
  width: 34px; height: 34px;
}
.pers-bar .icn.invisible { background: transparent; visibility: hidden; }
.pers-bar .pers-title {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -40%);
  font-size: 16px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em;
}

.pers-mascot {
  display: flex; justify-content: center;
  margin: 6px 0 2px;
  flex-shrink: 0;
}
.pers-mascot img {
  width: 52px; height: 52px; object-fit: contain;
}

.pers-desc {
  margin: 4px 22px 10px;
  font-size: 10.5px; color: var(--muted);
  font-weight: 500; line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: center;
}

.pers-label {
  padding: 0 22px 6px;
  font-size: 11px; color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.pers-textarea-wrap {
  margin: 0 18px;
  border-radius: 14px;
  background: #F4F4F6;
  padding: 12px 14px 8px;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 0;
  position: relative;
  transition: box-shadow .4s ease;
}
.pers-textarea-wrap.glow-on {
  box-shadow:
    0 0 0 2px rgba(26,102,255,0.30),
    0 10px 24px -10px rgba(26,102,255,0.35);
}
.pers-textarea {
  flex: 1;
  border: 0; outline: 0; resize: none;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
  min-height: 0;
  width: 100%;
  padding: 0;
}
.pers-textarea::placeholder { color: var(--faint); }
.pers-counter {
  font-size: 10.5px; color: var(--muted);
  font-weight: 500;
  text-align: right;
  margin-top: 6px;
  font-family: "Geist Mono", ui-monospace, monospace;
}
.pers-helper {
  margin: 10px 22px 8px;
  font-size: 10px; color: var(--muted);
  font-weight: 500;
  text-align: center;
  flex-shrink: 0;
}


/* ═════════════════════════════════════════
   WIDGETS / HOME SCREEN PHONE
   ═════════════════════════════════════════ */
.home-screen {
  background:
    /* faint diagonal line texture */
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 14px),
    /* subtle curved highlight (top-left warm glow) */
    radial-gradient(ellipse 70% 50% at 28% 18%, rgba(255,220,170,0.22), transparent 65%),
    /* cool blob bottom-right */
    radial-gradient(ellipse 70% 55% at 78% 88%, rgba(140,200,255,0.45), transparent 60%),
    /* main gradient */
    linear-gradient(165deg, #7BBCE9 0%, #4A84C8 38%, #2B548E 78%, #1A3A72 100%);
  position: relative;
}
.home-screen .app-status.home-status {
  color: #fff;
  padding-top: 18px;
}
.home-screen .app-status.home-status .icons { color: #fff; }

.home-grid {
  flex: 1;
  padding: 10px 14px 4px;
  display: flex; flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.widget {
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  padding: 14px;
  box-shadow:
    0 10px 24px -10px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
}

.w-calendar {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 10px;
}
.w-calendar .w-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.w-calendar .w-day {
  font-size: 10px; font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
}
.w-calendar .w-num {
  font-size: 32px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 4px;
}
.w-calendar .w-lbl {
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.w-calendar .w-row {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 9.5px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
  background: rgba(10,10,10,0.05);
  border-radius: 6px;
  padding: 4px 6px;
}
.w-calendar .w-row .circle {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.4px solid var(--milo);
  flex-shrink: 0;
  margin-top: 1px;
}
.w-calendar .w-row .t-sub {
  display: block;
  font-size: 8.5px; color: var(--muted); font-weight: 500;
}

.w-reminders {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  align-items: center;
}
.w-reminders .w-left {
  display: flex; flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.w-reminders .w-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--milo);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.w-reminders .w-big-num {
  font-size: 26px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1;
}
.w-reminders .w-rem-label {
  font-size: 11px; font-weight: 600; color: var(--milo);
  letter-spacing: -0.01em;
}
.w-reminders .w-right {
  display: flex; flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.w-reminders .w-rline {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .2s, color .2s;
}
.w-reminders .w-rline .circle {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.4px solid var(--faint);
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.w-reminders .w-rline.checked .circle {
  background: var(--green);
  border-color: var(--green);
}
.w-reminders .w-rline.checked { color: var(--muted); text-decoration: line-through; }

/* Each widget gets a small text label below it, like real iOS */
.widget-block {
  display: flex; flex-direction: column;
  gap: 4px;
}
.widget-label {
  text-align: center;
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.20);
}

/* Side-by-side small widgets row */
.widget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.widget-row .widget-block { min-width: 0; }
.widget-row .widget {
  aspect-ratio: 1 / 1;
  padding: 12px;
  display: flex; flex-direction: column;
  min-width: 0;
}

/* Small Notes widget */
.w-notes { gap: 4px; }
.w-notes-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255, 214, 10, 0.18);
  display: grid; place-items: center;
}
.w-notes .w-big-num {
  font-size: 24px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1;
  margin-top: 4px;
}
.w-notes-label {
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.w-notes-preview {
  margin-top: auto;
  font-size: 10px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Small Chat / Milo widget */
.w-chat { gap: 6px; }
.w-chat-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(155deg, #FFF7C6 0%, #FFD60A 100%);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.w-chat-avatar img { width: 24px; height: 24px; object-fit: contain; }
.w-chat-bubble {
  margin-top: 4px;
  font-size: 11px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.w-chat-meta {
  margin-top: auto;
  font-size: 9.5px; font-weight: 500; color: var(--muted);
  letter-spacing: -0.005em;
}

/* App-icon row — Milo pinned to the right like the screenshot */
.home-app-row {
  display: flex; justify-content: flex-end;
  padding: 4px 4px 0;
}

.milo-icon-tile {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform .2s ease;
}
.milo-icon-tile:hover { transform: translateY(-2px); }
.milo-icon-tile:active { animation: miloWiggle 0.45s ease-out; }
.milo-icon-tile .mit-img {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: #fff;
  display: grid; place-items: center;
  box-shadow:
    0 8px 16px -6px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
.milo-icon-tile .mit-img img { width: 44px; height: 44px; object-fit: contain; }
.milo-icon-tile .label {
  font-size: 11px; font-weight: 500; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
@keyframes miloWiggle {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-6deg); }
  50%  { transform: rotate(5deg); }
  75%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* Bottom search pill (iOS spotlight-style) */
.home-screen .home-search {
  margin: 6px auto 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  font-size: 11.5px; font-weight: 500; color: #fff;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: center;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.20);
}
.home-screen .home-search svg { color: #fff; }

/* Translucent iOS dock with Safari + Messages */
.home-dock {
  margin: 0 18px 26px;
  padding: 10px 22px;
  border-radius: 28px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  display: flex; justify-content: center; gap: 22px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
}
.dock-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  overflow: hidden;
}
.dock-icon svg { width: 100%; height: 100%; display: block; }

.iphone .home-bar.light {
  background: #fff;
  opacity: 0.85;
}

/* Empty iOS-style dock placeholder (light-gray rectangle) */
.home-screen .home-dock-bar {
  margin: 4px 14px 18px;
  height: 76px;
  border-radius: 28px;
  background: rgba(255,255,255,0.26);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    0 1px 2px rgba(0,0,0,0.06);
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE RULES
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Section heads breathe less */
  .section-head { padding: 80px 18px 40px; }

  /* Roadmap: tighten chips and stats */
  .roadmap-stats { flex-wrap: wrap; justify-content: center; gap: 4px; }
  .roadmap-stats .item { padding: 7px 14px; font-size: 13px; }
  .roadmap-filters .bar { flex-wrap: wrap; gap: 4px; }
  .roadmap-chip { padding: 8px 14px; font-size: 13px; }
  .roadmap-grid { padding: 0 18px; gap: 12px; }
  .rm-card { padding: 18px 18px 16px; }
  .rm-card .top { gap: 12px; }
  .rm-submit { padding: 22px 22px; gap: 18px; }
  .rm-submit h3 { font-size: 20px; }
  /* 16px prevents iOS Safari auto-zoom on input focus. */
  .rm-submit .rm-idea-form input,
  .rm-submit .rm-idea-form textarea { font-size: 16px; }

  /* Replay button breathes less */
  .replay-btn { font-size: 13px; padding: 8px 16px; }
}

@media (max-width: 480px) {
  /* Section heads even tighter */
  .section-head { padding: 64px 16px 32px; }

  /* App-grid: tighter gap when stacked */
  .app-grid { gap: 36px; }
  .app-grid.two-by-two { row-gap: 36px; gap: 36px; }

  /* Roadmap chips wrap nicely */
  .roadmap-chip { padding: 7px 12px; font-size: 12.5px; gap: 6px; }
  .roadmap-chip .count { font-size: 10.5px; padding: 1px 6px; }
  .roadmap-stats .item { padding: 6px 12px; font-size: 12.5px; }

  /* Submit card stacks earlier */
  .rm-submit { padding: 20px 18px; gap: 14px; }
  /* Slightly bigger send-idea button for thumb tap targets. */
  .rm-submit .rm-idea-actions button { padding: 11px 22px; font-size: 14px; }

  /* Load more button compresses */
  .roadmap-loadmore button { padding: 11px 22px; font-size: 13.5px; }

  /* Phone shadows are softer on mobile (perf + lighter visual) */
  .iphone {
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.06),
      0 24px 50px -16px rgba(0,0,0,0.24),
      0 8px 22px -8px rgba(0,0,0,0.14);
  }
}
