/* Murmur — AI Daily Planner
   Soft, airy, frosted-glass calendar app with blush gradients */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ── */
:root {
  --mr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --mr-white: #FFFFFF;
  --mr-bg: #F8F7F5;
  --mr-text: #1A1A1A;
  --mr-text-secondary: #6E6E73;
  --mr-text-muted: #AEAEB2;
  --mr-border: rgba(0,0,0,0.06);

  /* Blush gradient */
  --mr-blush-start: #F5D5CC;
  --mr-blush-mid: #E8C4CC;
  --mr-blush-end: #D4C1DA;
  --mr-blush-lavender: #C9C0E0;

  /* Accents */
  --mr-coral: #D4887C;
  --mr-coral-light: #F0C4BC;
  --mr-blue: #3478F6;
  --mr-orange: #FF9500;
  --mr-green: #34C759;
  --mr-red: #FF3B30;

  /* Event block colors */
  --mr-sage: #E6EDDF;
  --mr-sage-dark: #C8D8BC;
  --mr-steel: #D0D8E4;
  --mr-steel-dark: #8E9BAD;
  --mr-warm: #EDEAE4;

  /* Glass */
  --mr-glass: rgba(255,255,255,0.72);
  --mr-glass-border: rgba(255,255,255,0.5);
  --mr-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --mr-shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --mr-shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --mr-radius: 20px;
  --mr-radius-sm: 14px;
  --mr-radius-xs: 10px;
}

/* ── Page chrome ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--mr-font);
  background: #F0EEEC;
  color: var(--mr-text);
  -webkit-font-smoothing: antialiased;
}

.showcase {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.showcase__title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.showcase__subtitle {
  font-size: 1rem;
  color: var(--mr-text-secondary);
  font-weight: 400;
  margin-bottom: 48px;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  justify-items: center;
}

.showcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.showcase__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mr-text-secondary);
  letter-spacing: 0.02em;
}

.showcase__step {
  font-size: 0.6875rem;
  color: var(--mr-text-muted);
  font-weight: 500;
}

/* ── iPhone Frame ── */
.phone {
  width: 280px;
  height: 606px;
  border-radius: 44px;
  background: var(--mr-white);
  box-shadow:
    0 0 0 2px #D1D1D6,
    0 20px 60px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  position: relative;
}

/* Dynamic Island */
.phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #1A1A1A;
  border-radius: 20px;
  z-index: 20;
}

.phone__screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Bottom blush gradient — shared across all screens */
.phone__screen::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to top,
    var(--mr-blush-start) 0%,
    var(--mr-blush-mid) 30%,
    var(--mr-blush-end) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  border-radius: 0 0 42px 42px;
}

/* ── Shared Elements ── */
.mr-header {
  padding: 46px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 5;
}

.mr-header__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mr-header__title small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--mr-text-muted);
  letter-spacing: 0;
  margin-top: 2px;
}

.mr-header__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mr-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--mr-white);
}

.mr-avatar--blue { background: var(--mr-blue); }
.mr-avatar--coral { background: var(--mr-coral); }
.mr-avatar--grey { background: #C7C7CC; }
.mr-avatar--img {
  background-size: cover;
  background-position: center;
}

.mr-date-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mr-white);
  border: 1.5px solid var(--mr-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.1;
}

.mr-date-badge__day {
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--mr-text-muted);
  text-transform: uppercase;
}

.mr-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.mr-dot--red { background: var(--mr-red); }

/* Floating action bar */
.mr-fab-bar {
  position: absolute;
  bottom: 36px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #2C2C2E;
  border-radius: 24px;
  padding: 6px 8px;
  z-index: 10;
}

.mr-fab-bar__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3A3A3C;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mr-fab-bar__btn svg {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Coral infinity FAB */
.mr-fab-infinity {
  position: absolute;
  bottom: 36px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mr-coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 1rem;
  color: #8B4F44;
}

/* "Tap to say" label */
.mr-tap-to-say {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--mr-text-muted);
  z-index: 10;
  white-space: nowrap;
}

/* Plus button */
.mr-plus-btn {
  position: absolute;
  bottom: 36px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mr-glass);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--mr-text-secondary);
  z-index: 10;
  border: 1px solid var(--mr-glass-border);
}

/* ── Screen 1 & 8: Goals Dashboard ── */
.mr-goals {
  flex: 1;
  padding: 0 16px;
  overflow: hidden;
}

.mr-goal-card {
  background: var(--mr-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--mr-glass-border);
  border-radius: var(--mr-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.mr-goal-card__time {
  font-size: 0.5625rem;
  color: var(--mr-text-muted);
  margin-bottom: 2px;
}

.mr-goal-card__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mr-goal-card__sub {
  font-size: 0.625rem;
  color: var(--mr-text-secondary);
  margin-top: 1px;
}

.mr-goal-card__action {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--mr-text);
  margin-top: 8px;
}

.mr-goals-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mr-goals-row > * {
  flex: 1;
}

/* Colored card variant */
.mr-goal-card--trip {
  background: linear-gradient(135deg, rgba(180,200,220,0.4), rgba(210,200,220,0.3));
}

.mr-goal-card--meeting-prep {
  background: linear-gradient(135deg, rgba(220,210,200,0.4), rgba(200,195,190,0.3));
}

/* ── Screen 2: Calendar ── */
.mr-calendar {
  flex: 1;
  padding: 0 16px;
}

.mr-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  margin-top: 8px;
}

.mr-cal-grid__head {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--mr-text-muted);
  text-transform: uppercase;
  padding: 4px 0;
}

.mr-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mr-text);
  position: relative;
}

.mr-cal-day--empty {
  visibility: hidden;
}

.mr-cal-day--today {
  font-weight: 700;
}

.mr-cal-day--today::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mr-text);
  top: 0;
  z-index: -1;
}

.mr-cal-day--today {
  color: var(--mr-white);
}

.mr-cal-dots {
  display: flex;
  gap: 2px;
  height: 4px;
}

.mr-cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.mr-cal-dot--blue { background: var(--mr-blue); }
.mr-cal-dot--orange { background: var(--mr-orange); }
.mr-cal-dot--green { background: var(--mr-green); }

/* Weather widget */
.mr-weather {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(200,190,180,0.3), rgba(180,175,170,0.2));
  border-radius: var(--mr-radius);
  padding: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}

.mr-weather__temp {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mr-weather__label {
  font-size: 0.5625rem;
  color: var(--mr-text-secondary);
  margin-top: 2px;
}

.mr-weather__orb {
  position: absolute;
  right: 20px;
  top: 10px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(200,190,180,0.4));
}

/* Close button */
.mr-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--mr-text);
  cursor: pointer;
}

/* ── Screen 3: Day Timeline ── */
.mr-timeline {
  flex: 1;
  padding: 0 16px;
  overflow: hidden;
}

.mr-time-section {
  margin-bottom: 6px;
}

.mr-time-section__label {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 0;
}

.mr-time-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
  min-height: 28px;
}

.mr-time-row__time {
  font-size: 0.5625rem;
  color: var(--mr-text-muted);
  min-width: 32px;
  padding-top: 6px;
  font-weight: 500;
}

.mr-time-row__line {
  width: 1px;
  background: var(--mr-border);
  align-self: stretch;
  min-height: 28px;
}

.mr-time-block {
  flex: 1;
  border-radius: var(--mr-radius-sm);
  padding: 10px 12px;
  position: relative;
}

.mr-time-block--sage {
  background: var(--mr-sage);
}

.mr-time-block--steel {
  background: var(--mr-steel);
}

.mr-time-block--warm {
  background: var(--mr-warm);
}

.mr-time-block--empty {
  background: transparent;
  border-bottom: 1px solid var(--mr-border);
  border-radius: 0;
  padding: 8px 0;
}

.mr-time-block__title {
  font-size: 0.75rem;
  font-weight: 600;
}

.mr-time-block__sub {
  font-size: 0.5625rem;
  color: var(--mr-text-secondary);
  margin-top: 1px;
}

.mr-time-block__dot {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Week strip */
.mr-week-strip {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 6px 0;
  margin-top: 6px;
}

.mr-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--mr-text-muted);
  padding: 4px 8px;
  border-radius: 10px;
}

.mr-week-day--active {
  background: var(--mr-text);
  color: var(--mr-white);
}

.mr-week-day__num {
  font-size: 0.6875rem;
  font-weight: 600;
}

/* ── Screen 4: AI Prompt ── */
.mr-ai-prompt {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
}

.mr-ai-prompt__label {
  font-size: 0.75rem;
  color: var(--mr-text-muted);
  margin-bottom: 8px;
}

.mr-ai-prompt__text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.mr-ai-prompt__text span {
  color: var(--mr-text-muted);
}

.mr-ai-prompt__cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--mr-text);
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* Managing status bar */
.mr-status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px 28px;
  z-index: 5;
  text-align: center;
}

.mr-status-bar__text {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--mr-text-secondary);
}

.mr-status-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: 4px;
}

.mr-status-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mr-text-muted);
}

/* ── Screen 5: Found Free Slot ── */
.mr-slot-finder {
  flex: 1;
  padding: 0 16px;
  padding-top: 8px;
}

.mr-slot-header {
  font-size: 0.625rem;
  color: var(--mr-text-muted);
  margin-bottom: 2px;
}

.mr-slot-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.mr-slot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mr-border);
}

.mr-slot-item__time {
  font-size: 0.5625rem;
  color: var(--mr-text-muted);
  min-width: 32px;
  font-weight: 500;
}

.mr-slot-item__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mr-text-secondary);
}

.mr-free-time {
  padding: 14px 0;
  text-align: center;
}

.mr-free-time__text {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--mr-text);
}

.mr-free-time__end {
  font-size: 0.625rem;
  color: var(--mr-text-muted);
  margin-top: 2px;
}

.mr-slot-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFD700, #FFA500);
}

.mr-book-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--mr-text);
  color: var(--mr-white);
  font-family: var(--mr-font);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
}

/* ── Screen 6 & 7: Restaurant ── */
.mr-restaurant {
  flex: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.mr-restaurant__heading {
  font-size: 0.625rem;
  color: var(--mr-text-muted);
  text-align: center;
  margin-bottom: 2px;
}

.mr-restaurant__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 12px;
}

.mr-venue-card {
  border-radius: var(--mr-radius);
  overflow: hidden;
  background: linear-gradient(145deg, #D4C4B0, #C8B8A4);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  position: relative;
  min-height: 200px;
}

.mr-venue-card__name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--mr-white);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.mr-venue-card__action {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--mr-white);
}

/* Blue action FAB */
.mr-fab-blue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mr-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.mr-fab-blue svg {
  width: 18px;
  height: 18px;
  stroke: var(--mr-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Booking status */
.mr-booking-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px 28px;
  z-index: 5;
  text-align: center;
  background: linear-gradient(to top, var(--mr-white), transparent);
}

.mr-booking-status__text {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--mr-text-secondary);
}

/* Time pills */
.mr-time-pills {
  display: flex;
  gap: 6px;
  padding: 4px 0;
}

.mr-time-pill {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--mr-glass);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--mr-text-secondary);
  border: 1px solid var(--mr-border);
}

/* Filter/edit toolbar */
.mr-toolbar {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
}

.mr-toolbar__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mr-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--mr-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mr-toolbar__btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--mr-text-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Section label (Afternoon/Night) overlay */
.mr-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mr-text);
  padding: 4px 0;
}

/* Navigation icon button (top right) */
.mr-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--mr-text);
}

/* Stacked avatars */
.mr-avatars {
  display: flex;
}

.mr-avatars .mr-avatar {
  margin-left: -6px;
}

.mr-avatars .mr-avatar:first-child {
  margin-left: 0;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .showcase__grid {
    grid-template-columns: 1fr;
  }
}
