/* ============================================================
   HERO SHOWCASE — Mac window + iPhone composition
   Ported 1:1 from brand-preview/home_v3.html
   ============================================================ */

.hero-showcase {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  perspective: 2000px;
  min-height: 460px;
}
.hero-showcase .mac-window {
  max-width: 680px;
  width: 100%;
  max-height: 500px;
  transform: perspective(2000px) rotateX(1deg) rotateY(-2deg);
  transform-origin: right center;
  position: relative;
  z-index: 1;
}
.hero-showcase .device-iphone {
  position: absolute;
  right: -45px;
  bottom: -90px;
  z-index: 2;
  width: 243px;
  transform: rotate(5deg);
  box-shadow:
    0 50px 100px rgba(14,14,16,0.4),
    0 0 0 1.5px rgba(14,14,16,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}
@media (max-width: 1100px) {
  .hero-showcase .device-iphone {
    right: -30px;
    width: 221px;
    bottom: -70px;
  }
}
@media (max-width: 900px) {
  .hero-showcase { justify-content: center; }
  .hero-showcase .mac-window { transform: none; max-width: 720px; }
  .hero-showcase .device-iphone { right: 10px; bottom: -40px; width: 231px; }
}
@media (max-width: 600px) {
  .hero-showcase .device-iphone {
    position: relative;
    right: 0; bottom: 0;
    margin-top: -80px;
    transform: rotate(3deg);
    width: 231px;
  }
}

/* Hero device — subtle lift on hover */
.hero-showcase .mac-window,
.hero-showcase .device-iphone {
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-showcase:hover .mac-window {
  transform: perspective(1800px) rotateX(0.5deg) rotateY(-1.5deg) translateY(-4px);
}
.hero-showcase:hover .device-iphone {
  transform: rotate(3deg) translateY(-8px);
}

/* ============================================================
   MAC WINDOW MOCKUP
   ============================================================ */
.mac-window {
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(14,14,16,0.08), 0 0 0 1px rgba(14,14,16,0.08);
  width: 100%;
  max-width: 720px;
}
.mac-titlebar {
  height: 38px;
  background: linear-gradient(to bottom, #F6F5F2, #ECEAE6);
  border-bottom: 1px solid rgba(14,14,16,0.08);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 14px;
}
.mac-traffic { display: flex; gap: 8px; }
.mac-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.06); }
.mac-dot.close { background: #FF5F57; }
.mac-dot.min { background: #FEBC2E; }
.mac-dot.max { background: #28C840; }
.mac-title { flex: 1; text-align: center; font-size: 13px; font-weight: 500; color: #3A3A3F; margin-right: 60px; font-family: 'Inter', -apple-system, system-ui, sans-serif; }
.mac-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}
.mac-sidebar {
  background: #F8F7F4;
  border-right: 1px solid rgba(14,14,16,0.06);
  padding: 16px 12px;
  font-size: 13px;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
}
.mac-sidebar-section {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #56565E;
  margin: 12px 12px 8px;
}
.mac-sidebar-item {
  padding: 6px 12px;
  border-radius: 6px;
  color: #2A2A2E;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mac-sidebar-item:hover { background: rgba(14,14,16,0.04); }
.mac-sidebar-item.active { background: #F1EBFF; color: #6B3FE0; font-weight: 500; }
.mac-side-ic { width: 16px; height: 16px; flex-shrink: 0; color: #56565E; }
.mac-sidebar-item.active .mac-side-ic { color: #6B3FE0; }

.mac-content { padding: 24px; font-family: 'Inter', -apple-system, system-ui, sans-serif; }
.mac-content h4 {
  font-family: 'Source Serif 4', 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #0E0E10;
}
.mac-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(14,14,16,0.08);
}
.mac-task:last-child { border-bottom: 0; }
.mac-check {
  width: 18px; height: 18px;
  border: 1.5px solid #8A8A93;
  border-radius: 999px;
  flex-shrink: 0;
}
.mac-check.done {
  background: linear-gradient(135deg, #8E5BFF 0%, #FF7EB6 100%);
  border-color: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
}
.mac-check.done::after { content: '\2713'; }
.mac-task-title { flex: 1; min-width: 0; font-size: 14px; color: #0E0E10; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-task.done .mac-task-title { color: #56565E; text-decoration: line-through; }
.mac-task-time { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; font-size: 11px; color: #56565E; flex-shrink: 0; white-space: nowrap; }
@media (max-width: 720px) {
  .mac-body { grid-template-columns: 1fr; }
  .mac-sidebar { display: none; }
}

/* ============================================================
   iPHONE MOCKUP — realistic body with Dynamic Island
   ============================================================ */
.device-iphone {
  width: 252px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(135deg, #2A2A2E 0%, #0E0E10 50%, #1A1A1F 100%);
  border-radius: 38px;
  padding: 8px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 30px 60px rgba(14,14,16,0.35),
    0 0 0 1.5px rgba(14,14,16,0.5);
  flex-shrink: 0;
}
.device-iphone::before {
  content: '';
  position: absolute;
  left: -2.5px;
  top: 18%;
  width: 3px;
  height: 38px;
  background: linear-gradient(to right, #0A0A0C 0%, #3A3A3F 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 50px 0 #0A0A0C, 0 84px 0 #0A0A0C;
}
.device-iphone::after {
  content: '';
  position: absolute;
  right: -2.5px;
  top: 26%;
  width: 3px;
  height: 60px;
  background: linear-gradient(to left, #0A0A0C 0%, #3A3A3F 100%);
  border-radius: 0 2px 2px 0;
}
.iphone-screen {
  background:
    radial-gradient(at 50% 0%, rgba(142,91,255,0.10), transparent 50%),
    radial-gradient(at 90% 100%, rgba(255,126,182,0.10), transparent 55%),
    radial-gradient(at 10% 65%, rgba(200,180,255,0.08), transparent 55%),
    linear-gradient(180deg, #FAFAF7 0%, #FFFFFF 50%, #FAFAF7 100%);
  border-radius: 30px;
  height: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
}
.iphone-screen::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 26px;
  background: #0A0A0C;
  border-radius: 15px;
  z-index: 10;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.05),
    0 0 0 0.5px rgba(0,0,0,0.5);
}
.iphone-screen::after {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(50% + 28px);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #1A1A2A 30%, #050508 70%);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.1);
  z-index: 11;
}
.iphone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: #0E0E10;
  border-radius: 99px;
  opacity: 0.7;
  z-index: 10;
}

/* iOS status bar */
.ip-statusbar {
  height: 56px;
  padding: 16px 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
  color: #0E0E10;
  position: relative;
  z-index: 5;
}
.ip-statusbar > span:first-child { padding-left: 4px; }
.ip-statusbar-right { padding-right: 4px; display: flex; gap: 4px; align-items: center; }
.ip-signal { display: flex; align-items: flex-end; gap: 1.5px; }
.ip-signal span { width: 2.5px; background: #0E0E10; border-radius: 1px; }
.ip-signal span:nth-child(1) { height: 3px; }
.ip-signal span:nth-child(2) { height: 5px; }
.ip-signal span:nth-child(3) { height: 7px; }
.ip-signal span:nth-child(4) { height: 9px; }
.ip-battery {
  width: 18px; height: 9px;
  border: 1px solid #0E0E10;
  border-radius: 2px;
  position: relative;
  padding: 1px;
}
.ip-battery::after {
  content: '';
  position: absolute;
  right: -2.5px; top: 50%;
  transform: translateY(-50%);
  width: 1.5px; height: 4px;
  background: #0E0E10;
  border-radius: 0 1px 1px 0;
}
.ip-battery-fill { height: 100%; background: #0E0E10; border-radius: 1px; width: 78%; }

/* App header */
.ip-header {
  padding: 18px 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ip-header-greet {
  font-family: 'Source Serif 4', 'Times New Roman', serif;
  font-size: 11px;
  font-style: italic;
  color: #56565E;
  line-height: 1;
  margin-bottom: 4px;
}
.ip-header-day {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0E0E10;
}
.ip-header-date {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #56565E;
  margin-top: 3px;
}
.ip-header-right { display: flex; align-items: center; gap: 4px; }
.ip-avatar {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8E5BFF 0%, #FF7EB6 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
  position: relative;
  box-shadow: 0 1px 3px rgba(142,91,255,0.4);
}
.ip-avatar::after {
  content: '';
  position: absolute;
  right: -1px; bottom: -1px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2BB673;
  box-shadow: 0 0 0 1.5px #FFFFFF;
}

/* Now-card */
.ip-now-card {
  margin: 0 12px 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #1A1226 0%, #0E0E10 50%, #2A1B4A 100%);
  color: #fff;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 4px 12px rgba(14,14,16,0.15);
}
.ip-now-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 90% 0%, rgba(142,91,255,0.5), transparent 50%),
    radial-gradient(at 10% 100%, rgba(255,126,182,0.3), transparent 55%);
  pointer-events: none;
}
.ip-now-card > * { position: relative; z-index: 1; }
.ip-now-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 10px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}
.ip-now-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 99px;
  background: #A8FF00;
  box-shadow: 0 0 6px #A8FF00;
  animation: hs-pulse 1.5s infinite;
}
@keyframes hs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.ip-now-title {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 5px;
  color: #fff;
}
.ip-now-meta {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-weight: 600;
}
.ip-now-meta span { display: inline-flex; align-items: center; gap: 3px; }
.ip-now-bar {
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.ip-now-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(135deg, #8E5BFF 0%, #FF7EB6 100%);
  border-radius: 99px;
}
.ip-ai-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.85);
  line-height: 1.25;
}
.ip-ai-sparkle {
  width: 14px; height: 14px;
  border-radius: 99px;
  background: linear-gradient(135deg, #8E5BFF 0%, #FF7EB6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(142,91,255,0.5);
  color: #fff;
}
.ip-ai-hint-text { flex: 1; line-height: 1.3; }
.ip-ai-hint-text em { font-family: 'Source Serif 4', 'Times New Roman', serif; font-style: italic; font-weight: 500; color: #fff; }

/* "Up next" header */
.ip-section-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 14px;
  margin-top: 3px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.ip-section-title {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3A3A3F;
  font-weight: 600;
}
.ip-section-meta {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 8px;
  color: #8A8A93;
}

/* Tasks list */
.ip-tasks { padding: 0 12px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.iphone-screen .ip-task {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 9.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 0 0 0.5px rgba(14,14,16,0.06),
    0 1px 2px rgba(14,14,16,0.03);
}
.iphone-screen .ip-task.done { background: transparent; box-shadow: none; }
.iphone-screen .ip-task-check {
  width: 13px; height: 13px;
  border: 1.4px solid #8A8A93;
  border-radius: 999px;
  flex-shrink: 0;
  position: relative;
}
.iphone-screen .ip-task.done .ip-task-check {
  background: linear-gradient(135deg, #8E5BFF 0%, #FF7EB6 100%);
  border-color: transparent;
}
.iphone-screen .ip-task.done .ip-task-check::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'><path d='M3 6.5l2.5 2.5L10 4' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center/contain no-repeat;
}
.iphone-screen .ip-task-text {
  flex: 1;
  color: #0E0E10;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.iphone-screen .ip-task.done .ip-task-text {
  color: #56565E;
  text-decoration: line-through;
  font-weight: 400;
}
.iphone-screen .ip-task-meta {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 8px;
  color: #56565E;
}
.iphone-screen .ip-task-tag {
  background: #F1EBFF;
  color: #6B3FE0;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.iphone-screen .ip-task-tag.focus { background: rgba(232,163,61,0.15); color: #B57F25; }
.iphone-screen .ip-task-tag.habit { background: rgba(43,182,115,0.12); color: #2BB673; }

/* Habits */
.ip-habits {
  margin: 6px 12px 0;
  padding: 8px 11px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 0 0 0.5px rgba(14,14,16,0.06);
}
.ip-habits-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ip-habits-title {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: -0.01em;
  color: #0E0E10;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ip-habits-count {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 8px;
  color: #56565E;
}
.ip-habits-row { display: flex; gap: 5px; }
.ip-habit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border-radius: 6px;
}
.ip-habit-circle {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #8A8A93;
  position: relative;
}
.ip-habit.done .ip-habit-circle {
  background: linear-gradient(135deg, #8E5BFF 0%, #FF7EB6 100%);
  border-color: transparent;
}
.ip-habit.done .ip-habit-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M4.5 9l3 3 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center/contain no-repeat;
}
.ip-habit-label {
  font-size: 8px;
  color: #3A3A3F;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ip-habit.done .ip-habit-label { color: #6B3FE0; }
.ip-habit-streak {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 7px;
  color: #C2552A;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

/* Tab bar — glass */
.ip-tabbar {
  margin: auto 12px 14px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 999px;
  display: flex;
  justify-content: space-around;
  padding: 5px 5px;
  flex-shrink: 0;
  box-shadow:
    0 8px 24px rgba(14,14,16,0.12),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 0 0 0.5px rgba(255,255,255,0.5);
  border: 1px solid rgba(14,14,16,0.06);
  gap: 2px;
}
.ip-tab {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  color: #56565E;
  transition: all 200ms;
  position: relative;
}
.ip-tab.active {
  background: #0E0E10;
  color: #fff;
  box-shadow: 0 2px 6px rgba(14,14,16,0.2);
}
.ip-tab.ai {
  background: linear-gradient(135deg, #8E5BFF 0%, #FF7EB6 100%);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(142,91,255,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.ip-tab svg { width: 14px; height: 14px; stroke-width: 1.8; }
.ip-tab:hover { color: #2A2A2E; }
@media (max-width: 720px) {
  .device-iphone { width: 180px; }
}
